} if ($success) { $session->message("<div class='success'>Job(s) has been remove from Spotlight</div>"); redirect_to($_SERVER['PHP_SELF']); die; } } $page = !empty($_GET['page']) ? (int) $_GET['page'] : 1; $per_page = JOBS_PER_SEARCH; $total_count = Job::count_all(); $smarty->assign('total_count', $total_count); $smarty->assign('page', $page); $pagination = new Pagination($page, $per_page, $total_count); $smarty->assign('previous_page', $pagination->previous_page()); $smarty->assign('has_previous_page', $pagination->has_previous_page()); $smarty->assign('total_pages', $pagination->total_pages()); $smarty->assign('has_next_page', $pagination->has_next_page()); $smarty->assign('next_page', $pagination->next_page()); $offset = $pagination->offset(); $sql = " SELECT * FROM " . TBL_JOB; $sql .= " LIMIT {$per_page} "; $sql .= " OFFSET {$offset} "; $lists = Job::find_by_sql($sql); $manage_lists = array(); if ($lists && is_array($lists)) { $i = 1; foreach ($lists as $list) { unset($employer); if (!empty($list->fk_employer_id) && $list->fk_employer_id != 0) { $employer = Employer::find_by_id($list->fk_employer_id); }
echo customEncrypt($feed->id); ?> "> Details </a></td> </tr> </tbody> <?php $serial_no++; } } ?> </table> <div class="pagination " style="clear: both;"> <ul> <?php if ($pagination->total_pages() > 1) { if ($pagination->has_previous_page()) { echo "<li class='disabled'><a href=\"cheack_my_feedbacks.php?page="; echo $pagination->previous_page(); echo "\">« Previous</a></li> "; } for ($i = 1; $i <= $pagination->total_pages(); $i++) { if ($i == $page) { echo "<li><span class=\"selected\">{$i}</span></li>"; } else { echo "<li><a href=\"cheack_my_feedbacks.php?page={$i}\">{$i}</a></li>"; } } if ($pagination->has_next_page()) { echo "<li class='disabled'> <a href=\"cheack_my_feedbacks.php?page="; echo $pagination->next_page();
<button type="submit" name="action" value="mark_as_read" class="btn btn-blue btn-icon icon-left"> Mark as read <i class="entypo-check"></i> </button> </th> <th colspan="4"> <div class="mail-pagination" colspan="2"> <strong><?php echo $pagination->total_count > 0 ? 1 + ($page - 1) * $pagination->per_page : 0; ?> - <?php if ($page < $pagination->total_pages()) { echo 1 + ($page - 1) * $pagination->per_page + ($pagination->per_page - 1); } else { echo $pagination->total_count; } ?> </strong> <span>of <?php echo $pagination->total_count; ?> </span> <div class="btn-group"> <?php if ($pagination->total_pages() > 1) { if ($pagination->has_prev_page()) {
<?php if ($_SESSION['role'] != "moderator" && $_SESSION['role'] != "student") { echo "<td><a href=\"edit_request.php?id={$request->id}\"><i class=\"small circular inverted orange edit icon\"></i></a></td>\t\n\t\t\t<td><a href=\"delete_request.php?id={$request->id}\" onclick=\"return confirm('Are you sure?');\"><i class=\"small circular inverted red remove icon\"></i></a></td>\n\t\t\t\n\t\t\t"; } ?> </tr> <?php } ?> </table> <?php $prev = $pagination->previous_page(); $next = $pagination->next_page(); $lastpage = $pagination->total_pages(); $LastPagem1 = $lastpage - 1; $paginate = ''; if ($lastpage > 1) { $paginate .= "<ul class='pagination'>"; // Previous if ($pagination->has_previous_page()) { $paginate .= "<li><a href='list_requests.php?page={$prev}'>« Previous</a></li>"; } // Pages if ($lastpage < 7 + $stages * 2) { for ($counter = 1; $counter <= $lastpage; $counter++) { if ($counter == $page) { $paginate .= "<li class='active'><a href='list_requests.php?page={$counter}'>{$counter}</a></li>"; } else { $paginate .= "<li><a href='list_requests.php?page={$counter}'>{$counter}</a><li>";
<?php require_once $_SERVER["DOCUMENT_ROOT"] . "/src/init.php"; $pageTitle = "Admin Control Panel"; $session->adminLock(); $admin = new Admin(); $users = $admin->getAllUsers(); $count = count($users); $rpp = 6; $cp = isset($_GET['cp']) ? $_GET['cp'] : 1; $pag = new Pagination($count, $cp, $rpp); if ($cp > $pag->total_pages() || $cp <= 0) { Redirect::redirectTo('self'); } $offset = $pag->offset(); $users = $admin->getAllUsers($rpp, $offset); $sec = "users"; require ROOT_PATH . 'inc/head.php'; ?> <body> <div class="main"> <div class="ui container section"> <div class="wrapper"> <h2>Users list</h2> <h3 style="margin-top:0px"><?php echo $count; ?> total users</h3><hr><br> <table class="ui striped single line table" style="width:90%"> <thead> <tr>
<input type="hidden" readonly name"review_status" id="review_status" value="<?php echo $ques_status[$id]; ?> " /> <input type="hidden" readonly name"review_option" id="review_option" value="<?php echo $ques_options[$id]; ?> " /> <?php } ?> </table> <div id="pagination" style="clear: both;"> <?php if ($pg->total_pages() > 1) { if ($pg->has_previous_page()) { ?> <a href="javascript:void(0)" onClick="call_review('review.php?page=<?php echo $pg->previous_page(); ?> ')"> « Previous</a> <?php } ?> <?php for ($j = 1; $j <= $pg->total_pages(); $j++) { if ($j == $page) { ?> <span class="selected"><?php
?> "> </a> <br><br> <?php } } ?> <div id="pagination" style="clear: both;" > <?php $anotherpagination = new Pagination($page, $per_page, $total_count); if ($anotherpagination->total_pages() > 1) { if ($anotherpagination->has_previous_page()) { echo "<a href =\"allusers.php?page="; echo $anotherpagination->previous_page(); echo "\">« Previous</a> "; } for ($i = 1; $i <= $anotherpagination->total_pages(); $i++) { if ($i == $page) { echo " <span class=\"selected\">{$i}</span> "; } else { echo " <a href=\"allusers.php?page={$i}\">{$i}</a> "; } } if ($anotherpagination->has_next_page()) { echo " <a href =\"allusers.php?page="; echo $anotherpagination->next_page();