Statistiques
| Branche: | Révision :

root / src / plasmids.php @ master

Historique | Voir | Annoter | Télécharger (9,61 ko)

1
<?php
2
session_start ();
3
require("headers.php");
4
//$opts["filters"] = "`ID`=330";
5

    
6
/*
7
 * IMPORTANT NOTE: This generated file contains only a subset of huge amount
8
 * of options that can be used with phpMyEdit. To get information about all
9
 * features offered by phpMyEdit, check official documentation. It is available
10
 * online and also for download on phpMyEdit project management page:
11
 *
12
 * http://platon.sk/projects/main_page.php?project_id=5
13
 *
14
 * This file was generated by:
15
 *
16
 *                    phpMyEdit version: unknown
17
 *       phpMyEdit.class.php core class: 1.204
18
 *            phpMyEditSetup.php script: 1.50
19
 *              generating setup script: 1.50
20
 */
21

    
22
/*************************/
23
//
24
// Pass phpMyEdit options
25
//
26
/*************************/
27

    
28
$opts['dbh'] = $connexion;
29
$opts['tb'] = $tb;
30

    
31
// Name of field which is the unique key
32
$opts['key'] = 'ID';
33

    
34
// Type of key field (int/real/string/date etc.)
35
$opts['key_type'] = 'int';
36

    
37
// Sorting field(s)
38
$opts['sort_field'] = array('ID');
39

    
40
// Number of records to display on the screen
41
// Value of -1 lists all records in a table
42
$opts['inc'] = 15;
43

    
44
// Options you wish to give the users
45
// A - add,  C - change, P - copy, V - view, D - delete,
46
// F - filter, I - initial sort suppressed
47
$opts['options'] = $privopt;
48

    
49
// Number of lines to display on multiple selection filters
50
$opts['multiple'] = '4';
51

    
52
// Navigation style: B - buttons (default), T - text links, G - graphic links
53
// Buttons position: U - up, D - down (default)
54
$opts['navigation'] = 'UDBG';
55

    
56
// Display special page elements
57
$opts['display'] = array(
58
        'form'  => true,
59
        'query' => true,
60
        'sort'  => true,
61
        'time'  => true,
62
        'tabs'  => true
63
);
64

    
65
// Set default prefixes for variables
66
$opts['js']['prefix']               = 'PME_js_';
67
$opts['dhtml']['prefix']            = 'PME_dhtml_';
68
$opts['cgi']['prefix']['operation'] = 'PME_op_';
69
$opts['cgi']['prefix']['sys']       = 'PME_sys_';
70
$opts['cgi']['prefix']['data']      = 'PME_data_';
71

    
72
/* Get the user's default language and use it if possible or you can
73
   specify particular one you want to use. Refer to official documentation
74
   for list of available languages. */
75
$opts['language'] = $_SERVER['HTTP_ACCEPT_LANGUAGE'] . '-UTF8';
76

    
77
/* Table-level filter capability. If set, it is included in the WHERE clause
78
   of any generated SELECT statement in SQL query. This gives you ability to
79
   work only with subset of data from table.
80

81
$opts['filters'] = "column1 like '%11%' AND column2<17";
82
$opts['filters'] = "section_id = 9";
83
$opts['filters'] = "PMEtable0.sessions_count > 200";
84
*/
85

    
86
/* Field definitions
87
   
88
Fields will be displayed left to right on the screen in the order in which they
89
appear in generated list. Here are some most used field options documented.
90

91
['name'] is the title used for column headings, etc.;
92
['maxlen'] maximum length to display add/edit/search input boxes
93
['trimlen'] maximum length of string content to display in row listing
94
['width'] is an optional display width specification for the column
95
          e.g.  ['width'] = '100px';
96
['mask'] a string that is used by sprintf() to format field output
97
['sort'] true or false; means the users may sort the display on this column
98
['strip_tags'] true or false; whether to strip tags from content
99
['nowrap'] true or false; whether this field should get a NOWRAP
100
['select'] T - text, N - numeric, D - drop-down, M - multiple selection
101
['options'] optional parameter to control whether a field is displayed
102
  L - list, F - filter, A - add, C - change, P - copy, D - delete, V - view
103
            Another flags are:
104
            R - indicates that a field is read only
105
            W - indicates that a field is a password field
106
            H - indicates that a field is to be hidden and marked as hidden
107
['URL'] is used to make a field 'clickable' in the display
108
        e.g.: 'mailto:$value', 'http://$value' or '$page?stuff';
109
['URLtarget']  HTML target link specification (for example: _blank)
110
['textarea']['rows'] and/or ['textarea']['cols']
111
  specifies a textarea is to be used to give multi-line input
112
  e.g. ['textarea']['rows'] = 5; ['textarea']['cols'] = 10
113
['values'] restricts user input to the specified constants,
114
           e.g. ['values'] = array('A','B','C') or ['values'] = range(1,99)
115
['values']['table'] and ['values']['column'] restricts user input
116
  to the values found in the specified column of another table
117
['values']['description'] = 'desc_column'
118
  The optional ['values']['description'] field allows the value(s) displayed
119
  to the user to be different to those in the ['values']['column'] field.
120
  This is useful for giving more meaning to column values. Multiple
121
  descriptions fields are also possible. Check documentation for this.
122
*/
123

    
124
$opts['fdd']['ID'] = array(
125
  'name'     => 'ID',
126
  'select'   => 'N',
127
  //'options'  => 'AVCPDR', // auto increment
128
  'maxlen'   => 10,
129
  'default'  => '0',
130
  'sort'     => true
131
);
132
$opts['fdd']['Name_'] = array(
133
  'name'     => 'Name',
134
  'select'   => 'T',
135
  'maxlen'   => 50,
136
  'sort'     => true
137
);
138
$opts['fdd']['sequence'] = array(
139
  'name'     => 'Seq',
140
  'select'   => 'T',
141
  // 'textarea' => array(
142
  //   'rows' => 5,
143
  //                 'cols' => 10
144
  // ),
145
  'options'  => 'APD',
146
  'maxlen'   => 50000,
147
  'sort'     => false,
148
  'sqlw' => 'IF($val_qas = "", NULL, $val_qas)' //to use real NULL instead of empty blanks
149
);
150
$opts['fdd']['Link_to_file'] = array(
151
  'name'     => 'Link',
152
  'select'   => 'T',
153
   'options'  => 'LFPDV',
154
  'maxlen'   => 50,
155
  'sort'     => true,
156
  'sqlw' => 'IF($val_qas = "", NULL, $val_qas)' //to use real NULL instead of empty blanks
157
);
158
$opts['fdd']['Other_names'] = array(
159
  'name'     => 'Other names',
160
  'select'   => 'T',
161
  'maxlen'   => 50,
162
  'sort'     => true,
163
  'sqlw' => 'IF($val_qas = "", NULL, $val_qas)' //to use real NULL instead of empty blanks
164
);
165
$opts['fdd']['Author'] = array(
166
  'name'     => 'Author',
167
  'select'   => 'D',
168
  'maxlen'   => 25,
169
  'sort'     => true,
170
  'values'   => array(
171
          'table'  => 'lab_members',
172
        'column' => 'id')
173
);
174
$opts['fdd']['Type_'] = array(
175
  'name'     => 'Type ',
176
  'select'   => 'D',
177
  'maxlen'   => 25,
178
  'sort'     => true,
179
  'values'   => array(
180
          'table'  => 'pl_type',
181
        'column' => 'type')
182
);
183
$opts['fdd']['Marker_1'] = array(
184
  'name'     => 'Marker 1',
185
  'select'   => 'D',
186
  'maxlen'   => 25,
187
  'sort'     => true,
188
  'values'   => array(
189
          'table'  => 'pl_yeast_marker',
190
        'column' => 'type')
191
);
192
$opts['fdd']['Marker_2'] = array(
193
  'name'     => 'Marker 2',
194
  'select'   => 'D',
195
  'maxlen'   => 25,
196
  'sort'     => true,
197
  'values'   => array(
198
          'table'  => 'pl_yeast_marker',
199
        'column' => 'type')
200
);
201
$opts['fdd']['Construction_Description'] = array(
202
  'name'     => 'Construction Description',
203
  'select'   => 'T',
204
  'maxlen'   => 1000000000, //4294967295,
205
  'textarea' => array(
206
    'rows' => 5,
207
    'cols' => 50),
208
  'sort'     => true
209
);
210
$opts['fdd']['Tags'] = array(
211
  'name'     => 'Tags',
212
  'select'   => 'D',
213
  'maxlen'   => 25,
214
  'sort'     => true,
215
  'values'   => array(
216
          'table'  => 'pl_tag',
217
        'column' => 'type')
218
);
219
$opts['fdd']['Reporter'] = array(
220
  'name'     => 'Reporter',
221
  'select'   => 'T',
222
  'maxlen'   => 25,
223
  'sort'     => true
224
);
225
$opts['fdd']['Promoter'] = array(
226
  'name'     => 'Promoter',
227
  'select'   => 'D',
228
  'maxlen'   => 25,
229
  'sort'     => true,
230
  'values'   => array(
231
          'table'  => 'pl_yeast_promoter',
232
        'column' => 'type')
233
);
234
$opts['fdd']['parent_vector'] = array(
235
  'name'     => 'Parent vector',
236
  'select'   => 'T',
237
  'maxlen'   => 50,
238
  'sort'     => true
239
);
240
$opts['fdd']['Insert_'] = array(
241
  'name'     => 'Insert ',
242
  'select'   => 'T',
243
  'maxlen'   => 50,
244
  'sort'     => true
245
);
246
$opts['fdd']['Insert_Type'] = array(
247
  'name'     => 'Insert Type',
248
  'select'   => 'T',
249
  'maxlen'   => 25,
250
  'sort'     => true
251
);
252
$opts['fdd']['Reference_'] = array(
253
  'name'     => 'Reference ',
254
  'select'   => 'T',
255
  'maxlen'   => 200,
256
  'sort'     => true
257
);
258

    
259
$opts['fdd']['date_'] = array(
260
  'name'     => 'Date ',
261
  'select'   => 'N',
262
  'maxlen'   => 10,
263
  'sort'     => true,
264
  'default'  => date("Y-m-d", strtotime("now"))
265
);
266
$opts['fdd']['Checkings'] = array(
267
  'name'     => 'Checkings',
268
  'select'   => 'T',
269
  'maxlen'   => 200,
270
  'sort'     => true
271
);
272
$opts['fdd']['Bacterial_selection'] = array(
273
  'name'     => 'Bacterial selection',
274
  'select'   => 'D',
275
  'maxlen'   => 25,
276
  'sort'     => true,
277
  'values'   => array(
278
          'table'  => 'pl_bacterial_selection',
279
        'column' => 'type'),
280
  'default'  => 'Amp'
281
);
282
$opts['fdd']['storage_minus20freezers'] = array(
283
  'name'     => '-20 Freezer',
284
  'select'   => 'D',
285
  'maxlen'   => 25,
286
  'sort'     => true,
287
  'values'   => array(
288
          'table'  => 'storage_minus20freezers',
289
          'column' => 'name'),
290
  'default'  => 'Amp'
291
);
292
$opts['fdd']['storage_minus80freezers'] = array(
293
  'name'     => '-80 Freezer',
294
  'select'   => 'D',
295
  'maxlen'   => 25,
296
  'sort'     => true,
297
  'values'   => array(
298
          'table'  => 'storage_minus80freezers',
299
          'column' => 'name'),
300
  'default'  => 'Amp'
301
);
302
$opts['fdd']['storage_fridges'] = array(
303
  'name'     => 'Fridge',
304
  'select'   => 'D',
305
  'maxlen'   => 25,
306
  'sort'     => true,
307
  'values'   => array(
308
          'table'  => 'storage_fridges',
309
          'column' => 'name'),
310
  'default'  => 'Amp'
311
);
312
$opts['fdd']['storage_rooms'] = array(
313
  'name'     => 'Room',
314
  'select'   => 'D',
315
  'maxlen'   => 25,
316
  'sort'     => true,
317
  'values'   => array(
318
          'table'  => 'storage_rooms',
319
          'column' => 'name'),
320
  'default'  => 'Amp'
321
);
322

    
323

    
324

    
325
//link to sequence file:
326
$opts['fdd']['Link_to_file']['URL'] = '$value';
327
//$opts['fdd']['Link_to_file']['URLdisp'] = 'Link'; 
328
$opts['fdd']['Link_to_file']['URLprefix'] = 'plasmid_files/';
329
$opts['fdd']['Link_to_file']['URLtarget'] = '_self';
330

    
331
// TRIGGER
332
$opts['triggers']['select']['pre'][]    = 'plasmids.MVC.php';
333
$opts['triggers']['update']['pre'][]    = 'plasmids.MVC.php';
334

    
335
require("footers.php");
336
?>