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>2014-11-26 15:53:08 +0300
committerMadhura Jayaratne <madhura.cj@gmail.com>2014-11-26 15:53:08 +0300
commit469d6311c5599e43913dd99da675bef9ec66e90c (patch)
treebf9895b6b809309c847f4c660a8e131803313cd4 /db_tracking.php
parent88075755866572a6f9c0f1e27f06e4b22b8abc10 (diff)
Remove duplicate code
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
Diffstat (limited to 'db_tracking.php')
-rw-r--r--db_tracking.php24
1 files changed, 2 insertions, 22 deletions
diff --git a/db_tracking.php b/db_tracking.php
index 3b1bcd7573..6c4c21233b 100644
--- a/db_tracking.php
+++ b/db_tracking.php
@@ -201,17 +201,7 @@ if ($GLOBALS['dbi']->numRows($all_tables_result) > 0) {
</tbody>
</table>
<?php
- echo '<img class="selectallarrow" '
- . 'src="' . $pmaThemeImage . 'arrow_' . $text_dir . '.png" '
- . 'width="38" height="22" alt="' . __('With selected:') . '" />';
-
- echo '<input type="checkbox" id="trackedForm_checkall" '
- . 'class="checkall_box" title="' . __('Check All') . '" />'
- . '<label for="trackedForm_checkall">' . __('Check All') . '</label>';
-
- echo '<i style="margin-left: 2em">'
- . __('With selected:') . '</i>';
-
+ echo PMA_Util::getWithSelected($pmaThemeImage, $text_dir, "trackedForm");
echo PMA_Util::getButtonOrImage(
'submit_mult', 'mult_submit', 'submit_mult_delete_tracking',
__('Delete tracking'), 'b_drop.png', 'delete_tracking'
@@ -307,17 +297,7 @@ if (count($my_tables) > 0) {
</tbody>
</table>
<?php
- echo '<img class="selectallarrow" '
- . 'src="' . $pmaThemeImage . 'arrow_' . $text_dir . '.png" '
- . 'width="38" height="22" alt="' . __('With selected:') . '" />';
-
- echo '<input type="checkbox" id="untrackedForm_checkall" '
- . 'class="checkall_box" title="' . __('Check All') . '" />'
- . '<label for="untrackedForm_checkall">' . __('Check All') . '</label>';
-
- echo '<i style="margin-left: 2em">'
- . __('With selected:') . '</i>';
-
+ echo PMA_Util::getWithSelected($pmaThemeImage, $text_dir, "untrackedForm");
echo PMA_Util::getButtonOrImage(
'submit_mult', 'mult_submit', 'submit_mult_track',
__('Track table'), 'eye.png', 'track'