foreach ($strain_info as $id => $d) { if ($d[0] != $known_strains_by_id[$id]) { // var_dump($known_strains_by_id); // echo "<BR>$id<br>"; $query = "UPDATE sample_region_image_info as r, capture_samples as s " . "SET r.strain = '" . mysql_real_escape_string($d[0]) . "' WHERE r.strain='" . mysql_real_escape_string($known_strains_by_id[$id]) . "' AND r.sample_id = s.id AND s.experiment_id = {$experiment_id}"; $sql->send_query($query); } } } } $next_qs = "experiment_id={$experiment_id}&strain={$strain}"; if ($reload) { header("Location: strain_aliases.php?{$next_qs}\n\n"); die(''); } display_worm_page_header("Strain Information"); echo "<span class=\"style1\">"; if ($experiment_id != '') { echo "Viewing strains used in experiment {$experiment_name}"; } else { if ($strain_name != '') { echo "Viewing information for strain {$strain_name}"; } else { echo "Viewing all strain information"; } } echo "</span> <br><br>"; echo '<form action="strain_aliases.php?&' . $next_qs . '" method="post">'; echo "<input name=\"edit\" type=\"hidden\" value=\"1\">"; echo "<table align=\"center\" border=0 cellspacing=1 cellpadding=1>\n"; echo "<tr><td bgcolor=\"#000000\">\n";
$strain_condition .= " AND i.strain_condition_2 = '" . $st[2] . "'"; } } //echo $region_id . ": " . $model . "<br>"; $query = " UPDATE sample_region_image_info as i, capture_samples as s SET worm_detection_model ='{$model}' WHERE {$strain_condition} AND i.sample_id = s.id AND s.experiment_id = {$experiment_id}"; //echo $query . "<br>";// $sql->send_query($query); } // die(""); } } // die(""); header("Location: manage_experiment_analysis_configuration.php?{$query_parameters}\n\n"); } $back_url = "manage_samples.php?experiment_id={$experiment_id}"; display_worm_page_header($page_title, "<a href=\"{$back_url}\">[Back to {$experiment_name}]</a>"); //var_dump($control_strain_hash); } catch (ns_exception $ex) { die("Error: " . $ex->text); } ?> <table cellspacing = 5 cellpadding=0 border=0 align="center"><tr><td valign="top"> <form action="manage_experiment_analysis_configuration.php?<?php echo $query_parameters . "&set_denoising_options=1"; ?> " method="post"> <table align="center" border="0" cellpadding="0" cellspacing="1" bgcolor="#000000"><tr><td><table border="0" cellpadding="4" cellspacing="0" width="100%"><tr <?php
$sql->get_row($query, $res); if (sizeof($res) > 0) { $query = "UPDATE experiment_groups SET group_order=" . $res[0][1] . " WHERE group_id = {$id}"; //echo $query . "<br>"; $sql->send_query($query); $query = "UPDATE experiment_groups SET group_order=" . $cur_order . " WHERE group_id = " . $res[0][0]; //die($query); $sql->send_query($query); } $reload = TRUE; } if ($reload) { header("Location: manage_experiment_groups.php\n\n"); die(""); } display_worm_page_header("Experiment Group Management"); echo "<table align=\"center\" border=0 cellspacing=1 cellpadding=1>\n"; echo "<tr><td bgcolor=\"#000000\">\n"; echo "<table border=0 bgcolor=\"#FFFFFF\" cellspacing=0 cellpadding=3>\n"; for ($i = 0; $i < sizeof($constants); $i++) { echo "<tr><td>"; echo '<form action="cluster_configuration.php" method="post">'; echo "\n<table cellspacing=0 cellpadding=0 width=\"100%\">\n"; echo "<tr><td bgcolor=\"{$table_colors[$i % 2][0]}\" width=400>\n"; output_editable_field('k', $constants[$i][1], TRUE, 55); echo "\n</td><td bgcolor=\"{$table_colors[$i % 2][1]}\" width = 400>\n"; output_editable_field('v', $constants[$i][2], TRUE, 55); echo "\n</td><td bgcolor=\"{$table_colors[$i % 2][0]}\">\n"; echo "<input type=\"hidden\" name=\"id\" value=\"{$constants[$i][0]}\">"; echo "<input name=\"save\" type=\"submit\" value=\"save\">\n"; echo "<input name=\"delete\" type=\"submit\" value=\"delete\">\n";
$storyboard_info = "<table><tr><td>Storyboard built on </td><td>" . format_time($storyboard_build_timestamp) . "</td></tr>"; if ($latest_rebuild > $storyboard_build_timestamp) { $storyboard_info .= "<tr><td></td><td><b>(Out of date!)</b></td></tr>"; } $storyboard_info .= "<tr><td>Up to time </td><td>" . format_time($storyboard_last_timepoint) . "</td></tr>"; $storyboard_info .= "</table>"; // $storyboard_info .= $latest_rebuild; } } catch (ns_exception $e) { die($e->text); } if ($refresh_page === TRUE) { header("Location: manage_samples.php?experiment_id={$experiment_id}&{$region_job_query_string}\n\n"); die(""); } display_worm_page_header($experiment->name . " samples"); ?> <span class="style1">Experiment-wide operations</span> <table border="0" cellpadding="0" cellspacing="1" bgcolor="#000000"><tr><td> <table border="0" cellpadding="0" cellspacing="0"> <tr> <td bgcolor="<?php echo $table_colors[0][0]; ?> " valign="top"> <b>Configuration</b><br> <?php //echo "<table border=0 cellpadding=4 cellspacing=0><tr><td valign=\"top\" bgcolor=\"{$table_colors[0][0]}\">"; echo "<a href=\"manage_experiment_analysis_configuration.php?experiment_id={$experiment_id}\">[Configure Machine Analysis]</a><br>"; ?>
$query .= "region_info_id = {$region_id}"; } else { $query .= "id = {$region_image_id}"; } if ($sort_forwards) { $query .= " ORDER BY capture_time ASC"; } else { $query .= " ORDER BY capture_time DESC"; } $sql->get_row($query, $region_images); $job_offset = 5; $page_title = $experiment_name . "::" . $sample_name . "::" . $region_name; } catch (ns_exception $ex) { die($ex->text); } display_worm_page_header($page_title, "<a href=\"manage_samples.php?experiment_id={$experiment_id}\">[Back to Experiment Samples]</a>"); if ($sort_forwards) { echo "<a href=\"ns_view_region_images.php?sort_forwards=0®ion_id={$region_id}&experiment_id={$experiment_id}\">[Reverse order by time]</a>"; } else { echo "<a href=\"ns_view_region_images.php?sort_forwards=1®ion_id={$region_id}&experiment_id={$experiment_id}\">[Order by time]</a>"; } $id1 = $ns_processing_tasks['ns_process_add_to_training_set']; $id2 = $ns_processing_tasks['ns_process_analyze_mask']; $id3 = $ns_processing_tasks['ns_process_compile_video']; $id4 = $ns_processing_tasks['ns_process_remove_problem_areas']; if (sizeof($region_images) == 0) { echo "(No region images available)"; } else { ?> <table border="0" cellpadding="0" cellspacing="1" bgcolor="#000000"><tr><td> <table border="0" cellpadding="4" cellspacing="0" width="100%">
$view_processing_taskbar = FALSE; $view_video_taskbar = FALSE; $view_boundaries_taskbar = FALSE; }*/ if ($job_type != $IS_REGION) { $view_boundaries_taskbar = FALSE; } //die("$view_delete_image_taskbar); $query = "SELECT id, name, ip, last_ping, comments, long_term_storage_enabled, port FROM hosts ORDER BY name DESC"; $sql->get_row($query, $hosts); $hosts[sizeof($hosts)] = array(0, "(Any)"); if ($jobs[0]->experiment_id != 0) { display_worm_page_header($page_title, "<a href=\"{$back_url}\">[Back to {$jobs[0]->experiment_name} Samples]</a>"); } else { display_worm_page_header($page_title); } ?> <span class="style1">Job Target(s):</span><br><?php echo $target_text; ?> <?php if ($job_type != $IS_EXPERIMENT) { if ($job_type == $IS_SAMPLE) { $sub = "Samples"; } else { $sub = "Regions"; }
<?php require_once "worm_environment.php"; require_once "ns_processing_job.php"; try { display_worm_page_header("View Sample Videos"); $sample_str = $query_string['samples']; $sample_ids = explode('o', $query_string['samples']); $sample_names = array(); $sample_names_short = array(); $sample_image_ids = array(); $sample_video_ids = array(); if ($_POST['censor'] != '') { $query = "UPDATE capture_samples SET censored=1 WHERE id = " . (int) $_POST['sample_id']; // die($query); $sql->send_query($query); } if ($_POST['uncensor'] != '') { $query = "UPDATE capture_samples SET censored=0 WHERE id = " . (int) $_POST['sample_id']; $sql->send_query($query); } if (sizeof($sample_ids) == 0) { throw new ns_exception("No samples specified"); } for ($i = 0; $i < sizeof($sample_ids); $i++) { $query = "SELECT s.name,e.name, s.op0_video_id, s.censored FROM capture_samples as s, experiments as e WHERE s.id = " . $sample_ids[$i] . " AND s.experiment_id = e.id"; $sql->get_row($query, $res); if (sizeof($res) == 0) { throw new ns_exception("Could not load info for sample " . $sample_ids[$i]); } $sample_names[$i] = $res[0][1] . "::" . $res[0][0];
<?php require_once 'worm_environment.php'; require_once 'ns_dir.php'; //require_once('ns_external_interface.php'); require_once 'ns_experiment.php'; require_once 'ns_processing_job.php'; $experiment_id = @$query_string['experiment_id']; $query = "SELECT name FROM experiments WHERE id = {$experiment_id}"; $sql->get_value($query, $experiment_name); display_worm_page_header($experiment_name . " Image Analysis Status"); ?> <span class="style1">Mask Application:</span><br> <?php $query = "SELECT a.name, s.sample_id, COUNT(DISTINCT s.id),COUNT(DISTINCT s.image_id), SUM(s.censored>0), SUM(s.problem>0), SUM(s.currently_being_processed>0),SUM(s.mask_applied) FROM captured_images as s, capture_samples as a WHERE s.sample_id = a.id AND a.experiment_id = {$experiment_id} GROUP BY s.sample_id ORDER BY a.name"; $sql->get_row($query, $sample_info); $res = array(); $empty = array(); $done = array(); foreach ($sample_info as $d) { if ($d[3] != 0) { $p = $d[7] / $d[2]; if ($p < 0.95) { array_push($res, array($d[0], floor($p * 100))); } else { array_push($done, $d[0]); } } else { arrayy_push($empty, $d[0]); } }
// $query = "UNLOCK TABLES"; // $sql->send_query($query); // $refresh_page = TRUE; //die(""); } } } //die(''); if ($refresh_page === TRUE) { $s = $only_strain ? "&only_strain=1" : ""; header("Location: plate_labeling.php?experiment_id={$experiment_id}{$s}\n\n"); die(""); } } catch (ns_exception $e) { die($e->text); } display_worm_page_header($experiment->name . " Plate Metadata for " . $experiment_name); ?> <form action="<?php echo "plate_labeling.php?experiment_id={$experiment_id}"; if ($only_strain) { echo "&only_strain=1"; } if ($only_experiment_conditions) { echo "&only_experiment_conditions=1"; } ?> " method="post"> <table border = 0 cellspacing = 0 cellpadding="0" width="100%"><TR><TD> <span class="style1">Experiment Metadata by Plate Position</span><br> <?php if ($only_strain == 1 || $only_experiment_conditions == 1) {
//_die($query); $sql->get_row($query, $current_events); $query = "{$info} WHERE {$experiment_mysql} capture_schedule.time_at_start != 0 AND capture_schedule.time_at_finish = 0 AND capture_schedule.scheduled_time < " . (time() - 60 * 4) . " {$postfix_ASC}"; $sql->get_row($query, $delayed_events); if ($show_past[1] - $show_past[0] > 0) { $query = "{$info} WHERE {$experiment_mysql} capture_schedule.time_at_finish != 0 {$postfix_DESC} "; $query .= "LIMIT " . $show_past[0] . "," . $show_past[1]; $sql->get_row($query, $completed_events); // die("size: " . sizeof($completed_events)); } $text = "Image Acquisition Schedule for "; if (isset($device_name)) { $text .= $device_name . ": "; } $text .= $experiment->name; display_worm_page_header($text); ?> <!--<a href="#Current">[Current]</a> <a href="#future">[Future]</a> <a href="#completed">[Completed]<br><br>--> </a> <?php /* echo "<b>Inspect Single Experiment</b><br>\n"; echo "<a href=\"view_scanner_schedule.php?experiment_id=&\">[all]</a> "; for ($i = 0; $i < sizeof($experiments); $i++){ if ($experiments[$i][2] == '0') echo out_link($experiments[$i][0]) . "[" . display_hash_name($experiments[$i][0],$experiment_names)."]</a> "; } echo "<br><b>Inspect Single Device</b><br>\n";
function output_nav_links() { global $reached_end, $start_position, $count, $experiment_id, $show_images; if ($reached_end) { return; } if ($start_position != 0) { echo "<a href=\"experiment_overview.php?experiment_id={$experiment_id}&show_images=" . ($show_images ? "1" : "0") . "&start_position="; echo $start_position - $count; echo "&count=" . $count . "\">[Previous]</a>"; } echo "<a href=\"experiment_overview.php?experiment_id={$experiment_id}&show_images=" . ($show_images ? "1" : "0") . "&start_position="; echo $start_position + $count; echo "&count=" . $count . "\">[Next]</a>"; } display_worm_page_header($experiment->name . " Overview"); ?> <!-- <video src="/image_server_web/long_term_storage/partition_000/2010_01_13_daf16_uno/video/regions/2010_01_13_daf16_uno=cube_a=3=.m4v" controls="controls" onerror="failed(event)">No video support</video> --> <span class="style1">Experiment Samples</span><br> Displaying <?php echo "("; echo $start_position; echo " - "; echo $start_position + $count; echo ") / "; echo sizeof($experiment->samples); ?> <br>
<?php require_once "ns_processing_job.php"; require_once "worm_environment.php"; display_worm_page_header("Cluster Activity"); $current_device_cutoff = 60 * 10; $query = "SELECT id, name, last_ping,software_version_major,software_version_minor,software_version_compile FROM hosts ORDER BY name"; $sql->get_row($query, $hosts); for ($i = 0; $i < sizeof($hosts); $i++) { $query = "SELECT time, event, processing_job_op FROM host_event_log WHERE host_id = " . $hosts[$i][0] . " ORDER BY time DESC LIMIT 2"; $sql->get_row($query, $host_events[$i]); } ?> <span class="style1">Capture/Processing Nodes and Imaging Devices</span> <form action="view_hosts_and_devices.php" method="post"> <table bgcolor="#555555" cellspacing='0' cellpadding='1'><tr><td> <table cellspacing='0' cellpadding='3' > <tr <?php echo $table_header_color; ?> ><td>Host Name</td> <td>Last Action</td> <td>Last Ping</td> <?php $cur_time = ns_current_time(); $k = 0; for ($i = 0; $i < sizeof($hosts); $i++) { $clrs = $table_colors[$i % 2]; $edit_host = $host_id == $hosts[$i][0]; echo "<tr><td bgcolor=\"{$clrs['0']}\">"; $current = $cur_time - $hosts[$i][2] < $current_device_cutoff;
$n = $loc[$i][0]; if (!isset($strain_experiment[$n])) { $strain_experiment[$n] = array(); $strain_experiment_id[$n] = array(); } array_push($strain_experiment[$n], $loc[$i][2]); array_push($strain_experiment_id[$n], $loc[$i][1]); $query = "SELECT genotype FROM strain_aliases WHERE strain = \"" . $n . "\""; $sql->get_row($query, $l); if (sizeof($l) == 0) { $genotypes[$n] == ""; } else { $genotypes[$n] = $l[0][0]; } } display_worm_page_header("Locate Strains and Genotypes in Database"); ?> <table border=0 bgcolor="#000000" cellspacing=1 cellpadding=0 align="center"><tr><td> <table border=0 bgcolor="#FFFFFF" cellspacing=0 cellpadding=3> <tr><td colspan = 2 bgcolor="#FFFFFF"> <?php echo "<table border=0>"; foreach ($strain_experiment as $strain => $experiment) { echo "<tr><td colspan = 2, bgcolor = \"#CCCCCC\" >"; if ($show_strain) { echo $strain . " "; } echo "<i>" . $genotypes[$strain] . "</i></td></tr>"; if ($show_experiment) { for ($i = 0; $i < sizeof($experiment); $i++) { echo "<tr><td width = 50> </td><td><a href=\"manage_samples.php?experiment_id=" . $strain_experiment_id[$strain][$i] . "\">" . $experiment[$i] . "</a></td></tr>";
foreach ($experiments as $file_sizes) { $file_size_totals[0] += $file_sizes[8]; $file_size_totals[1] += $file_sizes[9]; $file_size_totals[2] += $file_sizes[10]; $file_size_totals[3] += $file_sizes[11]; $file_size_totals[4] += $file_sizes[12]; $file_size_totals[5] += $file_sizes[13]; } $ALL_EXPERIMENTS_ID = 99999999; $experiments[sizeof($experiments)] = array($ALL_EXPERIMENTS_ID, "All Experiments", "[Automatically Generated Data for All Experiments]", 0, 0, 0, 0, 0, $file_size_totals[0], $file_size_totals[1], $file_size_totals[2], $file_size_totals[3], $file_size_totals[4], $file_size_totals[5]); $total_data_rate = 0; $current_time = ns_current_time(); } catch (ns_exception $e) { die("Error: " . $e->text); } display_worm_page_header("Home", "", TRUE); ?> <span class="style1">Welcome to the Lifespan Machine!</span><br><br> Forward any questions to <?php echo $contact_name . " at <a href=\"mailto:" . $contact_email . "\">{$contact_email}</a>"; if ($contact_phone != '') { echo ", " . $contact_phone; } ?> <br> <table width="100%"><TR><TD valign="top"> <span class="style1">Image Acquisition</span><br> <table bgcolor="#555555" cellspacing='0' cellpadding='1' width="100%"><tr><td> <table cellspacing='0' cellpadding='3' width="100%"> <tr <?php echo $table_header_color;
$sql->get_row($query, $devices); foreach ($devices as $d) { $device_names[$d[0]] = $d[0]; $device_locations[$d[0]] = $d[2]; $device_incubator[$d[0]] = $d[3]; $incubators[$d[3]] = 1; } foreach ($devices as $d) { $query = "SELECT experiment_temperature FROM sample_region_image_info WHERE sample_id = " . $d[1] . " LIMIT 1"; $sql->get_row($query, $temperatures); $device_temperatures[$d[0]] = $temperatures[0][0]; } } catch (ns_exception $e) { die($e->text); } display_worm_page_header($experiment->name . " Device Temperatures for " . $experiment_name); ?> <div align="center"> <form action="<?php echo "device_temperatures.php?experiment_id={$experiment_id}"; ?> " method="post"> <table border="0" cellpadding="0" cellspacing="1" bgcolor="#000000"> <tr> <?php echo "<td {$table_header_color} align=\"center\"><b>Incubator</b></td>"; ?> <td <?php echo $table_header_color;
if ($j >= $numflags) { $str .= "<BR>"; echo $str; var_dump($flags); die("<BR>A loop was detected in the flag ordering: {$j}"); } $str .= $sorted_flags[$i][0] . "<BR>"; array_push($ordered_flags, $sorted_flags[$i]); $j++; } /*echo "FIRST: ". $flags[$root_flag_index][0] . "<BR>"; var_dump($sorted_flags); echo "<BR><BR>"; var_dump($ordered_flags); die("");*/ display_worm_page_header("Imaging Cluster Configuration"); ?> <a href="#constants">[Cluster Constants]</a> <a href="#flags">[Animal Annotation Flags]</a><br> <a name="constants"> <H2>Cluster Constants</H2> <?php echo "<table align=\"center\" border=0 cellspacing=1 cellpadding=1>\n"; echo "<tr><td bgcolor=\"#000000\">\n"; echo "<table border=0 bgcolor=\"#FFFFFF\" cellspacing=0 cellpadding=3>\n"; for ($i = 0; $i < sizeof($constants); $i++) { echo "<tr><td>"; echo '<form action="cluster_configuration.php" method="post">'; echo "\n<table cellspacing=0 cellpadding=0 width=\"100%\">\n"; echo "<tr><td bgcolor=\"{$table_colors[$i % 2][0]}\" width=400>\n"; output_editable_field('k', $constants[$i][1], TRUE, 55); echo "\n</td><td bgcolor=\"{$table_colors[$i % 2][1]}\" width = 400>\n";
<?php class ns_stat { public $mean, $var, $count; } require_once "worm_environment.php"; require_once "ns_processing_job.php"; display_worm_page_header("Cluster Throughput Statistics"); $query = "SELECT id, name, last_ping,software_version_major,software_version_minor,software_version_compile FROM hosts WHERE last_ping > " . ns_current_time() . " - 600 ORDER BY name"; $sql->get_row($query, $hosts); $stats = array(); for ($i = 0; $i < sizeof($hosts); $i++) { $query = "SELECT operation,mean,variance,count FROM performance_statistics WHERE host_id = " . $hosts[$i][0] . " ORDER BY operation"; $sql->get_row($query, $stats[$i]); } $host_stats = array(); $host_total_stats = array(); for ($i = 0; $i < sizeof($hosts); $i++) { $host_stats[$i] = array(); for ($j = 0; $j < sizeof($stats[$i]); $j++) { $host_stats[$i][(int) $stats[$i][$j][0]] = new ns_stat(); $host_stats[$i][(int) $stats[$i][$j][0]]->mean = $stats[$i][$j][1]; $host_stats[$i][(int) $stats[$i][$j][0]]->var = $stats[$i][$j][2]; $host_stats[$i][(int) $stats[$i][$j][0]]->count = $stats[$i][$j][3]; } } //var_dump($host_stats[0]); $operations_specified = array(); foreach ($stats as $s) { foreach ($s as $sa) {
$sql->get_row($query, $unclaimed_masks); if ($_POST['save'] != '') { foreach ($capture_sample_names as $j => $k) { //echo $j; for ($i = 0; $i < sizeof($capture_sample_regions[$j]); $i++) { $region_id = $capture_sample_regions[$j][$i][0]; $name = ns_slash($_POST["region_{$region_id}_name"]); $details = ns_slash($_POST["region_{$region_id}_details"]); $query = "UPDATE sample_region_image_info SET name='{$name}', details='{$details}' WHERE id={$region_id}"; $sql->send_query($query); } } header("Location: manage_masks.php?mask_id={$mask_id}\n\n"); die(""); } display_worm_page_header("Manage Masks"); } catch (ns_exception $ex) { die("Error: " . $ex->text); } ?> <?php if ($mask_id != 0) { ?> <span class="style1">Mask Information</span> <?php if ($vis_message != '') { echo '<BR><br><b>' . $vis_message . '</b><br><BR>'; } ?>
$device_in_inventory[$device_inventory_q[$i][0]] = 1; $device_incubators[$device_inventory_q[$i][0]] = $device_inventory_q[$i][2]; } for ($i = 0; $i < sizeof($hosts); $i++) { $device_map[$hosts[$i][0]] = array(); } for ($i = 0; $i < sizeof($devices); $i++) { array_push($device_map[$devices[$i][0]], $devices[$i]); } $unregistered_device_inventory = array(); foreach ($devices_identified as $name => $info) { if ($info == 1) { array_push($unregistered_device_inventory, array($name, "", 1)); } } display_worm_page_header("Hosts and Devices", "<a href=\"view_experiments.php\">[Back to Experiment Index]</a>", TRUE); ?> <table border="0" cellspacing="15"><TR><TD valign="top"> <form action="view_hosts_and_devices.php?<?php echo "show_host_nodes=" . ($show_host_nodes ? "1" : "0"); ?> " method="post"> <span class="style1">Image Capture and Processing Servers</span><br> <table border = 0><TR><td width="100%"> <?php if ($show_host_nodes) { echo "<a href=\"view_hosts_and_devices.php?show_host_nodes=0\">[Hide Individual Nodes]</a>"; } else { echo "<a href=\"view_hosts_and_devices.php?show_host_nodes=1\">[Show Individual Nodes]</a>"; } ?>
$query = "COMMIT"; $sql->send_query($query); $refresh = TRUE; } $show_details_id = $query_string['show_details_id']; if ($refresh) { header("Location: manage_file_deletion_jobs.php\n\n"); die(""); } $query = "SELECT id, confirmed, parent_job_id FROM delete_file_jobs ORDER BY confirmed ASC"; $sql->get_row($query, $jobs); for ($i = 0; $i < sizeof($jobs); $i++) { $query = "SELECT relative_directory,filename FROM delete_file_specifications WHERE delete_job_id=" . $jobs[$i][0]; $sql->get_row($query, $job_specifications[$i]); } display_worm_page_header("Manage File Deletion Jobs"); ?> <table border=0 bgcolor="#000000" cellspacing=1 cellpadding=0 align="center"><tr><td> <table border=0 bgcolor="#FFFFFF" cellspacing=0 cellpadding=3> <tr><td colspan = 2<?php echo $table_header_color; ?> >File Deletion Jobs Pending Confirmation<br> <form method="post" action="manage_file_deletion_jobs.php"> <?php if (sizeof($jobs) > 0) { ?> <input name="dismiss_all" type="submit" value="Dismiss All Deletion Requests" onClick="javascript:return confirm('Are you sure you wish to dismiss all requests?')"><?php } ?> </form>
echo " image could not be displayed because " . $image_problem . ".<br>"; display_worm_page_footer(); die(""); } else { if ($redirect == "1") { header("Location: {$image_url}\n\n"); die(""); } display_worm_page_header("View Image"); echo "<center>"; if ($video_image_id) { echo "<br>(Defaulting to still image because {$video_problem})<br><br>"; } echo "<iframe src=\"{$image_url}\" width=\"{$width}\" height=\"{$height}\"></iframe>"; echo "<br><a href=\"{$image_url}\">[View Full Size Image]</a>"; echo "</center>"; display_worm_page_footer(); } } else { if ($redirect == "1") { echo "<html><head></head><body>"; } else { display_worm_page_header("View Image"); } echo "<video src=\"{$video_url}\" controls=\"controls\" width=\"{$width}\" height=\"{$height}\" onerror=\"report_video_failure(event)\">This web browser does not support the video tag.</video>"; if ($redirect == "1") { echo "</body></html>"; } else { display_worm_page_footer(); } }
foreach ($past as &$f) { array_push($schedule_past[$device_index[$f[8]]], $f); } //$schedule_future[$i] //echo $query_future . "<br>"; // flush(); // ob_flush(); //$sql->get_row($query_past,$schedule_past[$i]); //var_dump($devices_per_incubator); //die(""); $query = "SELECT id,name FROM experiments"; $sql->get_row($query, $exper); for ($i = 0; $i < sizeof($exper); $i++) { $exp[$exper[$i][0]] = $exper[$i][1]; } display_worm_page_header("Imaging Cluster Activity"); ?> <table width="100%"> <TR><td valign="top" align="center" width="50%"><center> <table bgcolor="#555555" cellspacing='0' cellpadding='1' > <tr><td> <table cellspacing='0' cellpadding='3' > <tr <?php echo $table_header_color; ?> ><td><b>Scanners</b></td></tr> <tr> <td bgcolor="<?php echo $table_colors[0][0]; ?> ">
<?php require_once "ns_processing_job.php"; require_once "worm_environment.php"; display_worm_page_header("Hosts and Devices", "<a href=\"view_hosts_and_devices.php\">[Back to Hosts and Devices]</a>"); $current_device_cutoff = 60 * 10; $host_id = $query_string['host_id']; $event_id = $query_string['event_id']; $region_id = $query_string['region_id']; $sample_id = $query_string['sample_id']; $experiment_id = $query_string['experiment_id']; $show_errors = $query_string['show_errors']; $start_time = $query_string['start_time']; $limit = $query_string['limit']; if ($_POST['jump_to_time'] != '') { $query = "SELECT UNIX_TIMESTAMP('" . $_POST['jump_year'] . "-" . $_POST['jump_month'] . "-" . $_POST['jump_day'] . " 23:59:59Ab')"; $sql->get_row($query, $res); $start_time = $res[0][0]; header("Location: view_hosts_log.php?host_id={$host_id}&start_time=" . $start_time . "&limit=" . $limit . "\n\n"); die(""); } if ($start_time == 0) { $start_time = ns_current_time(); } ns_expand_unix_timestamp($start_time, $cur_min, $cur_hour, $cur_day, $cur_month, $cur_year); if ($query_string['delete_before'] != '' && $query_string['delete_before'] != 0) { $query = "DELETE FROM host_event_log WHERE host_id='{$host_id}' AND time <= " . $query_string['delete_before']; $sql->send_query($query); } $samples = array(); if ($experiment_id != '') {
die($ex->text); } if ($all_running_experiments == 1) { $back = "<a href=\"view_experiments.php\">[Back to Experiments]</a>"; } else { if ($experiment_id != 0) { $back = "<a href=\"manage_samples.php?experiment_id={$experiment_id}\">[Back to Experiment Samples]</a>"; } else { if (sizeof($images) != 0) { $back = "<a href=\"manage_samples.php?experiment_id=" . $images[0][13] . "\">[Back to Experiment Samples]</a>"; } else { $back = ""; } } } display_worm_page_header($page_title, $back); if (sizeof($images) == 0) { echo "(No region images available)"; } else { if ($stop_time > 0) { $offset = $stop_time - $start_time; $forward = $stop_time; if ($forward > $offset) { $forward = $offset; } //die($forward . " " . $offset); echo "<a href=\"ns_view_sample_images.php?experiment_id=" . (int) $experiment_id . "&all_running_experiments=" . (int) $all_running_experiments . "&sample_id=" . (int) $sample_id . "&start_time=" . (int) ($start_time + $offset) . "&stop_time=" . (int) ($stop_time + $offset) . "\">[Later Time Points]</a>"; } //echo $start_time . " ". $stop_time ."<BR>"; ?> <table border="0" cellpadding="0" cellspacing="1" bgcolor="#000000"><tr><td>