ok
Direktori : /proc/self/root/proc/thread-self/root/home/ngwcolle/public_html/mis/admin/ |
Current File : //proc/self/root/proc/thread-self/root/home/ngwcolle/public_html/mis/admin/manage_normal_ticket.php |
<?php include('includes/checklogin.php'); check_login(); ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <meta name="description" content=""> <meta name="author" content=""> <link href="img/logo/logo.png" rel="icon"> <title>Manage Normal Ticket </title> <link href="vendor/fontawesome-free/css/all.min.css" rel="stylesheet" type="text/css"> <link href="vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css"> <link href="css/ruang-admin.min.css" rel="stylesheet"> <link href="vendor/datatables/dataTables.bootstrap4.min.css" rel="stylesheet"> </head> <body id="page-top"> <div id="wrapper"> <!-- Sidebar --> <?php include('includes/sidebar.php');?> <!-- Sidebar --> <div id="content-wrapper" class="d-flex flex-column"> <div id="content"> <!-- TopBar --> <?php include('includes/header.php');?> <!-- Topbar --> <!-- Container Fluid--> <div class="container-fluid" id="container-wrapper"> <div class="d-sm-flex align-items-center justify-content-between mb-4"> <h1 class="h3 mb-0 text-gray-800">Normal Tickets</h1> <ol class="breadcrumb"> <li class="breadcrumb-item"><a href="dashboard.php">Home</a></li> <li class="breadcrumb-item active" aria-current="page">Manage Normal Tickets</li> </ol> </div> <!-- Row --> <div class="row"> <!-- Datatables --> <!-- DataTable with Hover --> <div class="col-lg-12"> <!-- start modal --> <div id="editData5" class="modal fade"> <div class="modal-dialog modal-md"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title">View Ticket details</h5> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <div class="modal-body" id="info_update5"> <?php @include("view_ticket2.php");?> </div> <div class="modal-footer "> <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button> </div> <!-- /.modal-content --> </div> <!-- /.modal-dialog --> </div> <!-- /.modal --> </div> <!-- end modal --> <div class="card mb-4"> <div class="card-header py-3 d-flex flex-row align-items-center justify-content-between"> <h6 class="m-0 font-weight-bold text-primary">Manage Normal Tickets</h6> <div class="card-tools" style="float: right;"> <button type="button" class="btn btn-sm btn-primary" data-toggle="modal" data-target="#normal" ><i class="fas fa-plus" ></i> Add Ticket </button> </div> </div> <div class="table-responsive p-3"> <table class="table align-items-center table-flush table-hover" id="dataTableHover"> <thead class="thead-light"> <tr> <th>NO</th> <th>Ticket ID</th> <th>Generating Ticket Date</th> <th>Action</th> </tr> </thead> <tbody> <?php $sql = "SELECT * from tblticindian order by ID desc"; $query = $dbh -> prepare($sql); $query->execute(); $results=$query->fetchAll(PDO::FETCH_OBJ); $cnt=1; if($query->rowCount() > 0) { foreach($results as $result) { ?> <tr> <td><?php echo $cnt;?></td> <td><?php echo htmlentities($result->TicketID);?></td> <td><?php echo htmlentities(date("d-m-Y", strtotime($result->PostingDate)));?></td> <td> <a href="#" class="edit_data5" id="<?php echo ($result->ID); ?>" title="click to view"><button type="button" class="btn btn-sm btn-primary">View</button></a></td> </tr> <?php $cnt=$cnt+1; } }?> </tbody> </table> </div> </div> </div> </div> <!--Row--> <!-- Modal Logout --> <?php include('includes/modal.php');?> </div> <!---Container Fluid--> </div> <!-- Footer --> <?php include('includes/footer.php');?> <!-- Footer --> </div> </div> <div class="modal fade" id="normal"> <div class="modal-dialog modal-md"> <div class="modal-content"> <div class="modal-header"> <h4 class="modal-title">Register New Ticket</h4> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <div class="modal-body"> <!-- <p>One fine body…</p> --> <?php @include("newticket_normal.php");?> </div> </div> <!-- /.modal-content --> </div> <!-- /.modal-dialog --> </div> <!-- /.modal --> <!-- Scroll to top --> <a class="scroll-to-top rounded" href="#page-top"> <i class="fas fa-angle-up"></i> </a> <script src="vendor/jquery/jquery.min.js"></script> <script src="vendor/bootstrap/js/bootstrap.bundle.min.js"></script> <script src="vendor/jquery-easing/jquery.easing.min.js"></script> <script src="js/ruang-admin.min.js"></script> <!-- Page level plugins --> <script src="vendor/datatables/jquery.dataTables.min.js"></script> <script src="vendor/datatables/dataTables.bootstrap4.min.js"></script> <!-- Page level custom scripts --> <script> $(document).ready(function () { $('#dataTable').DataTable(); // ID From dataTable $('#dataTableHover').DataTable(); // ID From dataTable with Hover }); </script> <script type="text/javascript"> $(document).ready(function(){ $(document).on('click','.edit_data5',function(){ var edit_id5=$(this).attr('id'); $.ajax({ url:"view_ticket2.php", type:"post", data:{edit_id5:edit_id5}, success:function(data){ $("#info_update5").html(data); $("#editData5").modal('show'); } }); }); }); </script> <script> function CallPrint(strid) { var prtContent = document.getElementById("exampl"); var WinPrint = window.open('', '', 'left=0,top=0,width=800,height=900,toolbar=0,scrollbars=0,status=0'); WinPrint.document.write(prtContent.innerHTML); WinPrint.document.close(); WinPrint.focus(); WinPrint.print(); WinPrint.close(); } </script> </body> </html>