Go to the source code of this file.
Functions | |
| show_pending_users_list ($result, $group_id) | |
| show_all_users_remove_list ($result, $result2, $group_id) | |
| show_all_users_add_searchbox ($group_id, $previous_search) | |
| show_all_users_add_list ($result, $group_id) | |
| show_bulk_add_users ($group_id) | |
Variables | |
| $result | |
| $result2 | |
| $array = explode(" ",$words) | |
| $words1 = implode($array,"%' OR user_name LIKE '%") | |
| $words2 = implode($array,"%' OR realname LIKE '%") | |
|
||||||||||||
|
Definition at line 125 of file useradmin.php. References $PHP_SELF, db_fetch_array(), and print. 00126 { 00127 global $PHP_SELF; 00128 print _("Below is the result of your search in the users database.")." 00129 00130 <P></P> 00131 <form action=\"$PHP_SELF\" method=\"post\"> 00132 <input type=\"HIDDEN\" name=\"action\" VALUE=\"add_to_group\" /> 00133 <select name=\"user_id[]\" size=\"10\" multiple>\n"; 00134 00135 while ($usr = db_fetch_array($result)) { 00136 print "<option value=".$usr[user_id].">".$usr[realname]. 00137 " <".$usr[user_name]."></option>\n"; 00138 $exists=1; 00139 } 00140 00141 if (!$exists) { 00142 # Show none if the list is empty 00143 print '<option>'._("None found").'</option>'; 00144 } 00145 00146 print "</select> 00147 <br /> 00148 <input type=\"HIDDEN\" name=\"group_id\" VALUE=\"$group_id\" /> 00149 <p> 00150 <input type=\"submit\" name=\"Submit\" value=\""._("Add users to group")."\" /> 00151 </form>"; 00152 }
|
|
||||||||||||
|
Definition at line 106 of file useradmin.php. References $PHP_SELF, form, and print. 00107 { 00108 global $PHP_SELF; 00109 print ' 00110 <h3><a name="searchuser"></a>'._("Adding users to group").'</h3> 00111 <p> 00112 '._("You can search one or several users to add in the whole users database with the following search tool. A list of users, depending on the names you'll type in this form, will be generated.").' 00113 00114 <form action="'.$PHP_SELF.'#searchuser" method="post"> 00115 <input type="hidden" name="action" value="add_to_group_list" /> 00116 <input type="text" size="35" name="words" value="'.$previous_search.'" /><br /> 00117 <p> 00118 <input type="hidden" name="group_id" value="'.$group_id.'" /> 00119 <input type="submit" name="Submit" value="'._("Search users").'" /> 00120 </form>'; 00121 }
|
|
||||||||||||||||
|
Definition at line 63 of file useradmin.php. References $PHP_SELF, db_fetch_array(), group_id, member_check(), and print. 00064 { 00065 global $PHP_SELF; 00066 print " 00067 <h3>"._("Removing users from group")."</h3> 00068 <p> 00069 "._("To remove users, select their name and click on the button below. The administrators of a project cannot be removed unless they quit. Pending users are at the bottom of the list.")." 00070 <form action=\"$PHP_SELF\" method=\"post\"> 00071 <input type=\"HIDDEN\" name=\"action\" VALUE=\"remove_from_group\" /> 00072 <select name=\"user_id[]\" size=\"10\" multiple>\n"; 00073 00074 while ($usr = db_fetch_array($result)) { 00075 if (!member_check($usr[user_id], $group_id, "A")) 00076 { 00077 print "<option value=".$usr[user_id].">".$usr[realname]. 00078 " <".$usr[user_name]."></option>\n"; 00079 $exists=1; 00080 } 00081 } 00082 00083 while ($usr = db_fetch_array($result2)) { 00084 if (!member_check($usr[user_id], $group_id, "A")) 00085 { 00086 print "<option value=".$usr[user_id].">"._("Pending:")." ".$usr[realname]. 00087 " <".$usr[user_name]."></option>\n"; 00088 $exists=1; 00089 } 00090 } 00091 00092 if (!$exists) { 00093 # Show none if the list is empty 00094 print '<option>'._("None found").'</option>'; 00095 } 00096 00097 print "</select> 00098 <br /> 00099 <input type=\"HIDDEN\" name=\"group_id\" VALUE=\"$group_id\" /> 00100 <p> 00101 <input type=\"submit\" name=\"Submit\" value=\""._("Remove users from group")."\" /> 00102 </form>"; 00103 00104 }
|
|
|
Definition at line 156 of file useradmin.php. References print. 00157 { 00158 print "<h3>"._("Have your file checked")."</h3>\n\n"; 00159 00160 print _("By submitting your file here, the format of the file and each user name, etc. will be checked. No modifications will be made to the user database. Feedback will be given on screen and by email."); 00161 print " 00162 <br /> 00163 00164 <form action=\"bulk_admin_users.php?action=test&group_id=".$group_id."\" method=\"post\" enctype=\"multipart/form-data\"> 00165 <input type=\"HIDDEN\" name=\"action\" VALUE=\"check\" /> 00166 <input type=\"file\" name=\"file\" size=\"40\" /> 00167 <P> 00168 <input type=\"submit\" name=\"Submit\" value=\""._("Submit")."\" /> 00169 </P> 00170 </form> 00171 <br /> 00172 00173 </td></tr><tr><td class=\"boxitemalt\"> 00174 00175 <h3>"._("Have your file executed")."</h3>\n\n"; 00176 00177 print _("By submitting your file here, modifications will be made to the user database. Feedback will be given on screen and by email."); 00178 print " 00179 <br /> 00180 00181 <form action=\"bulk_admin_users.php?action=execute&group_id=".$group_id."\" method=\"post\" enctype=\"multipart/form-data\"> 00182 <input type=\"HIDDEN\" name=\"action\" VALUE=\"check\" /> 00183 <input type=\"file\" name=\"file\" size=\"40\" /> 00184 <P> 00185 <input type=\"submit\" name=\"Submit\" value=\""._("Submit")."\" /> 00186 </P> 00187 </form>"; 00188 }
|
|
||||||||||||
|
Definition at line 33 of file useradmin.php. References $PHP_SELF, db_fetch_array(), and print. 00034 { 00035 global $PHP_SELF; 00036 print "<h3>"._("Users Pending for Group")."</h3> 00037 <p> 00038 "._("Users that have requested to be member of the group are listed here. To approve their requests, select their name and click on the button below. To discard requests, go to the next section called \"Removing users from group\".")." 00039 <form action=\"$PHP_SELF\" method=\"post\"> 00040 <input type=\"HIDDEN\" name=\"action\" VALUE=\"approve_for_group\" /> 00041 <select name=\"user_id[]\" size=\"10\" multiple>\n"; 00042 00043 while ($usr = db_fetch_array($result)) { 00044 print "<option value=".$usr[user_id].">".$usr[realname]. 00045 " <".$usr[user_name]."></option>\n"; 00046 $exists=1; 00047 } 00048 00049 if (!$exists) 00050 { 00051 # Show none if the list is empty 00052 print '<option>'._("None found").'</option>'; 00053 } 00054 00055 print "</select> 00056 <input type=\"HIDDEN\" name=\"group_id\" VALUE=\"$group_id\" /> 00057 <P> 00058 <input type=\"submit\" name=\"Submit\" value=\""._("Approve users for group")."\" /> 00059 </form>"; 00060 }
|
|
|
Definition at line 278 of file useradmin.php. |
|
|
Initial value: db_query("SELECT user.user_id AS user_id, " . "user.user_name AS user_name, " . "user.realname AS realname " . "FROM user,user_group " . "WHERE user.user_id=user_group.user_id AND user_group.group_id='$group_id' AND admin_flags='P'" . "ORDER BY user.user_name") Definition at line 245 of file useradmin.php. |
|
|
Initial value: db_query("SELECT user.user_id AS user_id, " . "user.user_name AS user_name, " . "user.realname AS realname " . "FROM user,user_group " . "WHERE user.user_id=user_group.user_id AND user_group.group_id=$group_id AND admin_flags='P'" . "ORDER BY user.user_name") Definition at line 264 of file useradmin.php. |
|
|
Definition at line 279 of file useradmin.php. |
|
|
Definition at line 280 of file useradmin.php. |
|
|
|
Definition at line 254 of file useradmin.php. |
1.4.4