0byt3m1n1
Path:
/
home
/
k74ns2xygros
/
www
/
globetech
/
cms
/
leave
/
[
Home
]
File: index.php
<?php session_start(); error_reporting(0); include "../assets/config.php"; $user = new User(); $admin_cid = $_SESSION['admin_cid']; $companys = $user->getcompany(); $companys_account = $user->getcompany_account(); include '../assets/head.php'; ?> <html> <title>Leave Approval For Supervisor</title> <?php include 'leaves_nav.php'; ?> <!--left nav end--> <div class="right_col" role="main" style="padding-top:10px;"> <div class="row"> <div class="col-md-12 col-xs-12"> <?php if ($_SESSION['action'] != NULL && $_SESSION['status'] != NULL) { ?> <div class="alert alert-<?php if ($_SESSION['status'] == 'success') { ?>success<?php } else if ($_SESSION['status'] == 'error') { ?>error<?php } else { ?>warning<?php } ?> alert-dismissable alert-auto-hide"><?php if ($_SESSION['status'] == 'success') { ?><i class="icon fa fa-check"></i><?php } else { ?><i class="icon fa fa-exclamation-triangle"></i><?php } ?> <?php echo $_SESSION['action']; $_SESSION['action'] = NULL; ?></div><?php } ?> <div class="x_panel" style="text-transform: uppercase;"> <div class="x_title"> <h2>Leave Approval For Supervisor</h2> <div class="clearfix"></div> </div> <div class="x_content role"> <table id="datatable" class="table table-bordered table-striped bulk_action result_table"> <thead> <tr> <th>Name</th> <!--<th>Mobile</th>--> <th>Category</th> <!--<th>Work Type</th>--> <th>Working Place</th> <th>Apply Date</th> <th>Date From</th> <th>Date To</th> <th>Days</th> <th>Leave Type</th> <th>Priority</th> <th>Status</th> <th width="2%" class="text-center">#</th> </tr> </thead> </table> </div> </div> </div> </div> </div> </body> <script src="../vendors/jquery/dist/jquery.min.js"></script> <!-- Bootstrap --> <script src="../vendors/bootstrap/dist/js/bootstrap.min.js"></script> <script src="../vendors/datatables.net/js/jquery.dataTables.min.js"></script> <script src="../vendors/datatables.net-bs/js/dataTables.bootstrap.min.js"></script> <script src="../vendors/datatables.net-buttons/js/dataTables.buttons.min.js"></script> <script src="../vendors/datatables.net-buttons-bs/js/buttons.bootstrap.min.js"></script> <script src="../vendors/datatables.net-buttons/js/buttons.flash.min.js"></script> <script src="../vendors/datatables.net-buttons/js/buttons.html5.min.js"></script> <script src="../vendors/datatables.net-buttons/js/buttons.print.min.js"></script> <script src="../vendors/jszip/dist/jszip.min.js"></script> <script src="../vendors/pdfmake/build/pdfmake.min.js"></script> <script src="../vendors/pdfmake/build/vfs_fonts.js"></script> <script type="text/javascript"> $(document).ready(function () { var table = $('#datatable').DataTable({ "language": {"infoFiltered": ""}, "aaSorting": [], "stateSave": true, "processing": true, "bAutoWidth": false, "order": [[9, "desc"]], "serverSide": true, "ajax": "load_leave_request.php", rowReorder: {selector: 'td:nth-child(2)'}, dom: "Bfrtip", buttons: [ { extend: 'copyHtml5', text: '<i class="fa fa-files-o"></i>', titleAttr: 'Copy', title: $('.download_label').html(), exportOptions: {columns: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]} }, { extend: 'excelHtml5', text: '<i class="fa fa-file-excel-o"></i>', titleAttr: 'Excel', title: $('.download_label').html(), exportOptions: {columns: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]} }, { extend: 'print', text: '<i class="fa fa-print"></i>', titleAttr: 'Print', title: $('.download_label').html(), customize: function (win) { $(win.document.body).find('h1').css('font-size', '15pt'); $(win.document.body).find('h1').css('text-align', 'center'); $(win.document.body) .css('font-size', '10pt'); $(win.document.body).find('table') .addClass('compact') .css('font-size', 'inherit'); }, exportOptions: {columns: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]} }, ], createdRow: function (row, data, index) { $(row).children(':nth-child(10)').addClass('text-right'); } }); }); $(".table_link").on("click", function () { $('#datatable').DataTable().state.clear(); }); </script> <script type="text/javascript">jQuery(document).ready(function () { jQuery('.alert-auto-hide').fadeTo(7500, 500, function () { $(this).slideUp('slow', function () { $(this).remove(); }); }); });</script> </html>