Пример #1
0
            $gettickets = $ticket->get_user_tickets($_SESSION['uid'], $page, 'DESC', 'edittstamp', 15, NULL, NULL, $_GET['status']);
        } else {
            $gettickets = $ticket->get_all_tickets($page, 'DESC', 'edittstamp', 15, NULL, NULL, $_GET['status']);
        }
    } else {
        $error = "Invalid status filter.";
    }
} elseif ($admin) {
    $gettickets = $ticket->get_all_tickets($page);
} else {
    $gettickets = $ticket->get_user_tickets($_SESSION['uid'], $page);
}
if (isset($gettickets) && !$gettickets) {
    $error = $ticket->get_error();
} elseif (isset($gettickets) && $gettickets) {
    $totalrows = $ticket->get_total_rows();
}
?>

<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<title>Ticket System - View Tickets</title>
	<link rel="stylesheet" href="styles/stylesheet.css" type="text/css" media="screen">
	<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700,800|Open+Sans+Condensed:300,700' rel='stylesheet' type='text/css'>
	<link rel="stylesheet" href="http://code.jquery.com/ui/1.8.20/themes/base/jquery-ui.css" type="text/css" media="all" />
	<script src="http://code.jquery.com/jquery-latest.js"></script>
	<script src="http://code.jquery.com/ui/1.8.20/jquery-ui.min.js" type="text/javascript"></script>
	<script type="text/javascript">
		$(document).ready(function() {