/
home
/
capindnl
/
public_html
/
capindhan_master
/
Upload File
HOME
<?php include("include/header1.php"); if(!empty($_POST['mul_del'])){ $col= 'donate_id'; $table= 'donate'; $page= 'donate.php'; $obj->delete_multiple($col,$table,$page); } if(!empty($_REQUEST['view'])){ $val= $_REQUEST['view']; $sql2= "SELECT pro.*,prot.program_name FROM program as pro JOIN pro_title as prot ON (pro.protit_id= prot.protit_id) WHERE pro.pro_id= $val"; $rs2= mysqli_query($obj->mysqli,$sql2); $pro_data =mysqli_fetch_assoc($rs2); } ?> <!-- 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> Donate View </h1> <div class="col-lg-12"> <ol class="breadcrumb"> <li><a href="admin-dashboard.php" style="color:rgb(26, 140, 255)"><i class="fa fa-dashboard"></i> Dashboard</a></li> <li class="active" >Donate View</li> </ol> </div> </section> <!-- /.content --> <section class="content-header"> <h1> <small><button class="btn btn-success"><a href="program.php">Back</a></button></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="Donate.php" method="post"> <div class="table-responsive"> <table id="example1" class="table table-bordered table-striped table-responsive"> <table class="table table-bordered table-striped table-responsive"> <thead> <tr> <th>Program Tittle</th> <th>Program Description</th> <th>Date</th> <th>Program Image</th> </tr> </thead> <tr> <td scope="col"><?= $pro_data['program_name'] ?></td> <td scope="col"><?= $pro_data['program_dip'] ?></td> <td scope="col"><?= date('d M Y',strtotime($pro_data['pro_date'])) ?></td> <td scope="col"><img src="upload/program/<?= $pro_data['program_img'] ?>" width="60" height="60"/></td> </tr> </table> <table class="table table-bordered table-striped table-responsive"> <tr> <th>Program Image1</th> <th>Program Image2</th> <th>Program Image3</th> <th>Program Image4</th> <th>Program Image5</th> </tr> <tr> <td scope="col"><img src="upload/program/<?= $pro_data['program_img1'] ?>" width="60" height="60"/></td> <td scope="col"><img src="upload/program/<?= $pro_data['program_img2'] ?>" width="60" height="60"/></td> <td scope="col"><img src="upload/program/<?= $pro_data['program_img3'] ?>" width="60" height="60"/></td> <td scope="col"><img src="upload/program/<?= $pro_data['program_img4'] ?>" width="60" height="60"/></td> <td scope="col"><img src="upload/program/<?= $pro_data['program_img5'] ?>" width="60" height="60"/></td> </tr> </table> <table class="table table-bordered table-striped table-responsive"> <tr> <th>Program Image6</th> <th>Program Image7</th> <th>Program Image8</th> <th>Program Image9</th> </tr> <tr> <td scope="col"><img src="upload/program/<?= $pro_data['program_img6'] ?>" width="60" height="60"/></td> <td scope="col"><img src="upload/program/<?= $pro_data['program_img7'] ?>" width="60" height="60"/></td> <td scope="col"><img src="upload/program/<?= $pro_data['program_img8'] ?>" width="60" height="60"/></td> <td scope="col"><img src="upload/program/<?= $pro_data['program_img9'] ?>" width="60" height="60"/></td> </tr> </table> </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/datatables/jquery.dataTables.min.js"></script> <script src="plugins/datatables/dataTables.bootstrap.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> <script src="js/jquery.validate.min.js"></script> <script> $(document).ready(function(){ $('#franchises_form').validate({ rules: { gal_tittle: { required: true }, testi_msg: { required: true }, mobile: { minlength: 10, maxlength: 10, required: true }, pass: { required: true }, gal_type: { required: true }, gal_image: { required: true }, dipartment: { required: true }, }, messages: { gal_tittle: { required: "Please Enter Title", }, testi_msg: { required: "Please Enter Message", }, mobile: { required: "Please Enter Mobile No.", }, gal_type: { required:"Choose Gaillery Type", }, gal_image: { 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> </body> </html>