?
Current Path : /home1/savoy/public_html/savoyglobal.net/sec_old/application/views/inventory/ |
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/public_html/savoyglobal.net/sec_old/application/views/inventory/view_purchase.php |
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('documentreadyfunctions'); ?> <div class="icons_main"> <div class="icons"> <img src="<?= base_url() ?>assets/images/add.png" title="Add New" class="clickimage" onclick="addformdisplay('add_purchase','inventory')" alt="Add New" align = "center" width="32" height="32" /> </div> <div class="icons_caption"> <h4>Purchase Details</h4> </div> </div> <div class="grid_12"> <div class="box"> <div class="header"> </div> <div class="content no-padding"> <table class="table"> <tr> <th><input type="radio" name="purchase_order" id="purchase_order_posted" <?php if ($_SESSION['res_function'] == 'search_purchase_posted') echo "checked"; ?> value="0" class="chzn-done" onclick="viewdata('inventory','viewininventorysearch','search_purchase_posted','view_purchase','1')" /></th><th><label>Posted Purchase Details</label></th> <th><input type="radio" name="purchase_order" id="purchase_order" value="1" <?php if ($_SESSION['res_function'] == 'search_purchase') echo "checked"; ?> class="chzn-done" onclick="viewdata('inventory','viewininventorysearch','search_purchase','view_purchase','1')" /></th><th><label>Un-Posted Purchase Details</label></th> </tr> </table> </div> </div> </div> <div class="grid_12"> <div class="box"> <div class="header"> </div> <div class="content"> <table id="table-example" class="table"> <thead> <tr> <th id="sl">Sl No</th> <th>Franchisee Name</th> <th>Purchase Date</th> <th>Remarks</th> <th>Action</th> </tr> </thead> <tbody> <?php $table = ""; $field = ""; $i = 0; foreach ($viewinfo->result() as $row) { $i++; ?> <tr> <td id="sl"> <?= $i ?> </td> <td> <a href="#" onclick="displayformdata('inventory','single_page','<?= $row->purchase_id; ?>','purchase','purchase_id','single_purchase')"> <?= $row->franchisee_name ?></a> </td> <td> <?= $this->mastermodel->convertdatenormalformat($row->purchase_date) ?> </td> <td> <?= $row->purchase_remarks; ?> </td> <?php if ($row->journal_id > 0) { ?> <td id="actions_63" > <img src="<?= base_url() ?>/assets/images/view-icon.png" id="editclass" title="View" width="20" height="20" alt="View Entry" align = "center" onclick="viewthis_unpost(<?= $row->journal_id ?>, 'search_payment_voucher', 'view_payment_voucher')" style="cursor: pointer" class="clickimage1" /> </td> <?php } else { ?> <td id="actions_4" style="width: 160px;"> <div class="elements"><a href="#" onclick="uploadformdata('inventory','viewininventorysearch','<?= $row->purchase_id; ?>','search_purchase','view_purchase')" ><img src="<?= base_url() ?>assets/images/upload.png" title="Upload File" width="20" height="20" alt="Upload" align = "center" class="clickimage" /></a></div> <div class="elements"><img src="<?= base_url() ?>assets/images/edit-icon.gif" title="Edit" width="20" height="20" alt="Edit" align = "center" class="clickimage" onclick="editformdata('inventory','edit_page','<?= $row->purchase_id; ?>','purchase','purchase_id','edit_purchase')" alt="" /> </div> <div class="elements"><img src="<?= base_url() ?>assets/images/delete-icon.png" title="Delete" width="20" height="20" onclick="deletedata('purchase',<?= $row->purchase_id; ?>,'purchase_id','inventory','viewininventorysearch','search_purchase','view_purchase','<?= $table ?>','<?= $field ?>')" alt="Delete" align = "center"/></div> <div class="elements"><img src="<?= base_url() ?>assets/images/process.png" title="Post Purchase" width="20" height="20" onclick="editformdata('inventory','edit_page','<?= $row->purchase_id; ?>','purchase','purchase_id','post_purchase')" alt="Post" align = "center"/> </div> </td> <?php } ?> </tr> <?php } ?> </tbody> </table> </div> </div> </div> <div class="actions-left"> <div style="display:none"> <div id="empdiv"></div> </div> </div>