Commit c322e9ae authored by Leigh B. Stoller's avatar Leigh B. Stoller
Browse files

Check "wirelesslan" count in the experiment_resource entry for the

experiment. If non-zero, then add a menu option point to the wireless
floormaps for that experiment.
parent 8668053f
......@@ -58,15 +58,17 @@ if (! TBExptAccessCheck($uid, $exp_pid, $exp_eid, $TB_EXPT_READINFO)) {
# Need some DB info.
$query_result =
DBQueryFatal("select e.idx,e.state,e.batchmode,s.rsrcidx ".
DBQueryFatal("select e.idx,e.state,e.batchmode,s.rsrcidx,r.wirelesslans ".
" from experiments as e ".
"left join experiment_stats as s on s.exptidx=e.idx ".
"left join experiment_resources as r on s.rsrcidx=r.idx ".
"where e.eid='$eid' and'$pid'");
$row = mysql_fetch_array($query_result);
$expindex = $row["idx"];
$expstate = $row["state"];
$rsrcidx = $row["rsrcidx"];
$isbatch = $row["batchmode"];
$wireless = $row["wirelesslans"];
echo "<font size=+2>Experiment <b>".
"<a href='showproject.php3?pid=$pid'>$pid</a>/".
......@@ -158,6 +160,12 @@ if (TBExptAccessCheck($uid, $exp_pid, $exp_eid, $TB_EXPT_MODIFY)) {
# Wireless maps if experiment includes wireless lans.
if ($wireless) {
# History
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment