'; require_once($yaptc_inc . "header.inc.php"); if (getSessionStatus() == false): killSession(); else: ?> HashPassword($_POST['password']); setUserInfo($yaptc_db, $session_user["0"]["userid"], $_POST['firstname'], $_POST['lastname'], $_POST['email'], $session_user["0"]["usertypeid"], $password); header('Location: ' . $_SERVER['PHP_SELF']); endif; endif; // Set up pagination $page_num = 1; if(!empty($_GET['pnum'])): $page_num = filter_input(INPUT_GET, 'pnum', FILTER_VALIDATE_INT); if(false === $page_num): $page_num = 1; endif; endif; $offset = ($page_num - 1) * $yaptc_rowsperpage; $row_count = count(listPunches($yaptc_db, $session_user["0"]["userid"])); $page_count = 0; if (0 === $row_count): else: $page_count = (int)ceil($row_count / $yaptc_rowsperpage); if($page_num > $page_count): $page_num = 1; endif; endif; ?>

" readonly />
" readonly />
" readonly />
" />
" />
" />

'; for ($i = 1; $i <= $page_count; $i++): echo '
  • ' . $i . '
  • '; endfor; echo ''; ?>