?>
"> 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 "\">&laquo; 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();
        echo "\">Next &raquo;</a></li> ";
        }
    }
    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);
Beispiel #3
0
    	echo '">&larr; Previous</a>';
    	echo '</li>';
    }
    
    if ($pagination->has_next_page()){
    	
    	echo '<li class="next">';
    	echo '<a href="list_photos.php?page=';
    	echo $pagination->next_page();
    	echo '">Next &rarr;</a>';
    	echo '</li>';
    }
    echo '</ul>';
    */
    echo '<ul class="pagination pagination">';
    echo $pagination->has_previous_page() ? '<li><a href="list_photos.php?page=' . $pagination->previous_page() . '">&laquo;</a></li>' : '<li class="disabled"><a href="">&laquo;</a></li>';
    for ($i = 1; $i <= $pagination->total_pages(); $i++) {
        echo '<li';
        echo $i == $pagination->current_page ? ' class="active"' : '';
        echo '>';
        echo '<a href="list_photos.php?page=';
        echo $i;
        echo '">' . $i . '</a>';
        echo '</li>';
    }
    echo $pagination->has_next_page() ? '<li><a href="list_photos.php?page=' . $pagination->next_page() . '">&raquo;</a></li>' : '<li class="disabled"><a href="">&raquo;</a></li>';
    echo '</ul>';
}
?>
		</div>
		
Beispiel #4
0
    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();
        ?>
')"> &laquo; Previous</a> 
   		<?php 
    }
    ?>

		<?php 
    for ($j = 1; $j <= $pg->total_pages(); $j++) {
        if ($j == $page) {
            ?>
			<span class="selected"><?php 
            echo $j;
Beispiel #5
0
">
			</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 "\">&laquo; 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();
        echo "\">Next &raquo;</a> ";