From 0bf475bce1b909dd654255e1265cc767cde51d07 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Tue, 23 Aug 2011 19:08:50 -0400 Subject: [PATCH] Coding style --- tbl_zoom_select.php | 146 +++++++++++++++++++++++--------------------- 1 file changed, 76 insertions(+), 70 deletions(-) diff --git a/tbl_zoom_select.php b/tbl_zoom_select.php index ad90043308..47d9b84b87 100644 --- a/tbl_zoom_select.php +++ b/tbl_zoom_select.php @@ -248,38 +248,44 @@ for ($i = 0; $i < 4; $i++) { */ //Set default datalabel if not selected - if(isset($zoom_submit) && $inputs[0] != 'pma_null' && $inputs[1] != 'pma_null') { - if ($dataLabel == '') - $dataLabel = PMA_getDisplayField($db,$table); +if (isset($zoom_submit) && $inputs[0] != 'pma_null' && $inputs[1] != 'pma_null') { + if ($dataLabel == '') { + $dataLabel = PMA_getDisplayField($db,$table); } - ?> +} +?> - - - + + + + +
        
- -
@@ -293,10 +299,10 @@ for ($i = 0; $i < 4; $i++) { $row[$inputs[0]], $inputs[1] => $row[$inputs[1]], 'where_clause' => $uniqueCondition[0]); -else if($dataLabel) + } elseif ($dataLabel) { $data[] = array($inputs[0] => $row[$inputs[0]], $inputs[1] => $row[$inputs[1]], $dataLabel => $row[$dataLabel], 'where_clause' => $uniqueCondition[0]); -else + } else { $data[] = array($inputs[0] => $row[$inputs[0]], $inputs[1] => $row[$inputs[1]], $dataLabel => '', 'where_clause' => $uniqueCondition[0]); + } } - -?> - -
- +
-
+
+ } +?>
- - -