Warning: Cannot modify header information - headers already sent by (output started at /home/destefa1/public_html/nf/function.php:1) in /home/destefa1/public_html/nf/function.php on line 215

Warning: Cannot modify header information - headers already sent by (output started at /home/destefa1/public_html/nf/function.php:1) in /home/destefa1/public_html/nf/function.php on line 216

Warning: Cannot modify header information - headers already sent by (output started at /home/destefa1/public_html/nf/function.php:1) in /home/destefa1/public_html/nf/function.php on line 217

Warning: Cannot modify header information - headers already sent by (output started at /home/destefa1/public_html/nf/function.php:1) in /home/destefa1/public_html/nf/function.php on line 218

Warning: Cannot modify header information - headers already sent by (output started at /home/destefa1/public_html/nf/function.php:1) in /home/destefa1/public_html/nf/function.php on line 219

Warning: Cannot modify header information - headers already sent by (output started at /home/destefa1/public_html/nf/function.php:1) in /home/destefa1/public_html/nf/function.php on line 220
Gagal: Mohon mengisi smua input .'; } else if (strlen($post_subject) > 200) { $msg_type = "error"; $msg_content = 'Gagal: subject max 200 .'; } else if (strlen($post_message) > 500) { $msg_type = "error"; $msg_content = 'Gagal: Pesan max 500 .'; } else { $insert_ticket = mysqli_query($db, "INSERT INTO tickets (user, subject, message, datetime, last_update, status) VALUES ('$sess_username', '$post_subject', '$post_message', '$date $time', '$date $time', 'Pending')"); if ($insert_ticket == TRUE) { $msg_type = "success"; $msg_content = 'Berhasil: Ticket Berhasil Dibuat .'; } else { $msg_type = "error"; $msg_content = "Gagal: System error."; } } } ?>

Buat Tiket

Riwayat Tiket

Subject Status Last Update
Riwayat tidak ditemukan
    Total: ".$total_records.""; if($total_records > 0) { $total_pages = ceil($total_records/$records_per_page); $current_page = 1; if(isset($_GET["page_no"])) { $current_page = $_GET["page_no"]; if ($current_page < 1) { $current_page = 1; } } if($current_page > 1) { $previous = $current_page-1; echo "
  • ← First
  • "; echo "
  • Previous
  • "; } // limit page $limit_page = $current_page+3; $limit_show_link = $total_pages-$limit_page; if ($limit_show_link < 0) { $limit_show_link2 = $limit_show_link*2; $limit_link = $limit_show_link - $limit_show_link2; $limit_link = 3 - $limit_link; } else { $limit_link = 3; } $limit_page = $current_page+$limit_link; // end limit page // start page if ($current_page == 1) { $start_page = 1; } else if ($current_page > 1) { if ($current_page < 4) { $min_page = $current_page-1; } else { $min_page = 3; } $start_page = $current_page-$min_page; } else { $start_page = $current_page; } // end start page for($i=$start_page; $i<=$limit_page; $i++) { if($i==$current_page) { echo "
  • ".$i."
  • "; } else { echo "
  • ".$i."
  • "; } } if($current_page!=$total_pages) { $next = $current_page+1; echo "
  • Next
  • "; echo "
  • Last →
  • "; } } // end paging link ?>