EVOLUTION-NINJA
Edit File: old_quotation_list.php
<?php $this->load->view('includes/admin_header');?> <style type="text/css"> /*#print{ display: none; }*/ </style> <div class="main-container " id="main-container"> <div class="main-content"> <div class="main-content-inner"> <div class=" page-content" style="background-color:#f0f0f0;"> <div class="row"> <div class="col-sm-10" style=""> <h3>Old Quotation List</h3> </div> <div class="col-sm-2 sort-by"> <ul class="breadcrumb"> </ul> </div> </div> <div class="row" style="background-color:white;margin-top:10px;"> <div class="col-xs-12"> <!-- PAGE CONTENT BEGINS --> <div class="hr dotted"></div> <div> <div class="row search-page" id="search-page-1"> <div class="col-xs-12"> <div class="row"> <div class="col-xs-12 col-sm-12"> <div class="row"> <div id="addele_more"> <div class="col-sm-12 table-responsive"> <table class="table" id="maintable"> <thead> <tr id="column_id"> <th>Sl No</th> <th>Quotation Number</th> <th>Client Name</th> <th style="width:40%;">Description</th> <th style="width:30%;">Address</th> <th>Sub Total</th> <th>GST(%)</th> <th>GST Rs.</th> <th>Amount</th> <th>Quotation Date</th> <th style="width:10%; !important">Till Valid</th> <!-- <th>Converted Status</th> <th >Action</th> <th>Delete</th>--> </tr> </thead> <tbody id="tbody_new"> <?php $i=1; foreach($quotation as $key=>$value){ ?> <tr class="hoverr click-on information row<?php echo $value->quotation_id;?>"> <td><?php echo $key+1; ?></td> <td><?php echo $value->quotation_number; ?></td> <!-- <td><a href="<?php echo site_url("quotation-edit");?>/<?php echo $value->quotation_id; ?>"><?php echo $value->client_name;?></a>--> <!--</td> --> <td><a href="<?php echo site_url("old-quotation");?>/<?php echo $value->id; ?>"><?php echo $value->client_name;?></a> </td> <td> <?php if(!empty($value->quote_des)){ if (strpos($value->quote_des, '["') !== false) { $old = ['[', ']', '"']; $new = ['', '', '']; $org_srt1=str_replace($old,$new,$value->quote_des); echo $org_srt1; }else { echo $value->quote_des; }} ?></td> <td><?php echo $value->quote_add; ?></td> <td><?php echo $value->subamount; ?></td> <td><?php echo $value->gst; ?></td> <td><?php echo $value->gst_amount; ?></td> <td><?php $num=$value->q_amount;$explrestunits = "" ; if(strlen($num)>3) { $lastthree = substr($num, strlen($num)-3, strlen($num)); $restunits = substr($num, 0, strlen($num)-3); $restunits = (strlen($restunits)%2 == 1)?"0".$restunits:$restunits; $expunit = str_split($restunits, 2); for($i=0; $i<sizeof($expunit); $i++) { if($i==0) { $explrestunits .= (int)$expunit[$i].","; } else { $explrestunits .= $expunit[$i].","; } } $thecash = $explrestunits.$lastthree; echo $thecash; } else { $thecash = $num; echo $thecash; } ?></td> <td><?php echo date('d-m-Y',strtotime($value->quo_date)); ?></td> <td><?php echo date('d-m-Y',strtotime($value->quot_end_date)); ?></td> <!-- <td><?php if($user_type_ids==1){ if($value->convert_status!='APPROVED') {?> <a href="javascript:void(0)" onclick="approve('<?php echo $value->quotation_id; ?>');"> <button class="button<?php echo $value->quotation_id; ?>" style="margin-bottom: 5px;">Approve</button></a></br> <?php if($value->quotation_status!='REJECTED'){ ?> <button class="button1<?php echo $value->quotation_id; ?>" onclick="reject('<?php echo $value->quotation_id; ?>');">Reject</button> <?php } else { ?> <button class="button1<?php echo $value->quotation_id; ?>">Rejected</button> <?php } ?> <?php } else{ ?> <a href="#"><button disabled="disabled">APPROVED</button><?php } } else { echo $value->convert_status;} ?></a></td> <td> <?php echo $value->quotation_status; ?> </td> <td> <button onclick="send('<?php echo $value->quotation_id; ?>');" data-toggle='modal' data-target='#myModal' style="width: 30px !important; margin-right: 3px;"><i class="fa fa-envelope" aria-hidden="true"></i></button><button onclick="send('<?php echo $value->quotation_id; ?>');" data-toggle='modal' data-target='#msgModal' style="width:30px !important;margin-top: 10px;"><i class="fa fa-paper-plane" aria-hidden="true"></i></button> </td> <td> <span class="glyphicon glyphicon-trash" onclick='delete_quotation("<?php echo $value->quotation_id; ?>");'></span></td>--> </tr> <?php $i++; } ?> </tbody> </table> </div> <div id="print"></div> </div> </div> </div> </div> </div> </div> </div> </div><!-- /.col --> </div><!-- /.row --> </div><!-- /.page-content --> </div> </div><!-- /.main-content --> <script src="<?php echo base_url('admin_assets/assets/js/jquery-2.1.4.min.js'); ?>"></script> <!-- <script src="<?php echo base_url('admin_assets/assets/js/bootstrap.min.js'); ?>"></script> --> <!-- page specific plugin scripts --> <script src="<?php echo base_url('admin_assets/assets/js/tree.min.js'); ?>"></script> <script src="<?php echo base_url('admin_assets/assets/js/select2.min.js'); ?>"></script> <script src="<?php echo base_url('admin_assets/assets/js/jquery-ui.custom.min.js'); ?>"></script> <script src="<?php echo base_url('admin_assets/assets/js/jquery.ui.touch-punch.min.js'); ?>"></script> <script src="<?php echo base_url('admin_assets/assets/js/holder.min.js'); ?>"></script> <!-- ace scripts --> <script src="<?php echo base_url('admin_assets/assets/js/ace-elements.min.js'); ?>"></script> <script src="<?php echo base_url('admin_assets/assets/js/ace.min.js'); ?>"></script> <!-- inline scripts related to this page --> <script src="<?php echo base_url('admin_assets/assets/js/jquery-ui.js');?>"></script> <script src="<?php echo base_url('admin_assets/assets/js/jquery.table2excel.js');?>"></script> <script src="<?php echo base_url('admin_assets/assets/datatables/jquery.dataTables.min.js');?>"></script> <script src="<?php echo base_url('admin_assets/assets/datatables/dataTables.bootstrap.min.js');?>"></script> <link rel="stylesheet" href="<?php echo base_url('admin_assets/assets/datatables/dataTables.bootstrap.css');?>"> <script src="<?php echo base_url('admin_assets/assets/js/jquery.table2excel.js');?>"></script> <script type="text/javascript"> var datatable; //var tbody = $('#maintable'); datatable = $('#maintable').DataTable(); $("#potentials_list").click(function(){ //alert(); $("#maintable").table2excel({ exclude: ".noExl", name: "Excel Document Name", filename: "potential-list", fileext: ".xls", exclude_img: true, exclude_links: true, exclude_inputs: true }); }); </script> <style type="text/css"> #treeview-searchable .node-disabled { display: none; } .hoverr:hover .addd { display:block; } .addd{ display:none; } .add_more { padding: 0px 7px !important; font-size: 12px !important; } #block{display:none;padding-left:10px;} .pd-7{ padding-right:7px !important; padding-left:7px !important; } .pd-9{ padding:2px 9px !important; } </style> <style type="text/css"> .yes_form input{ width:100% !important; border:none !important; border-bottom:1px solid gray !important; margin-bottom:5%; } .yes_form select{ width:100% !important; border:none !important; border-bottom:1px solid gray !important; margin-bottom:5%; } .yes_form textarea{ width:100% !important; border:none !important; border-bottom:1px solid gray !important; margin-bottom:5%; } .glyphicon-plus-sign:before { font-size: 18px; } .glyphicon { top: 12px; } </style> <?php $this->load->view('includes/admin_footer');?>