Файловый менеджер - Редактировать - /home/amitahospital/public_html/amita_master/upload/news/qkpcuv/patient.php.tar
Назад
home/amitahospital/public_html/amita_master/patient.php 0000644 00000025632 14721167146 0017501 0 ustar 00 <?php include("include/header1.php"); $_SESSION['page_menu']=array('website','patient'); if(!empty($_POST['pati'])){ $obj->patient(); } if(!empty($_POST['mul_del'])){ $col= 'pat_id'; $table= 'patient'; $page= 'patient.php'; $obj->delete_multiple($col,$table,$page); } if(!empty($_REQUEST['edit'])){ $val= $_REQUEST['edit']; $row= $obj->getRecord('patient','pat_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>Patient 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"> Patient</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" name="news_form"> <div class="box-body"> <div class="form-group col-md-6"> <label for="exampleInputEmail1">Department</label> <select name="department_id" class="form-control" id="department_id"> <?php $option ="<option value=''>--department--</option>"; $dep_rs= mysqli_query($obj->mysqli,"SELECT * FROM `department`"); while($dep_data= mysqli_fetch_assoc($dep_rs)){ $option .="<option value='$dep_data[department_id]'>$dep_data[department_name]</option>"; } echo($option); ?> </select> </div> <div class="form-group col-md-6"> <label for="exampleInputEmail1">Treatment For *</label> <input type="text" class="form-control" name="pat_treat_for" placeholder="Enter a Treatment For..." value="<?= isset($row)? $row['pat_treat_for'] : ''?>" required> </div> <div class="form-group col-md-6"> <label for="exampleInputEmail1">Treatment By *</label> <input type="text" class="form-control" name="pat_treat_by" placeholder="Enter a Treatment By..." value="<?= isset($row)? $row['pat_treat_by'] : ''?>" required> </div> <div class="form-group col-md-6"> <label for="exampleInputEmail1">Patient Location *</label> <input type="text" class="form-control" name="pat_location" placeholder="Enter a Patient Location..." value="<?= isset($row)? $row['pat_location'] : ''?>" required> </div> <div class="form-group col-md-12"> <label for="exampleInputEmail1">Procedure *</label> <input type="text" class="form-control" name="pat_procedure" placeholder="Enter a Procedure..." value="<?= isset($row)? $row['pat_procedure'] : ''?>" required> </div> <div class="form-group col-md-12"> <label for="exampleInputPassword1">Patient Link</label> <input type="text" class="form-control" name="pat_video" id="pat_video" placeholder="Patient Link (eg : <iframe width='560' height='315' src='https://www.youtube.com/embed/qFtw-D96M4E' frameborder='0' allow='autoplay; encrypted-media' allowfullscreen></iframe>)" value="<?= isset($row)? htmlspecialchars($row['pat_video']) : ''?>" autocomplete="off"> </div> <div class="form-group col-md-12"> <label>Descirption</label> <textarea class="form-control" rows="3" name="pat_descr" id="Discirption" placeholder="Enter Descirption..." autocomplete="off" onkeyup="livesearch('Discirption','[^A-Za-z0-9(){}.*, ]')" onkeydown="livesearch('Discirption','[^A-Za-z0-9(){}.*, ]')"><?= isset($row)? $row['pat_descr'] : ''?></textarea> </div> <input type="hidden" name="pati" value="1"> <?php if(isset($row)== TRUE){ ?> <input type="hidden" name="pat_id" value="<?= $row['pat_id']?>" /> <?php } ?> <button type="submit" name="submit" class="btn btn-primary"><?= isset($row)? 'Update Patient' : 'Save Patient'?></button> <button type="reset" name="reset" class="btn btn-primary">Reset Patient</button> </div> </form> <!-- /.box-body --> </div> <!-- /.box --> </div> <!-- right column --> <!-- /.row --> </section> <!-- /.content --> <section class="content-header"> <h1> Patient 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="patient.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>Dprt.</th> <th>Treat For</th> <th>Treat By</th> <th>Procedure.</th> <th>Location</th> <th>Video</th> <th>Description</th> <th>Date</th> <th>Action</th> </tr> </thead> <?php $res= $obj->getTable('patient','pat_id desc'); if($res){ $i=1; foreach($res as $pat_data) { $sql= "SELECT * FROM department WHERE department_id='".$pat_data['department_id']."'"; $rs= mysqli_query($obj->mysqli,$sql); if($rs) { foreach($rs as $data) { ?> <tr> <td scope="col"><input type="checkbox" name="mul_del[]" id="mul_del[]" value="<?= $pat_data['pat_id'] ?>" /></td> <td scope="col"><?= $i++ ?></td> <td scope="col"><?= $data['department_name'] ?></td> <td scope="col"><?= $pat_data['pat_treat_for'] ?></td> <td scope="col"><?= $pat_data['pat_treat_by'] ?></td> <td scope="col"><?= $pat_data['pat_location'] ?></td> <td scope="col"><?= $pat_data['pat_procedure'] ?></td> <td scope="col"><?= $pat_data['pat_video']?></td> <td scope="col"><?= $pat_data['pat_descr'] ?></td> <td scope="col"><?= date('d-M-Y',strtotime($pat_data['pat_date']))?></td> <td class="center"> <a class="btn btn-info" href="patient.php?edit=<?= $pat_data['pat_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 src="//cdn.ckeditor.com/4.5.9/full/ckeditor.js"></script> <script> CKEDITOR.replace('Discirption'); $.widget.bridge('uibutton', $.ui.button); $(function () { $("#example1").DataTable(); $('#example2').DataTable({ "paging": true, "lengthChange": false, "searching": false, "ordering": true, "info": true, "autoWidth": true }); }); $(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/patient.php 0000644 00000004311 14721205616 0015015 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>Patient Stories</h2> <ol> <li><a href="index.php">Home</a></li> <li>Patient Stories</li> </ol> </div> </div> </section><!-- End Breadcrumbs --> <section class="inner-page"> <div class="container"> <div class="row"> <div class="section-title"> <h2>Patient Stories</h2> </div> <?php $res= $obj->getTable('patient','pat_id desc'); if($res){ $i=1; foreach($res as $pat_data) { $sql= "SELECT * FROM department WHERE department_id='".$pat_data['department_id']."'"; $rs= mysqli_query($obj->mysqli,$sql); if($rs) { foreach($rs as $data) { ?> <div class="row pb-3 info"> <div class="client-info d-flex"> <div class="col-lg-6 col-md-12"> <h6 style="font-size:24px;"><a href="#">GENERAL | <?= $data['department_name'] ?></a></h6> <div><b>Treatment For : </b> <?= $pat_data['pat_treat_for'] ?></div> <div><b>Treated By : </b> <?= $pat_data['pat_treat_by'] ?></div> <div><b>Procedure : </b> <?= $pat_data['pat_procedure'] ?></div> <div><b>Patient Location : </b> <?= $pat_data['pat_location'] ?></div> <p style="padding:0px"><?= $pat_data['pat_descr'] ?></p> </div> <div class="col-lg-6 col-md-12"col-lg-6 col-md-12> <span><?= $pat_data['pat_video']?></span></div> <!--<span><p>demos</p></span>--> </div> </div> <?php } } } } ?> </div> </div> </section> </main><!-- End #main --> <?php include('include/footer.php'); ?>