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