EVOLUTION-NINJA
Edit File: bidding_vendor_history.php
<?php $this->load->view('includes/vendor_header');?> <section class="mid_work_one"> <div class="container"> <div class=""> <div class="tab" role="tabpanel"> <div> <h4 class="info_text">Completed Biddings</h4> <form class="form-horizontal"> <div class="table-responsive"> <table class="table prio_table text-nowrap"> <thead> <tr> <th>#</th> <th>Company Name</th> <th>Event Name</th> <th>Time Limit Per Item</th> <th>Date</th> <th>Time</th> <!-- <th>Participants</th> --> <th>Action</th> </tr> </thead> <tbody> <?php foreach($bidding_new as $key => $value) { $vendor = $this->db->where('bidding_id', $value->bidding_session_id)->get('vendor_bidding_table')->result(); ?> <tr class="row<?php echo $value->bidding_session_id; ?>"> <td><?php echo $key+1;?></td> <!--<td><?php //echo $value->company_name; ?></td>--> <td><?php echo $user_comapny[$key]->company_name; ?> <td><?php echo $value->bidding_title; ?></td> <td><?php echo $value->bidding_limit_time; ?> Sec</td> <?php if($value->final_bidding_date!='0000-00-00'){ ?> <td><?php echo Date('d-m-Y', strtotime($value->final_bidding_date)); ?></td> <?php } else { ?> <td></td> <?php } ?> <td><?php if($value->start_biddding_time == '') { echo $value->bidding_time; } else { echo $value->start_biddding_time; } ?></td> <!-- <td><?php echo count($vendor);?></td> --> <td> <a href="<?php echo base_url('/bidding-vendor-report'); ?>/<?php echo $value->bidding_session_id; ?>"><button type="button" class="btn btn-danger btn-xs">Report</button></a> </td> </tr> <?php } ?> </tbody> </table> </div> </form> </div> <!------------ vendor --------------------> </div> </div> </div> </section> </body> </html> <script type="text/javascript"> var datatable; var tbody = $('#table_body'); datatable = $('.table').DataTable({ }); function delete_iadmin(id) { var id = id; swal({ title: "Are you sure?", text: "You will not be able to recover this data!", type: "warning", showCancelButton: true, confirmButtonColor: "#DD6B55", confirmButtonText: "Yes, delete it!", cancelButtonText: "No, cancel plz!", closeOnConfirm: false, closeOnCancel: false }, function(isConfirm){ if (isConfirm) { $(".sweet-alert").hide(); $(".sweet-overlay").hide(); $.ajax({ url:"<?php echo site_url("delete-procurement")?>", type:"POST", data:{id:id}, success:function(response) { response=jQuery.parseJSON(response); console.log(response); if(response.result == 1) { toastr["success"]("Deleted successfully"); $('.row'+id).hide(); } } }); } else { $(".sweet-alert").hide(); $(".sweet-overlay").hide(); } }); } </script> <style type="text/css"> /*.tab .nav-tabs{ border: none; border-bottom: 2px solid #079fc9; margin: 0; } .tab .nav-tabs li a{ padding: 10px 20px; margin: 0 10px -1px 0; font-size: 17px; font-weight: 600; color: #293241; text-transform: uppercase; border: 2px solid #e6e5e1; border-bottom: none; border-radius: 5px 5px 0 0; z-index: 1; position: relative; transition: all 0.3s ease 0s; } .tab .nav-tabs li a:hover, .tab .nav-tabs li.active a{ background: #fff; color: #079fc9; border: 2px solid #079fc9; border-bottom-color: transparent; } .tab .nav-tabs li a:before{ content: ""; display: block; height: 2px; background: #fff; position: absolute; bottom: -2px; left: 0; right: 0; transform: scaleX(0); transition: all 0.3s ease-in-out 0s; } .tab .nav-tabs li.active a:before, .tab .nav-tabs li a:hover:before{ transform: scaleX(1); } .tab .tab-content{ padding: 10px; font-size: 17px; color: #6f6f6f; line-height: 30px; letter-spacing: 1px; position: relative; } @media only screen and (max-width: 479px){ .tab .nav-tabs{ border: none; } .tab .nav-tabs li{ width: 100%; text-align: center; margin-bottom: 15px; } .tab .nav-tabs li a{ margin: 0; border-bottom: 2px solid transparent; } .tab .nav-tabs li a:before{ content: ""; width: 100%; height: 2px; background: #079fc9; position: absolute; bottom: -2px; left: 0; } } */ </style> <style type="text/css"> .row { margin-right: 0px !important; margin-left: 0px !important; } </style>