options.phtml
2.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<?php echo PMA_Util::getDivForSliderEffect(
'searchoptions', __('Options')
); ?>
<!-- Displays columns select list for selecting distinct columns in the search -->
<fieldset id="fieldset_select_fields">
<legend>
<?php echo __('Select columns (at least one):'); ?>
</legend>
<select name="columnsToDisplay[]"
size="<?php echo min(count($columnNames), 10); ?>"
multiple="multiple">
<?php
/**
* Displays the list of the fields
*/
foreach ($columnNames as $each_field): ?>
<option value="<?php echo htmlspecialchars($each_field); ?>"
selected="selected">
<?php echo htmlspecialchars($each_field); ?>
</option>
<?php endforeach; ?>
</select>
<input type="checkbox"
name="distinct"
value="DISTINCT"
id="oDistinct" />
<label for="oDistinct">
DISTINCT
</label>
</fieldset>
<!-- Displays input box for custom 'Where' clause to be used in the search -->
<fieldset id="fieldset_search_conditions">
<legend>
<em><?php echo __('Or'); ?></em>
<?php echo __('Add search conditions (body of the "where" clause):'); ?>
</legend>
<?php echo PMA_Util::showMySQLDocu('Functions'); ?>
<input type="text" name="customWhereClause" class="textfield" size="64" />
</fieldset>
<!-- Displays option of changing default number of rows displayed per page -->
<fieldset id="fieldset_limit_rows">
<legend><?php echo __('Number of rows per page'); ?></legend>
<input type="number"
name="session_max_rows"
required="required"
min="1"
value="<?php echo $GLOBALS['cfg']['MaxRows']; ?>"
class="textfield" />
</fieldset>
<!-- Displays option for ordering search results by a column value (Asc or Desc) -->
<fieldset id="fieldset_display_order">
<legend><?php echo __('Display order:'); ?></legend>
<select name="orderByColumn"><option value="--nil--"></option>
<?php foreach ($columnNames as $each_field): ?>
<option value="<?php echo htmlspecialchars($each_field); ?>">
<?php echo htmlspecialchars($each_field); ?>
</option>
<?php endforeach; ?>
</select>
<?php echo PMA_Util::getRadioFields(
'order',
array(
'ASC' => __('Ascending'),
'DESC' => __('Descending')
),
'ASC',
false,
true,
"formelement"
); ?>
</fieldset>
<br style="clear: both;" />