File manager - Edit - /home/autoph/public_html/connectv1/request_approval.php
Back
<?php include('cfg/db.php'); // include('api/controllers/utility.php'); if(!isset($_SESSION['user']['id'])){ header('location:signin.php'); } // $utility = new Utility(); $granted_company_ids = $utility_class->isNotEmpty($_SESSION['user']['company_permissions_implode']) ? $_SESSION['user']['company_permissions_implode'] : '-1' ; if(!(isset($global_action_permissions['6']['37']) && in_array("1", $global_action_permissions['6']['37']))){ header('location:signin.php'); } if(isset($_GET['q'])){ $json_params = $db->base64_url_decode( $db -> escape(trim($_GET['q'])) ); $request_params = json_decode($json_params,true); $params_request_id = $request_params['request_id']; $params_employee_id = $request_params['employee_id']; $params_generate_by_employee_id = $request_params['generate_by_employee_id']; $current_user_employee_id = $_SESSION['user']['id']; $q_count = $db -> select("SELECT count(id) FROM request_status WHERE `request_id` = '$params_request_id' AND `employee_id` = '$current_user_employee_id'"); if($q_count == '0'){ header('location:request_approval.php'); } } ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title><?php echo $variable['site_name']; ?> | SMS Services for Approval</title> <!-- Google Font: Source Sans Pro --> <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700&display=fallback"> <!-- Font Awesome --> <link rel="stylesheet" href="plugins/fontawesome-free/css/all.min.css"> <!-- Theme style --> <link rel="stylesheet" href="dist/css/adminlte.min.css"> <!-- overlayScrollbars --> <link rel="stylesheet" href="plugins/overlayScrollbars/css/OverlayScrollbars.min.css"> <link href="plugins/bootstrap-table/css/bootstrap-table.min.css" rel="stylesheet"> <!-- daterange picker --> <link rel="stylesheet" href="plugins/daterangepicker/daterangepicker.css"> <!-- iCheck for checkboxes and radio inputs --> <link rel="stylesheet" href="plugins/icheck-bootstrap/icheck-bootstrap.min.css"> <!-- Bootstrap Color Picker --> <link rel="stylesheet" href="plugins/bootstrap-colorpicker/css/bootstrap-colorpicker.min.css"> <!-- Tempusdominus Bootstrap 4 --> <link rel="stylesheet" href="plugins/tempusdominus-bootstrap-4/css/tempusdominus-bootstrap-4.min.css"> <!-- Select2 --> <link rel="stylesheet" href="plugins/select2/css/select2.min.css"> <link rel="stylesheet" href="plugins/select2-bootstrap4-theme/select2-bootstrap4.min.css"> <!-- Bootstrap4 Duallistbox --> <link rel="stylesheet" href="plugins/bootstrap4-duallistbox/bootstrap-duallistbox.min.css"> <!-- BS Stepper --> <link rel="stylesheet" href="plugins/bs-stepper/css/bs-stepper.min.css"> <!-- dropzonejs --> <link rel="stylesheet" href="plugins/dropzone/min/dropzone.min.css"> <!-- Theme style --> <link rel="stylesheet" href="dist/css/adminlte.min.css"> <!-- overlayScrollbars --> <link rel="stylesheet" href="plugins/overlayScrollbars/css/OverlayScrollbars.min.css"> <!-- Toastr --> <link rel="stylesheet" href="plugins/toastr/toastr.min.css"> <link href="dist/img/<?php echo $variable['logo']; ?>" rel="icon" /> <style> .form-div { margin-top: 100px; border: 1px solid #e0e0e0; } #profileDisplay { display: block; height: 160px; width: 160px; margin: 0px auto; border-radius: 50%; } .img-placeholder { width: 160px; color: white; height: 160px; background: black; opacity: .7; border-radius: 50%; z-index: 2; position: absolute; left: 50%; transform: translateX(-50%); display: none; } .img-placeholder h4 { margin-top: 40%; color: white; } .img-div:hover .img-placeholder { display: block; cursor: pointer; } table { cursor: pointer; } table th { cursor: default; } .input-group-append { display: none; } #customer-request select { -webkit-appearance: none; -moz-appearance: none; text-indent: 1px; text-overflow: ''; } #approver-list { pointer-events: none; } #request-date, #request-status, #control-number, #request-type { border-width: 0px; border: none; /* height:20px; */ } #request-status, #request-type { font-weight: bold; } .required-symbol { display: none; } fieldset { margin-left: 2px; margin-right: 2px; padding-top: 0.35em; padding-bottom: 0.625em; padding-left: 0.75em; padding-right: 0.75em; border: 1px solid gray; border-radius: 3%; } legend { font-size: 100%; font-weight: bold; color: blue; } </style> </head> <body class="hold-transition sidebar-mini text-sm layout-fixed"> <div class="wrapper"> <!-- Preloader --> <div class="preloader flex-column justify-content-center align-items-center" hidden> <img class="animation__shake" src="dist/img/<?php echo $variable['logo']; ?>" alt="<?php echo $variable['logo']; ?>" height="60" width="60"> </div> <!-- INCLUDE HEADER --> <?php include('include/header.php'); ?> <?php include('include/sidebar.php'); ?> <div class="content-wrapper"> <section class="content-header"> <!-- <div class="container-fluid"> <div class="row mb-0"> <div class="col-sm-6"> </div> <div class="col-sm-6"> <ol class="breadcrumb float-sm-right"> <li class="breadcrumb-item"><a href="home.php">Home</a></li> <li class="breadcrumb-item active">SMS Services for Approval</li> </ol> </div> </div> </div> --> </section> <section id="customer-table" class="content"> <div class="container-fluid"> <div class="card card-primary" id="request-list-main" <?php echo (isset($_GET['q'])) ? "style='display:none;'" : ""; ?>> <div class="card-header"> <h3 class="card-title"><span id="title-page">For Approval</span></h3> </div> <!-- INSERT TABLE HERE --> <div class="card"> <div class="card-body"> <div class="form-group row my-1"> <div class="mr-1"> <span class=" align-middle col-form-label font-weight-bold">Filter</span> </div> <div class="col-sm-2"> <select name="filter-data-request" id="filter-data-request" class="form-control form-control-sm" style="width: 100%;"> <option value="-1">All Status</option> <option value="0">Pending</option> <option value="1">Approved</option> <option value="2">Declined</option> </select> </div> </div> <div id="request-list"> <table id="request-table" class="table table-sm" data-toggle="table" data-url="" data-pagination="true" data-search="true" data-show-refresh="false" data-show-toggle="false" data-show-columns="false" data-show-columns-toggle-all="false" data-show-export="false" data-side-pagination="server" data-page-list="[10, 25, 50, 100, all]" data-minimum-count-columns="2" data-show-pagination-switch="false" data-pagination="true" data-query-params="queryParams" data-click-to-select="true"> <thead> <tr> <th data-field="date">Request Date</th> <th data-field="requestor">Requestor</th> <th data-field="control_number">Control Number</th> <th data-field="description">Description</th> <th data-field="status">Status</th> </tr> </thead> </table> </div> </div> </div> </div> <!-- Start Customer Report Information --> <div class="card card-primary" id="customer-request" style="display: none;"> <div class="card-header"> <h3 class="card-title"><button class="btn btn-tool" title="Go to Customer employee list" type="button" onclick="back()"><i class="fas fa-arrow-alt-circle-left fa-2x"></i></button> <span>Request Information</span></h3> </div><!-- /.card-header --> <div class="overlay" name="loader" style="display:;"> <div class="fas fa-2x fa-sync-alt fa-spin "> </div> <strong><span class="ml-2" id="loading-message"> Fetching data, please wait...</span></strong> </div> <div class="card-body"> <?php // echo $request_id; ?> <div class="row"> <div class="col-sm-2 mt-0 mb-0"> <label class="mt-0 mb-0" style="color:blue;">Request By:</label></div> <div class="col-sm-6"><span id="request-by-user"></span></div> </div> <div class="row"> <div class="col-sm-2 mt-0 mb-0"> <label class="mt-0 mb-0" style="color:blue;">Control No.:</label></div> <div class="col-sm-6"><span id="control-number"></span></div> </div> <div class="row"> <div class="col-sm-2"> <label class="mt-0 mb-0" style="color:blue;">Request Date & Time:</label></div> <div class="col-sm-6"><span id="request-date"></span></div> </div> <div class="row mb-3"> </div> <?php include('include/components/sms_service/generate_request.php'); ?> <fieldset class="card card-outline card-primary"> <legend class="w-auto px-2">RECORD HITS</legend> <div id="request-review-list"> <table id="request-review-table" class="table table-sm" data-toggle="table" data-url="" data-pagination="true" data-search="false" data-show-refresh="false" data-show-toggle="false" data-show-columns="false" data-show-columns-toggle-all="false" data-show-export="false" data-side-pagination="server" data-page-list="[10, 25, 50, 100]" data-minimum-count-columns="2" data-show-pagination-switch="false" data-pagination="true" data-query-params="queryParamsRequestReviewTable" data-click-to-select="true"> <thead> <tr> <th data-field="cust_name">Customer Name</th> <th data-field="customer_company_dealer">Customer Company/Dealer</th> <th data-field="mobile_number">Mobile Number</th> </tr> </thead> </table> </div> </fieldset> <!-- <div class="card-body col-12 pl-1 pr-1 pt-1"> <div class="card card-outline card-primary"> <div class="card-header pt-1 pb-1"> <h3 class="card-title"><strong>Requested Parameters</strong></h3> <div class="card-tools"> <button type="button" class="btn btn-tool btn-xs" style="color: grey;" data-card-widget="collapse" title="Minimize/maximize"> <i class="fas fa-minus"></i> </button> </div> </div> <div class="ml-2 mr-2 mb-2"> <div id="request-review-list"> <table id="request-review-table" class="table table-sm" data-toggle="table" data-url="" data-pagination="true" data-search="false" data-show-refresh="false" data-show-toggle="false" data-show-columns="false" data-show-columns-toggle-all="false" data-show-export="false" data-side-pagination="server" data-page-list="[10, 25, 50, 100, all]" data-minimum-count-columns="2" data-show-pagination-switch="false" data-pagination="true" data-query-params="queryParamsRequestReviewTable" data-click-to-select="true"> <thead> <tr> <th data-field="cust_name">Customer Name</th> <th data-field="customer_company_dealer">Customer Company/Dealer</th> <th data-field="mobile_number">Mobile Number</th> </tr> </thead> </table> </div> </div> </div> </div> --> <div class="mt-3"> <div class="card"> <div class="card-header"> <h3 class="card-title">Approver</h3> </div> <!-- /.card-header --> <div class="card-body p-0"> <table class="table table-bordered table-hover table-sm" id="approver-list"> <thead> <tr> <th style="width: 20%">Name</th> <th style="width: 5%">Status</th> <th style="width: 15%">Date</th> <th style="width: 60%">Notes</th> </tr> </thead> <tbody> </tbody> </table> </div> </div> <!-- /.card-body --> </div> <div class="row" id="note-area"> <hr> <div class="col"> <div class="form-group my-0 mx-0"> <div class="form-group dropdown-input mb-1"> <label class="dropdown mx-0 my-0">Add Notes</label> <textarea row="2" class="form-control" rows=2 placeholder="" id="request-note" name="request-note"></textarea> </div> </div> </div> </div> <div class="row mt-3"> <div class="col-sm-6 mb-3"> <input type="hidden" name="request-id" id="request-id" readonly /> <input type="hidden" name="employee-id" id="employee-id" readonly /> </div> <div class="col-sm-6"> <div class="row float-right"> <!-- <div class="col-sm-4"> --> <button type="submit" name="decline" id="decline" class="btn btn-danger btn-sm mr-1"> <i class="fas fa-times"></i> Decline </button> <!-- </div> --> <!-- <div class="col-sm-4"> --> <button type="submit" name="suggest" id="suggest" class="btn btn-warning ml-1"> <i class="fas fa-edit"></i> Suggest Edits </button> <!-- </div> --> <!-- <div class="col-sm-4"> --> <button type="submit" name="approve" id="approve" class="btn btn-success ml-1"> <i class="fas fa-check"></i> Approve </button> <!-- </div> --> </div> </div> </div> </div> <!-- ./card-body --> </div> <!-- ./card-primary --> </div><!-- /.container-fluid --> </section> </div> <!--/.content wrapper--> <?php include('include/footer.php'); ?> <aside class="control-sidebar control-sidebar-dark"> </aside> </div> <!-- jQuery --> <script src="plugins/jquery/jquery.min.js"></script> <!-- overlayScrollbars --> <script src="plugins/overlayScrollbars/js/jquery.overlayScrollbars.min.js"></script> <!-- Bootstrap 4 --> <script src="plugins/bootstrap/js/bootstrap.bundle.min.js"></script> <!-- Select2 --> <script src="plugins/select2/js/select2.full.min.js"></script> <!-- Bootstrap4 Duallistbox --> <script src="plugins/bootstrap4-duallistbox/jquery.bootstrap-duallistbox.min.js"></script> <!-- InputMask --> <script src="plugins/moment/moment.min.js"></script> <script src="plugins/inputmask/jquery.inputmask.min.js"></script> <!-- date-range-picker --> <script src="plugins/daterangepicker/daterangepicker.js"></script> <!-- bootstrap color picker --> <script src="plugins/bootstrap-colorpicker/js/bootstrap-colorpicker.min.js"></script> <!-- Tempusdominus Bootstrap 4 --> <script src="plugins/tempusdominus-bootstrap-4/js/tempusdominus-bootstrap-4.min.js"></script> <!-- Bootstrap Switch --> <script src="plugins/bootstrap-switch/js/bootstrap-switch.min.js"></script> <!-- BS-Stepper --> <script src="plugins/bs-stepper/js/bs-stepper.min.js"></script> <!-- dropzonejs --> <script src="plugins/dropzone/min/dropzone.min.js"></script> <!-- bs-custom-file-input --> <script src="plugins/bs-custom-file-input/bs-custom-file-input.min.js"></script> <!-- AdminLTE App --> <script src="dist/js/adminlte.min.js"></script> <!-- jquery-validation --> <script src="plugins/jquery-validation/jquery.validate.min.js"></script> <script src="plugins/jquery-validation/additional-methods.min.js"></script> <!-- Navigation Highlight --> <script src="dist/js/main.js"></script> <!-- Page specific script --> <!-- Toastr --> <script src="plugins/toastr/toastr.min.js"></script> <script src="plugins/bootstrap-table/js/tableExport.min.js"></script> <script src="plugins/bootstrap-table/js/bootstrap-table.min.js"></script> <script src="plugins/bootstrap-table/js/bootstrap-table-en-US.js"></script> <script src="plugins/bootstrap-table/js/bootstrap-table-export.min.js"></script> <script> <?php include('dist/js/text_blast/request_approval.js'); ?> </script> </body> </html>
| ver. 1.4 |
.
| PHP 7.3.33 | Generation time: 0 |
proxy
|
phpinfo
|
Settings