%PDF- <> %âãÏÓ endobj 2 0 obj <> endobj 3 0 obj <>/ExtGState<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI] >>/Annots[ 28 0 R 29 0 R] /MediaBox[ 0 0 595.5 842.25] /Contents 4 0 R/Group<>/Tabs/S>> endobj ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<> endobj 2 0 obj<>endobj 2 0 obj<>es 3 0 R>> endobj 2 0 obj<> ox[ 0.000000 0.000000 609.600000 935.600000]/Fi endobj 3 0 obj<> endobj 7 1 obj<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]>>/Subtype/Form>> stream
<style> .text-red { color: red; } .text-green { color: green; } .success { color: #3c763d; background-color: #dff0d8; border-color: #d6e9c6; display: none; } </style> <div id="feedback"> <!-- <h1><img src="<//?= base_url('assets/imgs/doctors_icons.jpg') ?>" class="header-img" style="margin-top:-2px;">Vendor </h1>--> <h1><i class="fa fa-hand-peace-o titleIconsize"></i> Vendor</h1> <div class="alert-box success">Update Successfull !!!</div> <hr> <div class="clearfix"></div> <!---- END ---> <div class="table-responsive"> <table class="table table-striped custab"> <thead> <tr> <th>ID</th> <th style=" width: 15%;">Name</th> <th>Contact Number</th> <th>Email</th> <th>View-Detail</th> <th>Requested On</th> <th>Approved</th> </tr> </thead> <?php $i = 1; foreach($view_vendor as $row ) { ?> <tr> <td><?=$i?></td> <td><?=$row['name']?></td> <td><?=$row['phone']?></td> <td><?=$row['email']?></td> <td><button type="button" class="btn btn-primary" data-toggle="modal" data-target="#basicExampleModal" onclick="showModal('<?php echo $row['id'];?>')">Click View</button></td> <td><?php echo date("d-m-Y",strtotime($row['created_at']));?></td> <td><?php if($row['approved']=='1') {?> <button type="button" class="btn btn-default btn-sm" id="<?php echo $row['id'].','.$row['approved'];?>"><i class="fa fa-square text-green" id="<?php echo $row['id'];?>"></i></button> <?php } else { ?> <button type="button" class="btn btn-default btn-sm" id="<?php echo $row['id'].','.$row['approved'];?>"><i class="fa fa-square text-red" id="<?php echo $row['id'];?>"></i> </button> <?php } ?> </td> <?php $i++;} ?> </tr> <div class="modal fade" id="add_edit_articles" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"> <div class="modal-dialog" role="document"> <div class="modal-content"> </div> </div> </div> </table> </div> <div class="clearfix"></div><hr> <!--<div class="alert alert-info">No tests Courses found!</div>--> <!-- add edit home categorie --> <script type="application/javascript"> $(function(){ $(document).on('click','.btn-sm',function(){ var stid= $(this).attr('id'); var ret = stid.split(" "); if(confirm('Are you sure you want to change status?')) { $.ajax({ type:'POST', url:'<?php echo base_url();?>admin/vendor/vendor/status', data:{'stid':stid}, success: function(data){ if(data){ $("div.success" ).fadeIn( 300 ).delay( 1500 ).fadeOut( 400 ); setTimeout(function() { window.location='<?php echo base_url();?>admin/vendor'; }, 1000); }else{ alert("can't delete the row") } } }); } }); }); function showModal(edi) { $("#myModal .modal-title").html(edi) $("#myModal").modal(); var sid = edi; $.ajax({ type:'POST', url:'<?php echo base_url();?>admin/vendor/vendor/showdetail', data:{'sid':sid}, success: function(data){ $('#res_special').fadeIn().html(data); } }); } </script> <!-- Button trigger modal --> <!-- Modal --> <div class="modal fade" id="basicExampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true"> <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="exampleModalLabel">Vendor Detail</h5> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> </button> </div> <div class="modal-body"> <div id="res_special"> </div> </div> <div class="modal-footer"> <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button> </div> </div> </div> </div> </div>