예제 #1
0
     output_editable_field('region_condition_1', $cur_region[7], $edit_region, 10);
     echo "</font></td></tr>";
 }
 if (strlen($cur_region[8]) > 0 || $edit_region) {
     echo "<tr><td><font size=\"-1\">Condition 2:</font></td><td><font size=\"-1\">";
     output_editable_field('region_condition_2', $cur_region[8], $edit_region, 10);
     echo "</font></td></tr>";
 }
 if (strlen($cur_region[9]) > 0 || $edit_region) {
     echo "<tr><td><font size=\"-1\">Condition 3:</font></td><td><font size=\"-1\">";
     output_editable_field('region_condition_3', $cur_region[9], $edit_region, 10);
     echo "</font></td></tr>";
 }
 if (strlen($cur_region[2]) > 0 || $edit_region) {
     echo "<tr><td><font size=\"-1\">Details:</font></td><td><font size=\"-1\">";
     output_editable_field('region_details', $cur_region[2], $edit_region, 10, TRUE);
     echo "</font></td></tr>";
 }
 echo "</table>";
 echo "</font>";
 if ($edit_region) {
     echo "<input type=\"hidden\" name=\"edit_region_id\" value=\"" . $cur_region[0] . "\"><br>";
 }
 echo "</td><td>";
 if ($show_region_jobs) {
     $job = new ns_processing_job();
     $job->region_id = $cur_region[0];
     $v = $job->get_processing_state_description(FALSE, $sql);
     echo $v;
     if (strlen($v) > 0) {
         echo "<a href=\"view_processing_job.php?job_id=0&experiment_id={$experiment_id}&region_id=" . $cur_region[0] . "&all_new=1&delete_file_taskbar=1\"><font size=\"-1\">[Delete Images]</font></a> ";
예제 #2
0
echo $show_errors;
?>
" method="post">
<?php 
if (!$show_errors) {
    echo "<a href=\"view_hosts_log.php?host_id={$host_id}&limit={$limit}&show_errors=1\">[Show Only Errors]</a>";
} else {
    echo "<a href=\"view_hosts_log.php?host_id={$host_id}&limit={$limit}&show_errors=0\">[Show All Events]</a>";
}
echo "<BR><br>";
echo "Jump to date ";
output_editable_field("jump_month", $cur_month, TRUE, 2);
echo "/";
output_editable_field("jump_day", $cur_day, TRUE, 2);
echo "/";
output_editable_field("jump_year", $cur_year, TRUE, 4);
//echo " $cur_hour:$cur_min:$cur_sec";
echo "<input type=\"submit\" name=\"jump_to_time\" value=\"Go\">";
?>
</form><br>

<table bgcolor="#555555" cellspacing='0' cellpadding='1'><tr><td>
<table cellspacing='0' cellpadding='3' >
<tr <?php 
echo $table_header_color;
?>
><td>Time</td><td>Host</td>
   <td>Event</td><td>&nbsp;</td></tr>
<?php 
if (sizeof($events) == 0) {
    echo "<tr><td bgcolor=\"{$table_colors[0][0]}\" colspan=\"3\">(No events in log)</td></tr>";
예제 #3
0
    echo $table_colors[1][0];
    ?>
" >Final Time Point (Age)</td> <td bgcolor="<?php 
    echo $table_colors[1][1];
    ?>
" ><input type="checkbox" name="set_end_time_age" value="1"></td>
		  <td bgcolor="<?php 
    echo $table_colors[1][1];
    ?>
">
<?php 
    $end_age = ($region_end_times[$jobs[0]->region_id] - $region_start_times[$jobs[0]->region_id]) / (60 * 60 * 24);
    if ($end_age < 0) {
        $end_age = '';
    }
    output_editable_field("end_age", $end_age, TRUE, 2);
    ?>
 days<br><font size="-2">(Leave blank to include all images in analysis)</font>
</td></tr>
<!--
	<tr>
    <td bgcolor="<?php 
    echo $table_colors[0][1];
    ?>
" >&nbsp;</td> <td bgcolor="<?php 
    echo $table_colors[0][1];
    ?>
" ></td>
  <td bgcolor="<?php 
    echo $table_colors[0][1];
    ?>
     if ($dev[8] == 1) {
         echo "<i>" . number_format((-$dev[9] + $current_time) / 60, 1) . " min</i>";
     }
     if ($dev[7] == 1) {
         echo "(Paused!)";
     }
     if ((int) $dev[11] > 0) {
         echo "(Preview Requested)";
     }
 }
 echo "</td>";
 echo "\t<td bgcolor=\"{$clrs['1']}\">";
 echo output_editable_field("device_incubator[{$device['0']}]", $incubator, TRUE, '10', FALSE);
 echo "</td>\n";
 echo "\t<td bgcolor=\"{$clrs['1']}\">";
 echo output_editable_field("device_locations[{$device['0']}]", $device[1], TRUE, '4', FALSE);
 echo "</td>\n";
 echo "\t<td bgcolor=\"{$clrs['1']}\">";
 if ($dev[3] != "") {
     echo "<span title=\"" . ns_clean_up_for_tooltip($dev[3]) . "\">";
     echo "<font color=\"red\">(Error)</font>";
     echo "</span>";
     //echo "<b>Error ";
     //if ($dev[4] == "1")
     //	echo "(Recognized)";
     //	else echo "(Unrecognized)";
     //	echo "</b>:";
     //b	echo $dev[3];
 }
 if ($device[2] != 1) {
     echo "<font size=\"-1\">(Missing)</font>";
예제 #5
0
<tr><td>
<tr bgcolor="<?php 
echo $table_colors[0][0];
?>
"><td>
<?php 
output_editable_field('s_a', '', TRUE, 10);
?>
</td><td>
<?php 
output_editable_field('g_a', '', TRUE, 25);
?>
</td>
<!--<td>
													    //<?php 
output_editable_field('c_0', '', TRUE, 25);
?>
</td> -->
<td>&nbsp;</td>
</tr><tr><td colspan=3  bgcolor="<?php 
echo $table_colors[0][0];
?>
">&nbsp;</td></tr>
<tr <?php 
echo $table_header_color;
?>
><td></td><td></td><td align="right"> <input name="save" type="submit" value="Save"></td></tr>

</td>
</tr>
</table>
예제 #6
0
echo $table_header_color;
?>
 align="center">Temperature</td></tr>
<?php 
$row_color = 0;
foreach ($device_names as $d) {
    $row_color = !$row_color;
    echo "<tr>";
    echo "<td bgcolor=\"" . $table_colors[0][$row_color] . "\" valign=\"top\" align=\"center\">\n";
    echo "<center><b>" . $device_incubator[$d] . "</b></center>";
    echo "</td>";
    echo "<td bgcolor=\"" . $table_colors[0][$row_color] . "\" valign=\"top\" align=\"center\">\n";
    echo "<center><b>" . $d . "</b> (" . $device_locations[$d] . ")</center>";
    echo "</td><td  bgcolor=\"" . $table_colors[1][$row_color] . "\" valign=\"top\" align=\"center\">";
    if (!$simple_table) {
        output_editable_field("t_" . $d, $device_temperatures[$d], TRUE);
    } else {
        echo $device_temperatures[$d];
    }
    echo "</td></tr>";
}
?>
</table>
<?php 
if (!$simple_table) {
    ?>
<input type="submit" name="save" value="Save"><br><br>
	    <?php 
}
?>
</div>
        echo "selected";
    }
    ?>
 >Strain and Conditions 1 and 2</option>
<option value = "s123"<?php 
    if ($detail_level == 's123' || $detail_level == '') {
        echo "selected";
    }
    ?>
 >Strain And Conditions 1,2,and 3</option></select></td></tr>
  
<?php 
    $c = 0;
    foreach ($experiment_strains as $strain => $region_id) {
        echo "<tr><td bgcolor=\"" . $table_colors[$c][0] . "\">{$strain}</td>" . "<td bgcolor=\"" . $table_colors[$c][1] . "\">";
        output_editable_field("position_modelZ" . $region_id, $strain_position_models[$strain], true, 30);
        echo "</td></tr>\n";
        $c = !$c;
    }
    ?>
					   
	<?php 
}
?>

<tr><td bgcolor="<?php 
echo $table_colors[0][0];
?>
" colspan=2>
					  <div align="right"><input name="set_position_models" type="submit" value="Set Position Models" <?php 
if ($number_of_regions == 0) {
"><td>
Modify Existing Group
</td>
<td>
<select name="selected_group_id">
<?php 
foreach ($group_order as $g) {
    if ($g == 0) {
        continue;
    }
    echo "<option value=\"" . $experiment_groups[$g][0] . "\">" . $experiment_groups[$g][1] . "</option>\n";
}
?>
<BR>
<?php 
output_editable_field('selected_group_name', '', TRUE, 35);
?>
</select>
</td>
<td>
  <input name="modify" type="submit" value="Modify">
  <br>
  <input name="move_up" type="submit" value="Move up">
  <br>
  <input name="move_down" type="submit" value="Move Down">
  <br>
  <input name="delete" type="submit" value="Delete" onClick="javascript:return confirm('Are you sure you want to delete the specified group?')">
</td>
</tr>

예제 #9
0
        }
        for ($i = 0; $i < sizeof($capture_sample_regions[$capture_sample_id]); $i++) {
            $current_sample_record = $capture_sample_regions[$capture_sample_id][$i];
            $clrs = $table_colors[$i % 2];
            $edit = $edit_regions;
            echo "<tr><td bgcolor=\"{$clrs['0']}\">";
            echo output_editable_field("region_{$current_sample_record[0]}_name", $current_sample_record[1], $edit);
            echo "</td>";
            echo "<td bgcolor=\"{$clrs['1']}\">";
            echo $capture_sample_regions[$capture_sample_id][$i][4];
            echo "</td>";
            echo "<td bgcolor=\"{$clrs['0']}\">";
            echo "(" . $capture_sample_regions[$capture_sample_id][$i][5] . "," . $capture_sample_regions[$capture_sample_id][$i][6] . ")";
            echo "</td>";
            echo "<td bgcolor=\"{$clrs['1']}\">";
            echo output_editable_field("region_{$current_sample_record[0]}_details", $current_sample_record[2], $edit, '');
            echo "</td>";
            echo "<td bgcolor=\"{$clrs['0']}\">";
            if (!$edit) {
                echo "<a href=\"manage_masks.php?mask_id={$mask_id}&edit=1\">[Edit]</a>";
            } else {
                echo "<input name=\"save\" type=\"submit\" value=\"Save\"><br>";
                echo "<input name=\"cancel\" type=\"submit\" value=\"Cancel\">";
            }
            echo "</center></td></tr>";
        }
        ?>
</table></td></tr></table>
<a href="manage_masks.php?generate_sample_region_image_info=1&mask_id=<?php 
        echo $mask_id;
        ?>
예제 #10
0
    echo "<input name=\"move_down\" type=\"submit\" value=\"move down\">\n";
    echo "\n</td></tr>";
    echo "\n</table>\n</form>\n</td></tr>";
}
?>
<tr><td colspan=3 bgcolor="#CCCCCC">New Flag</td></tr>
<tr><td>
<form action="cluster_configuration.php" method="post">
  <table cellspacing=0 cellpadding=0 width="100%">
  <tr bgcolor="#CCCCCC"><td>
   <?php 
output_editable_field('label_short', '', TRUE, 55);
?>
   </td><td>
   <?php 
output_editable_field('label_long', '', TRUE, 55);
?>
 
   </td>
   <td>
   <input type="hidden" name="id" value="new">
   <input name="new_label" type="submit" value="save">
   </td>
   </tr>
  </table>
   </form>
</td></tr>
</table>
</tr></td>
</table>
  <a href="cluster_configuration.php?fix_flags=1">[Reset Flag order]</a>
예제 #11
0
            echo "</td></tr><tr><td>Experiment T:</td><td>";
            output_editable_field('5_' . $column_name . '_' . $row, ns_slash($experiment_temperature_positions[$column_name][$row]), TRUE, 20, FALSE);
            echo "</td></tr><tr><td>Food Source:</td><td>";
            output_editable_field('6_' . $column_name . '_' . $row, ns_slash($food_source_positions[$column_name][$row]), TRUE, 20, FALSE);
        }
        if (!$only_strain) {
            echo "</td></tr><tr><td>Environment:</td><td>";
            output_editable_field('7_' . $column_name . '_' . $row, ns_slash($environment_condition_positions[$column_name][$row]), TRUE, 20, FALSE);
        }
        if (!$only_strain && !$only_experiment_conditions) {
            echo "</td></tr><tr><td>Condition 1:</td><td>";
            output_editable_field('1_' . $column_name . '_' . $row, ns_slash($strain_condition_1_positions[$column_name][$row]), TRUE, 20, FALSE);
            echo "</td></tr><tr><td>Condition 2:</td><td>";
            output_editable_field('2_' . $column_name . '_' . $row, ns_slash($strain_condition_2_positions[$column_name][$row]), TRUE, 20, FALSE);
            echo "</td></tr><tr><td>Condition 3:</td><td>";
            output_editable_field('3_' . $column_name . '_' . $row, ns_slash($strain_condition_3_positions[$column_name][$row]), TRUE, 20, FALSE);
        }
        echo "</td></tr></table>";
        echo "</td></tr>";
        if ($row_color) {
            $row_color = 0;
        } else {
            $row_color = 1;
        }
    }
    echo "</table></td>";
}
?>
</tr>
</table>
예제 #12
0
 echo "<input type=\"checkbox\" name=\"rc" . $regs[$j][0] . "\"";
 if ($regs[$j][3]) {
     echo " checked";
 }
 echo " value = \"1\">";
 echo "\n</td><td bgcolor=\"{$clrs['0']}\" valign=\"top\" width=\"200\"><font size=\"-1\">";
 echo "<table border=0 cellpadding = 1 cellspacing = 0><tr><td>";
 echo "Strain:</td><td>";
 output_editable_field('rs' . $regs[$j][0], ns_slash($regs[$j][5]), TRUE, 20, FALSE);
 echo "</td></tr><tr><td>Condition 1:</td><td>";
 output_editable_field('r1' . $regs[$j][0], ns_slash($regs[$j][9]), TRUE, 20, FALSE);
 echo "</td></tr><tr><td>Condition 2:</td><td>";
 output_editable_field('r2' . $regs[$j][0], ns_slash($regs[$j][10]), TRUE, 20, FALSE);
 echo "</td></tr></table>";
 echo "Details: ";
 output_editable_field('rd' . $regs[$j][0], ns_slash($regs[$j][2]), TRUE, 30, TRUE, $det_height);
 //  echo $regs[$j][11];
 echo "\n</font>";
 echo "Reason Censored: ";
 echo "<select name=\"rr" . $regs[$j][0] . "\" size=1>\n";
 echo "<option value = \"none\" " . ($regs[$j][3] == 0 ? 'selected="selected"' : '') . ">None</option>\n";
 echo "<option value=\"condensation\" " . ($regs[$j][4] == 'condensation' ? 'selected="selected"' : '') . ">Fogging</option>\n";
 echo "<option value= \"contamination\" " . ($regs[$j][4] == 'contamination' ? 'selected="selected"' : '') . ">Contamination</option>\n";
 echo "<option value=\"desiccation\" " . ($regs[$j][4] == 'desiccation' ? 'selected=1' : '') . ">Desiccation</option>\n";
 echo "<option value=\"starved\" " . ($regs[$j][4] == 'starved' ? 'selected=1' : '') . ">Starved</option>\n";
 echo "<option value=\"larvae\" " . ($regs[$j][4] == 'larvae' ? 'selected=1' : '') . ">Larvae</option>\n";
 echo "<option value=\"empty\" " . ($regs[$j][4] == 'empty' ? 'selected=1' : '') . ">Empty</option>\n";
 echo "<option value=\"other\" " . ($regs[$j][3] != 0 && $regs[$j][4] != 'condensation' && $regs[$j][4] != 'contamination' && $regs[$j][4] != 'desiccation' && $regs[$j][4] != 'empty' && $regs[$j][4] != 'larvae' && $regs[$j][4] != 'starved' ? 'selected="selected"' : '') . ">Other</option>\n";
 echo "</select>\n";
 echo "<br><br></td><td bgcolor=\"{$clrs['1']}\" valign=\"top\" align=\"right\">\n";
 echo "<input name=\"save\" type=\"submit\" value=\"Save\"><br>\n";
예제 #13
0
     	  echo ">Do not Delete</option>\n<option value= \"1\" ";
     	  if ($delete_captured_after_mask ) echo "selected";
     	  echo ">Delete</option>\n</select><br>";
     	 echo "</td></tr>";
      	 echo "<tr><td><font size=\"-1\">Number of images used to detect stationary plate features<br>(0 for automatic)</font></td><td>";
     	 output_editable_field("number_stationary_mask",$number_stationary_mask,TRUE,2);
          	
     	  echo "</td></tr>";	 
     
            	  echo "<tr><td><font size=\"-1\">Maximum Number of Worms per Plate</font></td><td>";
     	 output_editable_field("max_worms_per_plate",$max_worms_per_plate,TRUE,2);
          	
     	  echo "</td></tr>";*/
     echo "</table>";
 }
 output_editable_field("comments", $experiment[2], $edit, 20, TRUE);
 echo "</td>";
 echo "<td bgcolor=\"{$clrs['1']}\"  valign='top'><center>";
 if ($experiment[5] > $current_time) {
     echo '<b><font size = "+1">' . $device_count[$experiment_id] . "</font></b>";
 } else {
     echo $device_count[$experiment_id];
 }
 echo "</center></td>";
 echo "<td bgcolor=\"{$clrs['0']}\"  valign='top' nowrap><center><font size=\"-1\">";
 if ($experiment[5] < $current_time) {
     echo "The experiment ran for " . round(($experiment[5] - $experiment[4]) / 60.0 / 60.0 / 24.0 * 10) / 10 . " days<br>";
     echo "Started:  " . format_time($experiment[4]) . "<br>";
     echo "Finished: " . format_time($experiment[5]) . "<br> ";
 } else {
     echo "Started: " . format_time($experiment[4]) . "<br>";