/
home
/
capindnl
/
public_html
/
capindhan_master
/
Upload File
HOME
<?php include("include/header1.php"); $_SESSION['page_menu']=array('website','member_join'); if(!empty($_POST['mul_del'])){ foreach($_POST['mul_del'] as $code) { $id= $code; $photo_sql= "SELECT join_img,aadhar_img FROM joinus WHERE joinus_id='".$id."'"; $rs= mysqli_query($obj->mysqli,$photo_sql); $photo= mysqli_fetch_assoc($rs); if(is_file('upload/join/'.$photo['join_img'])){ unlink('upload/join/'.$photo['join_img']); } if(is_file('upload/join/'.$photo['aadhar_img'])){ unlink('upload/join/'.$photo['aadhar_img']); } } $col= 'joinus_id'; $table= 'joinus'; $page= 'member_join.php'; $img= "join_img"; $path= "upload/join/"; $obj->delete_multiple($col,$table,$page,$img,$path); } ?> <!-- Left side column. contains the logo and sidebar --> <aside class="main-sidebar"> <!-- sidebar: style can be found in sidebar.less --> <section class="sidebar"> <!-- Sidebar user panel --> <!-- /.search form --> <!-- sidebar menu: : style can be found in sidebar.less --> <?php include 'include/sidebar.php'; ?> <?php include 'include/admin-menu.php'; ?> </section> <!-- /.sidebar --> </aside> <!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <?php if(!empty($_REQUEST['msg'])){ echo '<section class="content-header"> <div class="row"> <div class="col-md-12"> <div class="alert alert-success alert-dismissable"> <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button> <h4><i class="icon fa fa-check"></i>'.$_REQUEST['msg'].'</h4> </div> </div> </div> </section>'; } ?> <?php if(!empty($obj->errorMsg)){ ?> <section class="content-header"> <div class="row"> <div class="col-md-12"> <div class="alert alert-success alert-dismissable"> <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button> <h4><i class="icon fa fa-check"></i>Record Inserted Successfull</h4> </div> </div> </div> </section> <?php } ?> <section class="content-header"> <h1> Career <small></small> </h1> </section> <section class="content"> <div class="row"> <div class="col-xs-12"> <div class="box"> <div class="box-header"> <h3 class="box-title"></h3> </div> <!-- /.box-header --> <div class="box-body"> <form id="vnews" action="member_join.php" method="post"> <div class="table-responsive"> <table id="example1" class="table table-bordered table-striped table-responsive"> <thead> <tr> <th scope="col">#</th> <th scope="col">Sr. No.</th> <th scope="col">Image</th> <th scope="col">Name</th> <th scope="col">Mobile</th> <th scope="col">Email</th> <th scope="col">DOB</th> <th scope="col">Action</th> </thead> <?php $res= $obj->getTable('joinus','joinus_id desc'); if($res){ $i=1; foreach($res as $join_data) { ?> <tr> <th scope="col"><input type="checkbox" name="mul_del[]" id="mul_del[]" value="<?= $join_data['joinus_id'] ?>"/></th> <td scope="col"><?= $i++ ?></td> <td scope="col"><img src="upload/join/<?= $join_data['join_img'] ?>" width="60" height="60"/></td> <td scope="col"><?= $join_data['f_name'] ?></td> <td scope="col"><?= $join_data['phone'] ?></td> <td scope="col"><?= $join_data['email'] ?></td> <td scope="col"><?= date('d M Y',strtotime($join_data['dob'])) ?></td> <td scope="col"> <a class="btn btn-success btn-xs" href="member_view.php?view=<?= $join_data['joinus_id'] ?>"> View </a> <a class="btn btn-danger btn-xs" href="javascript:muldelete()"> <i class="glyphicon glyphicon-trash icon-white"></i> Delete</a> </td> </tr> <?php } } ?> </table> </div> </form> </div> <!-- /.box-body --> </div> <!-- /.box --> </div> <!-- /.col --> </div> <!-- /.row --> </section> <!-- /.content --> </div> <!-- /.content-wrapper --> <?php include 'include/footer.php'; ?> <div class="control-sidebar-bg"></div> <!-- ./wrapper --> <script src="plugins/jQuery/jQuery-2.1.4.min.js"></script> <script type="text/javascript"> function muldelete() { element_lenght= vnews.elements.length; for(i=0;i<element_lenght;i++) { if(vnews.elements[i].name=="mul_del[]") { if(vnews.elements[i].checked==true) { if(confirm("Are you sure delete record(s)?")) { this.vnews.submit(); break; } } } } } </script> <script src="js/jquery.min.js"></script> <script type="text/javascript" src="js/jquery.mousewheel.min.js"></script> <script type="text/javascript" src="js/jquery.dateselect.js"></script> <script src="js/jquery-ui.min.js"></script> <script> $.widget.bridge('uibutton', $.ui.button); </script> <script src="js/jquery.validate.min.js"></script> <script> $(document).ready(function(){ $('#franchises_form').validate({ rules: { name: { required: true }, fname: { required: true }, addr: { required: true }, mobile: { minlength: 10, maxlength: 10, required: true }, pass: { required: true }, qualification: { required: true }, faculty_photo: { required: true }, dipartment: { required: true }, }, messages: { name: { required: "Please Enter Name", }, name: { required: "Please Enter Father's Name", }, addr: { required: "Please Enter Address", }, mobile: { required: "Please Enter Mobile No.", }, qualification: { required:"Please Enter Qualification", }, faculty_photo: { required:"Please Enter Photo", }, dipartment: { required:"Please Select Department", }, }, highlight: function(element){ $(element).closest('.form-group').addClass('has-error').removeClass('has-success'); //$(element).next('span').addClass('fa fa-times-circle').removeClass('fa fa-check-circle'); }, unhighlight: function(element){ $(element).closest('.form-group').addClass('has-success').removeClass('has-error'); //$(element).next('span').addClass('fa fa-check-circle').removeClass('fa fa-times-circle'); }, errorElement: 'span', errorClass: 'help-block', //errorPlacement: '', }); }); function livesearch(e,r) { var textfield= document.getElementById(e); var regx= new RegExp(r, 'g'); textfield.value= textfield.value.replace(regx,''); } </script> <script src="bootstrap/js/bootstrap.min.js"></script> <script src="plugins/sparkline/jquery.sparkline.min.js"></script> <script src="plugins/jvectormap/jquery-jvectormap-1.2.2.min.js"></script> <script src="plugins/jvectormap/jquery-jvectormap-world-mill-en.js"></script> <script src="plugins/knob/jquery.knob.js"></script> <script src="plugins/datatables/jquery.dataTables.min.js"></script> <script src="plugins/datatables/dataTables.bootstrap.min.js"></script> <script src="plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.all.min.js"></script> <script src="plugins/slimScroll/jquery.slimscroll.min.js"></script> <script src="plugins/fastclick/fastclick.min.js"></script> <script src="dist/js/app.min.js"></script> <script> $(function () { $("#example1").DataTable(); $('#example2').DataTable({ "paging": true, "lengthChange": false, "searching": false, "ordering": true, "info": true, "autoWidth": true }); }); </script> <script type="text/javascript" src="js/jquery-ui.js"></script> <script type="text/javascript"> $(function() { $("#pickup").datepicker({ dateFormat: 'yy-mm-dd', minDate: 0, maxDate: '+12M' }); $("#arrival").datepicker({ dateFormat: 'yy-mm-dd', minDate: 0, maxDate: '+12M', showSplitDay: true, isTo1: true, minRangeDuration: 2, doneText: "Ready to book", clearText: "Oh no, I want to select another period" }); $("#single").datepicker({ dateFormat: 'yy-mm-dd' }); $("#pickup, #arrival, #single").click(function() { $(this).focus(); }); $("#return, #departure").bind("click focus", function() { $($(this).data("date-range-start")).click(); }); }); </script> </body> </html>