Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 404 lines (354 sloc) 14.153 kb
7396fa3 @ammaryasir Designed the zoom-search form(tbl_zoom_select.php)
ammaryasir authored
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * Handles table zoom search tab
5 *
6 * display table zoom search form, create SQL queries from form data
7 *
8 */
9
10 /**
11 * Gets some core libraries
12 */
13 require_once './libraries/common.inc.php';
14 require_once './libraries/mysql_charsets.lib.php';
91d372f @ammaryasir Added a library file for the table-search and zoom-search code
ammaryasir authored
15 require_once './libraries/tbl_select.lib.php';
eaea003 @ammaryasir Added some features
ammaryasir authored
16 require_once './libraries/relation.lib.php';
03a1a84 @ammaryasir Test
ammaryasir authored
17 require_once './libraries/tbl_info.inc.php';
7396fa3 @ammaryasir Designed the zoom-search form(tbl_zoom_select.php)
ammaryasir authored
18
eaea003 @ammaryasir Added some features
ammaryasir authored
19 $GLOBALS['js_include'][] = 'makegrid.js';
20 $GLOBALS['js_include'][] = 'sql.js';
543df4c @ammaryasir Added interface for browsing/editing points
ammaryasir authored
21 $GLOBALS['js_include'][] = 'functions.js';
1653fd3 @ammaryasir Plot functionality using Hihcharts
ammaryasir authored
22 $GLOBALS['js_include'][] = 'tbl_zoom_plot.js';
23 $GLOBALS['js_include'][] = 'highcharts/highcharts.js';
24 /* Files required for chart exporting */
25 $GLOBALS['js_include'][] = 'highcharts/exporting.js';
26 $GLOBALS['js_include'][] = 'canvg/canvg.js';
27 $GLOBALS['js_include'][] = 'canvg/rgbcolor.js';
7396fa3 @ammaryasir Designed the zoom-search form(tbl_zoom_select.php)
ammaryasir authored
28 $GLOBALS['js_include'][] = 'jquery/jquery-ui-1.8.custom.js';
29 $GLOBALS['js_include'][] = 'jquery/timepicker.js';
30
c7cef3b @ammaryasir Refactored the tbl_select.php and tbl_zoom_select.php code in librari…
ammaryasir authored
31 $titles['Browse'] = PMA_tbl_setTitle($GLOBALS['cfg']['PropertiesIconic'], $pmaThemeImage);
32
7396fa3 @ammaryasir Designed the zoom-search form(tbl_zoom_select.php)
ammaryasir authored
33 /**
34 * Not selection yet required -> displays the selection form
35 */
602a64a @ammaryasir Added the Show/Hide search criteria feature
ammaryasir authored
36
7396fa3 @ammaryasir Designed the zoom-search form(tbl_zoom_select.php)
ammaryasir authored
37 // Gets some core libraries
38 require_once './libraries/tbl_common.php';
39 //$err_url = 'tbl_select.php' . $err_url;
40 $url_query .= '&amp;goto=tbl_select.php&amp;back=tbl_select.php';
41
42 /**
43 * Gets tables informations
44 */
45 require_once './libraries/tbl_info.inc.php';
46
47 /**
48 * Displays top menu links
49 */
50 require_once './libraries/tbl_links.inc.php';
51
52 if (! isset($goto)) {
53 $goto = $GLOBALS['cfg']['DefaultTabTable'];
54 }
55 // Defines the url to return to in case of error in the next sql statement
56 $err_url = $goto . '?' . PMA_generate_common_url($db, $table);
57
58 // Gets the list and number of fields
91d372f @ammaryasir Added a library file for the table-search and zoom-search code
ammaryasir authored
59
70167fe @ammaryasir Made suggested change to tbl_select.php and tbl_zoom_select.php
ammaryasir authored
60 list($fields_list, $fields_type, $fields_collation, $fields_null) = PMA_tbl_getFields($table,$db);
91d372f @ammaryasir Added a library file for the table-search and zoom-search code
ammaryasir authored
61 $fields_cnt = count($fields_list);
62
7396fa3 @ammaryasir Designed the zoom-search form(tbl_zoom_select.php)
ammaryasir authored
63 // retrieve keys into foreign fields, if any
64 // check also foreigners even if relwork is FALSE (to get
65 // foreign keys from innodb)
66 $foreigners = PMA_getForeigners($db, $table);
67 $flag = 1;
543df4c @ammaryasir Added interface for browsing/editing points
ammaryasir authored
68 $tbl_fields_type = $tbl_fields_collation = $tbl_fields_null = array();
03a1a84 @ammaryasir Test
ammaryasir authored
69 $maxPlotlLimit = $GLOBALS['cfg']['maxRowPlotLimit'];
7396fa3 @ammaryasir Designed the zoom-search form(tbl_zoom_select.php)
ammaryasir authored
70 ?>
71
72 <fieldset id="fieldset_subtab">
73 <?php
74 $url_params = array();
75 $url_params['db'] = $db;
76 $url_params['table'] = $table;
91d372f @ammaryasir Added a library file for the table-search and zoom-search code
ammaryasir authored
77 echo PMA_generate_html_tabs(PMA_tbl_getSubTabs(), $url_params);
7396fa3 @ammaryasir Designed the zoom-search form(tbl_zoom_select.php)
ammaryasir authored
78
602a64a @ammaryasir Added the Show/Hide search criteria feature
ammaryasir authored
79 /**
80 * Set the field name,type,collation and whether null on select of a coulmn
81 */
7396fa3 @ammaryasir Designed the zoom-search form(tbl_zoom_select.php)
ammaryasir authored
82 if(isset($inputs) && ($inputs[0] != __('pma_null') || $inputs[1] != __('pma_null')))
83 {
70167fe @ammaryasir Made suggested change to tbl_select.php and tbl_zoom_select.php
ammaryasir authored
84 $flag = 2;
eaea003 @ammaryasir Added some features
ammaryasir authored
85 for($i = 0 ; $i < 4 ; $i++)
70167fe @ammaryasir Made suggested change to tbl_select.php and tbl_zoom_select.php
ammaryasir authored
86 {
87 if($inputs[$i] != __('pma_null'))
88 {
89 $key = array_search($inputs[$i],$fields_list);
90 $tbl_fields_type[$i] = $fields_type[$key];
91 $tbl_fields_collation[$i] = $fields_collation[$key];
92 $tbl_fields_null[$i] = $fields_null[$key];
7396fa3 @ammaryasir Designed the zoom-search form(tbl_zoom_select.php)
ammaryasir authored
93 }
94
70167fe @ammaryasir Made suggested change to tbl_select.php and tbl_zoom_select.php
ammaryasir authored
95 }
7396fa3 @ammaryasir Designed the zoom-search form(tbl_zoom_select.php)
ammaryasir authored
96 }
602a64a @ammaryasir Added the Show/Hide search criteria feature
ammaryasir authored
97 ?>
7396fa3 @ammaryasir Designed the zoom-search form(tbl_zoom_select.php)
ammaryasir authored
98
602a64a @ammaryasir Added the Show/Hide search criteria feature
ammaryasir authored
99 <?php
100
101 /*
102 * Form for input criteria
103 */
f939564 @ammaryasir Created the SVG based scatter-plot functionality
ammaryasir authored
104
18694f2 @ammaryasir Added generate plot feature using SVG ( only for numeric fields )
ammaryasir authored
105 ?>
7396fa3 @ammaryasir Designed the zoom-search form(tbl_zoom_select.php)
ammaryasir authored
106 <form method="post" action="tbl_zoom_select.php" name="zoomInputForm" id="zoom_search_form" <?php echo ($GLOBALS['cfg']['AjaxEnable'] ? ' class="ajax"' : ''); ?>>
107 <?php echo PMA_generate_common_hidden_inputs($db, $table); ?>
108 <input type="hidden" name="goto" value="<?php echo $goto; ?>" />
602a64a @ammaryasir Added the Show/Hide search criteria feature
ammaryasir authored
109 <input type="hidden" name="back" value="tbl_zoom_select.php" />
7396fa3 @ammaryasir Designed the zoom-search form(tbl_zoom_select.php)
ammaryasir authored
110 <input type="hidden" name="flag" id="id_flag" value=<?php echo $flag; ?> />
111
64425cc @ammaryasir Fixed some issues and added support for plotting strings
ammaryasir authored
112
543df4c @ammaryasir Added interface for browsing/editing points
ammaryasir authored
113 <fieldset id="inputSection">
18694f2 @ammaryasir Added generate plot feature using SVG ( only for numeric fields )
ammaryasir authored
114
eaea003 @ammaryasir Added some features
ammaryasir authored
115 <legend><?php echo __('Do a "query by example" (wildcard: "%") for two columns') ?></legend>
116 <table class="data">
117 <?php echo PMA_tbl_setTableHeader();?>
118 <tbody>
7396fa3 @ammaryasir Designed the zoom-search form(tbl_zoom_select.php)
ammaryasir authored
119 <?php
120 $odd_row = true;
121
eaea003 @ammaryasir Added some features
ammaryasir authored
122 for($i = 0 ; $i < 4 ; $i++){
123
124 if($i == 2){
125 echo "<tr><td>";
126 echo __("Additional search criteria");
127 echo "</td><tr>";
128 }
129
7396fa3 @ammaryasir Designed the zoom-search form(tbl_zoom_select.php)
ammaryasir authored
130 ?>
131 <tr class="noclick <?php echo $odd_row ? 'odd' : 'even'; $odd_row = ! $odd_row; ?>">
132 <th><select name="inputs[]" id=<?php echo 'tableid_' . $i?> >
133 <option value= <?php echo __('pma_null')?>><?php echo __('None'); ?> </option>
134 <?php
70167fe @ammaryasir Made suggested change to tbl_select.php and tbl_zoom_select.php
ammaryasir authored
135 for ($j = 0 ; $j < $fields_cnt ; $j++){
136 if(isset($inputs[$i]) && $inputs[$i] == htmlspecialchars($fields_list[$j])){?>
137 <option value=<?php echo htmlspecialchars($fields_list[$j]);?> Selected> <?php echo htmlspecialchars($fields_list[$j]);?></option>
7396fa3 @ammaryasir Designed the zoom-search form(tbl_zoom_select.php)
ammaryasir authored
138 <?php
70167fe @ammaryasir Made suggested change to tbl_select.php and tbl_zoom_select.php
ammaryasir authored
139 }
140 else{ ?>
141 <option value=<?php echo htmlspecialchars($fields_list[$j]);?> > <?php echo htmlspecialchars($fields_list[$j]);?></option>
7396fa3 @ammaryasir Designed the zoom-search form(tbl_zoom_select.php)
ammaryasir authored
142 <?php
70167fe @ammaryasir Made suggested change to tbl_select.php and tbl_zoom_select.php
ammaryasir authored
143 }
7396fa3 @ammaryasir Designed the zoom-search form(tbl_zoom_select.php)
ammaryasir authored
144 } ?>
145 </select></th>
c7cef3b @ammaryasir Refactored the tbl_select.php and tbl_zoom_select.php code in librari…
ammaryasir authored
146 <td><?php if(isset($tbl_fields_type[$i]))echo $tbl_fields_type[$i]; ?></td>
147 <td><?php if(isset($tbl_fields_collation[$i]))echo $tbl_fields_collation[$i]; ?></td>
7396fa3 @ammaryasir Designed the zoom-search form(tbl_zoom_select.php)
ammaryasir authored
148
149 <td>
c7cef3b @ammaryasir Refactored the tbl_select.php and tbl_zoom_select.php code in librari…
ammaryasir authored
150 <?php if(isset($inputs) && $inputs[$i] != __('pma_null')){ ?>
70167fe @ammaryasir Made suggested change to tbl_select.php and tbl_zoom_select.php
ammaryasir authored
151 <select name="zoomFunc[]">
152 <?php
153
154 if (strncasecmp($tbl_fields_type[$i], 'enum', 4) == 0) {
155 foreach ($GLOBALS['cfg']['EnumOperators'] as $fc) {
64425cc @ammaryasir Fixed some issues and added support for plotting strings
ammaryasir authored
156 if(isset($zoomFunc[$i]) && $zoomFunc[$i] == htmlspecialchars($fc)){
157 echo "\n" . ' '
158 . '<option value="' . htmlspecialchars($fc) . '" Selected>'
159 . htmlspecialchars($fc) . '</option>';
160 }
161 else {
162 echo "\n" . ' '
163 . '<option value="' . htmlspecialchars($fc) . '">'
164 . htmlspecialchars($fc) . '</option>';
165 }
70167fe @ammaryasir Made suggested change to tbl_select.php and tbl_zoom_select.php
ammaryasir authored
166 }
167 } elseif (preg_match('@char|blob|text|set@i', $tbl_fields_type[$i])) {
168 foreach ($GLOBALS['cfg']['TextOperators'] as $fc) {
64425cc @ammaryasir Fixed some issues and added support for plotting strings
ammaryasir authored
169 if(isset($zoomFunc[$i]) && $zoomFunc[$i] == $fc){
170 echo "\n" . ' '
171 . '<option value="' . htmlspecialchars($fc) . '" Selected>'
172 . htmlspecialchars($fc) . '</option>';
173 }
174 else {
175 echo "\n" . ' '
176 . '<option value="' . htmlspecialchars($fc) . '">'
177 . htmlspecialchars($fc) . '</option>';
178 }
70167fe @ammaryasir Made suggested change to tbl_select.php and tbl_zoom_select.php
ammaryasir authored
179 }
180 } else {
181 foreach ($GLOBALS['cfg']['NumOperators'] as $fc) {
64425cc @ammaryasir Fixed some issues and added support for plotting strings
ammaryasir authored
182 if(isset($zoomFunc[$i]) && $zoomFunc[$i] == $fc){
183 echo "\n" . ' '
184 . '<option value="' . htmlspecialchars($fc) . '" Selected>'
185 . htmlspecialchars($fc) . '</option>';
186 }
187 else {
188 echo "\n" . ' '
189 . '<option value="' . htmlspecialchars($fc) . '">'
190 . htmlspecialchars($fc) . '</option>';
191 }
70167fe @ammaryasir Made suggested change to tbl_select.php and tbl_zoom_select.php
ammaryasir authored
192 }
193 } // end if... else...
194
195 if ($tbl_fields_null[$i]) {
196 foreach ($GLOBALS['cfg']['NullOperators'] as $fc) {
64425cc @ammaryasir Fixed some issues and added support for plotting strings
ammaryasir authored
197 if(isset($zoomFunc[$i]) && $zoomFunc[$i] == $fc){
198 echo "\n" . ' '
199 . '<option value="' . htmlspecialchars($fc) . '" Selected>'
200 . htmlspecialchars($fc) . '</option>';
201 }
202 else {
203 echo "\n" . ' '
204 . '<option value="' . htmlspecialchars($fc) . '">'
205 . htmlspecialchars($fc) . '</option>';
206 }
70167fe @ammaryasir Made suggested change to tbl_select.php and tbl_zoom_select.php
ammaryasir authored
207 }
208 }
209 ?>
210 </select>
211 </td>
212 <td>
213 <?php
214 $field = $inputs[$i];
215
216 $foreignData = PMA_getForeignData($foreigners, $field, false, '', '');
217 if (isset($fields))
c7cef3b @ammaryasir Refactored the tbl_select.php and tbl_zoom_select.php code in librari…
ammaryasir authored
218 echo PMA_getForeignFields_Values($foreigners, $foreignData, $field, $tbl_fields_type, $i ,$db, $table, $titles, $GLOBALS['cfg']['ForeignKeyMaxLimit'], $fields);
70167fe @ammaryasir Made suggested change to tbl_select.php and tbl_zoom_select.php
ammaryasir authored
219 else
c7cef3b @ammaryasir Refactored the tbl_select.php and tbl_zoom_select.php code in librari…
ammaryasir authored
220 echo PMA_getForeignFields_Values($foreigners, $foreignData, $field, $tbl_fields_type, $i ,$db, $table, $titles, $GLOBALS['cfg']['ForeignKeyMaxLimit'], '');
221
222 }
70167fe @ammaryasir Made suggested change to tbl_select.php and tbl_zoom_select.php
ammaryasir authored
223 else{ ?>
224
225 </td><td></td>
226
227 <?php } ?>
f939564 @ammaryasir Created the SVG based scatter-plot functionality
ammaryasir authored
228
7396fa3 @ammaryasir Designed the zoom-search form(tbl_zoom_select.php)
ammaryasir authored
229 </td>
230 </tr>
231
f939564 @ammaryasir Created the SVG based scatter-plot functionality
ammaryasir authored
232 <input type="hidden" name="types[<?php echo $i; ?>]"
233 value="<?php if(isset($tbl_fields_type[$i]))echo $tbl_fields_type[$i]; ?>" />
234 <input type="hidden" name="collations[<?php echo $i; ?>]"
235 value="<?php if(isset($tbl_fields_collation[$i]))echo $tbl_fields_collation[$i]; ?>" />
236
1653fd3 @ammaryasir Plot functionality using Hihcharts
ammaryasir authored
237
238
7396fa3 @ammaryasir Designed the zoom-search form(tbl_zoom_select.php)
ammaryasir authored
239 <?php
602a64a @ammaryasir Added the Show/Hide search criteria feature
ammaryasir authored
240 }//end for
7396fa3 @ammaryasir Designed the zoom-search form(tbl_zoom_select.php)
ammaryasir authored
241 ?>
242 </table>
f939564 @ammaryasir Created the SVG based scatter-plot functionality
ammaryasir authored
243
602a64a @ammaryasir Added the Show/Hide search criteria feature
ammaryasir authored
244 <?php
245 /*
246 * Other inputs like data label and mode go after selection of column criteria
247 */
248 ?>
f939564 @ammaryasir Created the SVG based scatter-plot functionality
ammaryasir authored
249 <table>
250 <tr><td><label for="label"><?php echo __("Data Label"); ?></label>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp</td>
251 <td><select name="dataLabel" id='dataLabel' >
252 <option value = ''> <?php echo __('None'); ?> </option>
253 <?php
254 for ($j = 0 ; $j < $fields_cnt ; $j++){
255 if(isset($dataLabel) && $dataLabel == htmlspecialchars($fields_list[$j])){?>
256 <option value=<?php echo htmlspecialchars($fields_list[$j]);?> Selected> <?php echo htmlspecialchars($fields_list[$j]);?></option>
257 <?php
258 }
259 else{ ?>
260 <option value=<?php echo htmlspecialchars($fields_list[$j]);?> > <?php echo htmlspecialchars($fields_list[$j]);?></option>
261 <?php
262 }
263 } ?>
264 </select>
265 </td></tr>
543df4c @ammaryasir Added interface for browsing/editing points
ammaryasir authored
266 <tr><td><label for="mode"><?php echo __("Mode"); ?></label>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp</td>
267 <td><input type="radio" name="mode" value="browse" checked /><?php echo __('Browse'); ?></td>
268 <?php if(isset($mode) and $mode == __('edit')){ ?>
269 <td><input type="radio" name="mode" value="edit" checked /><?php echo __('Edit'); ?></td>
270 <?php } else { ?>
271 <td><input type="radio" name="mode" value="edit" /><?php echo __('Edit'); ?></td>
272 <?php } ?>
273 </tr>
f939564 @ammaryasir Created the SVG based scatter-plot functionality
ammaryasir authored
274 </table>
64425cc @ammaryasir Fixed some issues and added support for plotting strings
ammaryasir authored
275
7396fa3 @ammaryasir Designed the zoom-search form(tbl_zoom_select.php)
ammaryasir authored
276 </fieldset>
277 <fieldset class="tblFooters">
278 <input type="hidden" name="max_number_of_fields"
279 value="<?php echo $fields_cnt; ?>" />
602a64a @ammaryasir Added the Show/Hide search criteria feature
ammaryasir authored
280 <input type="submit" name="zoom_submit" id="zoomSubmitId" value="<?php echo __('Go'); ?>" />
7396fa3 @ammaryasir Designed the zoom-search form(tbl_zoom_select.php)
ammaryasir authored
281 </fieldset>
602a64a @ammaryasir Added the Show/Hide search criteria feature
ammaryasir authored
282 </form>
7396fa3 @ammaryasir Designed the zoom-search form(tbl_zoom_select.php)
ammaryasir authored
283
602a64a @ammaryasir Added the Show/Hide search criteria feature
ammaryasir authored
284 <?php
285
286 /*
287 * Handle the input criteria and gerate the query result
288 * Form for displaying query results
289 */
290 if(isset($zoom_submit) && $inputs[0] != __('pma_null') && $inputs[1] != __('pma_null')) {
543df4c @ammaryasir Added interface for browsing/editing points
ammaryasir authored
291
602a64a @ammaryasir Added the Show/Hide search criteria feature
ammaryasir authored
292 /*
293 * Query generation part
294 */
295 $w = $data = array();
296 $sql_query = 'SELECT *';
543df4c @ammaryasir Added interface for browsing/editing points
ammaryasir authored
297
602a64a @ammaryasir Added the Show/Hide search criteria feature
ammaryasir authored
298 //Add the table
299
300 $sql_query .= ' FROM ' . PMA_backquote($table);
301 for($i = 0 ; $i < 4 ; $i++){
302 if($inputs[$i] == __('pma_null'))
303 continue;
304 $tmp = array();
305 // The where clause
306 $charsets = array();
307 $cnt_func = count($zoomFunc[$i]);
308 $func_type = $zoomFunc[$i];
309 list($charsets[$i]) = explode('_', $collations[$i]);
310 $unaryFlag = (isset($GLOBALS['cfg']['UnaryOperators'][$func_type]) && $GLOBALS['cfg']['UnaryOperators'][$func_type] == 1) ? true : false;
311 $whereClause = PMA_tbl_search_getWhereClause($fields[$i],$inputs[$i], $types[$i], $collations[$i], $func_type, $unaryFlag);
312 if($whereClause)
313 $w[] = $whereClause;
314
315 } // end for
316 //print_r($w);
317 if ($w) {
318 $sql_query .= ' WHERE ' . implode(' AND ', $w);
319 }
320 $sql_query .= ' LIMIT ' . $maxPlotlLimit;
321 if ($dataLabel == '') {
322 $dataLabel = PMA_getDisplayField($db,$table);
323 }
324
325 /*
326 * Query execution part
327 */
328 $result = PMA_DBI_query( $sql_query . ";" , null, PMA_DBI_QUERY_STORE);
329 while ($row = PMA_DBI_fetch_assoc($result)) {
330 $data[] = $row;
331 }
332 ?>
333
334 <?php
335 /*
336 * Form for displaying point data and also the scatter plot
337 */
338 ?>
339 <form method="post" action="tbl_zoom_select.php" name="displayResultForm" id="zoom_display_form" <?php echo ($GLOBALS['cfg']['AjaxEnable'] ? ' class="ajax"' : ''); ?>>
340 <?php echo PMA_generate_common_hidden_inputs($db, $table); ?>
341 <input type="hidden" name="goto" value="<?php echo $goto; ?>" />
342 <input type="hidden" name="back" value="tbl_zoom_select.php" />
343
344 <div id="overlay" class="web_dialog_overlay"></div>
345 <div id="dialog" class="web_dialog" style="display:none">
346 <fieldset id="displaySection">
347 <legend><?php echo __('Browse/Edit the points') ?></legend>
543df4c @ammaryasir Added interface for browsing/editing points
ammaryasir authored
348 <?php
602a64a @ammaryasir Added the Show/Hide search criteria feature
ammaryasir authored
349 //JSON encode the data(query result)
350 if(isset($zoom_submit) && !empty($data)){ ?>
351 <div id='resizer' style="width:900px;float:right">
03a1a84 @ammaryasir Test
ammaryasir authored
352 <?php if (isset($data)) ?><center> <a href="#" onClick="displayHelp();"><?php echo __('How to use'); ?></a> </center>
602a64a @ammaryasir Added the Show/Hide search criteria feature
ammaryasir authored
353 <div id="querydata" style="display:none">
354 <?php if(isset($data)) echo json_encode($data); ?>
355 </div>
356 <div id="querychart" style="float:right"></div>
357 </div>
358 <?php
359 } ?>
360
361 <fieldset id='dataDisplay'>
362 <legend><?php echo __('Data point content') ?></legend>
363 <fieldset>
364 <table class="data">
365 <thead>
366 <tr>
367 <th> <?php echo __('Column'); ?> </th>
368 <th> <?php echo __('Value'); ?> </th>
369 </tr>
370 </thead>
371 <tbody>
372 <?php
373 $odd_row = true;
374 for ($i = 4; $i < $fields_cnt + 4 ; $i++) {
375 $tbl_fields_type[$i] = $fields_type[$i - 4];
376 $fieldpopup = $fields_list[$i - 4];
377 $foreignData = PMA_getForeignData($foreigners, $fieldpopup, false, '', '');
378 ?>
379 <tr class="noclick <?php echo $odd_row ? 'odd' : 'even'; $odd_row = ! $odd_row; ?>">
380 <th><?php echo htmlspecialchars($fields_list[$i - 4]); ?></th>
381 <th><?php echo PMA_getForeignFields_Values($foreigners, $foreignData, $fieldpopup, $tbl_fields_type, $i, $db, $table, $titles,$GLOBALS['cfg']['ForeignKeyMaxLimit'], '' ); ?> </th>
382 </tr>
383 <?php
384 } ?>
385 </tbody>
386 </table>
387 </fieldset>
388 <fieldset class="tblFooters">
389 <input type="submit" id="buttonID" name="edit_point" value="<?php echo __('Submit'); ?>" />
390 </fieldset>
543df4c @ammaryasir Added interface for browsing/editing points
ammaryasir authored
391 </fieldset>
18694f2 @ammaryasir Added generate plot feature using SVG ( only for numeric fields )
ammaryasir authored
392
602a64a @ammaryasir Added the Show/Hide search criteria feature
ammaryasir authored
393 </fieldset>
394 </div>
395 </form>
396 </fieldset>
397 <?php
398 } ?>
18694f2 @ammaryasir Added generate plot feature using SVG ( only for numeric fields )
ammaryasir authored
399
7396fa3 @ammaryasir Designed the zoom-search form(tbl_zoom_select.php)
ammaryasir authored
400 <div id="sqlqueryresults"></div>
401 <?php
402 require './libraries/footer.inc.php';
403 ?>
Something went wrong with that request. Please try again.