foreach ($outcome as $taskcode => $result) { $status = $result ? 'good' : 'bad'; $url = htmlentities("bad_channels.php?run={$run}&loc={$loc}&iov_id={$iov_id}&taskcode={$taskcode}"); $target = "bad_channels{$run}{$loc}{$iov_id}{$taskcode}"; echo "<div class='ttp bl {$status}'>\n <a onclick=\"return popup(this, '{$target}', 1000)\" href='{$url}'>{$taskcode}</a>\n <div class='tt' style='width: 150px'>{$tasks[$taskcode]}</div></div>"; } } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <title>List Runs</title> <?php echo get_stylelinks($compact); ?> <script type="text/javascript"> <!-- function popup(mylink, windowname, width) { if (! window.focus)return true; var href; if (typeof(mylink) == 'string') href=mylink; else href=mylink.href; var param = 'width='+width+',height=600,scrollbars=yes'; window.open(href, windowname, param); return false; }
{ echo "<select name='run_order'>"; echo "<option value='desc'>Descending</option>"; echo "<option value='asc'>Ascending</option>"; echo "</select>"; } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <title>ECAL CondDB Run Selection</title> <?php echo get_stylelinks(); ?> </head> <body> <h1>ECAL CondDB Run Selection</h1> <form name='runselect' action='list_runs.php'> <table class='runselect'> <tr><th>Location:</th><td><?php draw_location_box(); ?> </td></tr> <tr><th>SM:</th><td><?php draw_sm_box();