EVOLUTION-NINJA
Edit File: bidding_history.php
<?php $this->load->view('includes/client_header');?> <section class="mid_work_one"> <div class="container"> <!-- <div class="row mid_container"> <form class="form-horizontal"> <div class="list_table"> <div class="table-responsive"> <table class="table"> <thead> <tr> <th>Sl No</th> <th>Bidding Title</th> <th>Date</th> <th>Time</th> <th>Action</th> </tr> </thead> <tbody> <?php foreach ($bidding as $key => $value) { ?> <tr class="row<?php echo $value->bidding_session_id; ?>"> <td><?php echo $key+1;?></td> <td><a href="<?php echo base_url('/edit-session'); ?>/<?php echo $value->bidding_session_id; ?>"><?php echo $value->bidding_title; ?></a></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 echo $value->bidding_time; ?></td> <td><span class="fa fa-trash" onclick="delete_iadmin(<?php echo $value->bidding_session_id;?>);" aria-hidden="true"></span>  </td> </tr> <?php } ?> </tbody> </table> </div> </div> </form> </div> --> <!--- <ul class="nav nav-tabs" role="tablist"> <li class="active"> <a href="#client" role="tab" data-toggle="tab"> <icon class="fa fa-user"></icon> Client </a> </li> <li><a href="#vendor" role="tab" data-toggle="tab"> <i class="fa fa-user"></i> Vendor </a> </li> </ul>---> <div class=""> <div class="tab" role="tabpanel"> <!-- Nav tabs --> <ul class="nav nav-tabs" role="tablist"> <li role="presentation" class="active"><a href="#Section1" aria-controls="home" role="tab" data-toggle="tab"><icon class="fa fa-user"></icon> Procurements</a></li> <li role="presentation"><a href="#Section2" aria-controls="profile" role="tab" data-toggle="tab"><icon class="fa fa-user"></icon> Biddings</a></li> </ul> <!-- Tab panes --> <div class="tab-content tabs"> <div role="tabpanel" class="tab-pane fade in active" id="Section1"> <h4 class="info_text">Completed Procurement Events</h4> <form class="form-horizontal"> <div class="table-responsive"> <table class="table prio_table text-nowrap"> <thead> <tr> <th>#</th> <th>Event Name</th> <th>Time Limit Per Item</th> <th>Date</th> <th>Start Time</th> <th>Close Time</th> <th>Participants</th> <th>Action</th> </tr> </thead> <tbody> <?php foreach($bidding 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->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 $value->close_biddding_time; ?></td> <td><?php echo count($vendor);?></td> <td> <a href="<?php echo base_url('/bidding-client-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> <div role="tabpanel" class="tab-pane fade" id="Section2"> <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>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->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('/client-bidding-event-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> </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>