File manager - Edit - /home/autoph/public_html/connectv1/resources/views/finance/finance_information.php
Back
<?php include('cfg/db.php'); // include('app/security/security.php'); $utility = new Utility(); if(!isset($_SESSION['user']['id'])){ header('location:signin.php'); } // $check_page = new CheckPage(); // $check_page->start($db); $granted_company_ids = $utility->isNotEmpty($_SESSION['user']['company_permissions_implode']) ? $_SESSION['user']['company_permissions_implode'] : '-1' ; // echo $granted_company_ids; exit; // functions function conv($today){// 2021-08-18 $val = $today; return substr($today, 5, 2) . "/" . substr($today, 8, 2) . "/" . substr($today, 0, 4); // 08/18/2021 } function alphaNumericOnly($s){ $str = preg_replace("/[^a-zA-Z0-9]+/", "", $s); if(strlen($str) < 5){ return ""; } return $str; } if(!(isset($global_action_permissions['2']['42']['8']) && in_array("1", $global_action_permissions['2']['42']['8']))){ header('location:signin.php'); } $fni_edit_record = 0; if((isset($global_action_permissions['2']['42']['8']) && in_array("3", $global_action_permissions['2']['42']['8']))){ $fni_edit_record = 1; } $fni_delete_record = 0; if((isset($global_action_permissions['2']['42']['8']) && in_array("4", $global_action_permissions['2']['42']['8']))){ $fni_delete_record = 1; } $plate_cs_number = $plate_cs_number; $plate_cs_number_1 = ""; $plate_cs_number_2 = ""; if(strpos($plate_cs_number, '/') > 0){ $multi_data = array(); $multi_data = explode("/", $plate_cs_number); $plate_cs_number_1 = alphaNumericOnly($multi_data[0]); $plate_cs_number_2 = alphaNumericOnly($multi_data[1]); } else { $plate_cs_number_1 = alphaNumericOnly($plate_cs_number); } $plate_cs_number = $plate_cs_number_1; $check_param = $db->select("SELECT COUNT(1) FROM finance WHERE plate_cs_number1 = '$plate_cs_number' AND status = 1"); $is_granted = $db->select("SELECT COUNT(1) FROM `finance` WHERE `plate_cs_number1` = '$plate_cs_number' AND `company_id` IN(".$granted_company_ids.")"); $today = $db->select("SELECT CURDATE() AS today"); // ====================================== $edit_mobile_required = $db->select("SELECT `status` FROM `settings_fni_pdc` WHERE `type` = 1 AND `field` = 1 AND `operation` = 3"); $edit_email_required = $db->select("SELECT `status` FROM `settings_fni_pdc` WHERE `type` = 1 AND `field` = 2 AND `operation` = 3"); $edit_policy_required = $db->select("SELECT `status` FROM `settings_fni_pdc` WHERE `type` = 1 AND `field` = 3 AND `operation` = 3"); ?> <!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"> <!-- SweetAlert2 --> <link rel="stylesheet" href="/plugins/sweetalert2/sweetalert2.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> .input-forms { font-size: 95%; font-weight: normal !important; background-color: white !important; } .list-group-item { padding: .25rem .50rem; } .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; } 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: 16px; font-weight: bold; color: blue; } #finance-table { cursor: pointer; } #finance-information-table { cursor: pointer; } .tbl-data { font-size: 90%; } .span-labels { font-size: 90%; font-style: italic; } .span-values { font-size: 90%; } .highlight { background-color: #a9f0ff !important; font-weight: bold; } #outer-div{ display: flex; } .field-div{ flex: 1; /* additionally, equal width */ } #toast-container > .toast-warning { background-image: url('dist/img/toast/warning.png')!important; background-color: #ffa500; color: black; } /* Chrome, Safari, Edge, Opera */ input::-webkit-outer-spin-button, input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; } /* Firefox */ input[type=number] { -moz-appearance: textfield; } </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 id="finance-information" class="card card-primary"> <div class="card-header"> <h3 class="card-title"> <button class="btn btn-tool" title="Go back" type="button" onclick="back()"> <i class="fas fa-arrow-alt-circle-left fa-2x"></i> </button>FNI Information </h3> <button class="btn btn-tool float-right" title="Activity log" onclick="refreshFNIActivityLogTable()" data-toggle="modal" data-target="#modal-finance-activity-log"> <i class="fas fa-bars" style="margin-top: 10px; margin-right: -10px;"></i> </button> </div> <div class="card-body"> <script> function back(){ window.history.back(); } </script> <?php if($check_param < 1){ echo "Oops! No record found"; exit; } else if($is_granted == 0){ echo "Oops! You have no access in this record"; exit; } ?> <div id="outer-div" class="row"> <fieldset class="card col-12"> <div class="row mt-2"> <div class="col-sm-3"> <div class="form-group my-0 mx-0"> <div class="form-group dropdown-input mb-1"> <label class="dropdown mx-0 my-0">Plate/CS No</label> <input name="fni-info-plate-cs" id="fni-info-plate-cs" class="form-control form-control-sm" placeholder="" style="background-color: transparent;" readonly> </div> </div> </div> <div class="col-sm-3"> <div class="form-group my-0 mx-0"> <div class="form-group dropdown-input mb-1"> <label class="dropdown mx-0 my-0">Brand</label> <input name="fni-info-brand" id="fni-info-brand" class="form-control form-control-sm" placeholder="" style="background-color: transparent;" readonly> </div> </div> </div> <div class="col-sm-6"> <div class="form-group my-0 mx-0"> <div class="form-group dropdown-input mb-1"> <label class="dropdown mx-0 my-0">Company/Dealer</label> <input name="fni-info-company-dealer" id="fni-info-company-dealer" class="form-control form-control-sm" placeholder="" style="background-color: transparent;" readonly> </div> </div> </div> </div> </fieldset> <div class="col-md-8 d-flex align-items-stretch"> <div class="col-12 field-div"> <div id="finance-information-div" class="table-responsive mt-2"> <table id="finance-information-table" class="table table-sm tbl-data" data-toggle="table" data-url="" data-pagination="true" data-search="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, all]" data-minimum-count-columns="2" data-show-pagination-switch="false" data-pagination="true" data-query-params="queryParamsFinanceInformationTable" data-click-to-select="true"> <thead> <tr class="clickable-row"> <th class="main-header-table text-center" data-formatter="" data-field="no">No.</th> <th class="main-header-table text-center" data-formatter="" data-field="policy_number">Policy Number(s)</th> <th class="main-header-table text-center" data-formatter="" data-field="policy_issue_date">Policy Issued Date</th> <th class="main-header-table text-center" data-formatter="" data-field="policy_start_end_date">Policy Start - End Date</th> <th class="main-header-table text-center" data-formatter="" data-field="insurance_type">Ins. Type</th> <th class="main-header-table text-center" data-formatter="" data-field="insurance_provider">Ins. Provider</th> <th class="main-header-table text-center" data-formatter="editFNIInfo">Action</th> </tr> </thead> </table> </div> </div> </div> <div class="col-md-4 d-flex align-items-stretch field-div"> <div class="col-12"> <fieldset class="card"> <div class="col-sm-12 input-forms"> <ul class="list-group list-group-unbordered mb-2 mt-2"> <li class="list-group-item"> <div class="ml-1 form-group row my-0"> <span class="pl-0 col-sm-5 lbl-forms-sm-customer-main"><strong>Customer Name</strong> <span class=""></span></span> <span class="pl-0 customer-data-side col-sm-7 lbl-forms-sm-customer-main" id="span-customer-fullname"></span> </div> </li> <li class="list-group-item"> <div class="ml-1 form-group row my-0"> <span class="pl-0 col-sm-5 lbl-forms-sm-customer-main"><strong>Mobile Number</strong> <span class=""></span></span> <span class="pl-0 customer-data-side col-sm-7 lbl-forms-sm-customer-main" id="span-mobile-number"></span> </div> </li> <li class="list-group-item"> <div class="ml-1 form-group row my-0"> <span class="pl-0 col-sm-5 lbl-forms-sm-customer-main"><strong>Customer Email</strong> <span class=""></span></span> <span class="pl-0 customer-data-side col-sm-7 lbl-forms-sm-customer-main" id="span-email"></span> </div> </li> <li class="list-group-item"> <div class="ml-1 form-group row my-0"> <span class="pl-0 col-sm-5 lbl-forms-sm-customer-main"><strong>Customer Address</strong> <span class=""></span></span> <span class="pl-0 customer-data-side col-sm-7 lbl-forms-sm-customer-main" id="span-address"></span> </div> </li> <li class="list-group-item"> <div class="ml-1 form-group row my-0"> <span class="pl-0 col-sm-5 lbl-forms-sm-customer-main"><strong>Sales Consultant</strong> <span class=""></span></span> <span class="pl-0 customer-data-side col-sm-7 lbl-forms-sm-customer-main" id="span-sales-consultant"></span> </div> </li> <li class="list-group-item"> <div class="ml-1 form-group row my-0"> <span class="pl-0 col-sm-5 lbl-forms-sm-customer-main"><strong>Bank</strong> <span class=""></span></span> <span class="pl-0 customer-data-side col-sm-7 lbl-forms-sm-customer-main" id="span-bank-name"></span> </div> </li> <li class="list-group-item"> <div class="ml-1 form-group row my-0"> <span class="pl-0 col-sm-5 lbl-forms-sm-customer-main"><strong>Locked In Status</strong> <span class=""></span></span> <span class="pl-0 customer-data-side col-sm-7 lbl-forms-sm-customer-main" id="span-locked-in-status"></span> </div> </li> <li class="list-group-item"> <div class="ml-1 form-group row my-0"> <span class="pl-0 col-sm-5 lbl-forms-sm-customer-main"><strong>Locked In Years</strong> <span class=""></span></span> <span class="pl-0 customer-data-side col-sm-7 lbl-forms-sm-customer-main" id="span-locked-in-years"></span> </div> </li> <li class="list-group-item"> <div class="ml-1 form-group row my-0"> <span class="pl-0 col-sm-5 lbl-forms-sm-customer-main"><strong>Terms</strong> <span class=""></span></span> <span class="pl-0 customer-data-side col-sm-7 lbl-forms-sm-customer-main" id="span-terms"></span> </div> </li> <li class="list-group-item"> <div class="ml-1 form-group row my-0"> <span class="pl-0 col-sm-5 lbl-forms-sm-customer-main"><strong></strong> <span class=""></span></span> <span class="pl-0 customer-data-side col-sm-7 lbl-forms-sm-customer-main" id="span"></span> </div> </li> <li class="list-group-item"> <div class="ml-1 form-group row my-0"> <span class="pl-0 col-sm-5 lbl-forms-sm-customer-main"><strong>Car Model</strong> <span class=""></span></span> <span class="pl-0 customer-data-side col-sm-7 lbl-forms-sm-customer-main" id="span-car-model"></span> </div> </li> <li class="list-group-item"> <div class="ml-1 form-group row my-0"> <span class="pl-0 col-sm-5 lbl-forms-sm-customer-main"><strong>Variant</strong> <span class=""></span></span> <span class="pl-0 customer-data-side col-sm-7 lbl-forms-sm-customer-main" id="span-variant"></span> </div> </li> </ul> </div> </fieldset> </div> </div> </div> </div> <hr> <div id="finance-plate-cs-information" class="card-body"> <div class="row"> <div id="finance-information-div" class="table-responsive mt-2"> <table id="finance-remaining-days" class="table table-sm tbl-data" data-toggle="table" data-url="" data-pagination="false" data-search="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, all]" data-minimum-count-columns="2" data-show-pagination-switch="false" data-query-params="queryParamsFinanceRemainingDaysTable" data-click-to-select="false"> <thead> <tr> <th class="main-header-table text-center" data-formatter="" data-field="reminder_type">Reminder Type (days)</th> <th class="main-header-table text-center" data-formatter="" data-field="reminder_date">Reminder Date</th> <th class="main-header-table text-center" data-formatter="" data-field="sms_status">SMS Status</th> </tr> </thead> </table> </div> </div> </div> <div id="div-footer" class="card-body"> <div class="row"> <div class="col-sm-4"> <span class="span-labels"><strong>Date Added: </strong></span> <span id="span-date-uploaded" class="span-values"></span> </div> <div class="col-sm-4"> <span class="span-labels"><strong>Added By: </strong> </span> <span id="span-uploaded-by" class="span-values"></span><br> </div> <div class="col-sm-4"> <span class="span-labels"><strong>Last modified by: </strong> </span> <span id="span-modified-by" class="span-values"></span><br> </div> </div> </div> </div> </div> </div> </div> <!-- EDIT MODAL --> <div class="modal fade" id="modal-finance-edit-info" tabindex="-1" data-backdrop="static" aria-labelledby="exampleModalCenterTitle" aria-hidden="true"> <div class="modal-dialog modal-dialog-centered modal-xl" role="document"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="exampleModalCenterTitle"><span id="modal-title">Edit details</span></h5> <div id="loading-view" class="fas fa-2x fa-sync-alt fa-spin customer-modal-overlay" hidden> </div> <button id="fni-close-modal" type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <div class="modal-body"> <div id="app" class="mb-2"> <nav class="navbar navbar-expand-md navbar-light ml-0 mt-0 mb-0 pt-0 pb-0" style="background-color: #ffffff;"> <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav"> <span class="navbar-toggler-icon"></span> </button> <div class="collapse navbar-collapse" id="navbarNav"> <ul id="fni-modal-tab" class="nav nav-tabs navbar-nav mr-auto customer-modal-tab" role="tablist"> <li class="nav-item"> <a class="nav-link active border-0 " id="fni-edit-modal-tab-information" data-toggle="pill" href="#fni-edit-modal-information" role="tab" aria-controls="fni-edit-modal-information" aria-selected="true">Information</a> </li> <li class="nav-item"> <a class="nav-link border-0 " id="fni-edit-modal-tab-insurance" data-toggle="pill" href="#fni-edit-modal-insurance" role="tab" aria-controls="fni-edit-modal-insurance" aria-selected="false">Insurance</a> </li> </ul> </div> </nav> </div> <!-- vehicle information --> <div class="tab-content" id="fni-edit-modal-tab-content"> <div class="tab-pane fade show active" id="fni-edit-modal-information" role="tabpanel" aria-labelledby="fni-edit-modal-tab-information"> <div class="row"> <fieldset class="card col-12"> <legend>Vehicle Information</legend> <div class="row"> <div class="col-sm-6"> <div class="form-group my-0 mx-0"> <div class="form-group dropdown-input mb-1"> <label class="dropdown mx-0 my-0">Plate/CS Number</label><label class="p-0 m-0" style="color: red; float-right">*</label> <input name="fni-edit-plate-cs-number" id="fni-edit-plate-cs-number" class="big-letter el-edit form-control form-control-sm" placeholder=""> </div> </div> </div> <div class="col-sm-6"> <div class="form-group my-0 mx-0"> <label class="dropdown mx-0 my-0">Dealer</label><label class="p-0 m-0" style="color: red; float-right">*</label> <div id="div-dealer" style="border-radius: 7px;"> <select name="fni-edit-dealer" id="fni-edit-dealer" class="form-control form-control-sm el-edit select2" style="width: 100%;"> <option></option> <?php $dealer = $db->return_result("SELECT sd.`id`, sd.`code`, sd.`name` FROM `source_dealer` sd INNER JOIN source_company_dealer scd ON scd.dealer_id = sd.id WHERE scd.company_id IN(".$granted_company_ids.") AND scd.status = 1 GROUP BY sd.id ORDER BY name ASC"); foreach($dealer AS $data){ echo "<option value='{$data['id']}'>".$data['code']." - ".$data['name']."</option>"; } ?> </select> </div> </div> </div> </div> <div class="row"> <div class="col-sm-4"> <div class="form-group my-0 mx-0"> <label class="dropdown mx-0 my-0">Brand</label><label class="p-0 m-0" style="color: red; float-right">*</label> <div id="div-brand" style="border-radius: 7px;"> <select name="fni-edit-brand" id="fni-edit-brand" class="form-control form-control-sm el-edit select2" style="width: 100%;"> <option></option> <?php $brand = $db->return_result("SELECT `id`, `name` FROM `finance_source_brand` WHERE status = 1 ORDER BY name ASC"); foreach($brand AS $data){ echo "<option value='{$data['id']}'>".$data['name']."</option>"; } ?> </select> </div> </div> </div> <div class="col-sm-4"> <div class="form-group my-0 mx-0"> <label class="dropdown mx-0 my-0">Model</label><label class="p-0 m-0" style="color: red; float-right">*</label> <div id="div-model" style="border-radius: 7px;"> <select name="fni-edit-model" id="fni-edit-model" class="form-control form-control-sm el-edit select2" style="width: 100%;"> <option></option> </select> </div> </div> </div> <div class="col-sm-4"> <div class="form-group my-0 mx-0"> <label class="dropdown mx-0 my-0">Variant</label><label class="p-0 m-0" style="color: red; float-right"></label> <div id="div-variant" style="border-radius: 7px;"> <select name="fni-edit-variant" id="fni-edit-variant" class="form-control form-control-sm el-edit select2" style="width: 100%;"> <option></option> </select> </div> </div> </div> </div> </fieldset> </div> <div class="row"> <fieldset class="card col-12"> <legend>Customer Information</legend> <div class="row"> <div class="col-12"> <div class="form-group my-0 mx-0"> <div class="form-group dropdown-input mb-1"> <label class="dropdown mx-0 my-0">Customer Fullname</label><label class="p-0 m-0" style="color: red; float-right">*</label> <input name="fni-edit-customer-fullname" id="fni-edit-customer-fullname" class="big-letter el-edit form-control form-control-sm" placeholder=""> </div> </div> </div> </div> <div class="row"> <div class="col-sm-6"> <div class="form-group my-0 mx-0"> <div class="form-group dropdown-input mb-1"> <label class="dropdown mx-0 my-0">Customer Mobile</label><label class="p-0 m-0" style="color: red; float-right">*</label> <div id="div-customer-mobile" class="input-70 input-group date" data-target-input="nearest"> <div class="input-70 input-group-append"> <div class="input-group-text" style="height: 31px;">+63</div> </div> <input id="fni-edit-customer-mobile" name="fni-edit-customer-mobile" oninput="this.value=this.value.slice(0,this.maxLength)" type="number" maxlength="10" class="el-add form-control form-control-sm"> </div> </div> </div> </div> <div class="col-sm-6"> <div class="form-group my-0 mx-0"> <div class="form-group dropdown-input mb-1"> <label class="dropdown mx-0 my-0">Customer Other Contact</label><label class="p-0 m-0" style="color: red; float-right"></label> <input name="fni-edit-customer-other-contact" id="fni-edit-customer-other-contact" class="big-letter el-edit form-control form-control-sm" placeholder=""> </div> </div> </div> </div> <div class="row"> <div class="col-sm-5"> <div class="form-group my-0 mx-0"> <div class="form-group dropdown-input mb-1"> <label class="dropdown mx-0 my-0">Customer Email</label><label class="p-0 m-0" style="color: red; float-right">*</label> <input name="fni-edit-customer-email" id="fni-edit-customer-email" class="big-letter el-edit form-control form-control-sm" placeholder=""> </div> </div> </div> <div class="col-sm-7"> <div class="form-group my-0 mx-0"> <div class="form-group dropdown-input mb-1"> <label class="dropdown mx-0 my-0">Customer Address</label><label class="p-0 m-0" style="color: red; float-right"></label> <input name="fni-edit-customer-address" id="fni-edit-customer-address" class="big-letter el-edit form-control form-control-sm" placeholder=""> </div> </div> </div> </div> </fieldset> </div> </div> <div class="tab-pane fade" id="fni-edit-modal-insurance" role="tabpanel" aria-labelledby="fni-edit-modal-tab-insurance"> <fieldset class="card col-12"> <legend>Policy Dates</legend> <div class="row"> <div class="col-sm-4"> <div class="form-group my-0 mx-0"> <div class="form-group dropdown-input mb-1"> <label class="dropdown mx-0 my-0">Policy Issue Date</label><label class="p-0 m-0" style="color: red; float-right">*</label> <div id="div-issue-date" class="input-group date" style="height: 28px;"> <div class="input-70 input-group date" data-target-input="nearest"> <input id="issue-date" name="issue-date" data-inputmask-alias="datetime" data-inputmask-inputformat="mm/dd/yyyy" data-mask type="text" class="lbl-forms-sm el-add form-control form-control-sm datetimepicker-input" data-target="#issue-date"/> <div id="salo" class="input-group-append" data-target="#issue-date" data-toggle="datetimepicker"> <div id="issue-calendar" class="input-group-text"><i class="fa fa-calendar"></i></div> </div> </div> </div> </div> </div> </div> <div class="col-sm-4"> <div class="form-group my-0 mx-0"> <div class="form-group dropdown-input mb-1"> <label class="dropdown mx-0 my-0">Policy Start Date</label><label class="p-0 m-0" style="color: red; float-right">*</label> <div id="div-start-date" class="input-group date" style="height: 28px;"> <div class="input-70 input-group date" data-target-input="nearest"> <input id="start-date" name="start-date" placeholder="Start date" data-inputmask-alias="datetime" data-inputmask-inputformat="mm/dd/yyyy" data-mask type="text" class="lbl-forms-sm el-add form-control form-control-sm datetimepicker-input" data-target="#start-date" /> <div class="input-group-append" data-target="#start-date" data-toggle="datetimepicker"> <div id="start-calendar" class="input-group-text"><i class="fa fa-calendar"></i></div> </div> </div> </div> </div> </div> </div> <div class="col-sm-4"> <div class="form-group my-0 mx-0"> <div class="form-group dropdown-input mb-1"> <label class="dropdown mx-0 my-0">Policy End Date</label><label class="p-0 m-0" style="color: red; float-right">*</label> <div id="div-end-date" class="input-group date" style="height: 28px;"> <div class="input-70 input-group date" data-target-input="nearest"> <input id="end-date" name="end-date" placeholder="End date" data-inputmask-alias="datetime" data-inputmask-inputformat="mm/dd/yyyy" data-mask type="text" class=" lbl-forms-sm el-add form-control form-control-sm datetimepicker-input" data-target="#end-date" /> <div id="cal-div" class="input-group-append" data-target="#end-date" data-toggle="datetimepicker"> <div id="end-calendar" class="input-group-text"><i class="fa fa-calendar"></i></div> </div> </div> </div> </div> </div> </div> </div> </fieldset> <fieldset class="card col-12"> <legend>Insurance Information</legend> <div class="row"> <div class="col-sm-6"> <div class="form-group my-0 mx-0"> <div class="form-group dropdown-input mb-1"> <label class="dropdown mx-0 my-0">Policy Number</label><label class="p-0 m-0" style="color: red; float-right">*</label> <input name="fni-edit-policy-number" id="fni-edit-policy-number" class="big-letter el-edit input-70 form-control form-control-sm" placeholder=""> </div> </div> </div> <div class="col-sm-6"> <div class="form-group my-0 mx-0"> <div class="form-group dropdown-input mb-1"> <label class="dropdown mx-0 my-0">Bank</label><label class="p-0 m-0" style="color: red; float-right"></label> <input name="fni-edit-bank" id="fni-edit-bank" class="big-letter el-edit input-70 form-control form-control-sm" placeholder=""> </div> </div> </div> </div> <div class="row"> <div class="col-sm-6"> <div class="form-group my-0 mx-0"> <div class="form-group dropdown-input mb-1"> <label class="dropdown mx-0 my-0">Insurance Provider</label><label class="p-0 m-0" style="color: red; float-right">*</label> <div id="div-insurance-provider" style="border-radius: 7px;"> <select name="fni-edit-insurance-provider" id="fni-edit-insurance-provider" class="form-control form-control-sm el-edit select2" style="width: 100%;"> <option></option> <?php $ins_provider = $db->return_result("SELECT `id`, `name` FROM `finance_ins_provider` WHERE status = 1 ORDER BY name ASC"); foreach($ins_provider AS $data){ echo "<option value='{$data['id']}'>".$data['name']."</option>"; } ?> </select> </div> </div> </div> </div> <div class="col-sm-6"> <div class="form-group my-0 mx-0"> <div class="form-group dropdown-input mb-1"> <label class="dropdown mx-0 my-0">Insurance Type</label><label class="p-0 m-0" style="color: red; float-right">*</label> <div id="div-insurance-type" style="border-radius: 7px;"> <select name="fni-edit-insurance-type" id="fni-edit-insurance-type" class="form-control form-control-sm el-edit select2" style="width: 100%;"> <option></option> <?php $ins_type = $db->return_result("SELECT `id`, `name` FROM `finance_ins_business_type` WHERE status = 1 ORDER BY name ASC"); foreach($ins_type AS $data){ echo "<option value='{$data['id']}'>".$data['name']."</option>"; } ?> </select> </div> </div> </div> </div> </div> <div class="row"> <div class="col-sm-6"> <div class="form-group my-0 mx-0"> <div class="form-group dropdown-input mb-1"> <label class="dropdown mx-0 my-0">Sales Consultant</label><label class="p-0 m-0" style="color: red; float-right"></label> <input name="fni-edit-sales-consultant" id="fni-edit-sales-consultant" class="big-letter input-70 el-edit form-control form-control-sm" placeholder=""> </div> </div> </div> <div class="col-sm-6"> <div class="form-group my-0 mx-0"> <div class="form-group dropdown-input mb-1"> <label class="dropdown mx-0 my-0">Paid Amount</label><label class="p-0 m-0" style="color: red; float-right"></label> <input name="fni-edit-paid-amount" id="fni-edit-paid-amount" class="big-letter input-70 el-edit form-control form-control-sm" placeholder=""> </div> </div> </div> </div> <div class="row"> <div class="col-sm-6"> <div class="form-group my-0 mx-0"> <div class="form-group dropdown-input mb-1"> <label class="dropdown mx-0 my-0">Lock-in Year</label><label class="p-0 m-0" style="color: red; float-right"></label> <input name="fni-edit-lock-in-year" id="fni-edit-lock-in-year" class="big-letter input-70 el-edit form-control form-control-sm" oninput="this.value=this.value.slice(0,this.maxLength)" maxlength="1" placeholder="" type="number"> </div> </div> </div> <div class="col-sm-6"> <div class="form-group my-0 mx-0"> <div class="form-group dropdown-input mb-1"> <label class="dropdown mx-0 my-0">Terms</label><label class="p-0 m-0" style="color: red; float-right"></label> <input name="fni-edit-terms" id="fni-edit-terms" class="big-letter input-70 el-edit form-control form-control-sm" placeholder="" oninput="this.value=this.value.slice(0,this.maxLength)" type="number" maxlength="1"> </div> </div> </div> </div> <div class="row"> <div class="col-sm-6 mt-2"> <div class="icheck-primary form-group my-0 mx-0 d-inline pl-3"> <input type="checkbox" id="check-lock-in" class="el-edit" checked> <label for="check-lock-in">Locked in</label> </div> </div> </div> </fieldset> </div> </div> </div><!--modal body--> <div class="modal-footer"> <button id="button-edit-fni-details" class="btn btn-success btn-sm el-edit">Update record</button> </div> </div><!--modal content--> </div> </div> <!-- activity log modal --> <div class="modal fade" id="modal-finance-activity-log" tabindex="-1" aria-labelledby="exampleModalCenterTitle" aria-hidden="true"> <div class="modal-dialog modal-dialog-centered modal-xl" role="document"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="exampleModalCenterTitle"><span id="modal-act-log-title">Activity Log (FNI)</span></h5> <div id="loading-view-activity-log" class="fas fa-2x fa-sync-alt fa-spin customer-modal-overlay" hidden> </div> <button id="fni-close-act-log-modal" type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <div class="modal-body"> <table id="finance-activity-log-table" class="table table-sm tbl-data" data-toggle="table" data-url="" data-pagination="false" data-search="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, all]" data-minimum-count-columns="2" data-show-pagination-switch="false" data-query-params="queryParamsFinanceActivityLogTable" data-click-to-select="false"> <thead> <tr> <th class="main-header-table" data-formatter="" data-field="datetime">Date / Time</th> <th class="main-header-table" data-formatter="" data-field="description">Activity</th> <th class="main-header-table" data-formatter="" data-field="done_by">Done By</th> </tr> </thead> </table> </div> <div class="modal-footer"> <button id="button-okay-fni" class="btn btn-primary btn-sm el-edit" data-dismiss="modal">Close</button> </div> </div><!--modal content--> </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> <!-- 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> <!-- 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> <!-- 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> <!-- SweetAlert2 --> <script src="/plugins/sweetalert2/sweetalert2.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--> <script> var plate_cs_number = '<?php echo $plate_cs_number; ?>'; var can_edit_record = '<?php echo $fni_edit_record; ?>'; var can_delete_record = '<?php echo $fni_delete_record; ?>'; // ========================== var edit_mobile_required = '<?php echo $edit_mobile_required; ?>'; var edit_email_required = '<?php echo $edit_email_required; ?>'; var edit_policy_required = '<?php echo $edit_policy_required; ?>'; <?php include('resources/views/common/scripts/finance/finance_information.js'); ?> </script> </body> </html>
| ver. 1.4 |
.
| PHP 7.3.33 | Generation time: 0 |
proxy
|
phpinfo
|
Settings