} ?> </table><small><center><a id="more_news" value="<?php echo $start; ?> " class="btn btn-default btn-xs"><?php echo lang('last_more'); ?> </a></center></small><?php } } if ($mode == "check_update") { $pm = $_POST['type']; $uid = $_SESSION['helpdesk_user_id']; $lu = $_POST['last_update']; $current_ticket_update = get_last_ticket($pm, $uid); if (strtotime($current_ticket_update) > strtotime($lu)) { echo $current_ticket_update; } if (strtotime($current_ticket_update) <= strtotime($lu)) { echo "no"; } //update $stmt = $dbConnection->prepare('update users set last_time=now() where id=:cid'); $stmt->execute(array(':cid' => $uid)); } if ($mode == "list_ticket_update") { $pm = $_POST['type']; $uid = $_SESSION['helpdesk_user_id']; $lu = $_POST['last_update']; $nlu = $_POST['new_last_update'];
<input type="hidden" id="page_type" value="<?php echo $r; ?> "> <input type="hidden" id="curent_page" value="1"> <input type="hidden" id="cur_page" value="1"> <input type="hidden" id="total_pages" value="<?php echo get_total_pages($_POST['menu'], $user_id); ?> "> <input type="hidden" id="last_ticket" value="<?php echo get_last_ticket($_POST['menu'], $user_id); ?> "> <?php } } ?>