Файловый менеджер - Редактировать - /home/amitahospital/public_html/amita_master/upload/news/empanelments.php.tar
Назад
home/amitahospital/public_html/amita_master/empanelments.php 0000644 00000020425 14721140341 0020504 0 ustar 00 <?php include("include/header1.php"); $_SESSION['page_menu']=array('website','empanelment'); if(!empty($_POST['accr'])){ $obj->empanelments(); } if(!empty($_POST['mul_del'])) { foreach($_POST['mul_del'] as $code) { $id= $code; $photo_sql= "SELECT emp_img FROM empanelments WHERE emp_id='".$id."'"; $rs= mysqli_query($obj->mysqli,$photo_sql); $photo= mysqli_fetch_assoc($rs); if(is_file('upload/empanelments/'.$photo['emp_img'])) { unlink('upload/empanelments/'.$photo['emp_img']); } } if(!empty($_POST['mul_del'])) { $col= 'emp_id'; $table= 'empanelments'; $page= 'empanelments.php'; $img= "emp_img"; $path= "upload/empanelments/"; $obj->delete_multiple($col,$table,$page,$path); } } if(!empty($_REQUEST['edit'])) { $val= $_REQUEST['edit']; $row= $obj->getRecord('empanelments','emp_id',$val); } ?> <!-- 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($obj->errorMsg)){ ?> <section class="content-header" id="error"> <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><?php echo $obj->errorMsg; ?></h4> </div> </div> </div> </section> <?php } ?> <section class="content-header"> <h1> Empanelments Entry </h1> <div class="col-lg-12"> <ol class="breadcrumb"> <li><a href="admin-dashboard.php"><i class="fa fa-dashboard"></i> Dashboard</a></li> <li class="active"><a href="news.php">News Entry </a></li> <li class="active"><a href="testimonial.php">Testimonial Entry</a></li> <li class="active"> empanelments</li> </ol> </div> </section> <section class="content"> <div class="row"> <!-- left column --> <div class="col-md-12"> <div class="box box-primary"> <!-- <div class="box-header with-border"> <h3 class="box-title"></h3> </div>--> <!-- form start --> <form role="form" action="" method="post" enctype="multipart/form-data" name="news_form"> <div class="box-body"> <div class="form-group"> <label for="exampleInputEmail1">Empanelments Tittle</label> <input type="text" class="form-control" name="emp_company" placeholder="Enter a Gallery Tittle..." value="<?= isset($row)? $row['emp_company'] : ''?>" required> </div> <div class="form-group"> <label>Empanelments Image</label> <input type="file" class="form-control" name="emp_img" required> <?php if(isset($row)){ if(is_file('upload/empanelments/'.$row['emp_img'])){ echo "<br><br>"; echo "<img src='upload/empanelments/$row[emp_img]' height='80'>"; } } ?> </div> <input type="hidden" name="accr" value="1"> <?php if(isset($row)== TRUE){ ?> <input type="hidden" name="emp_id" value="<?= $row['emp_id']?>" /> <input type="hidden" name="emp_img" value="<?= $row['emp_img']?>" /> <?php } ?> <button type="submit" name="submit" class="btn btn-primary"><?= isset($row)? 'Update empanelments' : 'Save empanelments'?></button> <button type="reset" name="reset" class="btn btn-primary">Reset empanelments</button> </div> </form> <!-- /.box-body --> </div> <!-- /.box --> </div> <!-- right column --> <!-- /.row --> </section> <!-- /.content --> <section class="content-header"> <h1> Empanelments View <small></small> </h1> </section> <!-- Main content --> <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 --> <?php if(!empty($_REQUEST['msg'])){ echo "<center style='margin-top:20px; color:green;'><h2>".$_REQUEST['msg']."</h2></center>"; } ?> <div class="box-body"> <form id="vnews" action="empanelments.php" method="post"> <div class="table-responsive"> <table id="example1" class="table table-bordered table-striped table-responsive"> <thead> <tr> <th>#</th> <th>Sr. No.</th> <th>Empanelments Tittle</th> <th>Date</th> <th>Empanelments Image</th> <th>Action</th> </tr> </thead> <?php $res= $obj->getTable('empanelments','emp_id desc'); if($res){ $i=1; foreach($res as $emp_data){ ?> <tr> <td scope="col"><input type="checkbox" name="mul_del[]" id="mul_del[]" value="<?= $emp_data['emp_id'] ?>" /></td> <td scope="col"><?= $i++ ?></td> <td scope="col"><?= $emp_data['emp_company'] ?></td> <td scope="col"><?= date('d M Y',strtotime($emp_data['date'])) ?></td> <td scope="col"><img src="upload/empanelments/<?= $emp_data['emp_img'] ?>" width="60" height="60"/></td> <td class="center"> <a class="btn btn-info" href="empanelments.php?edit=<?= $emp_data['emp_id']?>"> <i class="glyphicon glyphicon-edit icon-white"></i> Edit </a> <a class="btn btn-danger" 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> </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="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 src="js/core.js"></script> <script src="js/zebra_datepicker.js"></script> </body> </html> home/amitahospital/public_html/empanelments.php 0000644 00000002540 14721156444 0016047 0 ustar 00 <?php include('include/header.php'); ?> <main id="main"> <!-- ======= Breadcrumbs ======= --> <section class="breadcrumbs"> <div class="container"> <div class="d-flex justify-content-between align-items-center"> <h2>Empanelments</h2> <ol> <li><a href="index.html">Home</a></li> <li>Empanelments</li> </ol> </div> </div> </section><!-- End Breadcrumbs --> <section id="about" class="about"> <div class="container"> <div class="section-title"> <h2>Empanelments</h2> </div> <div class="row"> <?php $res= $obj->getTable('empanelments','emp_id desc'); if($res){ $i=1; foreach($res as $emp_data){ ?> <div class="col-lg-3 pb-3 order-1 order-lg-2"> <div class="info text-center"> <img src="amita_master/upload/empanelments/<?= $emp_data['emp_img'] ?>" width="200px" class="img-fluid" alt=""> <h4 style="padding:15px 0px; text-align:center;"><?= $emp_data['emp_company'] ?></h4> </div> </div> <?php } } ?> </div> </div> </section><!-- End About Us Section --> </main><!-- End #main --> <?php include('include/footer.php'); ?>