Statistiques
| Branche: | Révision :

root / src / strains.php @ master

Historique | Voir | Annoter | Télécharger (11,94 ko)

1 1a2be799 Florent Chuffart
<?php
2 1a2be799 Florent Chuffart
session_start ();
3 d072e29c Florent Chuffart
require("headers.php");
4 1a2be799 Florent Chuffart
5 49db860c Florent Chuffart
6 49db860c Florent Chuffart
7 49db860c Florent Chuffart
if ($session->mode == "super") {
8 49db860c Florent Chuffart
  print("<p><a href='publish_it.php'>Publish genotypes.</a></p>");
9 49db860c Florent Chuffart
}
10 49db860c Florent Chuffart
11 49db860c Florent Chuffart
12 d072e29c Florent Chuffart
// if (array_key_exists("action", $_REQUEST)) {
13 d072e29c Florent Chuffart
//   if ($_REQUEST["action"] == "SEARCH_IN_GENOTYPE") {
14 d072e29c Florent Chuffart
//     $keys = split(" ", $_REQUEST["geno"]); 
15 d072e29c Florent Chuffart
//     print_r($keys );
16 d072e29c Florent Chuffart
// 
17 d072e29c Florent Chuffart
//     $tmp_filter = "ynl095c:PBY-306-ynl095C";
18 d072e29c Florent Chuffart
//     $likes = "";
19 d072e29c Florent Chuffart
//     foreach ($keys as $k) {
20 d072e29c Florent Chuffart
//       if ($k != "") {
21 d072e29c Florent Chuffart
//         $likes .= "`locus1` LIKE '%$k%' OR `locus2` LIKE '%$k%' OR `locus3` LIKE '%$k%' OR `locus4` LIKE '%$k%' OR `locus5` LIKE '%$k%' OR `ADE2` LIKE '%$k%' OR `HIS3` LIKE '%$k%' OR `LEU2` LIKE '%$k%' OR `LYS2` LIKE '%$k%' OR `MET15` LIKE '%$k%' OR `TRP1` LIKE '%$k%' OR `URA3` LIKE '%$k%' OR `HO_` LIKE '%$k%' OR `Cytoplasmic_Character` LIKE '%$k%' OR `extrachromosomal_plasmid` LIKE '%$k%'";
22 d072e29c Florent Chuffart
//       }
23 d072e29c Florent Chuffart
//     }
24 d072e29c Florent Chuffart
//     $opts["filters"] = $likes . " " ;
25 d072e29c Florent Chuffart
//   }
26 d072e29c Florent Chuffart
// }
27 d072e29c Florent Chuffart
// 
28 d072e29c Florent Chuffart
// if (!array_key_exists("PME_sys_operation", $_REQUEST)) {
29 d072e29c Florent Chuffart
//   if (array_key_exists("geno", $_REQUEST)) {
30 d072e29c Florent Chuffart
//     $geno = $_REQUEST["geno"]; 
31 d072e29c Florent Chuffart
//   } else {
32 d072e29c Florent Chuffart
//     $geno = "";
33 d072e29c Florent Chuffart
//   }
34 d072e29c Florent Chuffart
//   echo "<form action='' method='post'>";
35 d072e29c Florent Chuffart
//   //echo "<fieldset style='border:1px plain black; width: 300px;'>";
36 d072e29c Florent Chuffart
//   //echo "<legend>Search in genotype</legend>";
37 d072e29c Florent Chuffart
//   echo "Search in genotype: <input type='hidden' name='action' value='SEARCH_IN_GENOTYPE'/>";
38 d072e29c Florent Chuffart
//   echo "<input type='text' name='geno' value='$geno'/>";
39 d072e29c Florent Chuffart
//   echo "<input type='button' name='send' value='Search' onclick='return this.form.submit();'/>";
40 d072e29c Florent Chuffart
// //  echo "</fieldset>";
41 d072e29c Florent Chuffart
//   echo "</form>";
42 d072e29c Florent Chuffart
// }
43 1a2be799 Florent Chuffart
44 1a2be799 Florent Chuffart
/*
45 1a2be799 Florent Chuffart
 * IMPORTANT NOTE: This generated file contains only a subset of huge amount
46 1a2be799 Florent Chuffart
 * of options that can be used with phpMyEdit. To get information about all
47 1a2be799 Florent Chuffart
 * features offered by phpMyEdit, check official documentation. It is available
48 1a2be799 Florent Chuffart
 * online and also for download on phpMyEdit project management page:
49 1a2be799 Florent Chuffart
 *
50 1a2be799 Florent Chuffart
 * http://platon.sk/projects/main_page.php?project_id=5
51 1a2be799 Florent Chuffart
 *
52 1a2be799 Florent Chuffart
 * This file was generated by:
53 1a2be799 Florent Chuffart
 *
54 1a2be799 Florent Chuffart
 *                    phpMyEdit version: unknown
55 1a2be799 Florent Chuffart
 *       phpMyEdit.class.php core class: 1.204
56 1a2be799 Florent Chuffart
 *            phpMyEditSetup.php script: 1.50
57 1a2be799 Florent Chuffart
 *              generating setup script: 1.50
58 1a2be799 Florent Chuffart
 */
59 1a2be799 Florent Chuffart
60 1a2be799 Florent Chuffart
61 1a2be799 Florent Chuffart
/*************************/
62 1a2be799 Florent Chuffart
//
63 1a2be799 Florent Chuffart
// Pass phpMyEdit options
64 1a2be799 Florent Chuffart
//
65 1a2be799 Florent Chuffart
/*************************/
66 1a2be799 Florent Chuffart
67 1a2be799 Florent Chuffart
$opts['dbh'] = $connexion;
68 1a2be799 Florent Chuffart
$opts['tb'] = $tb;
69 1a2be799 Florent Chuffart
70 1a2be799 Florent Chuffart
// Name of field which is the unique key
71 1a2be799 Florent Chuffart
$opts['key'] = 'ID';
72 1a2be799 Florent Chuffart
73 1a2be799 Florent Chuffart
// Type of key field (int/real/string/date etc.)
74 1a2be799 Florent Chuffart
$opts['key_type'] = 'int';
75 1a2be799 Florent Chuffart
76 1a2be799 Florent Chuffart
// Sorting field(s)
77 1a2be799 Florent Chuffart
$opts['sort_field'] = array('ID');
78 1a2be799 Florent Chuffart
79 1a2be799 Florent Chuffart
// Number of records to display on the screen
80 1a2be799 Florent Chuffart
// Value of -1 lists all records in a table
81 1a2be799 Florent Chuffart
$opts['inc'] = 15;
82 1a2be799 Florent Chuffart
83 1a2be799 Florent Chuffart
// Options you wish to give the users
84 1a2be799 Florent Chuffart
// A - add,  C - change, P - copy, V - view, D - delete,
85 1a2be799 Florent Chuffart
// F - filter, I - initial sort suppressed
86 1a2be799 Florent Chuffart
$opts['options'] = $privopt;
87 1a2be799 Florent Chuffart
88 1a2be799 Florent Chuffart
// Number of lines to display on multiple selection filters
89 1a2be799 Florent Chuffart
$opts['multiple'] = '4';
90 1a2be799 Florent Chuffart
91 1a2be799 Florent Chuffart
// Navigation style: B - buttons (default), T - text links, G - graphic links
92 1a2be799 Florent Chuffart
// Buttons position: U - up, D - down (default)
93 1a2be799 Florent Chuffart
$opts['navigation'] = 'UDBG';
94 1a2be799 Florent Chuffart
95 1a2be799 Florent Chuffart
// Display special page elements
96 1a2be799 Florent Chuffart
$opts['display'] = array(
97 1a2be799 Florent Chuffart
        'form'  => true,
98 1a2be799 Florent Chuffart
        'query' => true,
99 1a2be799 Florent Chuffart
        'sort'  => true,
100 1a2be799 Florent Chuffart
        'time'  => true,
101 1a2be799 Florent Chuffart
        'tabs'  => true
102 1a2be799 Florent Chuffart
);
103 1a2be799 Florent Chuffart
104 1a2be799 Florent Chuffart
// Set default prefixes for variables
105 1a2be799 Florent Chuffart
$opts['js']['prefix']               = 'PME_js_';
106 1a2be799 Florent Chuffart
$opts['dhtml']['prefix']            = 'PME_dhtml_';
107 1a2be799 Florent Chuffart
$opts['cgi']['prefix']['operation'] = 'PME_op_';
108 1a2be799 Florent Chuffart
$opts['cgi']['prefix']['sys']       = 'PME_sys_';
109 1a2be799 Florent Chuffart
$opts['cgi']['prefix']['data']      = 'PME_data_';
110 1a2be799 Florent Chuffart
111 1a2be799 Florent Chuffart
/* Get the user's default language and use it if possible or you can
112 1a2be799 Florent Chuffart
   specify particular one you want to use. Refer to official documentation
113 1a2be799 Florent Chuffart
   for list of available languages. */
114 1a2be799 Florent Chuffart
$opts['language'] = $_SERVER['HTTP_ACCEPT_LANGUAGE'] . '-UTF8';
115 1a2be799 Florent Chuffart
116 1a2be799 Florent Chuffart
/* Table-level filter capability. If set, it is included in the WHERE clause
117 1a2be799 Florent Chuffart
   of any generated SELECT statement in SQL query. This gives you ability to
118 1a2be799 Florent Chuffart
   work only with subset of data from table.
119 1a2be799 Florent Chuffart

120 1a2be799 Florent Chuffart
$opts['filters'] = "column1 like '%11%' AND column2<17";
121 1a2be799 Florent Chuffart
$opts['filters'] = "section_id = 9";
122 1a2be799 Florent Chuffart
$opts['filters'] = "PMEtable0.sessions_count > 200";
123 1a2be799 Florent Chuffart
*/
124 1a2be799 Florent Chuffart
125 1a2be799 Florent Chuffart
/* Field definitions
126 1a2be799 Florent Chuffart
   
127 1a2be799 Florent Chuffart
Fields will be displayed left to right on the screen in the order in which they
128 1a2be799 Florent Chuffart
appear in generated list. Here are some most used field options documented.
129 1a2be799 Florent Chuffart

130 1a2be799 Florent Chuffart
['name'] is the title used for column headings, etc.;
131 1a2be799 Florent Chuffart
['maxlen'] maximum length to display add/edit/search input boxes
132 1a2be799 Florent Chuffart
['trimlen'] maximum length of string content to display in row listing
133 1a2be799 Florent Chuffart
['width'] is an optional display width specification for the column
134 1a2be799 Florent Chuffart
          e.g.  ['width'] = '100px';
135 1a2be799 Florent Chuffart
['mask'] a string that is used by sprintf() to format field output
136 1a2be799 Florent Chuffart
['sort'] true or false; means the users may sort the display on this column
137 1a2be799 Florent Chuffart
['strip_tags'] true or false; whether to strip tags from content
138 1a2be799 Florent Chuffart
['nowrap'] true or false; whether this field should get a NOWRAP
139 1a2be799 Florent Chuffart
['select'] T - text, N - numeric, D - drop-down, M - multiple selection
140 1a2be799 Florent Chuffart
['options'] optional parameter to control whether a field is displayed
141 1a2be799 Florent Chuffart
  L - list, F - filter, A - add, C - change, P - copy, D - delete, V - view
142 1a2be799 Florent Chuffart
            Another flags are:
143 1a2be799 Florent Chuffart
            R - indicates that a field is read only
144 1a2be799 Florent Chuffart
            W - indicates that a field is a password field
145 1a2be799 Florent Chuffart
            H - indicates that a field is to be hidden and marked as hidden
146 1a2be799 Florent Chuffart
['URL'] is used to make a field 'clickable' in the display
147 1a2be799 Florent Chuffart
        e.g.: 'mailto:$value', 'http://$value' or '$page?stuff';
148 1a2be799 Florent Chuffart
['URLtarget']  HTML target link specification (for example: _blank)
149 1a2be799 Florent Chuffart
['textarea']['rows'] and/or ['textarea']['cols']
150 1a2be799 Florent Chuffart
  specifies a textarea is to be used to give multi-line input
151 1a2be799 Florent Chuffart
  e.g. ['textarea']['rows'] = 5; ['textarea']['cols'] = 10
152 1a2be799 Florent Chuffart
['values'] restricts user input to the specified constants,
153 1a2be799 Florent Chuffart
           e.g. ['values'] = array('A','B','C') or ['values'] = range(1,99)
154 1a2be799 Florent Chuffart
['values']['table'] and ['values']['column'] restricts user input
155 1a2be799 Florent Chuffart
  to the values found in the specified column of another table
156 1a2be799 Florent Chuffart
['values']['description'] = 'desc_column'
157 1a2be799 Florent Chuffart
  The optional ['values']['description'] field allows the value(s) displayed
158 1a2be799 Florent Chuffart
  to the user to be different to those in the ['values']['column'] field.
159 1a2be799 Florent Chuffart
  This is useful for giving more meaning to column values. Multiple
160 1a2be799 Florent Chuffart
  descriptions fields are also possible. Check documentation for this.
161 1a2be799 Florent Chuffart
*/
162 1a2be799 Florent Chuffart
163 1a2be799 Florent Chuffart
$opts['fdd']['ID'] = array(
164 1a2be799 Florent Chuffart
  'name'     => 'ID',
165 1a2be799 Florent Chuffart
  'select'   => 'N',
166 1a2be799 Florent Chuffart
  //'options'  => 'LAVCPDR', // auto increment
167 1a2be799 Florent Chuffart
  'maxlen'   => 10,
168 1a2be799 Florent Chuffart
  'default'  => '0',
169 1a2be799 Florent Chuffart
  'sort'     => true
170 1a2be799 Florent Chuffart
);
171 1a2be799 Florent Chuffart
$opts['fdd']['Name_'] = array(
172 1a2be799 Florent Chuffart
  'name'     => 'Name ',
173 1a2be799 Florent Chuffart
  'select'   => 'T',
174 1a2be799 Florent Chuffart
  'maxlen'   => 25,
175 1a2be799 Florent Chuffart
  'sort'     => true
176 1a2be799 Florent Chuffart
);
177 1a2be799 Florent Chuffart
$opts['fdd']['Other_names'] = array(
178 1a2be799 Florent Chuffart
  'name'     => 'Other names',
179 1a2be799 Florent Chuffart
  'select'   => 'T',
180 1a2be799 Florent Chuffart
  'maxlen'   => 25,
181 1a2be799 Florent Chuffart
  'sort'     => true
182 1a2be799 Florent Chuffart
);
183 c880276f Florent Chuffart
$opts['fdd']['species'] = array(
184 c880276f Florent Chuffart
  'name'     => 'species',
185 c880276f Florent Chuffart
  'select'   => 'D',
186 c880276f Florent Chuffart
  'maxlen'   => 50,
187 c880276f Florent Chuffart
  'sort'     => true,
188 c880276f Florent Chuffart
  'values'   => array(
189 c880276f Florent Chuffart
          'table'  => 'st_species',
190 c880276f Florent Chuffart
        'column' => 'species')
191 c880276f Florent Chuffart
);
192 1a2be799 Florent Chuffart
$opts['fdd']['Comments'] = array(
193 1a2be799 Florent Chuffart
  'name'     => 'Comments',
194 1a2be799 Florent Chuffart
  'select'   => 'T',
195 1a2be799 Florent Chuffart
  'maxlen'   => 1000000000, //4294967295,
196 1a2be799 Florent Chuffart
  'textarea' => array(
197 1a2be799 Florent Chuffart
          'rows' => 5,
198 1a2be799 Florent Chuffart
          'cols' => 50),
199 1a2be799 Florent Chuffart
  'sort'     => true
200 1a2be799 Florent Chuffart
);
201 1a2be799 Florent Chuffart
$opts['fdd']['General_Background'] = array(
202 1a2be799 Florent Chuffart
  'name'     => 'General Background',
203 1a2be799 Florent Chuffart
  'select'   => 'D',
204 1a2be799 Florent Chuffart
  'maxlen'   => 25,
205 1a2be799 Florent Chuffart
  'sort'     => true,
206 1a2be799 Florent Chuffart
  'values'   => array(
207 1a2be799 Florent Chuffart
          'table'  => 'st_general_backgrounds',
208 1a2be799 Florent Chuffart
        'column' => 'background')
209 1a2be799 Florent Chuffart
);
210 1a2be799 Florent Chuffart
$opts['fdd']['Mating_Type'] = array(
211 1a2be799 Florent Chuffart
  'name'     => 'Mating Type',
212 1a2be799 Florent Chuffart
  'select'   => 'D',
213 1a2be799 Florent Chuffart
  'maxlen'   => 25,
214 1a2be799 Florent Chuffart
  'sort'     => true,
215 1a2be799 Florent Chuffart
  'values'   => array(
216 1a2be799 Florent Chuffart
          'table'  => 'st_MAT',
217 1a2be799 Florent Chuffart
        'column' => 'alleles')
218 1a2be799 Florent Chuffart
);
219 1a2be799 Florent Chuffart
$opts['fdd']['ADE2'] = array(
220 1a2be799 Florent Chuffart
  'name'     => 'ADE2',
221 1a2be799 Florent Chuffart
  'select'   => 'D',
222 1a2be799 Florent Chuffart
  'maxlen'   => 25,
223 1a2be799 Florent Chuffart
  'sort'     => true,
224 1a2be799 Florent Chuffart
  'values'   => array(
225 1a2be799 Florent Chuffart
          'table'  => 'st_ADE2',
226 1a2be799 Florent Chuffart
        'column' => 'alleles')
227 1a2be799 Florent Chuffart
);
228 1a2be799 Florent Chuffart
$opts['fdd']['HIS3'] = array(
229 1a2be799 Florent Chuffart
  'name'     => 'HIS3',
230 1a2be799 Florent Chuffart
  'select'   => 'D',
231 1a2be799 Florent Chuffart
  'maxlen'   => 25,
232 1a2be799 Florent Chuffart
  'sort'     => true,
233 1a2be799 Florent Chuffart
  'values'   => array(
234 1a2be799 Florent Chuffart
          'table'  => 'st_HIS3',
235 1a2be799 Florent Chuffart
        'column' => 'alleles')
236 1a2be799 Florent Chuffart
);
237 1a2be799 Florent Chuffart
$opts['fdd']['LEU2'] = array(
238 1a2be799 Florent Chuffart
  'name'     => 'LEU2',
239 1a2be799 Florent Chuffart
  'select'   => 'D',
240 1a2be799 Florent Chuffart
  'maxlen'   => 50,
241 1a2be799 Florent Chuffart
  'sort'     => true,
242 1a2be799 Florent Chuffart
  'values'   => array(
243 1a2be799 Florent Chuffart
          'table'  => 'st_LEU2',
244 1a2be799 Florent Chuffart
        'column' => 'alleles')
245 1a2be799 Florent Chuffart
);
246 1a2be799 Florent Chuffart
$opts['fdd']['LYS2'] = array(
247 1a2be799 Florent Chuffart
  'name'     => 'LYS2',
248 1a2be799 Florent Chuffart
  'select'   => 'D',
249 1a2be799 Florent Chuffart
  'maxlen'   => 25,
250 1a2be799 Florent Chuffart
  'sort'     => true,
251 1a2be799 Florent Chuffart
  'values'   => array(
252 1a2be799 Florent Chuffart
          'table'  => 'st_LYS2',
253 1a2be799 Florent Chuffart
        'column' => 'alleles')
254 1a2be799 Florent Chuffart
);
255 1a2be799 Florent Chuffart
$opts['fdd']['MET15'] = array(
256 1a2be799 Florent Chuffart
  'name'     => 'MET15',
257 1a2be799 Florent Chuffart
  'select'   => 'D',
258 1a2be799 Florent Chuffart
  'maxlen'   => 25,
259 1a2be799 Florent Chuffart
  'sort'     => true,
260 1a2be799 Florent Chuffart
  'values'   => array(
261 1a2be799 Florent Chuffart
          'table'  => 'st_MET15',
262 1a2be799 Florent Chuffart
        'column' => 'alleles')
263 1a2be799 Florent Chuffart
);
264 1a2be799 Florent Chuffart
$opts['fdd']['TRP1'] = array(
265 1a2be799 Florent Chuffart
  'name'     => 'TRP1',
266 1a2be799 Florent Chuffart
  'select'   => 'D',
267 1a2be799 Florent Chuffart
  'maxlen'   => 25,
268 1a2be799 Florent Chuffart
  'sort'     => true,
269 1a2be799 Florent Chuffart
  'values'   => array(
270 1a2be799 Florent Chuffart
          'table'  => 'st_TRP1',
271 1a2be799 Florent Chuffart
        'column' => 'alleles')
272 1a2be799 Florent Chuffart
);
273 1a2be799 Florent Chuffart
$opts['fdd']['URA3'] = array(
274 1a2be799 Florent Chuffart
  'name'     => 'URA3',
275 1a2be799 Florent Chuffart
  'select'   => 'D',
276 1a2be799 Florent Chuffart
  'maxlen'   => 25,
277 1a2be799 Florent Chuffart
  'sort'     => true,
278 1a2be799 Florent Chuffart
  'values'   => array(
279 1a2be799 Florent Chuffart
          'table'  => 'st_URA3',
280 1a2be799 Florent Chuffart
        'column' => 'alleles')
281 1a2be799 Florent Chuffart
);
282 1a2be799 Florent Chuffart
$opts['fdd']['HO_'] = array(
283 1a2be799 Florent Chuffart
  'name'     => 'HO ',
284 1a2be799 Florent Chuffart
  'select'   => 'T',
285 c880276f Florent Chuffart
  'maxlen'   => 50,
286 1a2be799 Florent Chuffart
  'sort'     => true
287 1a2be799 Florent Chuffart
);
288 1a2be799 Florent Chuffart
$opts['fdd']['locus1'] = array(
289 1a2be799 Florent Chuffart
  'name'     => 'Locus1',
290 1a2be799 Florent Chuffart
  'select'   => 'T',
291 1a2be799 Florent Chuffart
  'maxlen'   => 75,
292 1a2be799 Florent Chuffart
  'sort'     => true
293 1a2be799 Florent Chuffart
);
294 1a2be799 Florent Chuffart
$opts['fdd']['locus2'] = array(
295 1a2be799 Florent Chuffart
  'name'     => 'Locus2',
296 1a2be799 Florent Chuffart
  'select'   => 'T',
297 1a2be799 Florent Chuffart
  'maxlen'   => 50,
298 1a2be799 Florent Chuffart
  'sort'     => true
299 1a2be799 Florent Chuffart
);
300 1a2be799 Florent Chuffart
$opts['fdd']['locus3'] = array(
301 1a2be799 Florent Chuffart
  'name'     => 'Locus3',
302 1a2be799 Florent Chuffart
  'select'   => 'T',
303 1a2be799 Florent Chuffart
  'maxlen'   => 50,
304 1a2be799 Florent Chuffart
  'sort'     => true
305 1a2be799 Florent Chuffart
);
306 1a2be799 Florent Chuffart
$opts['fdd']['locus4'] = array(
307 1a2be799 Florent Chuffart
  'name'     => 'Locus4',
308 1a2be799 Florent Chuffart
  'select'   => 'T',
309 1a2be799 Florent Chuffart
  'maxlen'   => 25,
310 1a2be799 Florent Chuffart
  'sort'     => true
311 1a2be799 Florent Chuffart
);
312 1a2be799 Florent Chuffart
$opts['fdd']['locus5'] = array(
313 1a2be799 Florent Chuffart
  'name'     => 'Locus5',
314 1a2be799 Florent Chuffart
  'select'   => 'T',
315 1a2be799 Florent Chuffart
  'maxlen'   => 50,
316 1a2be799 Florent Chuffart
  'sort'     => true
317 1a2be799 Florent Chuffart
);
318 1a2be799 Florent Chuffart
$opts['fdd']['Parental_strain'] = array(
319 1a2be799 Florent Chuffart
  'name'     => 'Parental strain',
320 1a2be799 Florent Chuffart
  'options'  => 'AVCPD',
321 1a2be799 Florent Chuffart
  'select'   => 'T',
322 1a2be799 Florent Chuffart
  'maxlen'   => 25,
323 1a2be799 Florent Chuffart
  'sort'     => true
324 1a2be799 Florent Chuffart
);
325 1a2be799 Florent Chuffart
$opts['fdd']['Obtained_by'] = array(
326 1a2be799 Florent Chuffart
  'name'     => 'Obtained by',
327 1a2be799 Florent Chuffart
  'options'  => 'AVCPD',
328 1a2be799 Florent Chuffart
  'select'   => 'T',
329 1a2be799 Florent Chuffart
  'maxlen'   => 25,
330 1a2be799 Florent Chuffart
  'sort'     => true
331 1a2be799 Florent Chuffart
);
332 1a2be799 Florent Chuffart
$opts['fdd']['Checkings'] = array(
333 1a2be799 Florent Chuffart
  'name'     => 'Checkings',
334 1a2be799 Florent Chuffart
  'options'  => 'AVCPD',
335 1a2be799 Florent Chuffart
  'select'   => 'T',
336 1a2be799 Florent Chuffart
  'maxlen'   => 225,
337 1a2be799 Florent Chuffart
  'sort'     => true
338 1a2be799 Florent Chuffart
);
339 1a2be799 Florent Chuffart
$opts['fdd']['Cytoplasmic_Character'] = array(
340 1a2be799 Florent Chuffart
  'name'     => 'Cytoplasmic Character',
341 1a2be799 Florent Chuffart
  'select'   => 'T',
342 1a2be799 Florent Chuffart
  'maxlen'   => 25,
343 1a2be799 Florent Chuffart
  'sort'     => true
344 1a2be799 Florent Chuffart
);
345 1a2be799 Florent Chuffart
$opts['fdd']['extrachromosomal_plasmid'] = array(
346 1a2be799 Florent Chuffart
  'name'     => 'Extrachromosomal plasmid',
347 1a2be799 Florent Chuffart
  'select'   => 'T',
348 1a2be799 Florent Chuffart
  'maxlen'   => 50,
349 1a2be799 Florent Chuffart
  'sort'     => true
350 1a2be799 Florent Chuffart
);
351 1a2be799 Florent Chuffart
$opts['fdd']['Reference_'] = array(
352 1a2be799 Florent Chuffart
  'name'     => 'Reference ',
353 1a2be799 Florent Chuffart
  'options'  => 'AVCPD',
354 1a2be799 Florent Chuffart
  'select'   => 'T',
355 1a2be799 Florent Chuffart
  'maxlen'   => 125,
356 1a2be799 Florent Chuffart
  'sort'     => true
357 1a2be799 Florent Chuffart
);
358 1a2be799 Florent Chuffart
$opts['fdd']['Last_modified'] = array(
359 1a2be799 Florent Chuffart
  'name'     => 'Last modified',
360 1a2be799 Florent Chuffart
  'options'  => 'AVCPD',
361 1a2be799 Florent Chuffart
  'select'   => 'T',
362 1a2be799 Florent Chuffart
  'maxlen'   => 10,
363 1a2be799 Florent Chuffart
  'sort'     => true
364 1a2be799 Florent Chuffart
);
365 1a2be799 Florent Chuffart
$opts['fdd']['Author'] = array(
366 1a2be799 Florent Chuffart
  'name'     => 'Author',
367 1a2be799 Florent Chuffart
  'select'   => 'D',
368 1a2be799 Florent Chuffart
  'maxlen'   => 10,
369 1a2be799 Florent Chuffart
  'sort'     => true,
370 1a2be799 Florent Chuffart
  'values'   => array(
371 1a2be799 Florent Chuffart
          'table'  => 'lab_members',
372 1a2be799 Florent Chuffart
        'column' => 'id')
373 1a2be799 Florent Chuffart
);
374 1a2be799 Florent Chuffart
$opts['fdd']['Date_'] = array(
375 1a2be799 Florent Chuffart
  'name'     => 'Date',
376 1a2be799 Florent Chuffart
  'options'  => 'LFAVCPD',
377 1a2be799 Florent Chuffart
  'select'   => 'N',
378 1a2be799 Florent Chuffart
  'maxlen'   => 10,
379 1a2be799 Florent Chuffart
  'sort'     => true,
380 1a2be799 Florent Chuffart
  'default'  => date("Y-m-d", strtotime("now"))
381 1a2be799 Florent Chuffart
);
382 4fcefb60 Florent Chuffart
$opts['fdd']['storage_minus20freezers'] = array(
383 4fcefb60 Florent Chuffart
  'name'     => '-20 Freezer',
384 4fcefb60 Florent Chuffart
  'select'   => 'D',
385 4fcefb60 Florent Chuffart
  'maxlen'   => 25,
386 4fcefb60 Florent Chuffart
  'sort'     => true,
387 4fcefb60 Florent Chuffart
  'values'   => array(
388 4fcefb60 Florent Chuffart
          'table'  => 'storage_minus20freezers',
389 4fcefb60 Florent Chuffart
          'column' => 'name'),
390 4fcefb60 Florent Chuffart
  'default'  => 'Amp'
391 4fcefb60 Florent Chuffart
);
392 4fcefb60 Florent Chuffart
$opts['fdd']['storage_minus80freezers'] = array(
393 4fcefb60 Florent Chuffart
  'name'     => '-80 Freezer',
394 4fcefb60 Florent Chuffart
  'select'   => 'D',
395 4fcefb60 Florent Chuffart
  'maxlen'   => 25,
396 4fcefb60 Florent Chuffart
  'sort'     => true,
397 4fcefb60 Florent Chuffart
  'values'   => array(
398 4fcefb60 Florent Chuffart
          'table'  => 'storage_minus80freezers',
399 4fcefb60 Florent Chuffart
          'column' => 'name'),
400 4fcefb60 Florent Chuffart
  'default'  => 'Amp'
401 4fcefb60 Florent Chuffart
);
402 4fcefb60 Florent Chuffart
$opts['fdd']['storage_fridges'] = array(
403 4fcefb60 Florent Chuffart
  'name'     => 'Fridge',
404 4fcefb60 Florent Chuffart
  'select'   => 'D',
405 4fcefb60 Florent Chuffart
  'maxlen'   => 25,
406 4fcefb60 Florent Chuffart
  'sort'     => true,
407 4fcefb60 Florent Chuffart
  'values'   => array(
408 4fcefb60 Florent Chuffart
          'table'  => 'storage_fridges',
409 4fcefb60 Florent Chuffart
          'column' => 'name'),
410 4fcefb60 Florent Chuffart
  'default'  => 'Amp'
411 4fcefb60 Florent Chuffart
);
412 4fcefb60 Florent Chuffart
$opts['fdd']['storage_rooms'] = array(
413 4fcefb60 Florent Chuffart
  'name'     => 'Room',
414 4fcefb60 Florent Chuffart
  'select'   => 'D',
415 4fcefb60 Florent Chuffart
  'maxlen'   => 25,
416 4fcefb60 Florent Chuffart
  'sort'     => true,
417 4fcefb60 Florent Chuffart
  'values'   => array(
418 4fcefb60 Florent Chuffart
          'table'  => 'storage_rooms',
419 4fcefb60 Florent Chuffart
          'column' => 'name'),
420 4fcefb60 Florent Chuffart
  'default'  => 'Amp'
421 4fcefb60 Florent Chuffart
);
422 1a2be799 Florent Chuffart
423 1a2be799 Florent Chuffart
// TRIGGER
424 1a2be799 Florent Chuffart
// Before displaying the view page
425 d072e29c Florent Chuffart
$opts['triggers']['select']['pre'][] = 'strains.TSP.php';
426 e77b752b Florent Chuffart
427 e77b752b Florent Chuffart
428 d072e29c Florent Chuffart
require("footers.php");
429 d072e29c Florent Chuffart
?>