root / src / oligos.php @ master
Historique | Voir | Annoter | Télécharger (6,79 ko)
1 |
<?php
|
---|---|
2 |
session_start (); |
3 |
require("headers.php"); |
4 |
|
5 |
/*
|
6 |
* IMPORTANT NOTE: This generated file contains only a subset of huge amount
|
7 |
* of options that can be used with phpMyEdit. To get information about all
|
8 |
* features offered by phpMyEdit, check official documentation. It is available
|
9 |
* online and also for download on phpMyEdit project management page:
|
10 |
*
|
11 |
* http://platon.sk/projects/main_page.php?project_id=5
|
12 |
*
|
13 |
* This file was generated by:
|
14 |
*
|
15 |
* phpMyEdit version: unknown
|
16 |
* phpMyEdit.class.php core class: 1.204
|
17 |
* phpMyEditSetup.php script: 1.50
|
18 |
* generating setup script: 1.50
|
19 |
*/
|
20 |
|
21 |
/*************************/
|
22 |
//
|
23 |
// Pass phpMyEdit options
|
24 |
//
|
25 |
/*************************/
|
26 |
|
27 |
$opts['dbh'] = $connexion; |
28 |
$opts['tb'] = $tb; |
29 |
|
30 |
// Name of field which is the unique key
|
31 |
$opts['key'] = 'ID'; |
32 |
|
33 |
// Type of key field (int/real/string/date etc.)
|
34 |
$opts['key_type'] = 'string'; |
35 |
|
36 |
// Sorting field(s)
|
37 |
$opts['sort_field'] = array('ID'); |
38 |
|
39 |
// Number of records to display on the screen
|
40 |
// Value of -1 lists all records in a table
|
41 |
$opts['inc'] = 15; |
42 |
|
43 |
// Options you wish to give the users
|
44 |
// A - add, C - change, P - copy, V - view, D - delete,
|
45 |
// F - filter, I - initial sort suppressed
|
46 |
$opts['options'] = $privopt; |
47 |
|
48 |
// Number of lines to display on multiple selection filters
|
49 |
$opts['multiple'] = '4'; |
50 |
|
51 |
// Navigation style: B - buttons (default), T - text links, G - graphic links
|
52 |
// Buttons position: U - up, D - down (default)
|
53 |
$opts['navigation'] = 'UDBG'; |
54 |
|
55 |
// Display special page elements
|
56 |
$opts['display'] = array( |
57 |
'form' => true, |
58 |
'query' => true, |
59 |
'sort' => true, |
60 |
'time' => true, |
61 |
'tabs' => true |
62 |
); |
63 |
|
64 |
// Set default prefixes for variables
|
65 |
$opts['js']['prefix'] = 'PME_js_'; |
66 |
$opts['dhtml']['prefix'] = 'PME_dhtml_'; |
67 |
$opts['cgi']['prefix']['operation'] = 'PME_op_'; |
68 |
$opts['cgi']['prefix']['sys'] = 'PME_sys_'; |
69 |
$opts['cgi']['prefix']['data'] = 'PME_data_'; |
70 |
|
71 |
/* Get the user's default language and use it if possible or you can
|
72 |
specify particular one you want to use. Refer to official documentation
|
73 |
for list of available languages. */
|
74 |
$opts['language'] = $_SERVER['HTTP_ACCEPT_LANGUAGE'] . '-UTF8'; |
75 |
|
76 |
/* Table-level filter capability. If set, it is included in the WHERE clause
|
77 |
of any generated SELECT statement in SQL query. This gives you ability to
|
78 |
work only with subset of data from table.
|
79 |
|
80 |
$opts['filters'] = "column1 like '%11%' AND column2<17";
|
81 |
$opts['filters'] = "section_id = 9";
|
82 |
$opts['filters'] = "PMEtable0.sessions_count > 200";
|
83 |
*/
|
84 |
|
85 |
/* Field definitions
|
86 |
|
87 |
Fields will be displayed left to right on the screen in the order in which they
|
88 |
appear in generated list. Here are some most used field options documented.
|
89 |
|
90 |
['name'] is the title used for column headings, etc.;
|
91 |
['maxlen'] maximum length to display add/edit/search input boxes
|
92 |
['trimlen'] maximum length of string content to display in row listing
|
93 |
['width'] is an optional display width specification for the column
|
94 |
e.g. ['width'] = '100px';
|
95 |
['mask'] a string that is used by sprintf() to format field output
|
96 |
['sort'] true or false; means the users may sort the display on this column
|
97 |
['strip_tags'] true or false; whether to strip tags from content
|
98 |
['nowrap'] true or false; whether this field should get a NOWRAP
|
99 |
['select'] T - text, N - numeric, D - drop-down, M - multiple selection
|
100 |
['options'] optional parameter to control whether a field is displayed
|
101 |
L - list, F - filter, A - add, C - change, P - copy, D - delete, V - view
|
102 |
Another flags are:
|
103 |
R - indicates that a field is read only
|
104 |
W - indicates that a field is a password field
|
105 |
H - indicates that a field is to be hidden and marked as hidden
|
106 |
['URL'] is used to make a field 'clickable' in the display
|
107 |
e.g.: 'mailto:$value', 'http://$value' or '$page?stuff';
|
108 |
['URLtarget'] HTML target link specification (for example: _blank)
|
109 |
['textarea']['rows'] and/or ['textarea']['cols']
|
110 |
specifies a textarea is to be used to give multi-line input
|
111 |
e.g. ['textarea']['rows'] = 5; ['textarea']['cols'] = 10
|
112 |
['values'] restricts user input to the specified constants,
|
113 |
e.g. ['values'] = array('A','B','C') or ['values'] = range(1,99)
|
114 |
['values']['table'] and ['values']['column'] restricts user input
|
115 |
to the values found in the specified column of another table
|
116 |
['values']['description'] = 'desc_column'
|
117 |
The optional ['values']['description'] field allows the value(s) displayed
|
118 |
to the user to be different to those in the ['values']['column'] field.
|
119 |
This is useful for giving more meaning to column values. Multiple
|
120 |
descriptions fields are also possible. Check documentation for this.
|
121 |
*/
|
122 |
|
123 |
$opts['fdd']['ID'] = array( |
124 |
'name' => 'ID', |
125 |
'select' => 'T', |
126 |
'maxlen' => 10, |
127 |
'sort' => true |
128 |
); |
129 |
$opts['fdd']['Sequence'] = array( |
130 |
'name' => 'Sequence', |
131 |
'select' => 'T', |
132 |
'maxlen' => 150, |
133 |
'sort' => true |
134 |
); |
135 |
$opts['fdd']['Date_'] = array( |
136 |
'name' => 'Date', |
137 |
'select' => 'N', |
138 |
'maxlen' => 10, |
139 |
'sort' => true, |
140 |
'default' => date("Y-m-d", strtotime("now")) |
141 |
); |
142 |
$opts['fdd']['Author'] = array( |
143 |
'name' => 'Author', |
144 |
'select' => 'D', |
145 |
'maxlen' => 25, |
146 |
'sort' => true, |
147 |
'values' => array( |
148 |
'table' => 'lab_members', |
149 |
'column' => 'id') |
150 |
); |
151 |
$opts['fdd']['Description'] = array( |
152 |
'name' => 'Description', |
153 |
'select' => 'T', |
154 |
'maxlen' => 1000000000, //4294967295, |
155 |
'textarea' => array( |
156 |
'rows' => 5, |
157 |
'cols' => 50), |
158 |
'sort' => true |
159 |
); |
160 |
$opts['fdd']['PCR_conditions_predicted'] = array( |
161 |
'name' => 'PCR conditions predicted', |
162 |
'select' => 'T', |
163 |
'maxlen' => 1000000000, //4294967295, |
164 |
'textarea' => array( |
165 |
'rows' => 5, |
166 |
'cols' => 50), |
167 |
'sort' => true |
168 |
); |
169 |
$opts['fdd']['Purif'] = array( |
170 |
'name' => 'Purif', |
171 |
'select' => 'D', |
172 |
'maxlen' => 25, |
173 |
'sort' => true, |
174 |
'values' => array( |
175 |
'table' => 'olig_purif', |
176 |
'column' => 'type') |
177 |
); |
178 |
$opts['fdd']['storage_minus20freezers'] = array( |
179 |
'name' => '-20 Freezer', |
180 |
'select' => 'D', |
181 |
'maxlen' => 25, |
182 |
'sort' => true, |
183 |
'values' => array( |
184 |
'table' => 'storage_minus20freezers', |
185 |
'column' => 'name'), |
186 |
'default' => 'Amp' |
187 |
); |
188 |
$opts['fdd']['storage_minus80freezers'] = array( |
189 |
'name' => '-80 Freezer', |
190 |
'select' => 'D', |
191 |
'maxlen' => 25, |
192 |
'sort' => true, |
193 |
'values' => array( |
194 |
'table' => 'storage_minus80freezers', |
195 |
'column' => 'name'), |
196 |
'default' => 'Amp' |
197 |
); |
198 |
$opts['fdd']['storage_fridges'] = array( |
199 |
'name' => 'Fridge', |
200 |
'select' => 'D', |
201 |
'maxlen' => 25, |
202 |
'sort' => true, |
203 |
'values' => array( |
204 |
'table' => 'storage_fridges', |
205 |
'column' => 'name'), |
206 |
'default' => 'Amp' |
207 |
); |
208 |
$opts['fdd']['storage_rooms'] = array( |
209 |
'name' => 'Room', |
210 |
'select' => 'D', |
211 |
'maxlen' => 25, |
212 |
'sort' => true, |
213 |
'values' => array( |
214 |
'table' => 'storage_rooms', |
215 |
'column' => 'name'), |
216 |
'default' => 'Amp' |
217 |
); |
218 |
|
219 |
require("footers.php"); |
220 |
?>
|