Minor cleanup

This commit is contained in:
Herman van Rink
2010-01-23 11:34:43 +00:00
parent 608ad9b147
commit cac4384a8c
2 changed files with 6 additions and 5 deletions

View File

@@ -107,7 +107,7 @@ if (empty($GLOBALS['is_header_sent'])) {
's_db.png'); 's_db.png');
if (isset($GLOBALS['action']) && $GLOBALS['action'] == 'tbl_create.php') { if (isset($GLOBALS['action']) && $GLOBALS['action'] == 'tbl_create.php') {
/* We're creating new table */ /* We're creating a new table */
echo $separator; echo $separator;
printf($item, printf($item,
$action, $action,

View File

@@ -122,7 +122,7 @@ function PMA_replication_gui_changemaster($submitname) {
echo ' </fieldset>'; echo ' </fieldset>';
echo ' <fieldset id="fieldset_user_privtable_footer" class="tblFooters">'; echo ' <fieldset id="fieldset_user_privtable_footer" class="tblFooters">';
echo ' <input type="hidden" name="sr_take_action" value="true" />'; echo ' <input type="hidden" name="sr_take_action" value="true" />';
echo ' <input type="submit" name="'.$submitname.'" id="confslave_submit" value="' . $GLOBALS['strGo'] . '" />'; echo ' <input type="submit" name="' . $submitname . '" id="confslave_submit" value="' . $GLOBALS['strGo'] . '" />';
echo ' </fieldset>'; echo ' </fieldset>';
echo '</form>'; echo '</form>';
} }
@@ -148,7 +148,7 @@ function PMA_replication_print_status_table($type, $hidden = false, $title = tru
// //
//$server_id = PMA_DBI_fetch_value("SHOW VARIABLES LIKE 'server_id'", 0, 1); //$server_id = PMA_DBI_fetch_value("SHOW VARIABLES LIKE 'server_id'", 0, 1);
echo '<div id="replication_' . $type . '_section" style="' . ($hidden ? 'display: none' : '') . '"> '; echo '<div id="replication_' . $type . '_section" style="' . ($hidden ? 'display: none;' : '') . '"> ';
if ($title) { if ($title) {
echo '<h4><a name="replication_' . $type . '"></a>' . ${"strReplicationStatus_{$type}"} . '</h4>'; echo '<h4><a name="replication_' . $type . '"></a>' . ${"strReplicationStatus_{$type}"} . '</h4>';
@@ -214,7 +214,7 @@ function PMA_replication_print_slaves_table($hidden = false) {
$data = PMA_DBI_fetch_result('SHOW SLAVE HOSTS', null, null); $data = PMA_DBI_fetch_result('SHOW SLAVE HOSTS', null, null);
echo ' <br />'; echo ' <br />';
echo ' <div id="replication_slaves_section" style="' . ($hidden ? 'display: none' : '') . '"> '; echo ' <div id="replication_slaves_section" style="' . ($hidden ? 'display: none;' : '') . '"> ';
echo ' <table class="data">'; echo ' <table class="data">';
echo ' <thead>'; echo ' <thead>';
echo ' <tr>'; echo ' <tr>';
@@ -352,7 +352,8 @@ function PMA_replication_gui_master_addslaveuser() {
. ' <option value="localhost"' . ' <option value="localhost"'
. ((isset($GLOBALS['pred_hostname']) && $GLOBALS['pred_hostname'] == 'localhost') . ((isset($GLOBALS['pred_hostname']) && $GLOBALS['pred_hostname'] == 'localhost')
? ' selected="selected"' : '') . '>' . $GLOBALS['strLocalhost'] ? ' selected="selected"' : '') . '>' . $GLOBALS['strLocalhost']
. '</option>'; . '</option>';
if (!empty($thishost)) { if (!empty($thishost)) {
echo ' <option value="thishost"' echo ' <option value="thishost"'
. ((isset($GLOBALS['pred_hostname']) && $GLOBALS['pred_hostname'] == 'thishost') . ((isset($GLOBALS['pred_hostname']) && $GLOBALS['pred_hostname'] == 'thishost')