File manager - Edit - /home/autoph/public_html/data03252025consolidation/resources/views/sms_service/auto_sms_service.php
Back
<?php include('cfg/db.php'); // include('app/security/security.php'); if(!isset($_SESSION['user']['id'])){ header('location:signin.php'); } if(!(isset($global_action_permissions['6']['29']) && in_array("1", $global_action_permissions['6']['29']))){ header('location:signin.php'); } $mobile_view_unmasking = 0; if((isset($global_action_permissions['6']['29']) && in_array("2", $global_action_permissions['6']['29']))){ $mobile_view_unmasking = 1; } $now = $db->sql_query("SELECT NOW() AS today"); $today = ""; foreach($now AS $data){ $today = substr($data['today'], 0, 10); } function conv($today){// 2021-08-18 $val = $today; return substr($today, 5, 2) . "/" . substr($today, 8, 2) . "/" . substr($today, 0, 4); // 08/18/2021 } $text_balance = "API not loaded"; // $url = 'https://www.itexmo.com/php_api/apicode_info.php?apicode=PR-AUTOH172111_IE74I'; // $response = (file_get_contents($url)); //Converting in json string // $arr = array(); // $arr = json_decode($response, true); // $text_balance = $arr['Result']['MessagesLeft']; ?> <!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</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="dist/img/<?php echo $variable['logo']; ?>" rel="icon" /> <!-- 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"> <!-- Toastr --> <link rel="stylesheet" href="plugins/toastr/toastr.min.css"> <!-- iCheck for checkboxes and radio inputs --> <link rel="stylesheet" href="plugins/icheck-bootstrap/icheck-bootstrap.min.css"> <!-- Bootstrap Table --> <link href="plugins/bootstrap-table/css/bootstrap-table.min.css" rel="stylesheet"> <style> .color-palette { height: 35px; line-height: 35px; text-align: right; padding-right: .75rem; } .color-palette.disabled { text-align: center; padding-right: 0; display: block; } .color-palette-set { margin-bottom: 15px; } .color-palette span { display: none; font-size: 12px; } .color-palette:hover span { display: block; } .color-palette.disabled span { display: block; text-align: left; padding-left: .75rem; } .color-palette-box h4 { position: absolute; left: 1.25rem; margin-top: .75rem; color: rgba(255, 255, 255, 0.8); font-size: 12px; display: block; z-index: 7; } #tool{ text-align: left; } table{ cursor: pointer; } </style> </head> <body class="hold-transition sidebar-mini text-sm layout-fixed"> <div class="wrapper"> <?php include('include/header.php'); ?> <?php include('include/sidebar.php'); ?> <!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <section class="content-header"> <div class="container-fluid"> <div class="row mb-2"> </div> </div> </section> <section class="content"> <div class="container-fluid"> <div class="row"> <div class="col-md"> <div class="card card-primary"> <div class="card-header"> <h3 class="card-title">Automated SMS Services</h3> </div> <div class="card-body"> <div class="row mb-2"> <div class="col-sm-6"> <div class="col-12 text-left"> <div class="row my-1"> <select name="message-type" id="message-type" class="form-control form-control-sm report-field" style="width: 100%;"> <option value="1" selected>Birthday Greetings</option> <option value="2">FNI Date Reminder</option> <option value="3">Newly Imported Customer (Thank you message)</option> <option value="4">PDC Reminder</option> </select> </div> </div> </div> <div class="col-sm-6 text-right"> <div id="div-filter-date" class="col-sm-6 mb-1 float-right" style="height: 28px;"> <div class="edit-customer input-group date" data-target-input="nearest"> <div id="previous-date" class="edit-customer input-group-append mr-2" title="Previous date"> <div class="input-group-text"><i class="fas fa-chevron-left"></i></div> </div> <input name="filter-date" id="filter-date" placeholder="Filter Date" data-inputmask-alias="datetime" data-inputmask-inputformat="mm/dd/yyyy" data-mask type="text" class="big-letter edit-customer lbl-forms-sm form-control form-control-sm datetimepicker-input" data-target="#filter-date"/> <div id="cal-div" class="edit-customer input-group-append" data-target="#filter-date" data-toggle="datetimepicker"> <div id="calendar" class="input-group-text"><i class="fa fa-calendar"></i></div> </div> <div id="next-date" class="edit-customer input-group-append ml-2" title="Next date"> <div class="input-group-text"><i class="fas fa-chevron-right"></i></div> </div> </div> </div> </div> </div> <div class="row float-right mr-2 icheck-primary"> <input type="checkbox" id="chkMaskedMain" checked <?php if($mobile_view_unmasking == 0){ echo "disabled"; } else { echo ""; } ?> > <label for="chkMaskedMain">Mask mobile number</label> </div> <br> <hr> <div id="details-div" class="color-palette-box"> <div class="row"> <div id="sms-total" class="col-12 col-sm-6 col-md-3" style="cursor: pointer;"> <div class="info-box mb-3"> <span class="info-box-icon bg-primary elevation-1"><i class="fas fa-clipboard-list"></i></span> <div class="info-box-content"> <span class="info-box-text" id="lbl-total">TOTAL / ALL</span> <span class="info-box-number" id="span-total"></span> </div> </div> </div> <div id="sms-pending" class="col-12 col-sm-6 col-md-3" style="cursor: pointer;"> <div class="info-box"> <span class="info-box-icon bg-warning elevation-1"><i class="fas fa-comment-dots"></i></span> <div class="info-box-content"> <span class="info-box-text" id="lbl-pending">ON GOING</span> <span class="info-box-number" id="span-pending"></span> </div> </div> </div> <div id="sms-unsent" class="col-12 col-sm-6 col-md-3" style="cursor: pointer;"> <div class="info-box mb-3"> <span class="info-box-icon bg-danger elevation-1"><i class="fas fa-comment-slash"></i></span> <div class="info-box-content"> <span class="info-box-text" id="lbl-unsent">UNSENT</span> <span class="info-box-number" id="span-unsent"></span> </div> </div> </div> <div class="clearfix hidden-md-up"></div> <div id="sms-sent" class="col-12 col-sm-6 col-md-3" style="cursor: pointer;"> <div class="info-box mb-3"> <span class="info-box-icon bg-success elevation-1"><i class="fas fa-paper-plane"></i></span> <div class="info-box-content"> <span class="info-box-text" id="lbl-sent">SENT</span> <span class="info-box-number" id="span-sent"></span> </div> </div> </div> </div> <div id="celebrant-div" class="table-responsive"> <table id="customer-celebrant-table" class="table table-sm" data-toggle="table" data-url="" data-pagination="true" data-search="true" 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, all]" data-minimum-count-columns="2" data-show-pagination-switch="false" data-pagination="true" data-query-params="queryParamsCelebrantTable" data-click-to-select="false"> <thead> <tr> <th class="main-header-table" data-formatter="" data-field="name">Customer Name</th> <th class="main-header-table" data-formatter="" data-field="number">Customer Mobile</th> <th class="main-header-table" data-formatter="" data-field="company">Company</th> <th class="main-header-table" data-formatter="" data-field="dealer">Dealer</th> <th class="main-header-table" data-formatter="" data-field="birthdate">Birthdate</th> <th class="main-header-table text-center" data-formatter="" data-field="status">Status</th> </tr> </thead> </table> </div> <div id="insurance-reminder-div" class="table-responsive" hidden> <table id="insurance-reminder-table" class="table table-sm" data-toggle="table" data-url="" data-pagination="true" data-search="true" 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, all]" data-minimum-count-columns="2" data-show-pagination-switch="false" data-pagination="true" data-query-params="queryParamsInsuranceReminderTable" data-click-to-select="false"> <thead> <tr> <th class="main-header-table" data-formatter="" data-field="plate_cs_number">Plate/CS No</th> <th class="main-header-table" data-formatter="" data-field="policy_number">Policy Number</th> <th class="main-header-table" data-formatter="" data-field="customer_fullname">Customer Name</th> <th class="main-header-table" data-formatter="" data-field="mobile_number">Mobile #</th> <th class="main-header-table" data-formatter="" data-field="company_dealer">Company/Dealer</th> <th class="main-header-table" data-formatter="" data-field="reminder_type">Type</th> <th class="main-header-table text-center" data-formatter="" data-field="status">Status</th> </tr> </thead> </table> </div> <div id="newly-imported-div" class="table-responsive" hidden> <table id="customer-newly-imported-table" class="table table-sm" data-toggle="table" data-url="" data-pagination="true" data-search="true" 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, all]" data-minimum-count-columns="2" data-show-pagination-switch="false" data-pagination="true" data-query-params="queryParamsNewlyImportedTable" data-click-to-select="false"> <thead> <tr> <th class="main-header-table" data-formatter="" data-field="name">Customer Name</th> <th class="main-header-table" data-formatter="" data-field="number">Customer Mobile</th> <th class="main-header-table" data-formatter="" data-field="company">Company</th> <th class="main-header-table" data-formatter="" data-field="dealer">Dealer</th> <th class="main-header-table" data-formatter="" data-field="released_date">Released Date</th> <th class="main-header-table" data-formatter="" data-field="time_uploaded">Time Uploaded</th> <th class="main-header-table" data-formatter="" data-field="uploaded_by">Uploaded By</th> <th class="main-header-table text-center" data-formatter="" data-field="status">Status</th> </tr> </thead> </table> </div> <div id="pdc-reminder-div" class="table-responsive" hidden> <table id="pdc-reminder-table" class="table table-sm" data-toggle="table" data-url="" data-pagination="true" data-search="true" 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, all]" data-minimum-count-columns="2" data-show-pagination-switch="false" data-pagination="true" data-query-params="queryParamsPDCReminderTable" data-click-to-select="false"> <thead> <tr> <th class="main-header-table" data-formatter="" data-field="plate_cs_number">Plate/CS No</th> <th class="main-header-table" data-formatter="" data-field="check_number">Check Number</th> <th class="main-header-table" data-formatter="" data-field="client_name">Client Name</th> <th class="main-header-table" data-formatter="" data-field="client_mobile">Mobile #</th> <th class="main-header-table" data-formatter="" data-field="company_dealer">Company/Dealer</th> <th class="main-header-table" data-formatter="" data-field="reminder_type">Type</th> <th class="main-header-table text-center" data-formatter="" data-field="status">Status</th> </tr> </thead> </table> </div> <br/> <button id="button-import-today" type="button" class="btn btn-primary" data-toggle="modal" data-target="#viewTodayImport" hidden> View Today's Import </button> <!-- Modal --> <div class="modal fade" id="viewTodayImport" tabindex="-1" role="dialog" aria-labelledby="viewTodayImportTitle" aria-hidden="true"> <div class="modal-dialog modal-dialog-centered modal-dialog-scrollable modal-xl" role="document"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="viewTodayImportTitle">Imported Today<span id="import-total"></span></h5> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <div class="modal-body"> <div id="view-today-imported-div" class="table-responsive"> <table id="view-imported-today-table" class="table table-sm" data-toggle="table" data-url="" data-pagination="true" data-search="true" data-show-refresh="true" 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, all]" data-minimum-count-columns="2" data-show-pagination-switch="false" data-pagination="true" data-query-params="queryParamsImportedTodayTable" data-click-to-select="false"> <thead> <tr> <th class="main-header-table" data-formatter="" data-field="name">Customer Name</th> <th class="main-header-table" data-formatter="" data-field="number">Customer Mobile</th> <th class="main-header-table" data-formatter="" data-field="company">Company</th> <th class="main-header-table" data-formatter="" data-field="dealer">Dealer</th> <th class="main-header-table" data-formatter="" data-field="released_date">Released Date</th> <th class="main-header-table" data-formatter="" data-field="time_uploaded">Time Uploaded</th> <th class="main-header-table" data-formatter="" data-field="uploaded_by">Uploaded By</th> </tr> </thead> </table> </div> </div> <div class="modal-footer"> <div class="icheck-primary d-inline mr-auto"> <input type="checkbox" id="chkMasked" checked> <label for="chkMasked">Mask customer mobile</label> <div class="icheck-primary d-inline mr-auto"> <input type="checkbox" id="chkMaskedExclude" checked> <label for="chkMaskedExclude">Exclude corporation</label> </div> <i class="float-right tooltip-me mt-1 ml-1 mb-0 fas fa-question-circle" style="color:blue;" data-html="true" data-placement="right" id="tip-print"></i> </div> <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </section> </div> <?php include('include/footer.php'); ?> <aside class="control-sidebar control-sidebar-dark"> </aside> </div><!-- ./wrapper --> <!-- jQuery --> <script src="plugins/jquery/jquery.min.js"></script> <script src="plugins/jquery-ui/jquery-ui.min.js"></script> <script> $.widget.bridge('uibutton', $.ui.button) </script> <!-- overlayScrollbars --> <script src="plugins/overlayScrollbars/js/jquery.overlayScrollbars.min.js"></script> <!-- InputMask --> <script src="plugins/moment/moment.min.js"></script> <!-- Bootstrap 4 --> <script src="plugins/bootstrap/js/bootstrap.bundle.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> <!-- Navigation Highlight --> <script src="dist/js/main.js"></script> <!-- Tempusdominus Bootstrap 4 --> <script src="plugins/tempusdominus-bootstrap-4/js/tempusdominus-bootstrap-4.min.js"></script> <!-- Select2 --> <script src="plugins/select2/js/select2.full.min.js"></script> <!-- Toastr --> <script src="plugins/toastr/toastr.min.js"></script> <!-- Bootstrap Switch --> <script src="plugins/bootstrap-switch/js/bootstrap-switch.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-file--> <?php include('resources/views/common/scripts/sms_service/script_auto_sms_service.php'); ?> </body> </html>
| ver. 1.4 |
.
| PHP 7.3.33 | Generation time: 0 |
proxy
|
phpinfo
|
Settings