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:index.php"); } $id=$_REQUEST['id']; $sel1r="select * from result_date where id='$id' order by id desc "; $res1r=mysqli_query($conn,$sel1r); $result_date=mysqli_fetch_array($res1r,MYSQLI_BOTH); ?> <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(); $.ajax({ url:"../code/newcode.php?flag=10", 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/newcode.php?flag=8"); } function deleterow(id) { //alert(id); var a=confirm("Are you sure"); if(a==true) { $.ajax({ url:"../code/newcode.php?flag=9", type:"POST", data:{rowid:id}, success:function(res){ alert(res); show(); }, error:function(){ alert("error"); } }); } } </script> </head> <body> <div class="container-fluid"> <div class="row"> <?php include("../link/resultheadmenu.php");?> </div> <div class="row"> <!--menu--> <div class="col-sm-2"> </div> <!--menu--close--> <div class="col-sm-6"> <div class="panel-group"> <div class="panel panel-primary"> <div class="panel-heading"><center><h4>Result Date</h4></center></div> <form class="form-inline" id="regform" method="post"> <br/> <div class="form-group"> <label class=" col-sm-6 label-control">Result Date Term_1<span style="color:red"></span></label> <div class="col-sm-6"><input type="text" class="form-control" value='<?php echo $result_date['date1'] ?>' name="date1" /> <input type="hidden" class="form-control" value='<?php echo $id ?>' name="id" /> </div> <br/> </div> <div class="form-group"> <label class=" col-sm-6 label-control">Result Date Term_2<span style="color:red"></span></label> <div class="col-sm-6"><input type="text" class="form-control" value='<?php echo $result_date['date2'] ?>' name="date2" /></div> <br/> </div> <div class="form-group"> <label class=" col-sm-6 label-control">Total Study in Term-1<span style="color:red"></span></label> <div class="col-sm-6"><input type="text" class="form-control" value='<?php echo $result_date['term_1'] ?>' name="term_1"/></div> <br/> </div> <div class="form-group"> <label class=" col-sm-6 label-control">Total Study in Term-2 <span style="color:red"></span></label> <div class="col-sm-6"><input type="text" class="form-control" value='<?php echo $result_date['term_2'] ?>' name="term_2"/></div> <br/> </div> <BR/> <BR/> <div class="form-group"> <label class=" col-sm-6 label-control">Session<span style="color:red"></span></label> <div class="col-sm-6"> <?php $sel="select * from session order by id desc"; $res=mysqli_query($conn,$sel);?> <select class="form-control" name="session"> <?php while($row=mysqli_fetch_array($res,MYSQLI_BOTH)) { ?> <option <?php if($row['session']==$result_date['session']) {echo 'Selected';}?>><?php echo $row['session'];?></option> <?php } ?> </select></div> <br/> </div> <BR/> <div class="form-group"> <label class=" col-sm-6 label-control">Class<span style="color:red">*</span></label> <div class="col-sm-6"> <?php $sel="select * from subclass "; $res=mysqli_query($conn,$sel);?> <select class="form-control" name="class"> <?php while($row=mysqli_fetch_array($res,MYSQLI_BOTH)) { ?> <option <?php if($row['subclass']==$result_date['class']) {echo 'Selected';}?> ><?php echo $row['subclass'];?></option> <?php } ?> </select></div> <br/> </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> </html>