annotate forum/Themes/default/ManageMembers.template.php @ 78:96118bc49f04 website

Add RGU-MFS
author Chris Cannam
date Thu, 17 Oct 2013 09:22:53 +0100
parents e3e11437ecea
children
rev   line source
Chris@76 1 <?php
Chris@76 2 /**
Chris@76 3 * Simple Machines Forum (SMF)
Chris@76 4 *
Chris@76 5 * @package SMF
Chris@76 6 * @author Simple Machines
Chris@76 7 * @copyright 2011 Simple Machines
Chris@76 8 * @license http://www.simplemachines.org/about/smf/license.php BSD
Chris@76 9 *
Chris@76 10 * @version 2.0
Chris@76 11 */
Chris@76 12
Chris@76 13 function template_search_members()
Chris@76 14 {
Chris@76 15 global $context, $settings, $options, $scripturl, $txt;
Chris@76 16
Chris@76 17 echo '
Chris@76 18 <div id="admincenter">
Chris@76 19 <form action="', $scripturl, '?action=admin;area=viewmembers" method="post" accept-charset="', $context['character_set'], '">
Chris@76 20 <div class="cat_bar">
Chris@76 21 <h3 class="catbg">
Chris@76 22 <span class="floatleft">', $txt['search_for'], '</span>
Chris@76 23 <span class="smalltext floatright">', $txt['wild_cards_allowed'], '</span>
Chris@76 24 </h3>
Chris@76 25 </div>
Chris@76 26 <input type="hidden" name="sa" value="query" />
Chris@76 27 <div class="windowbg">
Chris@76 28 <span class="topslice"><span></span></span>
Chris@76 29 <div class="content">
Chris@76 30 <div class="flow_hidden">
Chris@76 31 <div class="msearch_details floatleft">
Chris@76 32 <dl class="settings right">
Chris@76 33 <dt class="righttext">
Chris@76 34 <strong>', $txt['member_id'], ':</strong>
Chris@76 35 <select name="types[mem_id]">
Chris@76 36 <option value="--">&lt;</option>
Chris@76 37 <option value="-">&lt;=</option>
Chris@76 38 <option value="=" selected="selected">=</option>
Chris@76 39 <option value="+">&gt;=</option>
Chris@76 40 <option value="++">&gt;</option>
Chris@76 41 </select>
Chris@76 42 </dt>
Chris@76 43 <dd>
Chris@76 44 <input type="text" name="mem_id" value="" size="6" class="input_text" />
Chris@76 45 </dd>
Chris@76 46 <dt class="righttext">
Chris@76 47 <strong>', $txt['age'], ':</strong>
Chris@76 48 <select name="types[age]">
Chris@76 49 <option value="--">&lt;</option>
Chris@76 50 <option value="-">&lt;=</option>
Chris@76 51 <option value="=" selected="selected">=</option>
Chris@76 52 <option value="+">&gt;=</option>
Chris@76 53 <option value="++">&gt;</option>
Chris@76 54 </select>
Chris@76 55 </dt>
Chris@76 56 <dd>
Chris@76 57 <input type="text" name="age" value="" size="6" class="input_text" />
Chris@76 58 </dd>
Chris@76 59 <dt class="righttext">
Chris@76 60 <strong>', $txt['member_postcount'], ':</strong>
Chris@76 61 <select name="types[posts]">
Chris@76 62 <option value="--">&lt;</option>
Chris@76 63 <option value="-">&lt;=</option>
Chris@76 64 <option value="=" selected="selected">=</option>
Chris@76 65 <option value="+">&gt;=</option>
Chris@76 66 <option value="++">&gt;</option>
Chris@76 67 </select>
Chris@76 68 </dt>
Chris@76 69 <dd>
Chris@76 70 <input type="text" name="posts" value="" size="6" class="input_text" />
Chris@76 71 </dd>
Chris@76 72 <dt class="righttext">
Chris@76 73 <strong>', $txt['date_registered'], ':</strong>
Chris@76 74 <select name="types[reg_date]">
Chris@76 75 <option value="--">&lt;</option>
Chris@76 76 <option value="-">&lt;=</option>
Chris@76 77 <option value="=" selected="selected">=</option>
Chris@76 78 <option value="+">&gt;=</option>
Chris@76 79 <option value="++">&gt;</option>
Chris@76 80 </select>
Chris@76 81 </dt>
Chris@76 82 <dd>
Chris@76 83 <input type="text" name="reg_date" value="" size="10" class="input_text" /><span class="smalltext">', $txt['date_format'], '</span>
Chris@76 84 </dd>
Chris@76 85 <dt class="righttext">
Chris@76 86 <strong>', $txt['viewmembers_online'], ':</strong>
Chris@76 87 <select name="types[last_online]">
Chris@76 88 <option value="--">&lt;</option>
Chris@76 89 <option value="-">&lt;=</option>
Chris@76 90 <option value="=" selected="selected">=</option>
Chris@76 91 <option value="+">&gt;=</option>
Chris@76 92 <option value="++">&gt;</option>
Chris@76 93 </select>
Chris@76 94 </dt>
Chris@76 95 <dd>
Chris@76 96 <input type="text" name="last_online" value="" size="10" class="input_text" /><span class="smalltext">', $txt['date_format'], '</span>
Chris@76 97 </dd>
Chris@76 98 </dl>
Chris@76 99 </div>
Chris@76 100 <div class="msearch_details floatright">
Chris@76 101 <dl class="settings right">
Chris@76 102 <dt class="righttext">
Chris@76 103 <strong>', $txt['username'], ':</strong>
Chris@76 104 </dt>
Chris@76 105 <dd>
Chris@76 106 <input type="text" name="membername" value="" class="input_text" />
Chris@76 107 </dd>
Chris@76 108 <dt class="righttext">
Chris@76 109 <strong>', $txt['email_address'], ':</strong>
Chris@76 110 </dt>
Chris@76 111 <dd>
Chris@76 112 <input type="text" name="email" value="" class="input_text" />
Chris@76 113 </dd>
Chris@76 114 <dt class="righttext">
Chris@76 115 <strong>', $txt['website'], ':</strong>
Chris@76 116 </dt>
Chris@76 117 <dd>
Chris@76 118 <input type="text" name="website" value="" class="input_text" />
Chris@76 119 </dd>
Chris@76 120 <dt class="righttext">
Chris@76 121 <strong>', $txt['location'], ':</strong>
Chris@76 122 </dt>
Chris@76 123 <dd>
Chris@76 124 <input type="text" name="location" value="" class="input_text" />
Chris@76 125 </dd>
Chris@76 126 <dt class="righttext">
Chris@76 127 <strong>', $txt['ip_address'], ':</strong>
Chris@76 128 </dt>
Chris@76 129 <dd>
Chris@76 130 <input type="text" name="ip" value="" class="input_text" />
Chris@76 131 </dd>
Chris@76 132 <dt class="righttext">
Chris@76 133 <strong>', $txt['messenger_address'], ':</strong>
Chris@76 134 </dt>
Chris@76 135 <dd>
Chris@76 136 <input type="text" name="messenger" value="" class="input_text" />
Chris@76 137 </dd>
Chris@76 138 </dl>
Chris@76 139 </div>
Chris@76 140 </div>
Chris@76 141 <div class="flow_hidden">
Chris@76 142 <div class="msearch_details floatleft">
Chris@76 143 <fieldset>
Chris@76 144 <legend>', $txt['gender'], '</legend>
Chris@76 145 <label for="gender-0"><input type="checkbox" name="gender[]" value="0" id="gender-0" checked="checked" class="input_check" /> ', $txt['undefined_gender'], '</label>&nbsp;&nbsp;
Chris@76 146 <label for="gender-1"><input type="checkbox" name="gender[]" value="1" id="gender-1" checked="checked" class="input_check" /> ', $txt['male'], '</label>&nbsp;&nbsp;
Chris@76 147 <label for="gender-2"><input type="checkbox" name="gender[]" value="2" id="gender-2" checked="checked" class="input_check" /> ', $txt['female'], '</label>
Chris@76 148 </fieldset>
Chris@76 149 </div>
Chris@76 150 <div class="msearch_details floatright">
Chris@76 151 <fieldset>
Chris@76 152 <legend>', $txt['activation_status'], '</legend>
Chris@76 153 <label for="activated-0"><input type="checkbox" name="activated[]" value="1" id="activated-0" checked="checked" class="input_check" /> ', $txt['activated'], '</label>&nbsp;&nbsp;
Chris@76 154 <label for="activated-1"><input type="checkbox" name="activated[]" value="0" id="activated-1" checked="checked" class="input_check" /> ', $txt['not_activated'], '</label>
Chris@76 155 </fieldset>
Chris@76 156 </div>
Chris@76 157 </div>
Chris@76 158 </div>
Chris@76 159 <span class="botslice clear_right"><span></span></span>
Chris@76 160 </div>
Chris@76 161 <br />
Chris@76 162 <div class="title_bar">
Chris@76 163 <h3 class="titlebg">', $txt['member_part_of_these_membergroups'], '</h3>
Chris@76 164 </div>
Chris@76 165 <div class="flow_hidden">
Chris@76 166 <table width="49%" class="table_grid floatleft">
Chris@76 167 <thead>
Chris@76 168 <tr class="catbg">
Chris@76 169 <th scope="col" class="first_th">', $txt['membergroups'], '</th>
Chris@76 170 <th scope="col">', $txt['primary'], '</th>
Chris@76 171 <th scope="col" class="last_th">', $txt['additional'], '</th>
Chris@76 172 </tr>
Chris@76 173 </thead>
Chris@76 174 <tbody>';
Chris@76 175
Chris@76 176 foreach ($context['membergroups'] as $membergroup)
Chris@76 177 echo '
Chris@76 178 <tr class="windowbg2">
Chris@76 179 <td>', $membergroup['name'], '</td>
Chris@76 180 <td align="center">
Chris@76 181 <input type="checkbox" name="membergroups[1][]" value="', $membergroup['id'], '" checked="checked" class="input_check" />
Chris@76 182 </td>
Chris@76 183 <td align="center">
Chris@76 184 ', $membergroup['can_be_additional'] ? '<input type="checkbox" name="membergroups[2][]" value="' . $membergroup['id'] . '" checked="checked" class="input_check" />' : '', '
Chris@76 185 </td>
Chris@76 186 </tr>';
Chris@76 187
Chris@76 188 echo '
Chris@76 189 <tr class="windowbg2">
Chris@76 190 <td>
Chris@76 191 <em>', $txt['check_all'], '</em>
Chris@76 192 </td>
Chris@76 193 <td align="center">
Chris@76 194 <input type="checkbox" onclick="invertAll(this, this.form, \'membergroups[1]\');" checked="checked" class="input_check" />
Chris@76 195 </td>
Chris@76 196 <td align="center">
Chris@76 197 <input type="checkbox" onclick="invertAll(this, this.form, \'membergroups[2]\');" checked="checked" class="input_check" />
Chris@76 198 </td>
Chris@76 199 </tr>
Chris@76 200 </tbody>
Chris@76 201 </table>
Chris@76 202
Chris@76 203 <table width="49%" class="table_grid floatright">
Chris@76 204 <thead>
Chris@76 205 <tr class="catbg">
Chris@76 206 <th scope="col" class="first_th">
Chris@76 207 ', $txt['membergroups_postgroups'], '
Chris@76 208 </th>
Chris@76 209 <th class="last_th">&nbsp;</th>
Chris@76 210 </tr>
Chris@76 211 </thead>
Chris@76 212 </tbody>';
Chris@76 213
Chris@76 214 foreach ($context['postgroups'] as $postgroup)
Chris@76 215 echo '
Chris@76 216 <tr class="windowbg2">
Chris@76 217 <td>
Chris@76 218 ', $postgroup['name'], '
Chris@76 219 </td>
Chris@76 220 <td width="40" align="center">
Chris@76 221 <input type="checkbox" name="postgroups[]" value="', $postgroup['id'], '" checked="checked" class="input_check" />
Chris@76 222 </td>
Chris@76 223 </tr>';
Chris@76 224
Chris@76 225 echo '
Chris@76 226 <tr class="windowbg2">
Chris@76 227 <td>
Chris@76 228 <em>', $txt['check_all'], '</em>
Chris@76 229 </td>
Chris@76 230 <td align="center">
Chris@76 231 <input type="checkbox" onclick="invertAll(this, this.form, \'postgroups[]\');" checked="checked" class="input_check" />
Chris@76 232 </td>
Chris@76 233 </tr>
Chris@76 234 </tbody>
Chris@76 235 </table>
Chris@76 236 </div><br />
Chris@76 237 <div class="righttext">
Chris@76 238 <input type="submit" value="', $txt['search'], '" class="button_submit" />
Chris@76 239 </div>
Chris@76 240 </form>
Chris@76 241 </div>
Chris@76 242 <br class="clear" />';
Chris@76 243 }
Chris@76 244
Chris@76 245 function template_admin_browse()
Chris@76 246 {
Chris@76 247 global $context, $settings, $options, $scripturl, $txt, $modSettings;
Chris@76 248
Chris@76 249 echo '
Chris@76 250 <div id="admincenter">';
Chris@76 251
Chris@76 252 template_show_list('approve_list');
Chris@76 253
Chris@76 254 // If we have lots of outstanding members try and make the admin's life easier.
Chris@76 255 if ($context['approve_list']['total_num_items'] > 20)
Chris@76 256 {
Chris@76 257 echo '
Chris@76 258 <br />
Chris@76 259 <form action="', $scripturl, '?action=admin;area=viewmembers" method="post" accept-charset="', $context['character_set'], '" name="postFormOutstanding" id="postFormOutstanding" onsubmit="return onOutstandingSubmit();">
Chris@76 260 <div class="cat_bar">
Chris@76 261 <h3 class="catbg">', $txt['admin_browse_outstanding'], '</h3>
Chris@76 262 </div>
Chris@76 263 <script type="text/javascript"><!-- // --><![CDATA[
Chris@76 264 function onOutstandingSubmit()
Chris@76 265 {
Chris@76 266 if (document.forms.postFormOutstanding.todo.value == "")
Chris@76 267 return;
Chris@76 268
Chris@76 269 var message = "";
Chris@76 270 if (document.forms.postFormOutstanding.todo.value.indexOf("delete") != -1)
Chris@76 271 message = "', $txt['admin_browse_w_delete'], '";
Chris@76 272 else if (document.forms.postFormOutstanding.todo.value.indexOf("reject") != -1)
Chris@76 273 message = "', $txt['admin_browse_w_reject'], '";
Chris@76 274 else if (document.forms.postFormOutstanding.todo.value == "remind")
Chris@76 275 message = "', $txt['admin_browse_w_remind'], '";
Chris@76 276 else
Chris@76 277 message = "', $context['browse_type'] == 'approve' ? $txt['admin_browse_w_approve'] : $txt['admin_browse_w_activate'], '";
Chris@76 278
Chris@76 279 if (confirm(message + " ', $txt['admin_browse_outstanding_warn'], '"))
Chris@76 280 return true;
Chris@76 281 else
Chris@76 282 return false;
Chris@76 283 }
Chris@76 284 // ]]></script>
Chris@76 285
Chris@76 286 <div class="windowbg">
Chris@76 287 <span class="topslice"><span></span></span>
Chris@76 288 <div class="content">
Chris@76 289 <dl class="settings">
Chris@76 290 <dt>
Chris@76 291 ', $txt['admin_browse_outstanding_days_1'], ':
Chris@76 292 </dt>
Chris@76 293 <dd>
Chris@76 294 <input type="text" name="time_passed" value="14" maxlength="4" size="3" class="input_text" /> ', $txt['admin_browse_outstanding_days_2'], '.
Chris@76 295 </dd>
Chris@76 296 <dt>
Chris@76 297 ', $txt['admin_browse_outstanding_perform'], ':
Chris@76 298 </dt>
Chris@76 299 <dd>
Chris@76 300 <select name="todo">
Chris@76 301 ', $context['browse_type'] == 'activate' ? '
Chris@76 302 <option value="ok">' . $txt['admin_browse_w_activate'] . '</option>' : '', '
Chris@76 303 <option value="okemail">', $context['browse_type'] == 'approve' ? $txt['admin_browse_w_approve'] : $txt['admin_browse_w_activate'], ' ', $txt['admin_browse_w_email'], '</option>', $context['browse_type'] == 'activate' ? '' : '
Chris@76 304 <option value="require_activation">' . $txt['admin_browse_w_approve_require_activate'] . '</option>', '
Chris@76 305 <option value="reject">', $txt['admin_browse_w_reject'], '</option>
Chris@76 306 <option value="rejectemail">', $txt['admin_browse_w_reject'], ' ', $txt['admin_browse_w_email'], '</option>
Chris@76 307 <option value="delete">', $txt['admin_browse_w_delete'], '</option>
Chris@76 308 <option value="deleteemail">', $txt['admin_browse_w_delete'], ' ', $txt['admin_browse_w_email'], '</option>', $context['browse_type'] == 'activate' ? '
Chris@76 309 <option value="remind">' . $txt['admin_browse_w_remind'] . '</option>' : '', '
Chris@76 310 </select>
Chris@76 311 </dd>
Chris@76 312 </dl>
Chris@76 313 <input type="submit" value="', $txt['admin_browse_outstanding_go'], '" class="button_submit" />
Chris@76 314 <input type="hidden" name="type" value="', $context['browse_type'], '" />
Chris@76 315 <input type="hidden" name="sort" value="', $context['approve_list']['sort']['id'], '" />
Chris@76 316 <input type="hidden" name="start" value="', $context['approve_list']['start'], '" />
Chris@76 317 <input type="hidden" name="orig_filter" value="', $context['current_filter'], '" />
Chris@76 318 <input type="hidden" name="sa" value="approve" />', !empty($context['approve_list']['sort']['desc']) ? '
Chris@76 319 <input type="hidden" name="desc" value="1" />' : '', '
Chris@76 320 </div>
Chris@76 321 <span class="botslice"><span></span></span>
Chris@76 322 </div>
Chris@76 323 <input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
Chris@76 324 </form>';
Chris@76 325 }
Chris@76 326
Chris@76 327 echo '
Chris@76 328 </div>
Chris@76 329 <br class="clear" />';
Chris@76 330 }
Chris@76 331
Chris@76 332 ?>