?
Current Path : /home1/savoy/public_html/savoyglobal.net/sec/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/application/views/inventory/view_purchase.php |
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); ?> <!-- BEGIN PAGE LEVEL STYLES --> <link rel="stylesheet" href="<?= base_url(); ?>assets/plugins/data-tables/DT_bootstrap.css" /> <!-- END PAGE LEVEL STYLES --> <div class="row-fluid"> <div class="span12"> <!-- BEGIN EXAMPLE TABLE PORTLET--> <div class="portlet box blue"> <div class="portlet-title"> <div class="caption"><i class="icon-cogs"></i>Purchase Details</div> <div class="actions"> <a href="#" onclick="addformdisplay('add_purchase','inventory')" class="btn green"><i class="icon-plus"></i> Add</a> </div> </div> <div class="portlet-body"> <table class="table table-striped table-hover table-bordered" id="sample_4"> <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> <table class="table table-striped table-hover table-bordered" id="sample_3"> <thead> <tr> <th class="sl_th">Sl No</th> <th>Franchisee Name</th> <th>Purchase Date</th> <th>Remarks</th> <?php if ($_SESSION['res_function'] == 'search_purchase_posted') { ?> <th class="action_th">Search</th> <?php } else { ?> <th class="action_th">Upload</th> <th class="action_th">Edit</th> <th class="action_th">Delete</th> <th class="action_th">Post</th> <?php } ?> </tr> </thead> <tbody> <?php $table = ""; $field = ""; $i = 0; foreach ($viewinfo->result() as $row) { $i++; ?> <tr class="odd gradeX"> <td><?= $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><a class="search_details" data-journal_id="<?=$row->journal_id;?>" id="image_icon" href="#" > <img src="<?= base_url() ?>/assets/img/view-icon.png" title="View" width="20" height="20" alt="View Entry" align = "center" /></a> </td> <?php } else { ?> <td> <a class="inliexample2 modal_ajax_demo_btn" href="#" data-url="<?= site_url() ?>/master/upload_form/<?= $row->purchase_id; ?>/qq/upload_file" >Upload</a> </td> <td><a class="edit" href="#" onclick="editformdata('inventory','edit_page','<?= $row->purchase_id; ?>','purchase','purchase_id','edit_purchase')">Edit</a></td> <td> <a class="delete" href="#" onclick="deletedata('purchase',<?= $row->purchase_id; ?>,'purchase_id','inventory','viewininventorysearch','search_purchase','view_purchase','<?= $table ?>','<?= $field ?>')">Delete</a> </td> <td> <a href="#"> <img src="<?= base_url() ?>assets/img/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"/> </a> </td> <?php } ?> </tr> <?php } ?> </tbody> </table> </div> </div> </div> </div> <div style='display:none'> <div id="uploaddiv"></div> </div> <div id="ajax-modal" class="modal hide fade" tabindex="-1"></div> <script> jQuery(document).ready(function() { UIModals.init(); TableManaged.init(); $('.search_details').on("click",function(e){ e.preventDefault(); var $modal = $('<div id="payment_vouchar_div" class="modal hide fade" tabindex="-1"></div>'); var journal_id = $(this).data('journal_id'); $.ajax({ url : "<?= site_url('accounting/viewsingle_page/') ?>/" + journal_id +"/search_payment_voucher/view_payment_voucher", success: function(data){ $modal.empty().html(data); $modal.modal(); } }); }); }); </script>