Server IP : 2a02:4780:11:1359:0:1d43:a566:2 / Your IP : 216.73.216.199 Web Server : LiteSpeed System : Linux in-mum-web1259.main-hosting.eu 4.18.0-553.37.1.lve.el8.x86_64 #1 SMP Mon Feb 10 22:45:17 UTC 2025 x86_64 User : u490972518 ( 490972518) PHP Version : 5.6.40 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 : ON | cURL : ON | WGET : ON | Perl : OFF | Python : OFF Directory (0755) : /home/u490972518/domains/ppschool.org.in/public_html/link/../admin/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<html> <head> <?php include("../link/admin_headconnection.php"); include("../link/databaseconnection.php"); session_start(); $lg=$_SESSION['admin']; if(!$lg) { header("location:../admin/index.php"); } ?> <link href="../css/dashboard.css" rel="stylesheet" type="text/css"/> <link href="../css/dashboardmenu.css" rel="stylesheet" type="text/css"/> <link href="../css/student_details_side_menu.css" rel="stylesheet" type="text/css"/> <link href="../css/student_details.css" rel="stylesheet" type="text/css"/> <link href="jq/jquery.dataTables.min.css" type="text/css" rel="stylesheet"/> <link href="jq/buttons.dataTables.min.css" type="text/css" rel="stylesheet"/> <script src="jq/jquery.dataTables.min.js"></script> <script src="jq/dataTables.buttons.min.js"></script> <script src="jq/buttons.flash.min.js"></script> <script src="jq/jszip.min.js"></script> <script src="jq/pdfmake.min.js"></script> <script src="jq/vfs_fonts.js"></script> <script src="jq/buttons.html5.min.js"></script> <script src="jq/buttons.print.min.js"></script> <style> body { background-image:url(../image/back3.jpg); } .work { min-height:200px; } .gap { height:100px; } </style> <script> $(document).ready(function(){ show(); $("#regform").submit(function(e){ e.preventDefault(); var a=confirm("Are you Sure"); if(a==true) { $.ajax({ url:"../code/classcode.php?flag=41", type:"POST", data: new FormData(this), contentType:false, processData:false, success:function(res){ alert(res); show(); $("#regform").trigger("reset"); }, error:function(){ alert("error"); } }); } }); }); function show() { $("#show").load("../code/classcode.php?flag=411"); } function deleterow(id) { //alert(id); var a=confirm("Are you sure"); if(a==true) { $.ajax({ url:"../code/classcode.php?flag=6", type:"POST", data:{rowid:id}, success:function(res){ alert(res); show(); }, error:function(){ alert("error"); } }); } } function editrow(id) { alert(id); $("#editmodel120").modal("show"); $("#editbody120").load("../code/classcode.php?flag=412&id="+id); } ///update function updaterow(form) { var a=confirm("Are you Sure"); if(a==true) { $.ajax({ url:"../code/classcode.php?flag=413", type:"POST", data:new FormData(form), contentType:false, // for photo upload ke liye hai processData:false, //for photo upload ke liye hai cache:false, success:function(res){ alert(res); if(res=="Update") { $("#editmodel120").modal("hide"); show(); } }, error:function(){ alert("error"); } }); } return false; } ///update </script> </head> <body> <div class="container-fluid"> <div class="row"> <?php include("../link/admin_dashboardmenu .php");?> </div> <div class="row"> <!--menu--> <div class="col-sm-2"> <?php include("../link/student_details_side_menu.php");?> </div> <!--menu--close--> <div class="col-sm-10"> <div class="panel-group"> <div class="panel panel-primary"> <div class="panel-heading"><center><h4>Spend Add</h4></center></div> <form class="form-inline" id="regform" method="post"> <br/> <div class="form-group"> <label class=" col-sm-4 label-control">Article<span style="color:red">*</span></label> <div class="col-sm-8"><textarea class="form-control" rows="4" cols="30" name="article"></textarea> </div> </div> <br/> <div class="form-group"> <br/> <label class=" col-sm-4 label-control">Purpose<span style="color:red">*</span></label> <div class="col-sm-8"><input type="text" class="form-control" name="purpose"/> </div> </div> <br/> <br/> <div class="form-group"> <label class=" col-sm-4 label-control">Amount<span style="color:red">*</span></label> <div class="col-sm-8"><input type="text" class="form-control" name="amount"/> </div> </div> <center> <br/><br/> <button class="btn btn-success">Add</button></center> </form> <div id="show"></div> </div> </div> </div> <div class="col-sm-4"></div> </div> <div class="modal fade bs-example-modal-lg" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" id="editmodel120"> <div class="modal-dialog modal-lg"> <div class="modal-content"> <div class="modal-heading"> <button class="close" data-dismiss="modal"> <span style='font-size:40px'> × </span> </button> <center><h2 class="modal-title" style="color:green;background-color:yellow"> Spend Update</h2> </center> </div> <div class="modal-body" id="editbody120"> </div> <div class="modal-footer"> </div> </div> </div> </div> </html>