30 require_once(
"../class/config.php");
31 include_once(
"head.php");
34 "id" => array (
"request",
"string",
""),
38 <h3><?php printf(_(
"MySQL Rights for %s"),$id) ?></h3>
42 $r=$mysql->get_user_dblist($id);
48 echo
"<p class=\"alert alert-danger\">$error</p><p> </p>";
49 require_once(
'foot.php');
56 <form method=
"post" action=
"sql_users_dorights.php">
57 <input type=
"hidden" name=
"id" value=
"<?php echo $id; ?>" />
58 <table cellspacing=
"0" cellpadding=
"4" class=
"tlist ombrage">
71 <th>CREATE_TMP_TABLE</th>
75 <th>CREATE ROUTINE</th>
76 <th>ALTER ROUTINE</th>
83 $sql_right=$mysql->available_sql_rights();
84 for(
$i=0;
$i<count($r);
$i++) {
88 <td><strong><?php echo
$val[
"db"] ?></strong></td>
89 <td><a href=
"javascript:inverse_sql_right('<?php echo htmlentities($val["db
"]);?>');"><?php
__(
'Reverse selection');?></a></td>
90 <?php
foreach($sql_right as
$sr) { ?>
92 <input type=
"checkbox" class=
"inc" id=
"<?php echo $val["db
"]."_$sr
"; ?>" name=
"<?php echo $val["db
"]."_$sr
"; ?>"<?php
if(
$val[$sr]==
"Y") echo
" checked=\"checked\""; ?> />
103 <input type=
"submit" class=
"inb ok" value=
"<?php __("Apply
"); ?>"/>
104 <input type=
"button" class=
"inb cancel" name=
"cancel" value=
"<?php __("Cancel
"); ?>" onclick=
"document.location='sql_users_list.php'"/>
108 <script type=
"text/javascript">
109 function inverse_sql_right(db) {
110 <?php
foreach($sql_right as
$sr) { ?>
111 if ( document.getElementById(db+
'_<?php echo $sr;?>').checked ) {
112 document.getElementById(db+
'_<?php echo $sr;?>').checked=
false;
114 document.getElementById(db+
'_<?php echo $sr;?>').checked=
true;
121 <?php include_once(
"foot.php"); ?>