</script> <table class="table table-hover"> <thead> <tr> <td>ID</td> <td>Логин</td> <td>Роль</td> <td>Фамилия</td> <td>Имя</td> <td>Отчество</td> </tr> </thead> <tbody> <?php $users = getUsersList(); foreach ($users as $user) { if ($user['group'] == "banned") { echo '<tr class="redColored">'; } else { echo '<tr>'; } echo '<td>' . $user['id'] . '</td>'; echo '<td><a href="userProfile.php?id=' . $user['id'] . '">' . $user['login'] . '</a></td>'; echo '<td>' . $user['group'] . '</td>'; echo '<td>' . $user['surname'] . '</td>'; echo '<td>' . $user['name'] . '</td>'; echo '<td>' . $user['patronymic'] . '</td>'; echo '</tr>'; } ?>
} else { if ($page == "") { ?> <h3>Статус сервера <span class="small" style="color: green">Всё хорошо</span></h3> <table class="table table-hover"> <tbody> <tr> <td> <a href="?page=users">Активные пользователи</a> </td> <td> <?php echo count(getUsersList()); ?> </td> </tr> <tr> <td> <a href="?page=tournaments">Турниры</a> </td> <td> <?php echo count(getRunningAndClosedTournaments()); ?> </td> </tr> <tr>
<?php $gmap_styles = getGooglemapStyles(); // Switcher choises $THEMEREX_shortcodes_yes_no = getYesNoList(); $THEMEREX_shortcodes_on_off = getOnOffList(); $THEMEREX_shortcodes_dir = getDirectionList(); $THEMEREX_shortcodes_align = getAlignmentList(); $THEMEREX_shortcodes_text_align = getAlignList(); $THEMEREX_shortcodes_float = getFloatList(); $THEMEREX_shortcodes_show_hide = getShowHideList(); $THEMEREX_shortcodes_box_style = getBoxStyles(); $THEMEREX_shortcodes_sorting = getSortingList(); $THEMEREX_shortcodes_ordering = getOrderingList(); $THEMEREX_shortcodes_sliders = getSlidersList(); $THEMEREX_shortcodes_users = getUsersList(); $THEMEREX_shortcodes_categories = getCategoriesList(); $THEMEREX_shortcodes_columns = getColumnsList(); $THEMEREX_shortcodes_images = themerex_array_merge(array('none' => "none"), getListFiles("/images/icons", "png")); $THEMEREX_shortcodes_icons = array_merge(array("none"), getIconsList()); $THEMEREX_shortcodes_locations = getDedicatedLocationsList(); global $THEMEREX_shortcodes_yes_no; // Current elemnt id $THEMEREX_shortcodes_id = array("id" => "id", "title" => __("Element ID", "themerex"), "desc" => __("ID for current element", "themerex"), "divider" => false, "value" => "", "type" => "text"); // Width and height params function THEMEREX_shortcodes_width($w = '') { return array("id" => "width", "title" => __("Width", "themerex"), "divider" => false, "value" => $w, "type" => "text"); } function THEMEREX_shortcodes_height($h = '', $des = 'Width (in pixels or percent) and height (only in pixels) of element') {
case 'getBonusHistory': getBonusHistory(); break; case 'getMultipleBidList': getMultipleBidList(); break; case 'getProjects': $userId = isset($_SESSION['userid']) ? $_SESSION['userid'] : 0; $currentUser = User::find($userId); getProjects(!$currentUser->isInternal()); break; case 'getUserList': getUserList(); break; case 'getUsersList': getUsersList(); break; case 'payBonus': payBonus(); break; case 'pingTask': pingTask(); break; case 'userReview': userReview(); break; case 'visitQuery': echo json_encode(VisitQueryTools::visitQuery((int) $_GET['jobid'])); break; case 'wdFee': wdFee();
} echo "<td>" . getNicknameById($value['sender']) . "</td>"; echo "<td>" . getNicknameById($value['recevier']) . "</td>"; echo "<td>" . $value['title'] . "</td>"; echo "<td><a href=\"messages.php?id={$key}\">Просмотреть</a></td>"; echo "</tr>"; } ?> </tbody> </table> <h2 align="center">Написать сообщение</h2> <form method="POST" action="userMessages.php" onsubmit="sendMessage(); return false;"> Получатель: <select class="form-control" id="recevier" name="recevier"> <?php $users = getUsersList(true); foreach ($users as $data) { if ($data['id'] != $id) { echo '<option value="' . $data['id'] . '">' . $data['login'] . '</option>'; } } ?> </select> <br /> <input type="text" placeholder="Тема" name="title" id="title" class="form-control" required /> <br /> <textarea id="userMessage" name="text" class="form-control" required> Сообщение </textarea> <br /> <button class="btn btn-default" type="submit" name="submit">Отправить</button>
providing verification for certifications that are issued through the ITA Portal. <br/><a href="index.php?manage=1">Manage Certificate Versions</a> | <a href="index.php?listmanage=1">Edit Certication Records</a> | <a href="index.php?certificate=1">Add Certificate</a> </div> <ul> <li id="fo1li8" class=" "> <label class="desc" id="title8" for="username"> Student Name </label> <div> <select id="username" name="username" class="field select large required users" onclick="handleInput(this);" onkeyup="handleInput(this);" tabindex="1"> <?php echo getUsersList($param->selected); ?> </select> </div> </li> <li id="fo1li6" class=" "> <label class="desc" id="title6" for="email"> Student Email </label> <div> <input id="email" name="email" type="email" spellcheck="false" class="field text large required" value="" maxlength="255" tabindex="2" onkeyup="handleInput(this);" onchange="handleInput(this);"> </div> </li>
function display_project_user_selection($project_id) { $user_list = getUsersList(null, $project_id); foreach ($user_list as $id => $attributes) { print '<input type="checkbox" value="' . $id . '" '; print 'id="user_' . $id . '" />'; print $attributes['firstname'] . ' ' . $attributes['lastname']; print '<br/>'; } print '<input type="button" name="add_user" value="Save" onclick="saveUsers(' . $project_id . ')" />'; print '<input type="button" name="cancel" value="Cancel" onclick="getUsers(' . $project_id . ')" />'; }
$userdata['password'] = $newuserpass; $_SESSION['user'] = md5($newuserpass); $passw_changed = true; } else { $savedetails = false; $userdata['password'] = NULL; sysMsg(MSG00032); userForm($userdata); } } } if ($savedetails == true) { saveUser($userdata); getUsersList('0', '0', '10'); } } else { sysMsg(MSG00033); } } elseif (isset($_GET['action'])) { $action = cleanGet($_GET['action']); if ($action == 'add') { userForm('add'); } } else { getUsersList('0', '0', '10'); } } //END ---> GET ADMIN ACTION FROM GET AND CALL FUNCTION if ($inv_view == false) { include_once 'admin_template/footer.php'; }