function ns_capture_sample(ns_experiment &$experiment, ns_device &$device, $id = -1, &$sql = "") { $this->experiment_id_p = $experiment->id(); $this->id_p = $id; $this->mask_id = 0; $this->device = $device; $this->turn_off_lamp_after_capture = FALSE; $this->censored = FALSE; if ($this->id_p != -1) { $this->load($this->id_p, $sql); } }
if ($cur_region[5] == "0") { $exclude = "Exclude"; } else { $exclude = "UnExclude"; } echo "<tr>"; echo "<td bgcolor=\"{$clrs['0']}\" nowrap valign=\"top\"><b>"; // echo "$cur_region_id :: $k . <BR>"; echo $experiment->samples[$i]->name() . "::{$cur_region[1]}"; echo "</b>"; $b = '<BR>'; global $show_region_jobs; if (!$show_region_jobs) { $b = ''; } echo "<br><font size=\"-2\"><a href=\"ns_view_region_images.php?region_id={$cur_region[0]}&experiment_id={$experiment->id()}\">[View Region Images]</a></font><br>"; // echo "<a href=\"view_movement_data.php?region_id={$cur_region[0]}\"><font size=\"-2\">[View Movement]</font></a>$b"; echo "<a href=\"view_hosts_log.php?region_id={$cur_region[0]}\"><font size=\"-2\">[View Problems]</font></a>{$b}"; echo "</td>\n"; echo "<td bgcolor=\"{$clrs['0']}\" colspan=2 valign=\"top\">"; echo "<table width=\"100%\" colspan =0 colpadding=0><tr><td width=\"200\" valign=\"top\">"; $edit_region = $edit_region_id == $cur_region[0]; echo "<table cellspacing = 1 cellpadding=1 border=0>"; echo "<tr><td><font size=\"-1\">Strain:</font></td><td><font size=\"-1\">"; output_editable_field('region_strain', $cur_region[4], $edit_region, 10); echo "</font></td></tr>"; if (isset($strain_info[$cur_region[4]])) { echo "<tr><td><font size=\"-1\">Genotype:</font></td><td><font size=\"-1\"><i>" . $strain_info[$cur_region[4]][0] . '</i> ' . $strain_info[$cur_region[4]][1] . "</font></td></tr>"; } // if ($edit_region || ($cur_region[2]!=''&& $cur_region[4]!='')) if ($cur_region[3] != "0") {