The branch, master has been updated via 7dddcd837ca561bd120eb16e089e31bed376797d (commit) from 301f8d981a817741a29514e4757b95ab342d279c (commit)
- Log ----------------------------------------------------------------- commit 7dddcd837ca561bd120eb16e089e31bed376797d Author: Madhura Jayaratne madhura.cj@gmail.com Date: Sun Nov 27 23:20:16 2011 +0530
Minor interface changes to the privileges tab in database view
-----------------------------------------------------------------------
Summary of changes: server_privileges.php | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/server_privileges.php b/server_privileges.php index cc17d40..dce4ce1 100644 --- a/server_privileges.php +++ b/server_privileges.php @@ -2240,11 +2240,12 @@ if (empty($_REQUEST['adduser']) && (! isset($checkprivs) || ! strlen($checkprivs . '</form>' . "\n"; } else { // check the privileges for a particular database. - $user_form = '<form id="usersForm"><table id="dbspecificuserrights" class="data">' . "\n" - . '<caption class="tblHeaders">' . "\n" + $user_form = '<form id="usersForm"><fieldset>' . "\n" + . '<legend>' . "\n" . PMA_getIcon('b_usrcheck.png') . ' ' . sprintf(__('Users having access to "%s"'), '<a href="' . $GLOBALS['cfg']['DefaultTabDatabase'] . '?' . PMA_generate_common_url($checkprivs) . '">' . htmlspecialchars($checkprivs) . '</a>') . "\n" - . '</caption>' . "\n" + . '</legend>' . "\n" + . '<table id="dbspecificuserrights" class="data">' . "\n" . '<thead>' . "\n" . ' <tr><th>' . __('User') . '</th>' . "\n" . ' <th>' . __('Host') . '</th>' . "\n" @@ -2390,7 +2391,7 @@ if (empty($_REQUEST['adduser']) && (! isset($checkprivs) || ! strlen($checkprivs . ' </tr>' . "\n"; } $user_form .= '</tbody>' . "\n" - . '</table></form>' . "\n"; + . '</table></fieldset></form>' . "\n";
if ($GLOBALS['is_ajax_request'] == true) { $extra_data['user_form'] = $user_form; @@ -2399,6 +2400,7 @@ if (empty($_REQUEST['adduser']) && (! isset($checkprivs) || ! strlen($checkprivs } else { // Offer to create a new user for the current database $user_form .= '<fieldset id="fieldset_add_user">' . "\n" + . '<legend>' . __('New') . '</legend>' . "\n" . ' <a href="server_privileges.php?' . $GLOBALS['url_query'] . '&adduser=1&dbname=' . htmlspecialchars($checkprivs) .'" val="'.'checkprivs='.htmlspecialchars($checkprivs). '&'.$GLOBALS['url_query'] . '" class="'.$conditional_class.'" name="db_specific">' . "\n" . PMA_getIcon('b_usradd.png') . ' ' . __('Add user') . '</a>' . "\n"
hooks/post-receive