ok
Direktori : /proc/thread-self/root/home2/selectio/www/mm-tailor-billing/themes/default/views/ |
Current File : //proc/thread-self/root/home2/selectio/www/mm-tailor-billing/themes/default/views/dashboard.php |
<?php (defined('BASEPATH')) or exit('No direct script access allowed'); ?> <style> tbody{ font-size: 19px; } </style> <script src="<?= $assets ?>plugins/highchart/highcharts.js"></script> <?php if ($chartData) { foreach ($chartData as $month_sale) { $months[] = date('M-Y', strtotime($month_sale->month)); $sales[] = $month_sale->total; $tax[] = $month_sale->tax; $discount[] = $month_sale->discount; } } else { $months[] = ''; $sales[] = ''; $tax[] = ''; $discount[] = ''; } ?> <?php $v = "?v=1"; $page_count=25; if ($this->input->post('start_date')){ $v .= "&start_date=".$this->input->post('start_date');$page_count=-1; }else{ $v .= "&start_date=".date("Y-m-d");$page_count=-1; } if ($this->input->post('end_date')) { $v .= "&end_date=".$this->input->post('end_date');$page_count=-1; }else{ $v .= "&end_date=".date("Y-m-d");$page_count=-1; } if ($this->input->post('unit_status')) { $v .= "&unit_status=".$this->input->post('unit_status');$page_count=-1; }else{ $v .= "&unit_status=1";$page_count=-1; } ?> <script type="text/javascript"> $(document).ready(function() { function new_status(data){ if(data=='00'){ return '<div class="text-center"><span class="label" style="background-color: #00ff4e; padding: 3px 8px 3px 8px; font-size: 12px; border: 1px solid #80808040; color: #2e2d2d;"><i class="fa fa-check"></i> Unit Ready</span></div>'; }else{ return '<div class="text-center"><span class="label" style="background-color: #ff0000; padding: 3px 8px 3px 8px; font-size: 12px;"><i class="fa fa-times"></i> Not Ready</span></div>'; } } function cutting(c) { var paid = '<?= lang('paid'); ?>'; var partial = '<?= lang('partial'); ?>'; var due = '<?= lang('due'); ?>'; var cut = 'Cutting'; if (c == 'paid') { return '<div class="text-center"><span class="cutting_status label label-success">'+paid+'</span></div>'; } else if (c == 'partial') { return '<div class="text-center"><span class="cutting_status label label-primary">'+partial+'</span></div>'; } else if (c == 'due') { return '<div class="text-center"><span class="cutting_status label label-danger">'+due+'</span></div>'; } else { return '<div class="text-center"><span class="cutting_status label label-default">'+cut+'</span></div>'; } } function stitching(c) { var paid = '<?= lang('paid'); ?>'; var partial = '<?= lang('partial'); ?>'; var due = '<?= lang('due'); ?>'; var stitch = 'Stitching'; if (c == 'paid') { return '<div class="text-center"><span class="stitching_status label label-success">'+paid+'</span></div>'; } else if (c == 'partial') { return '<div class="text-center"><span class="stitching_status label label-primary">'+partial+'</span></div>'; } else if (c == 'due') { return '<div class="text-center"><span class="stitching_status label label-danger">'+due+'</span></div>'; } else { return '<div class="text-center"><span class="stitching_status label label-default">'+stitch+'</span></div>'; } } function balance(c) { var no_amount = 'NULL'; if(c == "0.00"){ return "<div class='text-center'><span class='tip btn btn-info btn-sm' style='padding: 1px 10px 1px 10px;font-size: 14px;'><i class='fa fa-inr'></i> "+c+"</span></div>"; }else{ return "<div class='text-center'><span class='tip btn btn-danger btn-sm' style='padding: 1px 10px 1px 10px;font-size: 14px;'><i class='fa fa-inr'></i> "+c+"</span></div>"; } } function status(x) { var paid = '<?= lang('paid'); ?>'; var partial = '<?= lang('partial'); ?>'; var due = '<?= lang('due'); ?>'; if (x == 'paid') { return '<div class="text-center"><span class="sale_status label label-success">'+paid+'</span></div>'; } else if (x == 'partial') { return '<div class="text-center"><span class="sale_status label label-primary">'+partial+'</span></div>'; } else if (x == 'due') { return '<div class="text-center"><span class="sale_status label label-danger">'+due+'</span></div>'; } else { return '<div class="text-center"><span class="sale_status label label-default">'+x+'</span></div>'; } } function up_status(y) { var mcollected = 'Measurement Collected'; var cuttingpartial = 'Cutting Unit (Partial)'; var cuttingunit = 'Cutting Unit (Ready)'; var stitchingpartial = 'Stitching Unit (Partial)'; var unitAllReady = 'All Units Are Ready'; /*var stitchingunit = 'Stitching Unit (Ready)';*/ var partialdelivery = 'Ready to Delivery (Partial)'; var rdelivery = 'Ready to Delivery'; var partialdelivered = 'Order Delivered (Partial)'; var delivered = 'Order Delivered'; var bill_cancel = 'Bill Cancelled'; /*Vilot Color: #c000ff;*/ if (y == '1') { return '<div class="text-center"><span class="upsale_status label label-info">'+mcollected+'</span></div>'; } else if (y == '2') { return '<div class="text-center"><span class="upsale_status label label-danger">'+cuttingpartial+'</span></div>'; } else if (y == '3') { return '<div class="text-center"><span class="upsale_status label label-danger">'+stitchingpartial+'</span></div>'; } else if (y == '4') { return '<div class="text-center"><span class="upsale_status label label-danger">'+stitchingpartial+'</span></div>'; } else if (y == '5') { return '<div class="text-center"><span class="upsale_status label" style="background-color: #002bff; padding: 3px 8px 3px 8px; font-size: 12px;">'+unitAllReady+'</span></div>'; } else if (y == '6') { return '<div class="text-center"><span class="upsale_status label label-warning">'+partialdelivery+'</span></div>'; } else if (y == '7') { return '<div class="text-center"><span class="upsale_status label label-primary">'+rdelivery+'</span></div>'; } else if (y == '8') { return '<div class="text-center"><span class="upsale_status label label-warning">'+partialdelivered+'</span></div>'; } else if (y == '9') { return '<div class="text-center"><span class="upsale_status label label-success">'+delivered+'</span></div>'; } else if (y == '10') { return '<div class="text-center"><span class="upsale_status label label-danger">'+bill_cancel+'</span></div>'; } else { return '<div class="text-center"><span class="upsale_status label label-default">'+y+'</span></div>'; } } function cutting_stitching(ces) { if(ces == '0'){ return '<b style="color: green;font-size: 23px;">'+ces+'</b>'; } else { return '<b style="color: red;font-size: 23px;">'+ces+'</b>' } } function up_saletype(st) { var sales = 'Sales'; var trailready = 'Trail Ready'; var trail = 'Trail'; var trailcompleted = 'Trail Completed'; if (st == '1') { return '<div class="text-center"><span class="label label-default">'+sales+'</span></div>'; } else if (st == '2') { return '<div class="text-center"><span class="label label-danger">'+trail+'</span></div>'; } else if (st == '3') { return '<div class="text-center"><span class="label label-info">'+trailready+'</span></div>'; }else if (st == '4') { return '<div class="text-center"><span class="label label-success">'+trailcompleted+'</span></div>'; } } function pant_count(p){ if(p!=0){ return '<div class="text-center"><b style="color: blue; font-size: 25px;">'+p+'</b></div>'; }else{ return '<div class="text-center"><b style="color: black; font-size: 24px;">'+p+'</b></div>'; } } function shirt_count(s){ if(s!=0){ return '<div class="text-center"><b style="color: blue; font-size: 25px;">'+s+'</b></div>'; }else{ return '<div class="text-center"><b style="color: black; font-size: 24px;">'+s+'</b></div>'; } } var table = $('#SLData').DataTable({ 'ajax' : { url: '<?=site_url('welcome/get_sales'. $v);?>', type: 'POST', "data": function ( d ) { d.<?=$this->security->get_csrf_token_name();?> = "<?=$this->security->get_csrf_hash()?>"; }}, "buttons": [ { extend: 'copyHtml5', 'footer': true, exportOptions: { columns: [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 14 ] } }, /*{ extend: 'excelHtml5', 'footer': true, exportOptions: { columns: [ 0, 1, 2, 3, 4, 5, 6, 7, 8 ] } },*/ { extend: 'excelHtml5', 'footer': true, exportOptions: { columns: [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 14] } }, { extend: 'csvHtml5', 'footer': true, exportOptions: { columns: [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 14 ] } }, { extend: 'pdfHtml5', orientation: 'landscape', pageSize: 'A4', 'footer': true, exportOptions: { columns: [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 14 ] } }, { extend: 'colvis', text: 'Columns'}, ], /*"pageLength": 25,*/ "pageLength": <?=$page_count?>, "aaSorting": [[ 0, "desc" ]], "columns": [ { "data": "hold_ref", "visible": false }, { "data": "New_DC_number", "orderable": true }, { "data": "customer_name" }, { "data": "customer_phone", "searchable": false}, /*{ "data": "sale_date", className:"text-center" },*/ { "data": "pant_count", className: "text-center"}, { "data": "shirt_count", className: "text-center"}, { "data": "grand_total", "render": currencyFormat }, { "data": "paid", "render": currencyFormat }, { "data": "balance", "searchable": false, "render": balance}, /*{ "data": "discount", className: "text-center"},*/ { "data": "due_date", className: "text-center"}, /*{ "data": "cutting_remaining_new", className: "text-center"}, { "data": "stitching_remaining_new", className: "text-center"},*/ { "data": "neww_musthafa_cutting", className: "text-center", "render": cutting_stitching}, { "data": "neww_musthafa_stitching", className: "text-center", "render": cutting_stitching}, { "data": "Ready", className: "text-center", "render": new_status, "searchable": false}, { "data": "unit_process_status", "render": up_status}, { "data": "View", "searchable": false, "orderable": false }, { "data": "sells", "searchable": false, "orderable": false, className: "text-center", "render": up_saletype} ], "fnRowCallback": function (nRow, aData, iDisplayIndex) { nRow.id = aData.id; return nRow; }, "footerCallback": function ( tfoot, data, start, end, display ) { var api = this.api(), data; $(api.column(4).footer()).html( cf(api.column(4).data().reduce( function (a, b) { return pf(a) + pf(b); }, 0)) ); $(api.column(5).footer()).html( cf(api.column(5).data().reduce( function (a, b) { return pf(a) + pf(b); }, 0)) ); $(api.column(6).footer()).html( cf(api.column(6).data().reduce( function (a, b) { return pf(a) + pf(b); }, 0)) ); $(api.column(7).footer()).html( cf(api.column(7).data().reduce( function (a, b) { return pf(a) + pf(b); }, 0)) ); $(api.column(8).footer()).html( cf(api.column(8).data().reduce( function (a, b) { return pf(a) + pf(b); }, 0)) ); $(api.column(10).footer()).html( cf(api.column(10).data().reduce( function (a, b) { return pf(a) + pf(b); }, 0)) ); $(api.column(11).footer()).html( cf(api.column(11).data().reduce( function (a, b) { return pf(a) + pf(b); }, 0)) ); } }); $('#search_table').on( 'keyup change', function (e) { var code = (e.keyCode ? e.keyCode : e.which); if (((code == 13 && table.search() !== this.value) || (table.search() !== '' && this.value === ''))) { table.search( this.value ).draw(); } }); table.columns().every(function () { var self = this; $( 'input.datepicker', this.footer() ).on('dp.change', function (e) { self.search( this.value ).draw(); }); $( 'input:not(.datepicker)', this.footer() ).on('keyup change', function (e) { var code = (e.keyCode ? e.keyCode : e.which); if (((code == 13 && self.search() !== this.value) || (self.search() !== '' && this.value === ''))) { self.search( this.value ).draw(); } }); $( 'select', this.footer() ).on( 'change', function (e) { self.search( this.value ).draw(); }); }); }); function readyAllproductsClick(id,cutting_count,stitching_count){ if(cutting_count==0 && stitching_count==0){ var result = confirm("Confirm Want to Ready All Products !!! Id is"+id+"?"); } // var result = confirm("Confirm Want to Ready All Products !!! Id is"+id+"?"); if (result) { $.ajax({ type: "get", url: "<?=site_url("sales/readyAllProducts");?>", data : {id:id}, dataType: "text", success: function(t) { alert("Success - All Products are Ready to Delivery"); location.reload(); }, error:function(err){ alert(err); } }); } } </script> <script type="text/javascript"> $(document).ready(function () { Highcharts.getOptions().colors = Highcharts.map(Highcharts.getOptions().colors, function (color) { return { radialGradient: {cx: 0.5, cy: 0.3, r: 0.7}, stops: [[0, color], [1, Highcharts.Color(color).brighten(-0.3).get('rgb')]] }; }); <?php if ($chartData) { ?> $('#chart').highcharts({ chart: { }, credits: { enabled: false }, exporting: { enabled: false }, title: { text: '' }, xAxis: { categories: [<?php foreach ($months as $month) { echo "'" . $month . "', "; } ?>] }, yAxis: { min: 0, title: "" }, tooltip: { shared: true, followPointer: true, headerFormat: '<div class="well well-sm" style="margin-bottom:0;"><span style="font-size:12px">{point.key}</span><table class="table table-striped" style="margin-bottom:0;">', pointFormat: '<tr><td style="color:{series.color};padding:4px">{series.name}: </td>' + '<td style="color:{series.color};padding:4px;text-align:right;"> <b>{point.y}</b></td></tr>', footerFormat: '</table></div>', useHTML: true, borderWidth: 0, shadow: false, style: {fontSize: '14px', padding: '0', color: '#000000'} }, legend: { useHTML: true, style: { direction: "<?= $Settings->rtl ? 'rtl' : 'ltr'; ?>" } }, plotOptions: { series: { stacking: 'normal' } }, series: [{ type: 'column', name: '<?= $this->lang->line('tax'); ?>', data: [<?= implode(', ', $tax); ?>] }, { type: 'column', name: '<?= $this->lang->line('discount'); ?>', data: [<?= implode(', ', $discount); ?>] }, { type: 'column', name: '<?= $this->lang->line('sales'); ?>', data: [<?= implode(', ', $sales); ?>] } ] }); <?php } ?> <?php if ($topProducts) { ?> $('#chart2').highcharts({ chart: { }, title: { text: '' }, credits: { enabled: false }, exporting: { enabled: false }, tooltip: { shared: true, followPointer: true, headerFormat: '<div class="well well-sm" style="margin-bottom:0;"><span style="font-size:12px">{point.key}</span><table class="table table-striped" style="margin-bottom:0;">', pointFormat: '<tr><td style="color:{series.color};padding:4px">{series.name}: </td>' + '<td style="color:{series.color};padding:4px;text-align:right;"> <b>{point.y}</b></td></tr>', footerFormat: '</table></div>', useHTML: true, borderWidth: 0, shadow: false, style: {fontSize: '14px', padding: '0', color: '#000000'} }, plotOptions: { pie: { allowPointSelect: true, cursor: 'pointer', dataLabels: { enabled: false }, showInLegend: false } }, series: [{ type: 'pie', name: '<?=$this->lang->line('total_sold')?>', data: [ <?php foreach ($topProducts as $tp) { echo "['" . $tp->product_name . ' (' . $tp->product_code . ")', " . $tp->quantity . '],'; } ?> ] }] }); <?php } ?> }); </script> <!-- Products List Starts Here --> <?php $vs = "?vs=1"; /*if ($this->input->post('category')){ $vs .= "&category=".$this->input->post('category'); } if ($this->input->post('types')){ $vs .= "&types=".$this->input->post('types'); }*/ ?> <script type="text/javascript"> $(document).ready(function() { function ptype(x) { if (x == 'standard') { return '<?= lang('standard'); ?>'; } else if (x == 'combo') { return '<?= lang('combo'); ?>'; } else if (x == 'service') { return '<?= lang('service'); ?>'; } else { return x; } } function image(n) { if (n !== null) { return '<div style="width:32px; margin: 0 auto;"><a href="<?=base_url();?>uploads/'+n+'" class="open-image"><img src="<?=base_url();?>uploads/thumbs/'+n+'" alt="" class="img-responsive"></a></div>'; } return ''; } function method(n) { return (n == 0) ? '<span class="label label-primary"><?= lang('inclusive'); ?></span>' : '<span class="label label-warning"><?= lang('exclusive'); ?></span>'; } var table = $('#prTables').DataTable({ // 'ajax': '<?//=site_url('welcome/get_products/' .$vs);?>', 'ajax' : { url: '<?=site_url('welcome/get_products/1'.$vs);?>', type: 'POST', "data": function ( d ) { d.<?=$this->security->get_csrf_token_name();?> = "<?=$this->security->get_csrf_hash()?>"; }}, "buttons": [ { extend: 'copyHtml5', 'footer': false, exportOptions: { columns: [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ] } }, { extend: 'excelHtml5', 'footer': false, exportOptions: { columns: [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ] } }, { extend: 'csvHtml5', 'footer': false, exportOptions: { columns: [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ] } }, { extend: 'pdfHtml5', orientation: 'landscape', pageSize: 'A4', 'footer': false, exportOptions: { columns: [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ] } }, { extend: 'colvis', text: 'Columns'}, ], "pageLength": 25, "columns": [ { "data": "pid", "visible": false }, { "data": "image", "searchable": false, "orderable": false, "render": image }, { "data": "code" }, { "data": "pname" }, { "data": "unit_name", className:"text-center"}, { "data": "type", "render": ptype }, { "data": "cname" }, { "data": "quantity", "render": quantity }, /* { "data": "tax" }, { "data": "tax_method", "render": method },*/ <?php if ($Admin) { ?> { "data": "cost", "render": currencyFormat, "searchable": false }, <?php } ?> { "data": "price", "render": currencyFormat, "searchable": false }, { "data": "Sales_Product" }, { "data": "Actions", "searchable": false, "orderable": false } ], "footerCallback": function ( tfoot, data, start, end, display ) { var api = this.api(), data; $(api.column(7).footer()).html( cf(api.column(7).data().reduce( function (a, b) { return pf(a) + pf(b); }, 0)) ); $(api.column(8).footer()).html( cf(api.column(8).data().reduce( function (a, b) { return pf(a) + pf(b); }, 0)) ); } }); // $('#prTables tfoot th:not(:last-child, :nth-last-child(2), :nth-last-child(3))').each(function () { // var title = $(this).text(); // $(this).html( '<input type="text" class="text_filter" placeholder="'+title+'" />' ); // }); function quantity(qty){ qty = parseFloat(qty); if(qty>=10){ return "<div class='text-center'><span style='color: green; font-size: 18px; font-weight: 600;'>"+qty.toFixed(2)+"<span></div>"; }else if(qty<=0){ return "<div class='text-center'><span style='color: red; font-size: 18px; font-weight: 600;'>"+qty.toFixed(2)+"<span></div>"; }else if(qty > 0 && qty < 10){ return "<div class='text-center'><span style='color: orange; font-size: 18px; font-weight: 600;'>"+qty.toFixed(2)+"<span></div>"; } } $('#search_table').on( 'keyup change', function (e) { var code = (e.keyCode ? e.keyCode : e.which); if (((code == 13 && table.search() !== this.value) || (table.search() !== '' && this.value === ''))) { table.search( this.value ).draw(); } }); table.columns().every(function () { var self = this; $( 'input', this.footer() ).on( 'keyup change', function (e) { var code = (e.keyCode ? e.keyCode : e.which); if (((code == 13 && self.search() !== this.value) || (self.search() !== '' && this.value === ''))) { self.search( this.value ).draw(); } }); $( 'select', this.footer() ).on( 'change', function (e) { self.search( this.value ).draw(); }); }); }); </script> <!-- Products List Enddss Here --> <section class="content"> <div class="row"> <div class="col-xs-12"> <div class="box box-success"> <div class="box-header"> <h3 class="box-title"><?= lang('quick_links'); ?></h3> </div> <div class="box-body"> <?php if ($this->session->userdata('store_id')) { ?> <a class="btn btn-app" href="<?= site_url('pos'); ?>"> <i class="fa fa-th"></i> <?= lang('pos'); ?> </a> <?php } ?> <a class="btn btn-app" href="<?= site_url('products'); ?>"> <i class="fa fa-barcode"></i> <?= lang('products'); ?> </a> <?php if ($this->session->userdata('store_id')) { ?> <a class="btn btn-app" href="<?= site_url('sales'); ?>"> <i class="fa fa-shopping-cart"></i> <?= lang('sales'); ?> </a> <!--<a class="btn btn-app" href="<?= site_url('sales/opened'); ?>">--> <!-- <span class="badge bg-yellow"><?//=sizeof($suspended_sales);?></span> --> <!--<i class="fa fa-bell-o"></i> <?= lang('opened_bills'); ?> </a>--> <?php } ?> <a class="btn btn-app" href="<?= site_url('categories'); ?>"> <i class="fa fa-folder-open"></i> <?= lang('categories'); ?> </a> <!--<a class="btn btn-app" href="<?= site_url('gift_cards'); ?>"> <i class="fa fa-credit-card"></i> <?= lang('gift_cards'); ?> </a>--> <a class="btn btn-app" href="<?= site_url('customers'); ?>"> <i class="fa fa-users"></i> <?= lang('customers'); ?> </a> <?php if ($Admin) { ?> <!--<a class="btn btn-app" href="<?= site_url('settings'); ?>"> <i class="fa fa-cogs"></i> <?= lang('settings'); ?> </a>--> <a class="btn btn-app" href="<?= site_url('reports'); ?>"> <i class="fa fa-bar-chart-o"></i> <?= lang('reports'); ?> </a> <a class="btn btn-app" href="<?= site_url('users'); ?>"> <i class="fa fa-users"></i> <?= lang('users'); ?> </a> <?php if ($this->db->dbdriver != 'sqlite3') { ?> <a class="btn btn-app" href="<?= site_url('settings/backups'); ?>"> <i class="fa fa-database"></i> <?= lang('backups'); ?> </a> <?php } ?> <!-- <a class="btn btn-app" href="<?= site_url('settings/updates'); ?>"> <i class="fa fa-upload"></i> <?= lang('updates'); ?> </a> --> <?php } ?> </div> </div> <!--<div class="row"> <div class="col-md-8"> <div class="box box-primary"> <div class="box-header"> <h3 class="box-title"><?= lang('sales_chart'); ?></h3> </div> <div class="box-body"> <div id="chart" style="height:300px;"></div> </div> </div> </div> <div class="col-md-4"> <div class="box box-primary"> <div class="box-header"> <h3 class="box-title"><?= lang('top_products') . ' (' . date('F Y') . ')'; ?></h3> </div> <div class="box-body"> <div id="chart2" style="height:300px;"></div> </div> </div> </div> </div>--> <div class="row"> <div class="col-md-12" style="margin-bottom: 50px;"> <div class="table-responsive" style="border: 1px solid gray;border-radius: 10px;box-shadow: 1px 1px grey; padding: 25px 10px 25px 10px;border-top: 4px solid #00a65a;background: white;"> <?php $da=date("Y-m-d"); $s_date=$da;$end_date=$da; $un=''; if(isset($_POST['start_date'])){ $s_date=$_POST['start_date'];} if(isset($_POST['end_date'])){ $end_date=$_POST['end_date'];} if(isset($_POST['unit_status'])){ $un=$_POST['unit_status'];} ?> <?= form_open("welcome");?> <div class="col-sm-3"> <div class="form-group"> <label class="control-label" for="start_date"><?= lang("start_date"); ?></label> <input type="date" name="start_date" class="form-control" value="<?=$s_date?>" id="start_date"> </div> </div> <div class="col-sm-3"> <div class="form-group"> <label class="control-label" for="end_date"><?= lang("end_date"); ?></label> <input type="date" name="end_date" class="form-control" value="<?=$end_date?>" id="end_date"> </div> </div> <div class="col-sm-3"> <div class="form-group"> <label class="control-label" for="sells">Unit Status</label> <select name="unit_status" id="unit_status" class="form-control select2" style="width:100%"> <option value="1" <?php if($this->input->post('unit_status')==1){ echo 'selected';} ?>>Not Ready</option> <!--<option value="">All Unit Status</option>--> <option value="2" <?php if($this->input->post('unit_status')==2){ echo 'selected';} ?>>Unit Ready</option> </select> </div> </div> <div class="col-sm-3"> <div class="form-group"> <br> <button type="submit" class="btn btn-primary"><?= lang("submit"); ?></button> </div> </div> <?= form_close();?> <table id="SLData" class="table table-striped table-bordered table-condensed table-hover display" style="padding-top: 5px;"> <thead> <tr> <td colspan="16" class="p0"><input type="text" class="form-control b0" name="search_table" id="search_table" placeholder="<?= lang('type_hit_enter'); ?>" style="width:100%;"></td> </tr> <tr class="active"> <th style="max-width:30px;"><?= lang("id"); ?></th> <th>DC Number</th> <th style="max-width:100px;"> <?= lang("customer"); ?> </th> <th>Phone Number</th> <th>P</th> <th>S</th> <th class="col-xs-1">Grand Total</th> <th class="col-xs-1"><?= lang("paid"); ?></th> <th class="col-xs-1">Balance</th> <th>Due Date</th> <th>C</th> <th>S</th> <th>Ready</th> <th class="col-xs-1">Unit Process Status</th> <th style="max-width:100px;" class="col-xs-1"> View </th> <th class="col-xs-1">Sale Type</th> </tr> </thead> <tbody> <tr> <td colspan="16" class="dataTables_empty"><?= lang('loading_data_from_server'); ?></td> </tr> </tbody> <tfoot> <tr class="active"> <th style="max-width:30px;"><input type="text" class="text_filter" placeholder="[<?= lang('id'); ?>]"></th> <th class="col-sm-1"><input type="text" class="text_filter" placeholder="[DC]"></th> <th class="col-sm-2"><input type="text" class="text_filter" placeholder="[<?= lang('customer'); ?>]"></th> <th class="col-sm-1"><input type="text" class="text_filter" placeholder="[<?= lang('phone_no'); ?>]"></th> <th class="col-sm-1">P</th> <th class="col-sm-1">S</th> <th class="col-sm-1">Total</th> <th class="col-sm-1">Paid</th> <th class="col-sm-1">Balance</th> <th class="col-sm-2"><span class="datepickercon"><input type="text" class="text_filter datepicker" placeholder="[<?= lang('date'); ?>]"></span></th> <th class="col-sm-1">C</th> <th class="col-sm-1">S</th> <th class="col-sm-1">Ready</th> <th class="col-sm-1">Unit Process Status</th> <th class="col-sm-1">View</th> <th class="col-sm-1">Sale Type</th> </tr> </tfoot> </table> </div> </div> </div> <br><br> <!-- Products Dashboard Starts Here --> <div class="row"> <div class="col-md-12" style="margin-bottom: 50px;"> <div class="table-responsive" style="border: 1px solid gray;border-radius: 10px;box-shadow: 1px 1px grey; padding: 25px 10px 25px 10px;border-top: 4px solid #00a65a;background: white;"> <table id="prTables" class="table table-striped table-bordered table-condensed table-hover display" style="padding-top: 5px;"> <thead> <tr> <td colspan="16" class="p0"><input type="text" class="form-control b0" name="search_table" id="search_table" placeholder="<?= lang('type_hit_enter'); ?>" style="width:100%;"></td> </tr> <tr class="active"> <th style="max-width:30px;"><?= lang("id"); ?></th> <th style="max-width:30px;"><?= lang("image"); ?></th> <th class="col-xs-1"><?= lang("code"); ?></th> <th><?= lang("name"); ?></th> <th><?= lang("units"); ?></th> <th class="col-xs-1"><?= lang("type"); ?></th> <th class="col-xs-1"><?= lang("category"); ?></th> <th class="col-xs-1"><?= lang("quantity"); ?></th> <!--<th class="col-xs-1"><?= lang("tax"); ?></th> <th class="col-xs-1"><?= lang("method"); ?></th>--> <?php if ($Admin) { ?> <th class="col-xs-1"><?= lang("cost"); ?></th> <?php } ?> <th class="col-xs-1"><?= lang("price"); ?></th> <th class="col-xs-1">Sales Product</th> <th style="width:165px;"><?= lang("actions"); ?></th> </tr> </thead> <tbody> <tr> <td colspan="16" class="dataTables_empty"><?= lang('loading_data_from_server'); ?></td> </tr> </tbody> <tfoot> <tr> <th style="max-width:30px;"><input type="text" class="text_filter" placeholder="[<?= lang('id'); ?>]"></th> <th style="max-width:30px;"><?= lang("image"); ?></th> <th class="col-xs-1"><input type="text" class="text_filter" placeholder="[<?= lang('code'); ?>]"></th> <th><input type="text" class="text_filter" placeholder="[<?= lang('name'); ?>]"></th> <th>Units</th> <th class="col-xs-1"><input type="text" class="text_filter" placeholder="[<?= lang('type'); ?>]"></th> <th class="col-xs-1"><input type="text" class="text_filter" placeholder="[<?= lang('category'); ?>]"></th> <th class="col-xs-1"><input type="text" class="text_filter" placeholder="[<?= lang('quantity'); ?>]"></th> <!--<th class="col-xs-1"><input type="text" class="text_filter" placeholder="[<?= lang('tax'); ?>]"></th> <th class="col-xs-1"> <select class="select2 select_filter"><option value=""><?= lang("all"); ?></option><option value="0"><?= lang("inclusive"); ?></option><option value="1"><?= lang("exclusive"); ?></option></select> </th>--> <?php if ($Admin) { ?> <th class="col-xs-1"><?= lang("cost"); ?></th> <?php } ?> <th class="col-xs-1"><?= lang("price"); ?></th> <th class="col-xs-1">Sales Product</th> <th style="width:165px;"><?= lang("actions"); ?></th> </tr> </tfoot> </table> </div> </div> </div> <!-- Products Dashboard Endsss Here --> </div> </div> </section>