Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMadhura Jayaratne <madhura.cj@gmail.com>2012-04-28 16:44:43 +0400
committerMadhura Jayaratne <madhura.cj@gmail.com>2012-04-28 16:44:43 +0400
commit7fc055f6fda496960d3e2100e37613bb2a46f90b (patch)
treebb8988bd4a6b24f19107fa46bdd5d6a7e1a085f2 /tbl_chart.php
parent6281b4f9418323c6bb8b661a0885a2c509b750e3 (diff)
Use a mulitiselect to select series
Diffstat (limited to 'tbl_chart.php')
-rw-r--r--tbl_chart.php11
1 files changed, 7 insertions, 4 deletions
diff --git a/tbl_chart.php b/tbl_chart.php
index 131c21f50c..144097efcd 100644
--- a/tbl_chart.php
+++ b/tbl_chart.php
@@ -108,7 +108,7 @@ url_query = '<?php echo $url_query;?>';
foreach ($keys as $idx => $key) {
if ($yaxis == -1 && (($idx == count($data[0]) - 1) || preg_match("/(date|time)/i", $key))) {
echo '<option value="' . htmlspecialchars($idx) . '" selected="selected">' . htmlspecialchars($key) . '</option>';
- $yaxis=$idx;
+ $yaxis = $idx;
} else {
echo '<option value="' . htmlspecialchars($idx) . '">' . htmlspecialchars($key) . '</option>';
}
@@ -117,13 +117,16 @@ url_query = '<?php echo $url_query;?>';
?>
</select><br />
<label for="select_chartSeries"><?php echo __('Series:'); ?></label>
- <select name="chartSeries" id="select_chartSeries">
- <option value="columns"><?php echo __('The remaining columns'); ?></option>
+ <select name="chartSeries" id="select_chartSeries" multiple="multiple">
<?php
$numeric_types = array('int', 'real', 'year', 'bit');
foreach ($keys as $idx => $key) {
if (in_array($fields_meta[$idx]->type, $numeric_types)) {
- echo '<option>' . htmlspecialchars($key) . '</option>';
+ if ($idx == $yaxis) {
+ echo '<option value"' . htmlspecialchars($key) . '">' . htmlspecialchars($key) . '</option>';
+ } else {
+ echo '<option value"' . htmlspecialchars($key) . '" selected="selected">' . htmlspecialchars($key) . '</option>';
+ }
}
}
?>