?
Current Path : /home1/savoy/www/savoyglobal.net/rms/application/views/accounting/ |
Linux gator3171.hostgator.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 |
Current File : /home1/savoy/www/savoyglobal.net/rms/application/views/accounting/view_reconcilliation.php |
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('documentreadyfunctions'); ?> <script> function searchreconcile() { var account = document.getElementById('account').value; var statement = document.getElementById('statement').value; var rec_date = document.getElementById('rec_date').value; if (!rec_date) { alert("Select Any Date") } else { $("#loadresult").empty().html('<CENTER><img src="<?= base_url() ?>/assets/images/loading.gif" class="loading"/></CENTER>'); $("#loadresult").load("<?= site_url('accounting/searchreconcile/searchreconcilepage/') ?>" + "/" + account + "/" + statement + "/" + rec_date); } } </script> <div id="viewmsg2" style="width: 100%;float: left;height: 25px;"></div> <div class="icons_main"> <div class="icons"> </div> <div class="icons_caption"> <h4>Reconciliation</h4> </div> </div> <?php $accounts = $this->mastermodel->getdatas('finance_chart_master', 'chart_type_id', '', 'chart_master_id'); $reconcile = $this->mastermodel->getdistinct_rec_date(); $attributes = array('id' => 'validateform', 'class' => 'validate'); echo form_open('', $attributes); ?> <div class="clean"></div> <div class="grid_12"> <div class="box"> <div class="header main no-icon"> Reconcile Bank Account <span></span> </div> <div class="content no-padding"> <table class="table"> <tr> <th width="30%">Account :</th> <th width="30%">Bank Statement :</th> <th>Reconcile Date :</th> </tr> <tr> <td> <select name="account" id="account" class="required chzn-done"> <?php $sub_t = 'temp'; foreach ($accounts as $value) { if ($value['chart_type_id'] != $sub_t) { $optgp = $this->mastermodel->get_single_field_value('finance_chart_type', 'chart_type_name', 'chart_type_id', $value['chart_type_id']); echo '<optgroup label="' . $optgp . '">' . $optgp . '</optgroup> '; } echo '<option value="' . $value["chart_account_code"] . '">' . $value["chart_account_code"] . '-' . $value["chart_account_name"] . '</option>'; if ($value['chart_type_id'] != $sub_t) { echo ""; } $sub_t = $value['chart_type_id']; } ?> </select> </td> <td> <select name="statement" id="statement" class="required chzn-done"> <option value="new">New</option> <?php foreach ($reconcile as $value) { echo '<option value="'.$value['reconcile_date'].'">'.$this->mastermodel->convertdatenormalformat($value['reconcile_date']).'</option>'; } ?> </select> </td> <td> <input type="dateonly" name="rec_date" id="rec_date" class="medium required"/> </td> </tr> </table> </div> <div class="actions"> <div class="actions-left"> <input type="reset"> </div> <div class="actions-right"> <button type="button" class="clickimage" name="search" onclick="searchreconcile()" id="button1" >Find Transaction</button> </div> </div> </div> </div> <?php echo form_close(); ?> <div id="loadresult"></div> <div style="display: none"> <div id="color"></div> </div> <?php