Server IP : 2a02:4780:11:1359:0:1d43:a566:2 / Your IP : 216.73.216.142 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/code/img/../ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php include("../link/databaseconnection.php"); $flag=$_REQUEST['flag']; if(!$flag) { header("location:http://gsmemorialpublicschool.brkweb.com"); } switch($flag) { case 1: $year=$_POST['year']; $board='CBSE BOARD'; $class=$_POST['class']; ?> <script> $(document).ready(function(){ $('#example').DataTable({ dom: 'Bfrtip', buttons: ['copy', 'csv', 'excel', 'pdf', 'print'] }); }); </script> <div class="table-responsive"> <marquee style="color:red">रिजल्ट updation उपलब्ध है सावधानी पूर्वक fillup करें |</marquee> <h2 style="font-weight:bold;text-align:center"><?php echo $board;?></h2> <table id="example" class="display nowrap" cellspacing="0" width="100%" border="1px"> <thead> <tr> <th>Sr.</th><th>Sch.</th><th>Name</th><th>Dob</th><th>Action</th><th>Result</th> </tr> </thead> <tfoot> <tr> <th>Sr.</th><th>Sch.</th><th>Name</th><th>Dob</th><th>Action</th><th>Result</th> </tr> </tfoot> <tbody> <?php $sel="select * from registration where session='$year' and subject='$class' order by id asc"; $res=mysqli_query($conn,$sel); $s=1; while($row=mysqli_fetch_array($res,MYSQLI_BOTH)) { ?> <tr class="text-center"> <td><?php echo $s;?></td><td><?php echo $row['application'];?></td><td><?php echo $row['name'].'<br/><b>Father-</b>'.$row['fname'].'<br/><b>Mother-</b>'.$row['mname'].'<br/><b>Class-</b>'.$row['subject'];?></td><td><?php echo $row['dob'];?></td> <td> <?php if($row['action']=='HALF YEARLY EXAM' ) { echo "<font color=grean>".$row['action']."</font>"; echo "<br/>"; } else { echo "<font color=red>Not HALF YEARLY EXAM</font>"; echo "<br/>"; } if($row['action1']=='ANNUAL EXAM' ) { echo "<font color=grean>".$row['action1']."</font>"; } else { echo "<font color=red>Not ANNUAL EXAM</font>"; } ?> </td> <td><button class="btn btn-primary" onclick="result(<?php echo $row['id'];?>)">Result</button> <button class="btn btn-success" onclick="show1(<?php echo $row['id'];?>,'UNIT-I TEST')">UNIT-I TEST</button> <button class="btn btn-success" onclick="show1(<?php echo $row['id'];?>,'HALF YEARLY EXAM')">HALF YEARLY EXAM</button> <button class="btn btn-success" onclick="show1(<?php echo $row['id'];?>,'UNIT-II TEST')">UNIT-II TEST</button> <button class="btn btn-success" onclick="show1(<?php echo $row['id'];?>,'ANNUAL EXAM')">ANNUAL EXAM</button> <a href="marfirst3.php?flag=<?php echo $row['id'];?>"><span class="fa fa-print"> HALF</span></a>  <a href="mar_lkg_annual.php?flag=<?php echo $row['id'];?>" target='_blank'><span class="fa fa-print"> Annual</span></a> </td> </tr> <?php $s++; } ?> </tbody> </table> </div> <?php break; case 2: $id=$_REQUEST['id']; $sel="select * from registration where id='$id'"; $res=mysqli_query($conn,$sel); $row=mysqli_fetch_array($res,MYSQLI_BOTH); $rol=$row['application']; ?> <script> $('#numberbox').keyup(function(){ if ($(this).val() > 20){ alert("No numbers above 20"); $(this).val('20'); } }); $('#numberbox1').keyup(function(){ if ($(this).val() > 20){ alert("No numbers above 20"); $(this).val('20'); } }); $('#numberbox2').keyup(function(){ if ($(this).val() > 20){ alert("No numbers above 20"); $(this).val('20'); } }); $('#numberbox3').keyup(function(){ if ($(this).val() > 20){ alert("No numbers above 20"); $(this).val('20'); } }); $('#numberbox4').keyup(function(){ if ($(this).val() > 20){ alert("No numbers above 20"); $(this).val('20'); } }); $('#numberbox5').keyup(function(){ if ($(this).val() > 20){ alert("No numbers above 20"); $(this).val('20'); } }); $('#numberbox6').keyup(function(){ if ($(this).val() > 20){ alert("No numbers above 20"); $(this).val('20'); } }); $('#numberbox7').keyup(function(){ if ($(this).val() > 20){ alert("No numbers above 20"); $(this).val('20'); } }); $('#numberbox8').keyup(function(){ if ($(this).val() > 20){ alert("No numbers above 20"); $(this).val('20'); } }); $('#n1').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n2').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n3').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n4').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n5').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n6').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e1').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e2').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e3').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e4').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e5').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e6').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#y1').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#y2').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#y3').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#y4').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#y5').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#y6').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#y7').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#y8').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#y9').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); </script> <form class="form-horizontal" id="regform12" onsubmit="return data(this)"> <input type="hidden" class="form-control" value="<?php echo $row['fname'];?>" name="fname" > <input type="hidden" class="form-control" value="<?php echo $row['mname'];?>" name="mname" > <input type="hidden" class="form-control" value="<?php echo $row['dob'];?>" name="dob" > <input type="hidden" class="form-control" value="<?php echo $row['mediam'];?>" name="mediam" > <input type="hidden" class="form-control" value="<?php echo $row['picture'];?>" name="image" > <div class="col-sm-6"><input type="hidden" class="form-control" value="<?php echo $row['id'];?>" name="rol" > <input type="hidden" class="form-control" value="<?php echo $row['application'];?>" name="application" > </div> <div class="col-sm-6"><input type="hidden" class="form-control" value="<?php echo $row['name'];?>" name="name" ></div> <label class="col-sm-6 control-label"> </label> <div class="col-sm-6"><input type="hidden" class="form-control" value="<?php echo $row['subject'];?>" name="class" ></div> <div class="form-group"> <br/> <label class="col-sm-6 control-label">Sch</label> <div class="col-sm-6"><input type="text" class="form-control" value="<?php echo $row['application'];?>" readonly /></div> </div> <div class="form-group"> <label class="col-sm-6 control-label">Name</label> <div class="col-sm-6"><input type="text" class="form-control" value="<?php echo $row['name'];?>" readonly /></div> </div> <div class="form-group"> <label class="col-sm-6 control-label">Session</label> <div class="col-sm-6"><input type="text" class="form-control" value="<?php echo $row['session'];?>" name="session" readonly /></div> </div> <div class="form-group"> <label class="col-sm-6 control-label">Exam</label> <div class="col-sm-6"> <select required class="form-control" name="exam" > <option>UNIT-I TEST</option> <option>HALF YEARLY EXAM</option> <option>UNIT-II TEST</option> <option>ANNUAL EXAM</option> </select></div> </div> <div class="form-group"> <br/> <label class="col-sm-4 control-label">ENGLISH </label> <div class="col-sm-2">Oral<input type="text" id='' class="form-control" name="mark1p" required></div> <div class="col-sm-2">Written<input type="text" id='' class="form-control" name="mark1m" required></div> </div> <div class="form-group"> <br/> <label class="col-sm-4 control-label">Hindi </label> <div class="col-sm-2">oral<input type="text" id='' class="form-control" name="mark2p" required></div> <div class="col-sm-2">written<input type="text" id='' class="form-control" name="mark2m" required></div> </div> <div class="form-group"> <br/> <label class="col-sm-4 control-label">Maths </label> <div class="col-sm-2">Oral<input type="text" id='' class="form-control" name="mark3p" required></div> <div class="col-sm-2">Written<input type="text" id=''class="form-control" name="mark3m" required></div> </div> <div class="form-group"> <br/> <label class="col-sm-4 control-label"> </label> <div class="col-sm-2">G.k.<input type="text" id='' class="form-control" name="mark4p" required></div> <div class="col-sm-2">Art<input type="text" id=''class="form-control" name="mark4m" required></div> </div> <div class="form-group"> <br/> <label class="col-sm-4 control-label"> </label> <div class="col-sm-2">Att<input type="text" id='' class="form-control" name="att" required></div> </div> <center><button class="btn btn-primary" > Submit</button>    <button class="btn btn-danger" data-dismiss="modal"> Close</button> </center> </form> <?php break; case 3: $id=$_POST['rowid']; $sel="select * from registration where id='$id'"; $res=mysqli_query($conn,$sel); $row=mysqli_fetch_array($res,MYSQLI_BOTH); $photo=$row['picture']; $location="../code/img/".$photo; $del="delete from registration where id='$id'"; if(mysqli_query($conn,$del)) { echo"deleted Successfully"; unlink($location); } else { echo"Not Deleted"; } break; case 4: $name=$_POST['name']; $mname=$_POST['mname']; $fname=$_POST['fname']; $dob=$_POST['dob']; $mediam=$_POST['mediam']; $image=$_POST['image']; $rol=$_POST['rol']; $application=$_POST['application']; $class=$_POST['class']; $exam=$_POST['exam']; $session=$_POST['session']; $mark1p=$_POST['mark1p']; //$mark1n=$_POST['mark1n']; //$mark1e=$_POST['mark1e']; $mark1m=$_POST['mark1m']; $mark2p=$_POST['mark2p']; //$mark2n=$_POST['mark2n']; //$mark2e=$_POST['mark2e']; $mark2m=$_POST['mark2m']; $mark3p=$_POST['mark3p']; //$mark3n=$_POST['mark3n']; //$mark3e=$_POST['mark3e']; $mark3m=$_POST['mark3m']; $mark4p=$_POST['mark4p']; //$mark4n=$_POST['mark4n']; //$mark4e=$_POST['mark4e']; $mark4m=$_POST['mark4m']; $mark5p=$_POST['mark5p']; //$mark5n=$_POST['mark5n']; //$mark5e=$_POST['mark5e']; $mark5m=$_POST['mark5m']; $mark6p=$_POST['mark6p']; //$mark6n=$_POST['mark6n']; //$mark6e=$_POST['mark6e']; $mark6m=$_POST['mark6m']; $mark7p=$_POST['mark7p']; $mark7m=$_POST['mark7m']; $mark8p=$_POST['mark8p']; $mark8m=$_POST['mark8m']; $mark9p=$_POST['mark9p']; $mark9m=$_POST['mark9m']; $att=$_POST['att']; $sel1="select *from registration where id='$rol'"; $res1=mysqli_query($conn,$sel1); $row1=mysqli_fetch_array($res1,MYSQLI_BOTH); $id=$row1['application']; $date=date("d-m-Y"); $sel2="select * from six_eightresult where rol='$application' and session='$session' and exam='$exam'"; $res2=mysqli_query($conn,$sel2); $row2=mysqli_fetch_array($res2,MYSQLI_BOTH); if($row2) { echo 'Already Exist'; } else { $ins="insert into six_eightresult(rol,name,session,class,exam,mark1p,mark1n,mark1e,mark1m,mark2p,mark2n,mark2e,mark2m,mark3p,mark3n,mark3e,mark3m,mark4p,mark4n,mark4e,mark4m,mark5p,mark5n,mark5e,mark5m,mark6p,mark6n,mark6e,mark6m,mark7p,mark7n,mark7e,mark7m,mark8p,mark8n,mark8e,mark8m,mark9p,mark9n,mark9e,mark9m,mname,fname,dob,mediam,image,date,att) value('$application','$name','$session','$class','$exam','$mark1p','','','$mark1m','$mark2p','$mark2n','','$mark2m','$mark3p','$mark3n','','$mark3m','$mark4p','$mark4n','$mark4e','$mark4m','','','','','','','','','','','','','','','','','','','','','$mname','$fname','$dob','$mediam','$image','$date','$att')"; if($res=mysqli_query($conn,$ins)) { if($exam=='HALF YEARLY EXAM') { $insr="update registration set action='$exam' where id='$rol'"; $resr=mysqli_query($conn,$insr); if($resr) { echo "Submit"; } else { echo "not SUB 1"; } } else { // echo"not1"; } if($exam=='ANNUAL EXAM') { $insr="update registration set action1='$exam' where id='$rol'"; $resr=mysqli_query($conn,$insr); if($resr) { echo "Submit"; } else { echo "not SUB 2"; } } else { // echo"not1"; } } else { echo"not submit"; } } break; // FOR FIRST-FIFTH///== case 5: $year=$_POST['year']; $board='CBSE BOARD'; $class=$_POST['class']; ?> <script> $(document).ready(function(){ $('#example').DataTable({ dom: 'Bfrtip', buttons: ['copy', 'csv', 'excel', 'pdf', 'print'] }); }); </script> <div class="table-responsive"> <marquee style="color:red">रिजल्ट updation उपलब्ध है सावधानी पूर्वक fillup करें |</marquee> <h2 style="font-weight:bold;text-align:center"><?php echo $board;?></h2> <table id="example" class="display nowrap" cellspacing="0" width="100%" border="1px"> <thead> <tr> <th>Sr.</th><th>Sch.</th><th>Name</th><th>Dob</th><th>Action</th><th>Result</th> </tr> </thead> <tfoot> <tr> <th>Sr.</th><th>Sch.</th><th>Name</th><th>Dob</th><th>Action</th><th>Result</th> </tr> </tfoot> <tbody> <?php $sel="select * from registration where session='$year' and subject='$class' order by id asc"; $res=mysqli_query($conn,$sel); $s=1; while($row=mysqli_fetch_array($res,MYSQLI_BOTH)) { $application=$row['application']; $session=$year; ?> <tr class="text-center"> <td><?php echo $s;?></td><td><?php echo $row['application'];?></td><td><?php echo $row['name'].'<br/><b>Father-</b>'.$row['fname'].'<br/><b>Mother-</b>'.$row['mname'].'<br/><b>Class-</b>'.$row['subject'];?></td><td><?php echo $row['dob'];?></td> <td> <?php $sel2="select * from six_eightresult where rol='$application' and session='$session' and exam='HALF YEARLY EXAM'"; $res2=mysqli_query($conn,$sel2); if($row2=mysqli_fetch_array($res2,MYSQLI_BOTH)) { echo 'HALF YEARLY EXAM'; } echo '<br/>'; $sel21="select * from six_eightresult where rol='$application' and session='$session' and exam='ANNUAL EXAM'"; $res21=mysqli_query($conn,$sel21); if($row21=mysqli_fetch_array($res21,MYSQLI_BOTH)) { echo 'ANNUAL EXAM'; } ?> </td> <td><button class="btn btn-primary" onclick="result(<?php echo $row['id'];?>)">Result</button> <button class="btn btn-success" onclick="show1(<?php echo $row['id'];?>,'HALF YEARLY EXAM')">Update Half</button> <button class="btn btn-success" onclick="show1(<?php echo $row['id'];?>,'ANNUAL EXAM')">Update Annual</button> <a href="marfirst1.php?flag=<?php echo $row['id'];?>"><span class="fa fa-print"> HALF</span></a>  <a href="mark_3.php?flag=<?php echo $row['id'];?>" target='_blank'><span class="fa fa-print"> Annual</span></a> </td> </tr> <?php $s++; } ?> </tbody> </table> </div> <?php break; case 155: $year=$_POST['year']; $board='CBSE BOARD'; $class=$_POST['class']; ?> <script> $(document).ready(function(){ $('#example').DataTable({ dom: 'Bfrtip', buttons: ['copy', 'csv', 'excel', 'pdf', 'print'] }); }); </script> <div class="table-responsive"> <marquee style="color:red">रिजल्ट updation उपलब्ध है सावधानी पूर्वक fillup करें |</marquee> <h2 style="font-weight:bold;text-align:center"><?php echo $board;?></h2> <table id="example" class="display nowrap" cellspacing="0" width="100%" border="1px"> <thead> <tr> <th>Sr.</th><th>Sch.</th><th>Name</th><th>Dob</th><th>Action</th><th>Result</th> </tr> </thead> <tfoot> <tr> <th>Sr.</th><th>Sch.</th><th>Name</th><th>Dob</th><th>Action</th><th>Result</th> </tr> </tfoot> <tbody> <?php $sel="select * from registration where session='$year' and subject='$class' order by id asc"; $res=mysqli_query($conn,$sel); $s=1; while($row=mysqli_fetch_array($res,MYSQLI_BOTH)) { ?> <tr class="text-center"> <td><?php echo $s;?></td><td><?php echo $row['application'];?></td><td><?php echo $row['name'].'<br/><b>Father-</b>'.$row['fname'].'<br/><b>Mother-</b>'.$row['mname'].'<br/><b>Class-</b>'.$row['subject'];?></td><td><?php echo $row['dob'];?></td> <td> <?php if($row['action']=='HALF YEARLY EXAM' ) { echo "<font color=grean>".$row['action']."</font>"; echo "<br/>"; } else { echo "<font color=red>Not HALF YEARLY EXAM</font>"; echo "<br/>"; } if($row['action1']=='ANNUAL EXAM' ) { echo "<font color=grean>".$row['action1']."</font>"; } else { echo "<font color=red>Not ANNUAL EXAM</font>"; } ?> </td> <td><button class="btn btn-primary" onclick="result(<?php echo $row['id'];?>)">Result</button> <button class="btn btn-success" onclick="show1(<?php echo $row['id'];?>,'HALF YEARLY EXAM')">Update Half</button> <button class="btn btn-success" onclick="show1(<?php echo $row['id'];?>,'ANNUAL EXAM')">Update Annual</button> <a href="marfirst1.php?flag=<?php echo $row['id'];?>" target="_blank"><span class="fa fa-print"> HALF</span></a>  <a href="mark_7.php?flag=<?php echo $row['id'];?>" target="_blank"><span class="fa fa-print"> Annual</span></a> </td> </tr> <?php $s++; } ?> </tbody> </table> </div> <?php break; case 5000: $year=$_POST['year']; $board='CBSE BOARD'; $class=$_POST['class']; ?> <script> $(document).ready(function(){ $('#example').DataTable({ dom: 'Bfrtip', buttons: ['copy', 'csv', 'excel', 'pdf', 'print'] }); }); </script> <div class="table-responsive"> <marquee style="color:red">रिजल्ट updation उपलब्ध है सावधानी पूर्वक fillup करें |</marquee> <h2 style="font-weight:bold;text-align:center"><?php echo $board;?></h2> <table id="example" class="display nowrap" cellspacing="0" width="100%" border="1px"> <thead> <tr> <th>Sr.</th><th>Sch.</th><th>Name</th><th>Dob</th><th>Action</th><th>Result</th> </tr> </thead> <tfoot> <tr> <th>Sr.</th><th>Sch.</th><th>Name</th><th>Dob</th><th>Action</th><th>Result</th> </tr> </tfoot> <tbody> <?php $sel="select * from registration where session='$year' and subject='$class' order by id asc"; $res=mysqli_query($conn,$sel); $s=1; while($row=mysqli_fetch_array($res,MYSQLI_BOTH)) { $application=$row['application']; $session=$year; $c=$row['subject']; if($c=='FIRST' or $c=='SECOND') { $link='mark_jun.php'; } if($c=='THIRD' or $c=='FOURTH') { $link='mar_third.php'; } if($c=='FIFTH' or $c=='SIXTH' or $c=='SEVENTH' or $c=='EIGHTH') { $link='mar_fourth.php'; } ?> <tr class="text-center"> <td><?php echo $s;?></td><td><?php echo $row['application'];?></td><td><?php echo $row['name'].'<br/><b>Father-</b>'.$row['fname'].'<br/><b>Mother-</b>'.$row['mname'].'<br/><b>Class-</b>'.$row['subject'];?></td><td><?php echo $row['dob'];?></td> <td> <?php $sel2="select * from six_eightresult where rol='$application' and session='$session' and exam='HALF YEARLY EXAM'"; $res2=mysqli_query($conn,$sel2); if($row2=mysqli_fetch_array($res2,MYSQLI_BOTH)) { echo 'HALF YEARLY EXAM'; } echo '<br/>'; $sel21="select * from six_eightresult where rol='$application' and session='$session' and exam='ANNUAL EXAM'"; $res21=mysqli_query($conn,$sel21); if($row21=mysqli_fetch_array($res21,MYSQLI_BOTH)) { echo 'ANNUAL EXAM'; } ?> </td> <td><button class="btn btn-primary" onclick="result(<?php echo $row['id'];?>)">Result</button> <button class="btn btn-success" onclick="show2(<?php echo $row['id'];?>,'ANNUAL EXAM')">Update AANUAL</button> <button class="btn btn-success" onclick="show2(<?php echo $row['id'];?>,'HALF YEARLY EXAM')">Update HALF</button> <a href="#marksheet.php?flag=<?php echo $row['id'];?>" target='_blank'><span class="fa fa-print"> HALF</span></a>  <a href="<?php echo $link;?>?flag=<?php echo $row['id'];?>" target='_blank'><span class="fa fa-print"> Anual</span></a> </td> </tr> <?php $s++; } ?> </tbody> </table> </div> <?php break; case 6: $id=$_REQUEST['id']; $sel="select * from registration where id='$id'"; $res=mysqli_query($conn,$sel); $row=mysqli_fetch_array($res,MYSQLI_BOTH); $rol=$row['application']; ?> <script> $('#numberbox').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#numberbox1').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#numberbox2').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#numberbox3').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#numberbox4').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#numberbox5').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#numberbox6').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#numberbox7').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#numberbox8').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#numberbox9').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#numberbox10').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#n1').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n2').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n3').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n4').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n5').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n6').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n7').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n8').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n9').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n10').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e1').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e2').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e3').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e4').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e5').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e6').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e7').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e8').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e9').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e10').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#y1').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#y2').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#y3').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#y4').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#y5').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#y6').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#y7').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#y8').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#y9').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#y10').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $(document).ready(function(){ var class1=$("#class1").val(); if(class1=='FIRST') { $("#numberbox4").attr("readonly", "true"); $("#e5").attr("readonly", "true"); $("#y5").attr("readonly", "true"); $("#n5").attr("readonly", "true"); $("#numberbox4").val('0'); $("#e5").val('0'); $("#n5").val('0'); $("#y5").val('0'); } }); if(class1=='FIRST') { $("#numberbox10").attr("readonly", "true"); $("#e10").attr("readonly", "true"); $("#y10").attr("readonly", "true"); $("#n10").attr("readonly", "true"); $("#numberbox10").val('0'); $("#e10").val('0'); $("#n10").val('0'); $("#y10").val('0'); } $(document).ready(function(){ var class1=$("#class1").val(); if(class1=='SECOND') { $("#numberbox4").attr("readonly", "true"); $("#e5").attr("readonly", "true"); $("#y5").attr("readonly", "true"); $("#n5").attr("readonly", "true"); $("#numberbox4").val('0'); $("#e5").val('0'); $("#n5").val('0'); $("#y5").val('0'); } if(class1=='SECOND') { $("#numberbox10").attr("readonly", "true"); $("#e10").attr("readonly", "true"); $("#y10").attr("readonly", "true"); $("#n10").attr("readonly", "true"); $("#numberbox10").val('0'); $("#e10").val('0'); $("#n10").val('0'); $("#y10").val('0'); } if(class1=='FIRST') { $("#numberbox10").attr("readonly", "true"); $("#e10").attr("readonly", "true"); $("#y10").attr("readonly", "true"); $("#n10").attr("readonly", "true"); $("#numberbox10").val('0'); $("#e10").val('0'); $("#n10").val('0'); $("#y10").val('0'); } if(class1=='THIRD') { $("#numberbox10").attr("readonly", "true"); $("#e10").attr("readonly", "true"); $("#y10").attr("readonly", "true"); $("#n10").attr("readonly", "true"); $("#numberbox10").val('0'); $("#e10").val('0'); $("#n10").val('0'); $("#y10").val('0'); } if(class1=='FOURTH') { $("#numberbox10").attr("readonly", "true"); $("#e10").attr("readonly", "true"); $("#y10").attr("readonly", "true"); $("#n10").attr("readonly", "true"); $("#numberbox10").val('0'); $("#e10").val('0'); $("#n10").val('0'); $("#y10").val('0'); } }); </script> <form class="form-horizontal" id="regform12" onsubmit="return data(this)"> <input type="hidden" class="form-control" value="<?php echo $row['fname'];?>" name="fname" > <input type="hidden" class="form-control" value="<?php echo $row['mname'];?>" name="mname" > <input type="hidden" class="form-control" value="<?php echo $row['dob'];?>" name="dob" > <input type="hidden" class="form-control" value="<?php echo $row['mediam'];?>" name="mediam" > <input type="hidden" class="form-control" value="<?php echo $row['picture'];?>" name="image" > <div class="col-sm-6"><input type="hidden" class="form-control" value="<?php echo $row['id'];?>" name="rol" > <input type="hidden" class="form-control" value="<?php echo $row['application'];?>" name="application" > </div> <div class="col-sm-6"><input type="hidden" class="form-control" value="<?php echo $row['name'];?>" name="name" ></div> <label class="col-sm-6 control-label"> </label> <div class="col-sm-6"><input type="hidden" class="form-control" value="<?php echo $row['subject'];?>" id='class1' name="class" ></div> <div class="form-group"> <br/> <label class="col-sm-6 control-label">Sch</label> <div class="col-sm-6"><input type="text" class="form-control" value="<?php echo $row['application'];?>" readonly /></div> </div> <div class="form-group"> <label class="col-sm-6 control-label">Name</label> <div class="col-sm-6"><input type="text" class="form-control" value="<?php echo $row['name'];?>" readonly /></div> </div> <div class="form-group"> <label class="col-sm-6 control-label">Session</label> <div class="col-sm-6"><input type="text" class="form-control" value="<?php echo $row['session'];?>" name="session" readonly /></div> </div> <div class="form-group"> <label class="col-sm-6 control-label">Exam</label> <div class="col-sm-6"> <select required class="form-control" name="exam" > <option>HALF YEARLY EXAM</option> <option>ANNUAL EXAM</option> </select></div> </div> <div class="form-group"> <br/> <label class="col-sm-4 control-label">ENGLISH </label> <div class="col-sm-2">PT(10)<input type="text" id='numberbox1' class="form-control" name="mark2p" required></div> <div class="col-sm-2">NB(5)<input type="text" id='n2' class="form-control" name="mark2n" required></div> <div class="col-sm-2">S.B.(5)<input type="text" id='e2' class="form-control" name="mark2e" required></div> <div class="col-sm-2">HY/Y(80)<input type="text" id='y2'class="form-control" name="mark2m" required></div> </div> <div class="form-group"> <br/> <label class="col-sm-4 control-label">HINDI </label> <div class="col-sm-2">PT.(10)<input type="text" id='numberbox' class="form-control" name="mark1p" required></div> <div class="col-sm-2">N.B(5)<input type="text" id='n1' class="form-control" name="mark1n" required></div> <div class="col-sm-2">S.B.(5)<input type="text" id='e1' class="form-control" name="mark1e" required></div> <div class="col-sm-2">HY/Y(80)<input type="text" id='y1' class="form-control" name="mark1m" required></div> </div> <div class="form-group"> <br/> <label class="col-sm-4 control-label">MATH </label> <div class="col-sm-2">PT(10)<input type="text" id='numberbox2' class="form-control" name="mark3p" required></div> <div class="col-sm-2">NB(5)<input type="text" id='n3' class="form-control" name="mark3n" required></div> <div class="col-sm-2">S.B.(5)<input type="text" id='e3'class="form-control" name="mark3e" required></div> <div class="col-sm-2">HY/Y(80)<input type="text" id='y3' class="form-control" name="mark3m" required></div> </div> <div class="form-group"> <br/> <label class="col-sm-4 control-label">SCIENCE / E.V.S. </label> <div class="col-sm-2">PT.(10)<input type="text" id='numberbox3' class="form-control" name="mark4p" required></div> <div class="col-sm-2">N.B.(5)<input type="text" id='n4' class="form-control" name="mark4n" required></div> <div class="col-sm-2">S.B.(5)<input type="text" id='e4'class="form-control" name="mark4e" required></div> <div class="col-sm-2">HY/Y(80)<input type="text" id='y4' class="form-control" name="mark4m" required></div> </div> <div class="form-group"> <br/> <label class="col-sm-4 control-label">S. SCIENCE </label> <div class="col-sm-2">PT.(10)<input type="text" id='numberbox4' class="form-control" name="mark5p" required></div> <div class="col-sm-2">N.B.(5)<input type="text" id='n5' class="form-control" name="mark5n" required></div> <div class="col-sm-2">S.B.(5)<input type="text" id='e5'class="form-control" name="mark5e" required></div> <div class="col-sm-2">HY/Y(80)<input type="text" id='y5' class="form-control" name="mark5m" required></div> </div> <div class="form-group"> <br/> <label class="col-sm-4 control-label">SANSKRIT </label> <div class="col-sm-2">PT.(10)<input type="text" id='numberbox10' class="form-control" name="mark10p" required></div> <div class="col-sm-2">N.B.(5)<input type="text" id='n10' class="form-control" name="mark10n" required></div> <div class="col-sm-2">S.B.(5)<input type="text" id='e10'class="form-control" name="mark10e" required></div> <div class="col-sm-2">HY/Y(80)<input type="text" id='y10' class="form-control" name="mark10m" required></div> </div> <div class="form-group"> <br/> <label class="col-sm-4 control-label">G.K. </label> <div class="col-sm-2">PT.(10)<input type="text" id='numberbox8' class="form-control" name="mark9p" required></div> <div class="col-sm-2">N.B.(5)<input type="text" id='n9' class="form-control" name="mark9n" required></div> <div class="col-sm-2">S.B.(5)<input type="text" id='e9' class="form-control" name="mark9e" required></div> <div class="col-sm-2">HY/Y(80)<input type="text" id='y9'class="form-control" name="mark9m" required></div> </div> <div class="form-group"> <br/> <label class="col-sm-4 control-label">COMPUTER </label> <div class="col-sm-2">PT.(10)<input type="text" id='numberbox6' class="form-control" name="mark7p" required></div> <div class="col-sm-2">N.B.(5)<input type="text" id='n7' class="form-control" name="mark7n" required></div> <div class="col-sm-2">S.B.(5)<input type="text" id='e7' class="form-control" name="mark7e" required></div> <div class="col-sm-2">HY/Y(80)<input type="text" id='y7'class="form-control" name="mark7m" required></div> </div> <div class="form-group"> <br/> <label class="col-sm-4 control-label">ART </label> <div class="col-sm-2">PT.(10)<input type="text" id='numberbox7' class="form-control" name="mark8p" required></div> <div class="col-sm-2">N.B.(5)<input type="text" id='n8' class="form-control" name="mark8n" required></div> <div class="col-sm-2">S.B.(5)<input type="text" id='e8' class="form-control" name="mark8e" required></div> <div class="col-sm-2">HY/Y(80)<input type="text" id='y8'class="form-control" name="mark8m" required></div> </div> <div class="form-group"> <br/> <label class="col-sm-4 control-label">S.U.P.W. </label> <div class="col-sm-2">PT.(10)<input type="text" id='numberbox5' class="form-control" name="mark6p" required></div> <div class="col-sm-2">N.B.(5)<input type="text" id='n6' class="form-control" name="mark6n" required></div> <div class="col-sm-2">S.B.(5)<input type="text" id='e6' class="form-control" name="mark6e" required></div> <div class="col-sm-2">HY/Y(80)<input type="text" id='y6'class="form-control" name="mark6m" required></div> </div> <label class="col-sm-4 control-label">Att</label> <div class="col-sm-2">Att<input type="text" id='y9'class="form-control" name="att" required></div> </div> <center><button class="btn btn-primary" > Submit</button>    <button class="btn btn-danger" data-dismiss="modal"> Close</button> </center> </form> <?php break; case 7: $name=$_POST['name']; $mname=$_POST['mname']; $fname=$_POST['fname']; $dob=$_POST['dob']; $mediam=$_POST['mediam']; $image=$_POST['image']; $rol=$_POST['rol']; $application=$_POST['application']; $class=$_POST['class']; $exam=$_POST['exam']; $session=$_POST['session']; $mark1p=$_POST['mark1p']; $mark1n=$_POST['mark1n']; $mark1e=$_POST['mark1e']; $mark1m=$_POST['mark1m']; $mark2p=$_POST['mark2p']; $mark2n=$_POST['mark2n']; $mark2e=$_POST['mark2e']; $mark2m=$_POST['mark2m']; $mark3p=$_POST['mark3p']; $mark3n=$_POST['mark3n']; $mark3e=$_POST['mark3e']; $mark3m=$_POST['mark3m']; $mark4p=$_POST['mark4p']; $mark4n=$_POST['mark4n']; $mark4e=$_POST['mark4e']; $mark4m=$_POST['mark4m']; $mark5p=$_POST['mark5p']; $mark5n=$_POST['mark5n']; $mark5e=$_POST['mark5e']; $mark5m=$_POST['mark5m']; $mark6p=$_POST['mark6p']; $mark6n=$_POST['mark6n']; $mark6e=$_POST['mark6e']; $mark6m=$_POST['mark6m']; $mark7p=$_POST['mark7p']; $mark7n=$_POST['mark7n']; $mark7e=$_POST['mark7e']; $mark7m=$_POST['mark7m']; $mark8p=$_POST['mark8p']; $mark8n=$_POST['mark8n']; $mark8e=$_POST['mark8e']; $mark8m=$_POST['mark8m']; $mark9p=$_POST['mark9p']; $mark9n=$_POST['mark9n']; $mark9e=$_POST['mark9e']; $mark9m=$_POST['mark9m']; $mark10p=$_POST['mark10p']; $mark10n=$_POST['mark10n']; $mark10e=$_POST['mark10e']; $mark10m=$_POST['mark10m']; $att=$_POST['att']; $sel1="select *from registration where id='$rol'"; $res1=mysqli_query($conn,$sel1); $row1=mysqli_fetch_array($res1,MYSQLI_BOTH); $id=$row1['application']; $date=date("d-m-Y"); $sel2="select * from six_eightresult where rol='$application' and session='$session' and exam='$exam'"; $res2=mysqli_query($conn,$sel2); $row2=mysqli_fetch_array($res2,MYSQLI_BOTH); if($row2) { echo 'Already Exist'; } else { $ins="insert into six_eightresult(rol,name,session,class,exam,mark1p,mark1n,mark1e,mark1m,mark2p,mark2n,mark2e,mark2m,mark3p,mark3n,mark3e,mark3m,mark4p,mark4n,mark4e,mark4m,mark5p,mark5n,mark5e,mark5m,mark6p,mark6n,mark6e,mark6m,mark7p,mark7n,mark7e,mark7m,mark8p,mark8n,mark8e,mark8m,mark9p,mark9n,mark9e,mark9m,mark10p,mark10n,mark10e,mark10m,mname,fname,dob,mediam,image,date,att) value('$application','$name','$session','$class','$exam','$mark1p','$mark1n','$mark1e','$mark1m','$mark2p','$mark2n','$mark2e','$mark2m','$mark3p','$mark3n','$mark3e','$mark3m','$mark4p','$mark4n','$mark4e','$mark4m','$mark5p','$mark5n','$mark5e','$mark5m','$mark6p','$mark6n','$mark6e','$mark6m','$mark7p','$mark7n','$mark7e','$mark7m','$mark8p','$mark8n','$mark8e','$mark8m','$mark9p','$mark9n','$mark9e','$mark9m','$mark10p','$mark10n','$mark10e','$mark10m','$mname','$fname','$dob','$mediam','$image','$date','$att')"; if($res=mysqli_query($conn,$ins)) { echo"not submit"; } else { echo"not submit"; } } break; case 61: $id=$_REQUEST['id']; $sel="select * from registration where id='$id'"; $res=mysqli_query($conn,$sel); $row=mysqli_fetch_array($res,MYSQLI_BOTH); $rol=$row['application']; ?> <script> $('#numberbox').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#numberbox1').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#numberbox2').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#numberbox3').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#numberbox4').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#numberbox5').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#numberbox6').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#n1').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n2').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n3').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n4').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n5').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n6').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n7').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e1').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e2').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e3').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e4').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e5').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e6').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e7').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#y1').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#y2').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#y3').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#y4').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#y5').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#y6').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#y7').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $(document).ready(function(){ var class1=$("#class1").val(); if(class1=='FIRST') { $("#numberbox4").attr("readonly", "true"); $("#e5").attr("readonly", "true"); $("#y5").attr("readonly", "true"); $("#n5").attr("readonly", "true"); $("#numberbox4").val('0'); $("#e5").val('0'); $("#n5").val('0'); $("#y5").val('0'); } }); $(document).ready(function(){ var class1=$("#class1").val(); if(class1=='SECOND') { $("#numberbox4").attr("readonly", "true"); $("#e5").attr("readonly", "true"); $("#y5").attr("readonly", "true"); $("#n5").attr("readonly", "true"); $("#numberbox4").val('0'); $("#e5").val('0'); $("#n5").val('0'); $("#y5").val('0'); } }); </script> <form class="form-horizontal" id="regform12" onsubmit="return data(this)"> <input type="hidden" class="form-control" value="<?php echo $row['fname'];?>" name="fname" > <input type="hidden" class="form-control" value="<?php echo $row['mname'];?>" name="mname" > <input type="hidden" class="form-control" value="<?php echo $row['dob'];?>" name="dob" > <input type="hidden" class="form-control" value="<?php echo $row['mediam'];?>" name="mediam" > <input type="hidden" class="form-control" value="<?php echo $row['picture'];?>" name="image" > <div class="col-sm-6"><input type="hidden" class="form-control" value="<?php echo $row['id'];?>" name="rol" > <input type="hidden" class="form-control" value="<?php echo $row['application'];?>" name="application" > </div> <div class="col-sm-6"><input type="hidden" class="form-control" value="<?php echo $row['name'];?>" name="name" ></div> <label class="col-sm-6 control-label"> </label> <div class="col-sm-6"><input type="hidden" class="form-control" value="<?php echo $row['subject'];?>" id='class1' name="class" ></div> <div class="form-group"> <br/> <label class="col-sm-6 control-label">Sch</label> <div class="col-sm-6"><input type="text" class="form-control" value="<?php echo $row['application'];?>" readonly /></div> </div> <div class="form-group"> <label class="col-sm-6 control-label">Name</label> <div class="col-sm-6"><input type="text" class="form-control" value="<?php echo $row['name'];?>" readonly /></div> </div> <div class="form-group"> <label class="col-sm-6 control-label">Session</label> <div class="col-sm-6"><input type="text" class="form-control" value="<?php echo $row['session'];?>" name="session" readonly /></div> </div> <div class="form-group"> <label class="col-sm-6 control-label">Exam</label> <div class="col-sm-6"> <select required class="form-control" name="exam" > <option>HALF YEARLY EXAM</option> <option>ANNUAL EXAM</option> </select></div> </div> <div class="form-group"> <br/> <label class="col-sm-4 control-label">HINDI </label> <div class="col-sm-2">PT.(10)<input type="text" id='numberbox' class="form-control" name="mark1p" required></div> <div class="col-sm-2">N.B.(5)<input type="text" id='n1' class="form-control" name="mark1n" required></div> <div class="col-sm-2">S.B.(5)<input type="text" id='e1' class="form-control" name="mark1e" required></div> <div class="col-sm-2">HY/Y(80)<input type="text" id='y1' class="form-control" name="mark1m" required></div> </div> <div class="form-group"> <br/> <label class="col-sm-4 control-label">ENGLISH </label> <div class="col-sm-2">PT.(10)<input type="text" id='numberbox1' class="form-control" name="mark2p" required></div> <div class="col-sm-2">N.B.(5)<input type="text" id='n2' class="form-control" name="mark2n" required></div> <div class="col-sm-2">S.B.(5)<input type="text" id='e2' class="form-control" name="mark2e" required></div> <div class="col-sm-2">HY/Y(80)<input type="text" id='y2'class="form-control" name="mark2m" required></div> </div> <div class="form-group"> <br/> <label class="col-sm-4 control-label">MATH </label> <div class="col-sm-2">PT.(10)<input type="text" id='numberbox2' class="form-control" name="mark3p" required></div> <div class="col-sm-2">N.B.(5)<input type="text" id='n3' class="form-control" name="mark3n" required></div> <div class="col-sm-2">S.B.(5)<input type="text" id='e3'class="form-control" name="mark3e" required></div> <div class="col-sm-2">HY/Y(80)<input type="text" id='y3' class="form-control" name="mark3m" required></div> </div> <div class="form-group"> <br/> <label class="col-sm-4 control-label">SCIENCE / E.V.S. </label> <div class="col-sm-2">PT.(10)<input type="text" id='numberbox3' class="form-control" name="mark4p" required></div> <div class="col-sm-2">N.B.(5)<input type="text" id='n4' class="form-control" name="mark4n" required></div> <div class="col-sm-2">S.B.(5)<input type="text" id='e4'class="form-control" name="mark4e" required></div> <div class="col-sm-2">HY/Y(80)<input type="text" id='y4' class="form-control" name="mark4m" required></div> </div> <div class="form-group"> <br/> <label class="col-sm-4 control-label">S. SCIENCE </label> <div class="col-sm-2">PT.(10)<input type="text" id='numberbox4' class="form-control" name="mark5p" required></div> <div class="col-sm-2">N.B.(5)<input type="text" id='n5' class="form-control" name="mark5n" required></div> <div class="col-sm-2">S.B.(5)<input type="text" id='e5'class="form-control" name="mark5e" required></div> <div class="col-sm-2">HY/Y(80)<input type="text" id='y5' class="form-control" name="mark5m" required></div> </div> <div class="form-group"> <br/> <label class="col-sm-4 control-label">SANSKRIT </label> <div class="col-sm-2">PT.(10)<input type="text" id='numberbox3' class="form-control" name="mark10p" required></div> <div class="col-sm-2">N.B.(5)<input type="text" id='n4' class="form-control" name="mark10n" required></div> <div class="col-sm-2">S.B.(5)<input type="text" id='e4'class="form-control" name="mark10e" required></div> <div class="col-sm-2">HY/Y(80)<input type="text" id='y4' class="form-control" name="mark10m" required></div> </div> <div class="form-group"> <br/> <label class="col-sm-4 control-label">S.U.P.W. </label> <div class="col-sm-2">PT.(10)<input type="text" id='numberbox5' class="form-control" name="mark6p" required></div> <div class="col-sm-2">N.B.(5)<input type="text" id='n6' class="form-control" name="mark6n" required></div> <div class="col-sm-2">S.B.(5)<input type="text" id='e6' class="form-control" name="mark6e" required></div> <div class="col-sm-2">HY/Y(80)<input type="text" id='y6'class="form-control" name="mark6m" required></div> </div> <div class="form-group"> <br/> <label class="col-sm-4 control-label">COMPUTER </label> <div class="col-sm-2">PT.(10)<input type="text" id='numberbox6' class="form-control" name="mark7p" required></div> <div class="col-sm-2">N.B.(5)<input type="text" id='n7' class="form-control" name="mark7n" required></div> <div class="col-sm-2">S.B.(5)<input type="text" id='e7' class="form-control" name="mark7e" required></div> <div class="col-sm-2">HY/Y(80)<input type="text" id='y7'class="form-control" name="mark7m" required></div> </div> <div class="form-group"> <br/> <label class="col-sm-4 control-label">ART </label> <div class="col-sm-2">PT.(10)<input type="text" id='numberbox7' class="form-control" name="mark8p" required></div> <div class="col-sm-2">N.B.(5)<input type="text" id='n8' class="form-control" name="mark8n" required></div> <div class="col-sm-2">S.B.(5)<input type="text" id='e8' class="form-control" name="mark8e" required></div> <div class="col-sm-2">HY/Y(80)<input type="text" id='y8'class="form-control" name="mark8m" required></div> </div> <div class="form-group"> <br/> <label class="col-sm-4 control-label">G.K. </label> <div class="col-sm-2">PT.(10)<input type="text" id='numberbox8' class="form-control" name="mark9p" required></div> <div class="col-sm-2">N.B.(5)<input type="text" id='n9' class="form-control" name="mark9n" required></div> <div class="col-sm-2">S.B.(5)<input type="text" id='e9' class="form-control" name="mark9e" required></div> <div class="col-sm-2">HY/Y(80)<input type="text" id='y9'class="form-control" name="mark9m" required></div> </div> <div class="form-group"> <br/> <label class="col-sm-4 control-label">G.K. </label> <div class="col-sm-2">Att<input type="text" id='y9'class="form-control" name="att" ></div> </div> <center><button class="btn btn-primary" > Submit</button>    <button class="btn btn-danger" data-dismiss="modal"> Close</button> </center> </form> <?php break; case 71: $name=$_POST['name']; $mname=$_POST['mname']; $fname=$_POST['fname']; $dob=$_POST['dob']; $mediam=$_POST['mediam']; $image=$_POST['image']; $rol=$_POST['rol']; $application=$_POST['application']; $class=$_POST['class']; $exam=$_POST['exam']; $session=$_POST['session']; $mark1p=$_POST['mark1p']; $mark1n=$_POST['mark1n']; $mark1e=$_POST['mark1e']; $mark1m=$_POST['mark1m']; $mark2p=$_POST['mark2p']; $mark2n=$_POST['mark2n']; $mark2e=$_POST['mark2e']; $mark2m=$_POST['mark2m']; $mark3p=$_POST['mark3p']; $mark3n=$_POST['mark3n']; $mark3e=$_POST['mark3e']; $mark3m=$_POST['mark3m']; $mark4p=$_POST['mark4p']; $mark4n=$_POST['mark4n']; $mark4e=$_POST['mark4e']; $mark4m=$_POST['mark4m']; $mark5p=$_POST['mark5p']; $mark5n=$_POST['mark5n']; $mark5e=$_POST['mark5e']; $mark5m=$_POST['mark5m']; $mark6p=$_POST['mark6p']; $mark6n=$_POST['mark6n']; $mark6e=$_POST['mark6e']; $mark6m=$_POST['mark6m']; $mark7p=$_POST['mark7p']; $mark7n=$_POST['mark7n']; $mark7e=$_POST['mark7e']; $mark7m=$_POST['mark7m']; $mark8p=$_POST['mark8p']; $mark8n=$_POST['mark8n']; $mark8e=$_POST['mark8e']; $mark8m=$_POST['mark8m']; $mark9p=$_POST['mark9p']; $mark9n=$_POST['mark9n']; $mark9e=$_POST['mark9e']; $mark9m=$_POST['mark9m']; $mark10p=$_POST['mark10p']; $mark10n=$_POST['mark10n']; $mark10e=$_POST['mark10e']; $mark10m=$_POST['mark10m']; $att=$_POST['att']; $sel1="select *from registration where id='$rol'"; $res1=mysqli_query($conn,$sel1); $row1=mysqli_fetch_array($res1,MYSQLI_BOTH); $id=$row1['application']; $date=date("d-m-Y"); $sel2="select * from six_eightresult where rol='$application' and session='$session' and exam='$exam'"; $res2=mysqli_query($conn,$sel2); $row2=mysqli_fetch_array($res2,MYSQLI_BOTH); if($row2) { echo 'Already Exist'; } else { $ins="insert into six_eightresult(rol,name,session,class,exam,mark1p,mark1n,mark1e,mark1m,mark2p,mark2n,mark2e,mark2m,mark3p,mark3n,mark3e,mark3m,mark4p,mark4n,mark4e,mark4m,mark5p,mark5n,mark5e,mark5m,mark6p,mark6n,mark6e,mark6m,mark7p,mark7n,mark7e,mark7m,mark8p,mark8n,mark8e,mark8m,mark9p,mark9n,mark9e,mark9m,mname,fname,dob,mediam,image,date,mark10p,mark10n,mark10e,mark10m,att) value('$application','$name','$session','$class','$exam','$mark1p','$mark1n','$mark1e','$mark1m','$mark2p','$mark2n','$mark2e','$mark2m','$mark3p','$mark3n','$mark3e','$mark3m','$mark4p','$mark4n','$mark4e','$mark4m','$mark5p','$mark5n','$mark5e','$mark5m','$mark6p','$mark6n','$mark6e','$mark6m','$mark7p','$mark7n','$mark7e','$mark7m','$mark8p','$mark8n','$mark8e','$mark8m','$mark9p','$mark9n','$mark9e','$mark9m','$mname','$fname','$dob','$mediam','$image','$date','$mark10p','$mark10n','$mark10e','$mark10m','$att')"; if($res=mysqli_query($conn,$ins)) { if($exam=='HALF YEARLY EXAM') { $insr="update registration set action='$exam' where id='$rol'"; $resr=mysqli_query($conn,$insr); if($resr) { echo "Submit"; } else { echo "not SUB 1"; } } else { // echo"not1"; } if($exam=='ANNUAL EXAM') { $insr="update registration set action1='$exam' where id='$rol'"; $resr=mysqli_query($conn,$insr); if($resr) { echo "Submit"; } else { echo "not SUB 2"; } } else { // echo"not1"; } } else { echo"not submit"; } } break; // FOR SIX-EIGTH///== // FOR FIRST-FIFTH///== case 8: $year=$_POST['year']; $board='CBSE BOARD'; ?> <script> $(document).ready(function(){ $('#example').DataTable({ dom: 'Bfrtip', buttons: ['copy', 'csv', 'excel', 'pdf', 'print'] }); }); </script> <div class="table-responsive"> <marquee style="color:red">रिजल्ट updation उपलब्ध है सावधानी पूर्वक fillup करें |</marquee> <h2 style="font-weight:bold;text-align:center"><?php echo $board;?></h2> <table id="example" class="display nowrap" cellspacing="0" width="100%" border="1px"> <thead> <tr> <th>Sr.</th><th>Sch.</th><th>Name</th><th>Dob</th><th>Action</th><th>Result</th> </tr> </thead> <tfoot> <tr> <th>Sr.</th><th>Sch.</th><th>Name</th><th>Dob</th><th>Action</th><th>Result</th> </tr> </tfoot> <tbody> <?php $sel="select * from registration where session='$year' and subject='SIXTH' or session='$year' and subject='SEVENTH' or session='$year' and subject='EIGHTH'"; $res=mysqli_query($conn,$sel); $s=1; while($row=mysqli_fetch_array($res,MYSQLI_BOTH)) { ?> <tr class="text-center"> <td><?php echo $s;?></td><td><?php echo $row['application'];?></td><td><?php echo $row['name'].'<br/><b>Father-</b>'.$row['fname'].'<br/><b>Mother-</b>'.$row['mname'].'<br/><b>Class-</b>'.$row['subject'];?></td><td><?php echo $row['dob'];?></td> <td> <?php if($row['action']=='HALF YEARLY EXAM' ) { echo "<font color=grean>".$row['action']."</font>"; echo "<br/>"; } else { echo "<font color=red>Not HALF YEARLY EXAM</font>"; echo "<br/>"; } if($row['action1']=='ANNUAL EXAM' ) { echo "<font color=grean>".$row['action1']."</font>"; } else { echo "<font color=red>Not ANNUAL EXAM</font>"; } ?> </td> <td><button class="btn btn-primary" onclick="result(<?php echo $row['id'];?>)">Result</button> <button class="btn btn-success" onclick="show1(<?php echo $row['id'];?>)">Update ANNUAL</button> <button class="btn btn-success" onclick="show2(<?php echo $row['id'];?>)">Update HALF</button> </td> </tr> <?php $s++; } ?> </tbody> </table> </div> <?php break; case 9: $id=$_REQUEST['id']; $sel="select * from registration where id='$id'"; $res=mysqli_query($conn,$sel); $row=mysqli_fetch_array($res,MYSQLI_BOTH); $rol=$row['application']; ?> <form class="form-horizontal" id="regform12" onsubmit="return data(this)"> <input type="hidden" class="form-control" value="<?php echo $row['fname'];?>" name="fname" > <input type="hidden" class="form-control" value="<?php echo $row['mname'];?>" name="mname" > <input type="hidden" class="form-control" value="<?php echo $row['dob'];?>" name="dob" > <input type="hidden" class="form-control" value="<?php echo $row['mediam'];?>" name="mediam" > <input type="hidden" class="form-control" value="<?php echo $row['picture'];?>" name="image" > <div class="col-sm-6"><input type="hidden" class="form-control" value="<?php echo $row['id'];?>" name="rol" > <input type="hidden" class="form-control" value="<?php echo $row['application'];?>" name="application" > </div> <div class="col-sm-6"><input type="hidden" class="form-control" value="<?php echo $row['name'];?>" name="name" ></div> <label class="col-sm-6 control-label"> </label> <div class="col-sm-6"><input type="hidden" class="form-control" value="<?php echo $row['subject'];?>" name="class" ></div> <div class="form-group"> <br/> <label class="col-sm-6 control-label">Sch</label> <div class="col-sm-6"><input type="text" class="form-control" value="<?php echo $row['application'];?>" readonly /></div> </div> <div class="form-group"> <label class="col-sm-6 control-label">Name</label> <div class="col-sm-6"><input type="text" class="form-control" value="<?php echo $row['name'];?>" readonly /></div> </div> <div class="form-group"> <label class="col-sm-6 control-label">Session</label> <div class="col-sm-6"><input type="text" class="form-control" value="<?php echo $row['session'];?>" name="session" readonly /></div> </div> <div class="form-group"> <label class="col-sm-6 control-label">Exam</label> <div class="col-sm-6"> <select required class="form-control" name="exam" > <option>HALF YEARLY EXAM</option> <option>ANNUAL EXAM</option> </select></div> </div> <div class="form-group"> <br/> <label class="col-sm-6 control-label">HINDI </label> <div class="col-sm-6"><input type="text" class="form-control" name="mark1" placeholder="HINDI " required></div> </div> <div class="form-group"> <br/> <label class="col-sm-6 control-label">ENGLISH I </label> <div class="col-sm-6"><input type="text" class="form-control" name="mark2" placeholder="ENGLISH I " required></div> </div> <div class="form-group"> <br/> <label class="col-sm-6 control-label">ENGLISH II</label> <div class="col-sm-6"><input type="text" class="form-control" name="mark3" placeholder="ENGLISH II" required></div> </div> <div class="form-group"> <br/> <label class="col-sm-6 control-label">MATHS</label> <div class="col-sm-6"><input type="text" class="form-control" name="mark4" placeholder="MATHS" required></div> </div> <div class="form-group"> <br/> <label class="col-sm-6 control-label">G.K.</label> <div class="col-sm-6"><input type="text" class="form-control" name="mark5" placeholder="G.K." required></div> </div> <div class="form-group"> <br/> <label class="col-sm-6 control-label">SCIENCE</label> <div class="col-sm-6"><input type="text" class="form-control" name="mark6" placeholder="SCIENCE" required></div> </div> <div class="form-group"> <br/> <label class="col-sm-6 control-label">SST</label> <div class="col-sm-6"><input type="text" class="form-control" name="mark7" placeholder="SST" required></div> </div> <div class="form-group"> <br/> <label class="col-sm-6 control-label">COMPUTER</label> <div class="col-sm-6"><input type="text" class="form-control" name="mark8" placeholder="COMPUTER" required></div> </div> <div class="form-group"> <br/> <label class="col-sm-6 control-label">ART</label> <div class="col-sm-6"><input type="text" class="form-control" name="mark9" placeholder="ART" required></div> </div> <center><button class="btn btn-primary" > Submit</button>    <button class="btn btn-danger" data-dismiss="modal"> Close</button> </center> </form> <?php break; case 10: $name=$_POST['name']; $mname=$_POST['mname']; $fname=$_POST['fname']; $dob=$_POST['dob']; $mediam=$_POST['mediam']; $image=$_POST['image']; $rol=$_POST['rol']; $application=$_POST['application']; $class=$_POST['class']; $exam=$_POST['exam']; $session=$_POST['session']; $mark1=$_POST['mark1']; $mark2=$_POST['mark2']; $mark3=$_POST['mark3']; $mark4=$_POST['mark4']; $mark5=$_POST['mark5']; $mark6=$_POST['mark6']; $mark7=$_POST['mark7']; //echo $mark7; $mark8=$_POST['mark8']; $mark9=$_POST['mark9']; //echo $mark8; $sel1="select *from registration where id='$rol'"; $res1=mysqli_query($conn,$sel1); $row1=mysqli_fetch_array($res1,MYSQLI_BOTH); $id=$row1['application']; $date=date("d-m-Y"); $ins="insert into six_eightresult(rol,name,session,class,exam,mark1,mark2,mark3,mark4,mark5,mark6,mark7,mark8,mark9,mname,fname,dob,mediam,image,date) value('$application','$name','$session','$class','$exam','$mark1','$mark2','$mark3','$mark4','$mark5','$mark6','$mark7','$mark8','$mark9','$mname','$fname','$dob','$mediam','$image','$date')"; if($res=mysqli_query($conn,$ins)) { if($exam=='HALF YEARLY EXAM') { $insr="update registration set action='$exam' where id='$rol'"; $resr=mysqli_query($conn,$insr); if($resr) { echo "Submit"; } else { echo "not SUB 1"; } } else { // echo"not1"; } if($exam=='ANNUAL EXAM') { $insr="update registration set action1='$exam' where id='$rol'"; $resr=mysqli_query($conn,$insr); if($resr) { echo "Submit"; } else { echo "not SUB 2"; } } else { // echo"not1"; } } else { echo"not submit"; } break; // FOR NINE-TEN///== case 11: $year=$_POST['year']; $board=$_POST['board']; ?> <script> $(document).ready(function(){ $('#example').DataTable({ dom: 'Bfrtip', buttons: ['copy', 'csv', 'excel', 'pdf', 'print'] }); }); </script> <div class="table-responsive"> <table id="example" class="display nowrap" cellspacing="0" width="100%" border="1px"> <thead> <tr> <th>Sr.</th><th>Roll.</th><th>Name</th><th>Fname</th><th>Mname</th><th>Class</th><th>Dob</th><th>Action</th><th>Result</th> </tr> </thead> <tfoot> <tr> <th>Sr.</th><th>Roll.</th><th>Name</th><th>Fname</th><th>Mname</th><th>Class</th><th>Dob</th><th>Action</th><th>Result</th> </tr> </tfoot> <tbody> <?php $sel="select * from registration where session='$year' and mediam='$board' and subject='NINTH' or mediam='$board' and subject='TENTH' "; $res=mysqli_query($conn,$sel); $s=1; while($row=mysqli_fetch_array($res,MYSQLI_BOTH)) { ?> <tr class="text-center"> <td><?php echo $s;?></td><td><?php echo $row['id'];?></td><td><?php echo $row['name'];?></td><td><?php echo $row['fname'];?></td><td><?php echo $row['mname'];?></td><td><?php echo $row['subject'];?></td><td><?php echo $row['dob'];?></td> <td> <?php if($row['action']=='HALF YEARLY EXAM' ) { echo "<font color=grean>".$row['action']."</font>"; echo "<br/>"; } else { echo "<font color=red>Not HALF YEARLY EXAM</font>"; echo "<br/>"; } if($row['action1']=='ANNUAL EXAM' ) { echo "<font color=grean>".$row['action1']."</font>"; } else { echo "<font color=red>Not ANNUAL EXAM</font>"; } ?> </td> <td><button class="btn btn-primary" onclick="result(<?php echo $row['id'];?>)">Result</button></td> </tr> <?php $s++; } ?> </tbody> </table> </div> <?php break; case 12: $id=$_REQUEST['id']; $sel="select * from registration where id='$id'"; $res=mysqli_query($conn,$sel); $row=mysqli_fetch_array($res,MYSQLI_BOTH); $rol=$row['id']; ?> <form class="form-horizontal" id="regform12" onsubmit="return data(this)"> <input type="hidden" class="form-control" value="<?php echo $row['mname'];?>" name="mname" > <input type="hidden" class="form-control" value="<?php echo $row['fname'];?>" name="fname" > <input type="hidden" class="form-control" value="<?php echo $row['dob'];?>" name="dob" > <input type="hidden" class="form-control" value="<?php echo $row['mediam'];?>" name="mediam" > <input type="hidden" class="form-control" value="<?php echo $row['picture'];?>" name="image" > <div class="col-sm-6"><input type="hidden" class="form-control" value="<?php echo $row['id'];?>" name="rol" ></div> <div class="col-sm-6"><input type="hidden" class="form-control" value="<?php echo $row['name'];?>" name="name" ></div> <label class="col-sm-6 control-label"> </label> <div class="col-sm-6"><input type="hidden" class="form-control" value="<?php echo $row['subject'];?>" name="class" ></div> <div class="form-group"> <br/> <label class="col-sm-6 control-label">Session</label> <div class="col-sm-6"><input type="text" class="form-control" value="<?php echo $row['session'];?>" name="session" readonly /></div> </div> <div class="form-group"> <label class="col-sm-6 control-label">Exam</label> <div class="col-sm-6"> <select required class="form-control" name="exam" > <option>Half Yearly</option> </select></div> </div> <div class="form-group"> <label class="col-sm-6 control-label">HINDI </label> <div class="col-sm-6"><input type="text" class="form-control" name="mark1" placeholder="Marks1" required></div> </div> <div class="form-group"> <label class="col-sm-6 control-label">ENGLISH </label> <div class="col-sm-6"><input type="text" class="form-control" name="mark2" placeholder="Marks 2" required></div> </div> <div class="form-group"> <label class="col-sm-6 control-label">ENGLISH GRAMMAR </label> <div class="col-sm-6"><input type="text" class="form-control" name="mark3" placeholder="Marks 3" required></div> </div> <div class="form-group"> <label class="col-sm-6 control-label">MATHEMATICS</label> <div class="col-sm-6"><input type="text" class="form-control" name="mark4" placeholder="Marks 4" required></div> </div> <div class="form-group"> <label class="col-sm-6 control-label">SCIENCE </label> <div class="col-sm-6"><input type="text" class="form-control" name="mark5" placeholder="Marks 5" required></div> </div> <div class="form-group"> <label class="col-sm-6 control-label"> SO. SCIENCE </label> <div class="col-sm-6"><input type="text" class="form-control" name="mark6" placeholder="Marks 6" required></div> </div> <div class="form-group"> <label class="col-sm-6 control-label">ART </label> <div class="col-sm-6"><input type="text" class="form-control" name="mark7" placeholder="Marks 7" required></div> </div> <center><button class="btn btn-primary" > Submit</button>    <button class="btn btn-danger" data-dismiss="modal"> Close</button> </center> </form> <?php break; case 13: $name=$_POST['name']; $mname=$_POST['mname']; $fname=$_POST['fname']; $dob=$_POST['dob']; $mediam=$_POST['mediam']; $image=$_POST['image']; $rol=$_POST['rol']; $class=$_POST['class']; $exam=$_POST['exam']; $session=$_POST['session']; $mark1=$_POST['mark1']; $mark2=$_POST['mark2']; $mark3=$_POST['mark3']; $mark4=$_POST['mark4']; $mark5=$_POST['mark5']; $mark6=$_POST['mark6']; $mark7=$_POST['mark7']; $date=date("d-m-Y"); $sel2="select *from six_eightresult where rol='$rol' and exam='$exam'"; $res2=mysqli_query($conn,$sel2); $row2=mysqli_fetch_array($res2,MYSQLI_BOTH); $exam1=$row2['exam']; if($exam1!=$exam) { $ins="insert into six_eightresult(rol,name,session,class,exam,mark1,mark2,mark3,mark4,mark5,mark6,mark7,mark8,mname,fname,dob,mediam,image,date) value('$rol','$name','$session','$class','$exam','$mark1','$mark2','$mark3','$mark4','$mark5','$mark6','$mark7','$mark8','$mname','$fname','$dob','$mediam','$image','$date')"; if($res=mysqli_query($conn,$ins)) { $insr="update registration set action='$exam' where id='$rol'"; $resr=mysqli_query($conn,$insr); if($resr) { echo "Submit"; } } else { echo"not submit"; } } else { echo"Result Available"; } break; // FOR ELE-TWEL///== case 14: $year=$_POST['year']; $board=$_POST['board']; ?> <script> $(document).ready(function(){ $('#example').DataTable({ dom: 'Bfrtip', buttons: ['copy', 'csv', 'excel', 'pdf', 'print'] }); }); </script> <div class="table-responsive"> <table id="example" class="display nowrap" cellspacing="0" width="100%" border="1px"> <thead> <tr> <th>Sr.</th><th>Roll.</th><th>Name</th><th>Fname</th><th>Mname</th><th>Class</th><th>Dob</th><th>Action</th><th>Result</th> </tr> </thead> <tfoot> <tr> <th>Sr.</th><th>Roll.</th><th>Name</th><th>Fname</th><th>Mname</th><th>Class</th><th>Dob</th><th>Action</th><th>Result</th> </tr> </tfoot> <tbody> <?php $sel="select * from registration where session='$year' and mediam='$board' and subject='ELEVENTH' or subject='TWELFTH'"; $res=mysqli_query($conn,$sel); $s=1; while($row=mysqli_fetch_array($res,MYSQLI_BOTH)) { ?> <tr class="text-center"> <td><?php echo $s;?></td><td><?php echo $row['id'];?></td><td><?php echo $row['name'];?></td><td><?php echo $row['fname'];?></td><td><?php echo $row['mname'];?></td><td><?php echo $row['subject'];?></td><td><?php echo $row['dob'];?></td> <td> <?php if($row['action']=='Yearly' or $row['action']=='Half Yearly') { echo "<font color=grean>".$row['action']."</font>"; } else { echo "<font color=red>Not</font>"; } ?> </td> <td><button class="btn btn-primary" onclick="result(<?php echo $row['id'];?>)">Result</button></td> </tr> <?php $s++; } ?> </tbody> </table> </div> <?php break; case 15: $id=$_REQUEST['id']; $sel="select * from registration where id='$id'"; $res=mysqli_query($conn,$sel); $row=mysqli_fetch_array($res,MYSQLI_BOTH); $rol=$row['id']; ?> <form class="form-horizontal" id="regform12" onsubmit="return data(this)"> <input type="hidden" class="form-control" value="<?php echo $row['mname'];?>" name="mname" > <input type="hidden" class="form-control" value="<?php echo $row['fname'];?>" name="fname" > <input type="hidden" class="form-control" value="<?php echo $row['dob'];?>" name="dob" > <input type="hidden" class="form-control" value="<?php echo $row['mediam'];?>" name="mediam" > <input type="hidden" class="form-control" value="<?php echo $row['picture'];?>" name="image" > <div class="col-sm-6"><input type="hidden" class="form-control" value="<?php echo $row['id'];?>" name="rol" ></div> <div class="col-sm-6"><input type="hidden" class="form-control" value="<?php echo $row['name'];?>" name="name" ></div> <label class="col-sm-6 control-label"> </label> <div class="col-sm-6"><input type="hidden" class="form-control" value="<?php echo $row['subject'];?>" name="class" ></div> <div class="form-group"> <br/> <label class="col-sm-6 control-label">Session</label> <div class="col-sm-6"><input type="text" class="form-control" value="<?php echo $row['session'];?>" name="session" readonly /></div> </div> <div class="form-group"> <label class="col-sm-6 control-label">Exam</label> <div class="col-sm-6"> <select required class="form-control" name="exam" > <option>--select--</option> <option>Yearly</option> <option>Half Yearly</option> </select></div> </div> <div class="form-group"> <label class="col-sm-6 control-label">HINDI 1</label> <div class="col-sm-6"><input type="text" class="form-control" name="mark1" placeholder="Marks1" required></div> </div> <div class="form-group"> <label class="col-sm-6 control-label">HINDI 2 </label> <div class="col-sm-6"><input type="text" class="form-control" name="mark12" placeholder="" required></div> </div> <div class="form-group"> <label class="col-sm-6 control-label">ENGLISH </label> <div class="col-sm-6"><input type="text" class="form-control" name="mark2" placeholder="Marks 2" required></div> </div> <div class="form-group"> <label class="col-sm-6 control-label">ENGLISH GRAMMAR </label> <div class="col-sm-6"><input type="text" class="form-control" name="mark3" placeholder="Marks 3" required></div> </div> <div class="form-group"> <label class="col-sm-6 control-label">MATHEMATICS 1</label> <div class="col-sm-6"><input type="text" class="form-control" name="mark4" placeholder="Marks 4" required></div> </div> <div class="form-group"> <label class="col-sm-6 control-label">MATHEMATICS 2</label> <div class="col-sm-6"><input type="text" class="form-control" name="mark5" placeholder="Marks 5" required></div> </div> <div class="form-group"> <label class="col-sm-6 control-label">PHYSICS 1</label> <div class="col-sm-6"><input type="text" class="form-control" name="mark6" placeholder="Marks 6" required></div> </div> <div class="form-group"> <label class="col-sm-6 control-label">PHYSICS 2</label> <div class="col-sm-6"><input type="text" class="form-control" name="mark7" placeholder="Marks 7" required></div> </div> <div class="form-group"> <label class="col-sm-6 control-label"> CHEMISTRY 1</label> <div class="col-sm-6"><input type="text" class="form-control" name="mark8" placeholder="Marks 8" required></div> </div> <div class="form-group"> <label class="col-sm-6 control-label"> CHEMISTRY 2</label> <div class="col-sm-6"><input type="text" class="form-control" name="mark9" placeholder="Marks 9" required></div> </div> <div class="form-group"> <label class="col-sm-6 control-label">BIOLOGY 1</label> <div class="col-sm-6"><input type="text" class="form-control" name="mark10" placeholder="Marks 10" required></div> </div> <div class="form-group"> <label class="col-sm-6 control-label">BIOLOGY 2</label> <div class="col-sm-6"><input type="text" class="form-control" name="mark11" placeholder="Marks 11" required></div> </div> <center><button class="btn btn-primary" > Submit</button>    <button class="btn btn-danger" data-dismiss="modal"> Close</button> </center> </form> <?php break; case 16: $name=$_POST['name']; $mname=$_POST['mname']; $fname=$_POST['fname']; $dob=$_POST['dob']; $mediam=$_POST['mediam']; $image=$_POST['image']; $rol=$_POST['rol']; $class=$_POST['class']; $exam=$_POST['exam']; $session=$_POST['session']; $mark1=$_POST['mark1']; $mark2=$_POST['mark2']; $mark3=$_POST['mark3']; $mark4=$_POST['mark4']; $mark5=$_POST['mark5']; $mark6=$_POST['mark6']; $mark7=$_POST['mark7']; $mark8=$_POST['mark8']; $mark9=$_POST['mark9']; $mark10=$_POST['mark10']; $mark11=$_POST['mark11']; $mark12=$_POST['mark12']; $date=date("d-m-Y"); $sel2="select *from six_eightresult where rol='$rol' and exam='$exam'"; $res2=mysqli_query($conn,$sel2); $row2=mysqli_fetch_array($res2,MYSQLI_BOTH); $exam1=$row2['exam']; if($exam1!=$exam) { $ins="insert into six_eightresult(rol,name,session,class,exam,mark1,mark2,mark3,mark4,mark5,mark6,mark7,mark8,mark9,mark10,mark11,mark12,date) value('$rol','$name','$session','$class','$exam','$mark1','$mark2','$mark3','$mark4','$mark5','$mark6','$mark7','$mark8','$mark9','$mark10','$mark11','$mark12','$date')"; if($res=mysqli_query($conn,$ins)) { $insr="update registration set action='$exam' where id='$rol'"; $resr=mysqli_query($conn,$insr); if($resr) { echo "Submit"; } } else { echo"not submit"; } } else { echo"Result Available"; } break; //for up six to eight case 21: $year=$_POST['year']; $board=$_POST['board']; ?> <script> $(document).ready(function(){ $('#example').DataTable({ dom: 'Bfrtip', buttons: ['copy', 'csv', 'excel', 'pdf', 'print'] }); }); </script> <div class="table-responsive"> <h2 style="font-weight:bold;text-align:center"><?php echo $board;?></h2> <table id="example" class="display nowrap" cellspacing="0" width="100%" border="1px"> <thead> <tr> <th>Sr.</th><th>Roll.</th><th>Name</th><th>Fname</th><th>Mname</th><th>Class</th><th>Dob</th><th>Action</th><th>Result</th> </tr> </thead> <tfoot> <tr> <th>Sr.</th><th>Roll.</th><th>Name</th><th>Fname</th><th>Mname</th><th>Class</th><th>Dob</th><th>Action</th><th>Result</th> </tr> </tfoot> <tbody> <?php $sel="select * from registration where session='$year' and mediam='$board' and subject='SIXTH' or mediam='$board' and subject='SEVENTH' or mediam='$board' and subject='EIGHTH' order by id asc"; $res=mysqli_query($conn,$sel); $s=1; while($row=mysqli_fetch_array($res,MYSQLI_BOTH)) { ?> <tr class="text-center"> <td><?php echo $s;?></td><td><?php echo $row['id'];?></td><td><?php echo $row['name'];?></td><td><?php echo $row['fname'];?></td><td><?php echo $row['mname'];?></td><td><?php echo $row['subject'];?></td><td><?php echo $row['dob'];?></td> <td> <?php if($row['action']=='FIRST TERM EXAM' or $row['action']=='SECOND TERM EXAM' or $row['action']=='THIRD TERM EXAM') { echo "<font color=grean>".$row['action']."</font>"; } else { echo "<font color=red>Not</font>"; } ?> </td> <td><button class="btn btn-primary" onclick="result(<?php echo $row['id'];?>)">Result</button></td> </tr> <?php $s++; } ?> </tbody> </table> </div> <?php break; case 22: $id=$_REQUEST['id']; $sel="select * from registration where id='$id'"; $res=mysqli_query($conn,$sel); $row=mysqli_fetch_array($res,MYSQLI_BOTH); $rol=$row['application']; ?> <form class="form-horizontal" id="regform12" onsubmit="return data(this)"> <input type="hidden" class="form-control" value="<?php echo $row['fname'];?>" name="fname" > <input type="hidden" class="form-control" value="<?php echo $row['mname'];?>" name="mname" > <input type="hidden" class="form-control" value="<?php echo $row['dob'];?>" name="dob" > <input type="hidden" class="form-control" value="<?php echo $row['mediam'];?>" name="mediam" > <input type="hidden" class="form-control" value="<?php echo $row['picture'];?>" name="image" > <div class="col-sm-6"><input type="hidden" class="form-control" value="<?php echo $row['id'];?>" name="rol" ></div> <div class="col-sm-6"><input type="hidden" class="form-control" value="<?php echo $row['name'];?>" name="name" ></div> <label class="col-sm-6 control-label"> </label> <div class="col-sm-6"><input type="hidden" class="form-control" value="<?php echo $row['subject'];?>" name="class" ></div> <div class="form-group"> <br/> <label class="col-sm-6 control-label">Session</label> <div class="col-sm-6"><input type="text" class="form-control" value="<?php echo $row['session'];?>" name="session" readonly /></div> </div> <div class="form-group"> <label class="col-sm-6 control-label">Exam</label> <div class="col-sm-6"> <select required class="form-control" name="exam" > <option VALUE="">--select--</option> <option>FIRST TERM EXAM</option> <option>SECOND TERM EXAM</option> <option>THIRD TERM EXAM</option> </select></div> </div> <div class="form-group"> <br/> <label class="col-sm-6 control-label">HINDI </label> <div class="col-sm-6"><input type="text" class="form-control" name="mark1" placeholder="HINDI" required></div> </div> <div class="form-group"> <br/> <label class="col-sm-6 control-label">ENGLISH </label> <div class="col-sm-6"><input type="text" class="form-control" name="mark2" placeholder="ENGLISH " required></div> </div> <div class="form-group"> <br/> <label class="col-sm-6 control-label">MATHEMATICS</label> <div class="col-sm-6"><input type="text" class="form-control" name="mark3" placeholder="MATHEMATICS" required></div> </div> <div class="form-group"> <br/> <label class="col-sm-6 control-label">SCIENCE</label> <div class="col-sm-6"><input type="text" class="form-control" name="mark4" placeholder="SCIENCE" required></div> </div> <div class="form-group"> <br/> <label class="col-sm-6 control-label">SO. SCIENCE</label> <div class="col-sm-6"><input type="text" class="form-control" name="mark5" placeholder="SO. SCIENCE" required></div> </div> <div class="form-group"> <br/> <label class="col-sm-6 control-label">MO. EDUCATION</label> <div class="col-sm-6"><input type="text" class="form-control" name="mark6" placeholder="MO. EDUCATION" required></div> </div> <div class="form-group"> <br/> <label class="col-sm-6 control-label">ART</label> <div class="col-sm-6"><input type="text" class="form-control" name="mark7" placeholder="ART" required></div> </div> <div class="form-group"> <br/> <label class="col-sm-6 control-label">SANSKRIT/URDU</label> <div class="col-sm-6"><input type="text" class="form-control" name="mark8" placeholder="SANSKRIT/URDU" required></div> </div> <center><button class="btn btn-primary" > Submit</button>    <button class="btn btn-danger" data-dismiss="modal"> Close</button> </center> </form> <?php break; case 23: $name=$_POST['name']; $mname=$_POST['mname']; $fname=$_POST['fname']; $dob=$_POST['dob']; $mediam=$_POST['mediam']; $image=$_POST['image']; $rol=$_POST['rol']; $class=$_POST['class']; $exam=$_POST['exam']; $session=$_POST['session']; $mark1=$_POST['mark1']; $mark2=$_POST['mark2']; $mark3=$_POST['mark3']; $mark4=$_POST['mark4']; $mark5=$_POST['mark5']; $mark6=$_POST['mark6']; $mark7=$_POST['mark7']; $mark8=$_POST['mark8']; $sel1="select *from registration where id='$rol'"; $res1=mysqli_query($conn,$sel1); $row1=mysqli_fetch_array($res1,MYSQLI_BOTH); $id=$row1['application']; $date=date("d-m-Y"); $sel2="select *from six_eightresult where rol='$rol' and exam='$exam'"; $res2=mysqli_query($conn,$sel2); $row2=mysqli_fetch_array($res2,MYSQLI_BOTH); $exam1=$row2['exam']; $ins="insert into six_eightresult(rol,name,session,class,exam,mark1,mark2,mark3,mark4,mark5,mark6,mark7,mark8,mname,fname,dob,mediam,image,date) value('$rol','$name','$session','$class','$exam','$mark1','$mark2','$mark3','$mark4','$mark5','$mark6','$mark7','$mark8','$mname','$fname','$dob','$mediam','$image','$date')"; if($res=mysqli_query($conn,$ins)) { $insr="update registration set action='$exam' where id='$rol'"; $resr=mysqli_query($conn,$insr); if($resr) { echo "Submit"; } else { echo "not"; } } else { echo"not submit"; } break; //for up six to eight //for up NINE to TEN case 24: $year=$_POST['year']; $board=$_POST['board']; ?> <script> $(document).ready(function(){ $('#example').DataTable({ dom: 'Bfrtip', buttons: ['copy', 'csv', 'excel', 'pdf', 'print'] }); }); </script> <div class="table-responsive"> <h2 style="font-weight:bold;text-align:center"><?php echo $board;?></h2> <table id="example" class="display nowrap" cellspacing="0" width="100%" border="1px"> <thead> <tr> <th>Sr.</th><th>Roll.</th><th>Name</th><th>Fname</th><th>Mname</th><th>Class</th><th>Dob</th><th>Action</th><th>Result</th> </tr> </thead> <tfoot> <tr> <th>Sr.</th><th>Roll.</th><th>Name</th><th>Fname</th><th>Mname</th><th>Class</th><th>Dob</th><th>Action</th><th>Result</th> </tr> </tfoot> <tbody> <?php $sel="select * from registration where session='$year' and mediam='$board' and subject='NINTH' or subject='TENTH' order by id asc"; $res=mysqli_query($conn,$sel); $s=1; while($row=mysqli_fetch_array($res,MYSQLI_BOTH)) { ?> <tr class="text-center"> <td><?php echo $s;?></td><td><?php echo $row['id'];?></td><td><?php echo $row['name'];?></td><td><?php echo $row['fname'];?></td><td><?php echo $row['mname'];?></td><td><?php echo $row['subject'];?></td><td><?php echo $row['dob'];?></td> <td> <?php if($row['action']=='FIRST TERM EXAM' or $row['action']=='SECOND TERM EXAM' or $row['action']=='THIRD TERM EXAM') { echo "<font color=grean>".$row['action']."</font>"; } else { echo "<font color=red>Not</font>"; } ?> </td> <td><button class="btn btn-primary" onclick="result(<?php echo $row['id'];?>)">Result</button></td> </tr> <?php $s++; } ?> </tbody> </table> </div> <?php break; case 25: $id=$_REQUEST['id']; $sel="select * from registration where id='$id'"; $res=mysqli_query($conn,$sel); $row=mysqli_fetch_array($res,MYSQLI_BOTH); $rol=$row['application']; ?> <form class="form-horizontal" id="regform12" onsubmit="return data(this)"> <input type="hidden" class="form-control" value="<?php echo $row['fname'];?>" name="fname" > <input type="hidden" class="form-control" value="<?php echo $row['mname'];?>" name="mname" > <input type="hidden" class="form-control" value="<?php echo $row['dob'];?>" name="dob" > <input type="hidden" class="form-control" value="<?php echo $row['mediam'];?>" name="mediam" > <input type="hidden" class="form-control" value="<?php echo $row['picture'];?>" name="image" > <div class="col-sm-6"><input type="hidden" class="form-control" value="<?php echo $row['id'];?>" name="rol" ></div> <div class="col-sm-6"><input type="hidden" class="form-control" value="<?php echo $row['name'];?>" name="name" ></div> <label class="col-sm-6 control-label"> </label> <div class="col-sm-6"><input type="hidden" class="form-control" value="<?php echo $row['subject'];?>" name="class" ></div> <div class="form-group"> <br/> <label class="col-sm-6 control-label">Session</label> <div class="col-sm-6"><input type="text" class="form-control" value="<?php echo $row['session'];?>" name="session" readonly /></div> </div> <div class="form-group"> <label class="col-sm-6 control-label">Exam</label> <div class="col-sm-6"> <select required class="form-control" name="exam" > <option VALUE="">--select--</option> <option>FIRST TERM EXAM</option> <option>SECOND TERM EXAM</option> <option>THIRD TERM EXAM</option> </select></div> </div> <div class="form-group"> <br/> <label class="col-sm-6 control-label">HINDI </label> <div class="col-sm-6"><input type="text" class="form-control" name="mark1" placeholder="HINDI" required></div> </div> <div class="form-group"> <br/> <label class="col-sm-6 control-label">ENGLISH </label> <div class="col-sm-6"><input type="text" class="form-control" name="mark2" placeholder="ENGLISH " required></div> </div> <div class="form-group"> <br/> <label class="col-sm-6 control-label">MATHS/HOME SCI.</label> <div class="col-sm-6"><input type="text" class="form-control" name="mark3" placeholder="MATHEMATICS" required></div> </div> <div class="form-group"> <br/> <label class="col-sm-6 control-label">SCIENCE</label> <div class="col-sm-6"><input type="text" class="form-control" name="mark4" placeholder="SCIENCE" required></div> </div> <div class="form-group"> <br/> <label class="col-sm-6 control-label">SO. SCIENCE</label> <div class="col-sm-6"><input type="text" class="form-control" name="mark5" placeholder="SO. SCIENCE" required></div> </div> <div class="form-group"> <br/> <label class="col-sm-6 control-label">ART/SANSKRIT</label> <div class="col-sm-6"><input type="text" class="form-control" name="mark6" placeholder="ART/SANSKRIT" required></div> </div> <center><button class="btn btn-primary" > Submit</button>    <button class="btn btn-danger" data-dismiss="modal"> Close</button> </center> </form> <?php break; case 26: $name=$_POST['name']; $mname=$_POST['mname']; $fname=$_POST['fname']; $dob=$_POST['dob']; $mediam=$_POST['mediam']; $image=$_POST['image']; $rol=$_POST['rol']; $class=$_POST['class']; $exam=$_POST['exam']; $session=$_POST['session']; $mark1=$_POST['mark1']; $mark2=$_POST['mark2']; $mark3=$_POST['mark3']; $mark4=$_POST['mark4']; $mark5=$_POST['mark5']; $mark6=$_POST['mark6']; $sel1="select *from registration where id='$rol'"; $res1=mysqli_query($conn,$sel1); $row1=mysqli_fetch_array($res1,MYSQLI_BOTH); $id=$row1['application']; $date=date("d-m-Y"); $sel2="select *from six_eightresult where rol='$rol' and exam='$exam'"; $res2=mysqli_query($conn,$sel2); $row2=mysqli_fetch_array($res2,MYSQLI_BOTH); $exam1=$row2['exam']; $ins="insert into six_eightresult(rol,name,session,class,exam,mark1,mark2,mark3,mark4,mark5,mark6,mname,fname,dob,mediam,image,date) value('$rol','$name','$session','$class','$exam','$mark1','$mark2','$mark3','$mark4','$mark5','$mark6','$mname','$fname','$dob','$mediam','$image','$date')"; if($res=mysqli_query($conn,$ins)) { $insr="update registration set action='$exam' where id='$rol'"; $resr=mysqli_query($conn,$insr); if($resr) { echo "Submit"; } else { echo "not"; } } else { echo"not submit"; } break; //for up NINE to TEN //for up 11 to 12 case 27: $year=$_POST['year']; $board=$_POST['board']; ?> <script> $(document).ready(function(){ $('#example').DataTable({ dom: 'Bfrtip', buttons: ['copy', 'csv', 'excel', 'pdf', 'print'] }); }); </script> <div class="table-responsive"> <h2 style="font-weight:bold;text-align:center"><?php echo $board;?></h2> <table id="example" class="display nowrap" cellspacing="0" width="100%" border="1px"> <thead> <tr> <th>Sr.</th><th>Roll.</th><th>Name</th><th>Fname</th><th>Mname</th><th>Class</th><th>Dob</th><th>Action</th><th>Result</th> </tr> </thead> <tfoot> <tr> <th>Sr.</th><th>Roll.</th><th>Name</th><th>Fname</th><th>Mname</th><th>Class</th><th>Dob</th><th>Action</th><th>Result</th> </tr> </tfoot> <tbody> <?php $sel="select * from registration where session='$year' and mediam='$board' and subject='TWELFTH' or subject='ELEVENTH' order by id asc"; $res=mysqli_query($conn,$sel); $s=1; while($row=mysqli_fetch_array($res,MYSQLI_BOTH)) { ?> <tr class="text-center"> <td><?php echo $s;?></td><td><?php echo $row['id'];?></td><td><?php echo $row['name'];?></td><td><?php echo $row['fname'];?></td><td><?php echo $row['mname'];?></td><td><?php echo $row['subject'];?></td><td><?php echo $row['dob'];?></td> <td> <?php if($row['action']=='FIRST TERM EXAM' or $row['action']=='SECOND TERM EXAM' or $row['action']=='THIRD TERM EXAM') { echo "<font color=grean>".$row['action']."</font>"; } else { echo "<font color=red>Not</font>"; } ?> </td> <td><button class="btn btn-primary" onclick="result(<?php echo $row['id'];?>)">Result</button></td> </tr> <?php $s++; } ?> </tbody> </table> </div> <?php break; case 28: $id=$_REQUEST['id']; $sel="select * from registration where id='$id'"; $res=mysqli_query($conn,$sel); $row=mysqli_fetch_array($res,MYSQLI_BOTH); $rol=$row['application']; ?> <form class="form-horizontal" id="regform12" onsubmit="return data(this)"> <input type="hidden" class="form-control" value="<?php echo $row['fname'];?>" name="fname" > <input type="hidden" class="form-control" value="<?php echo $row['mname'];?>" name="mname" > <input type="hidden" class="form-control" value="<?php echo $row['dob'];?>" name="dob" > <input type="hidden" class="form-control" value="<?php echo $row['mediam'];?>" name="mediam" > <input type="hidden" class="form-control" value="<?php echo $row['picture'];?>" name="image" > <div class="col-sm-6"><input type="hidden" class="form-control" value="<?php echo $row['id'];?>" name="rol" ></div> <div class="col-sm-6"><input type="hidden" class="form-control" value="<?php echo $row['name'];?>" name="name" ></div> <label class="col-sm-6 control-label"> </label> <div class="col-sm-6"><input type="hidden" class="form-control" value="<?php echo $row['subject'];?>" name="class" ></div> <div class="form-group"> <br/> <label class="col-sm-6 control-label">Session</label> <div class="col-sm-6"><input type="text" class="form-control" value="<?php echo $row['session'];?>" name="session" readonly /></div> </div> <div class="form-group"> <label class="col-sm-6 control-label">Exam</label> <div class="col-sm-6"> <select required class="form-control" name="exam" > <option VALUE="">--select--</option> <option>FIRST TERM EXAM</option> <option>SECOND TERM EXAM</option> <option>THIRD TERM EXAM</option> </select></div> </div> <div class="form-group"> <br/> <label class="col-sm-6 control-label">HINDI </label> <div class="col-sm-6"><input type="text" class="form-control" name="mark1" placeholder="HINDI" required></div> </div> <div class="form-group"> <br/> <label class="col-sm-6 control-label">ENGLISH </label> <div class="col-sm-6"><input type="text" class="form-control" name="mark2" placeholder="ENGLISH " required></div> </div> <div class="form-group"> <br/> <label class="col-sm-6 control-label">MATHS/BIO</label> <div class="col-sm-6"><input type="text" class="form-control" name="mark3" placeholder="MATH/BIO" required></div> </div> <div class="form-group"> <br/> <label class="col-sm-6 control-label">PHYSICS</label> <div class="col-sm-6"><input type="text" class="form-control" name="mark4" placeholder="PHYSICS" required></div> </div> <div class="form-group"> <br/> <label class="col-sm-6 control-label">CHEMISTRY</label> <div class="col-sm-6"><input type="text" class="form-control" name="mark5" placeholder="CHEMISTRY" required></div> </div> <center><button class="btn btn-primary" > Submit</button>    <button class="btn btn-danger" data-dismiss="modal"> Close</button> </center> </form> <?php break; case 29: $name=$_POST['name']; $mname=$_POST['mname']; $fname=$_POST['fname']; $dob=$_POST['dob']; $mediam=$_POST['mediam']; $image=$_POST['image']; $rol=$_POST['rol']; $class=$_POST['class']; $exam=$_POST['exam']; $session=$_POST['session']; $mark1=$_POST['mark1']; $mark2=$_POST['mark2']; $mark3=$_POST['mark3']; $mark4=$_POST['mark4']; $mark5=$_POST['mark5']; $sel1="select *from registration where id='$rol'"; $res1=mysqli_query($conn,$sel1); $row1=mysqli_fetch_array($res1,MYSQLI_BOTH); $id=$row1['application']; $date=date("d-m-Y"); $sel2="select *from six_eightresult where rol='$rol' and exam='$exam'"; $res2=mysqli_query($conn,$sel2); $row2=mysqli_fetch_array($res2,MYSQLI_BOTH); $exam1=$row2['exam']; $ins="insert into six_eightresult(rol,name,session,class,exam,mark1,mark2,mark3,mark4,mark5,mname,fname,dob,mediam,image,date) value('$rol','$name','$session','$class','$exam','$mark1','$mark2','$mark3','$mark4','$mark5','$mname','$fname','$dob','$mediam','$image','$date')"; if($res=mysqli_query($conn,$ins)) { $insr="update registration set action='$exam' where id='$rol'"; $resr=mysqli_query($conn,$insr); if($resr) { echo "Submit"; } else { echo "not"; } } else { echo"not submit"; } break; //for up 11 to 12 //////for sshow result 1 case 30: $id=$_REQUEST['id']; $sel1="select * from registration where id='$id' "; $res1=mysqli_query($conn,$sel1); $row1=mysqli_fetch_array($res1,MYSQLI_BOTH); $application=$row1['application']; $session=$row1['session']; $sel="select * from six_eightresult where rol='$application' and exam='ANNUAL EXAM' and session='$session'"; $res=mysqli_query($conn,$sel); $row=mysqli_fetch_array($res,MYSQLI_BOTH); $rol=$row['id']; ?> <form class="form-horizontal" id="regform12" onsubmit="return data1(this)"> Name<input type="text" class="form-control" value="<?php echo $row['name'];?>" name="name" readonly> <input type="hidden" class="form-control" value="<?php echo $row1['session'];?>" name="session" readonly> <input type="hidden" class="form-control" value="<?php echo $row['id'];?>" name="id" readonly> Fname<input type="text" class="form-control" value="<?php echo $row['fname'];?>" name="fname" readonly> Class <input type="text" class="form-control" value="<?php echo $row1['subject'];?>" name="class" readonly> <table style=" border:1px solid"> <tr> <td>Subjects</td> <td>PT.(10)</td> <td>N.B.(5)</td><td>S.B..(5)</td><td>HY/Y(80)</td> </tr> <tr> <td>Hindi </td> <td><input type="text" value='<?php echo $row['mark1p']?>' name="mark1p" required></td> <td><input type="text" value='<?php echo $row['mark1n']?>' name="mark1n" required></td><td><input type="text" value='<?php echo $row['mark1e']?>' name="mark1e" required></td><td><input type="text" value='<?php echo $row['mark1m']?>' name="mark1m" required></td> </tr> <tr> <td>English </td> <td><input type="text" value='<?php echo $row['mark2p']?>' name="mark2p" required></td> <td><input type="text" value='<?php echo $row['mark2n']?>' name="mark2n" required></td><td><input type="text" value='<?php echo $row['mark2e']?>' name="mark2e" required></td><td><input type="text" value='<?php echo $row['mark2m']?>' name="mark2m" required></td> </tr> <tr> <td>Math </td> <td><input type="text" value='<?php echo $row['mark3p']?>' name="mark3p" required></td> <td><input type="text" value='<?php echo $row['mark3n']?>' name="mark3n" required></td><td><input type="text" value='<?php echo $row['mark3e']?>'name="mark3e" required></td><td><input type="text" value='<?php echo $row['mark3m']?>' name="mark3m" required></td> </tr> </table> <center> <button class="btn btn-success" > Update</button>    <button class="btn btn-danger" data-dismiss="modal"> Close</button> </center> </form> <?php break; ///// for show result 1 //////for sshow result FIRST case 311: $id=$_REQUEST['id']; $sel1="select * from registration where id='$id' "; $res1=mysqli_query($conn,$sel1); $row1=mysqli_fetch_array($res1,MYSQLI_BOTH); $application=$row1['application']; $session=$row1['session']; $sel="select * from six_eightresult where rol='$application' and exam='ANNUAL EXAM' and session='$session'"; $res=mysqli_query($conn,$sel); $row=mysqli_fetch_array($res,MYSQLI_BOTH); $rol=$row['id']; ?> <script> $('#p1').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#p2').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#p3').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#p4').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#p5').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#p6').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#numberbox6').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#n1').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n2').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n3').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n4').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n5').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n6').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n7').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e1').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e2').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e3').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e4').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e5').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e6').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e7').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#m1').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#m2').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#m3').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#m4').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#m5').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#m6').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#m7').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); </script> <form class="form-horizontal" id="regform12" onsubmit="return data1(this)"> Name<input type="text" class="form-control" value="<?php echo $row['name'];?>" name="name" readonly> <input type="hidden" class="form-control" value="<?php echo $row1['session'];?>" name="session" readonly> <input type="hidden" class="form-control" value="<?php echo $row['id'];?>" name="id" readonly> Fname<input type="text" class="form-control" value="<?php echo $row['fname'];?>" name="fname" readonly> Class <input type="text" class="form-control" value="<?php echo $row1['subject'];?>" name="class" readonly> <table style=" border:1px solid"> <tr> <td>Subjects</td> <td>PT.(10)</td> <td>N.B.(5)</td><td>S.B..(5)</td><td>HY/Y(80)</td> </tr> <tr> <td>Hindi </td> <td><input type="text" value='<?php echo $row['mark1p']?>' id='p1' name="mark1p" required></td> <td><input type="text" id='n2' value='<?php echo $row['mark1n']?>' name="mark1n" required></td><td><input type="text" id='e1' value='<?php echo $row['mark1e']?>' name="mark1e" required></td><td><input type="text" id='m1' value='<?php echo $row['mark1m']?>' name="mark1m" required></td> </tr> <tr> <td>English </td> <td><input type="text" value='<?php echo $row['mark2p']?>' id='p2' name="mark2p" required></td> <td><input type="text" id='n2' value='<?php echo $row['mark2n']?>' name="mark2n" required></td><td><input type="text" id='e2' value='<?php echo $row['mark2e']?>' name="mark2e" required></td><td><input type="text" id='m2' value='<?php echo $row['mark2m']?>' name="mark2m" required></td> </tr> <tr> <td>Math </td> <td><input type="text" value='<?php echo $row['mark3p']?>' id='p3' name="mark3p" required></td> <td><input type="text" id='n3' value='<?php echo $row['mark3n']?>' name="mark3n" required></td><td><input type="text" id='e3' value='<?php echo $row['mark3e']?>'name="mark3e" required></td><td><input type="text" id='m3' value='<?php echo $row['mark3m']?>' name="mark3m" required></td> </tr> <tr> <td>Science </td> <td><input type="text" value='<?php echo $row['mark4p']?>' id='p4' name="mark4p" required></td> <td><input type="text" id='n4' value='<?php echo $row['mark4n']?>' name="mark4n" required></td><td><input type="text" id='e4' value='<?php echo $row['mark4e']?>' name="mark4e" required></td><td><input type="text" id='m4' value='<?php echo $row['mark4m']?>' name="mark4m" required></td> </tr> <tr> <td>S.Science </td> <td><input type="text" value='<?php echo $row['mark5p']?>' id='p5' name="mark5p" required></td> <td><input type="text" id='n5' value='<?php echo $row['mark5n']?>' name="mark5n" required></td><td><input type="text" id='e5' value='<?php echo $row['mark5e']?>' name="mark5e" required></td><td><input type="text" id='m5' value='<?php echo $row['mark5m']?>' name="mark5m" required></td> </tr> <tr> <td>Sanskrit </td> <td><input type="text" value='<?php echo $row['mark6p']?>'id='p6' name="mark6p" required></td> <td><input type="text" id='n6' value='<?php echo $row['mark6n']?>' name="mark6n" required></td><td><input type="text" id='e6' value='<?php echo $row['mark6e']?>'name="mark6e" required></td><td><input type="text" id='m6' value='<?php echo $row['mark6m']?>' name="mark6m" required></td> </tr> <tr> <td>Computer </td> <td><input type="text" value='<?php echo $row['mark7p']?>'id='p7' name="mark7p" required></td> <td><input type="text" id='n7' value='<?php echo $row['mark7n']?>' name="mark7n" required></td><td><input type="text" id='e7' value='<?php echo $row['mark7e']?>'name="mark7e" required></td><td><input type="text" id='m7' value='<?php echo $row['mark7m']?>' name="mark7m" required></td> </tr> <tr> <td>G.K. </td> <td><select class='form-control' name='gk'><option <?php if($row['gk']=='A1'){echo'selected';}?>>A1</option> <option <?php if($row['gk']=='A2'){echo'selected';}?>>A2</option> <option <?php if($row['gk']=='B1'){echo'selected';}?>>B1</option> <option <?php if($row['gk']=='B2'){echo'selected';}?>>B2</option> <option <?php if($row['gk']=='C1'){echo'selected';}?>>C1</option> <option <?php if($row['gk']=='C2'){echo'selected';}?>>C2</option> <option <?php if($row['gk']=='D'){echo'selected';}?>>D</option> <option <?php if($row['gk']=='E(FAILED)'){echo'selected';}?>>E()FAILED</option> </select></td> <td>Art</td><td><select class='form-control' name='art'><option <?php if($row['art']=='A1'){echo'selected';}?>>A1</option> <option <?php if($row['art']=='A2'){echo'selected';}?>>A2</option> <option <?php if($row['art']=='B1'){echo'selected';}?>>B1</option> <option <?php if($row['art']=='B2'){echo'selected';}?>>B2</option> <option <?php if($row['art']=='C1'){echo'selected';}?>>C1</option> <option <?php if($row['art']=='C2'){echo'selected';}?>>C2</option> <option <?php if($row['art']=='D'){echo'selected';}?>>D</option> <option <?php if($row['art']=='E(FAILED)'){echo'selected';}?>>E(FAILED)</option></select></td><td></td> </tr> </table> <center> <button class="btn btn-success" > Update</button>    <button class="btn btn-danger" data-dismiss="modal"> Close</button> </center> </form> <?php break; ////// update pg result ////// update pg result case 33: $rol=$_POST['rol']; $id=$_POST['id']; $class=$_POST['class']; $exam=$_POST['exam']; $session=$_POST['session']; $mark1=$_POST['mark1']; $mark2=$_POST['mark2']; $mark3=$_POST['mark3']; $mark4=$_POST['mark4']; $mark5=$_POST['mark5']; $mark6=$_POST['mark6']; $mark7=$_POST['mark7']; $mark8=$_POST['mark8']; $rank=$_POST['rank']; $up="update six_eightresult set mark1='$mark1',mark2='$mark2',mark3='$mark3',mark4='$mark4',mark5='$mark5',mark6='$mark6',mark7='$mark7',mark8='$mark8',rank='$rank' where id='$id' order by id desc"; if($res=mysqli_query($conn,$up)) { if($up) { echo "Update"; } else { echo "not"; } } else { echo"not submit"; } break; ///// for show result 1 //////for sshow result FIRST case 381: $id=$_REQUEST['id']; $sel1="select * from registration where id='$id' "; $res1=mysqli_query($conn,$sel1); $row1=mysqli_fetch_array($res1,MYSQLI_BOTH); $application=$row1['application']; $session=$row1['session']; $sel="select * from six_eightresult where rol='$application' and exam='ANNUAL EXAM' and session='$session'"; $res=mysqli_query($conn,$sel); $row=mysqli_fetch_array($res,MYSQLI_BOTH); $rol=$row['id']; ?> <form class="form-horizontal" id="regform12" onsubmit="return data2(this)"> Name<input type="text" class="form-control" value="<?php echo $row['name'];?>" name="name" readonly> <input type="hidden" class="form-control" value="<?php echo $row1['session'];?>" name="session" readonly> <input type="hidden" class="form-control" value="<?php echo $row['id'];?>" name="id" readonly> Fname<input type="text" class="form-control" value="<?php echo $row['fname'];?>" name="fname" readonly> <input type="hidden" class="form-control" value="<?php echo $row['mname'];?>" name="mname" readonly> <input type="hidden" class="form-control" value="<?php echo $row['dob'];?>" name="dob" readonly> Sch. No.<input type="text" class="form-control" value="<?php echo $row['rol'];?>" name="rol" readonly> HINDI <input type="text" class="form-control" value="<?php echo $row['mark1'];?>" name="mark1" > ENGLISH I<input type="text" class="form-control" value="<?php echo $row['mark2'];?>" name="mark2" > ENGLISH II<input type="text" class="form-control" value="<?php echo $row['mark3'];?>" name="mark3" > MATH <input type="text" class="form-control" value="<?php echo $row['mark4'];?>" name="mark4" > G.K.<input type="text" class="form-control" value="<?php echo $row['mark5'];?>" name="mark5" > SCIENCE<input type="text" class="form-control" value="<?php echo $row['mark6'];?>" name="mark6" > S.S.T<input type="text" class="form-control" value="<?php echo $row['mark7'];?>" name="mark7" > COMPUTER<input type="text" class="form-control" value="<?php echo $row['mark8'];?>" name="mark8" > ART<input type="text" class="form-control" value="<?php echo $row['mark9'];?>" name="mark9" > RANK<input type="text" class="form-control" value="<?php echo $row['rank'];?>" name="rank" > <center> <button class="btn btn-success" > Update</button>    <button class="btn btn-danger" data-dismiss="modal"> Close</button> </center> </form> <?php break; ////// update pg result case 35: $rol=$_POST['rol']; $id=$_POST['id']; $class=$_POST['class']; $exam=$_POST['exam']; $session=$_POST['session']; $mark1=$_POST['mark1']; $mark2=$_POST['mark2']; $mark3=$_POST['mark3']; $mark4=$_POST['mark4']; $mark5=$_POST['mark5']; $mark6=$_POST['mark6']; $mark7=$_POST['mark7']; $mark8=$_POST['mark8']; $mark9=$_POST['mark9']; $rank=$_POST['rank']; $up="update six_eightresult set mark1='$mark1',mark2='$mark2',mark3='$mark3',mark4='$mark4',mark5='$mark5',mark6='$mark6',mark7='$mark7',mark8='$mark8',mark9='$mark9',rank='$rank' where id='$id' order by id desc"; if($res=mysqli_query($conn,$up)) { if($up) { echo "Update"; } else { echo "not"; } } else { echo"not submit"; } break; /////for sshow result 1 case 36: $id=$_REQUEST['id']; $sel1="select * from registration where id='$id' "; $res1=mysqli_query($conn,$sel1); $row1=mysqli_fetch_array($res1,MYSQLI_BOTH); $application=$row1['application']; $session=$row1['session']; $sel="select * from six_eightresult where rol='$application' and exam='HALF YEARLY EXAM' and session='$session'"; $res=mysqli_query($conn,$sel); $row=mysqli_fetch_array($res,MYSQLI_BOTH); $rol=$row['rol']; ?> <form class="form-horizontal" id="regform12" onsubmit="return data2(this)"> <input type="text" class="form-control" value="<?php echo $row['fname'];?>" name="fname" > <input type="text" class="form-control" value="<?php echo $row['mname'];?>" name="mname" > <input type="text" class="form-control" value="<?php echo $row['dob'];?>" name="dob" > <input type="text" class="form-control" value="<?php echo $row['subject'];?>" name="class" > <input type="text" class="form-control" value="<?php echo $row['subject'];?>" name="class" > <input type="hidden" class="form-control" value="<?php echo $row['subject'];?>" name="class" > <center> <button class="btn btn-success" > Update</button>    <button class="btn btn-danger" data-dismiss="modal"> Close</button> </center> </form> <?php break; case 361: $id=$_REQUEST['id']; $sel1="select * from registration where id='$id' "; $res1=mysqli_query($conn,$sel1); $row1=mysqli_fetch_array($res1,MYSQLI_BOTH); $application=$row1['application']; $session=$row1['session']; $sel="select * from six_eightresult where rol='$application' and exam='HALF YEARLY EXAM' and session='$session'"; $res=mysqli_query($conn,$sel); $row=mysqli_fetch_array($res,MYSQLI_BOTH); $rol=$row['id']; ?> <script> $('#p1').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#p2').keyup(function(){ if ($(this).val() > 20){ alert("No numbers above 20"); $(this).val('20'); } }); $('#p3').keyup(function(){ if ($(this).val() > 20){ alert("No numbers above 20"); $(this).val('20'); } }); $('#p4').keyup(function(){ if ($(this).val() > 20){ alert("No numbers above 20"); $(this).val('20'); } }); $('#p5').keyup(function(){ if ($(this).val() > 20){ alert("No numbers above 20"); $(this).val('20'); } }); $('#p6').keyup(function(){ if ($(this).val() > 20){ alert("No numbers above 20"); $(this).val('20'); } }); $('#p7').keyup(function(){ if ($(this).val() > 20){ alert("No numbers above 20"); $(this).val('20'); } }); $('#p8').keyup(function(){ if ($(this).val() > 20){ alert("No numbers above 20"); $(this).val('20'); } }); $('#p9').keyup(function(){ if ($(this).val() > 20){ alert("No numbers above 20"); $(this).val('20'); } }); $('#n1').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n2').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n3').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n4').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n5').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n6').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n7').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e1').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e2').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e3').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e4').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e5').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e6').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e7').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#m1').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#m2').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#m3').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#m4').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#m5').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#m6').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#m7').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#m8').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#m9').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); </script> <style> table { border-collapse: collapse; border-spacing: 0; width: 100%; border: 1px solid #ddd; } th, td { text-align: left; padding: 8px; } tr:nth-child(even){background-color: #f2f2f2} </style> <form class="form-horizontal" id="regform12" onsubmit="return data2(this)"> Exam<input type="text" class="form-control" value="<?php echo $row['exam'];?>" readonly style="color:red"> Name<input type="text" class="form-control" value="<?php echo $row['name'];?>" name="name" readonly> <input type="hidden" class="form-control" value="<?php echo $row1['session'];?>" name="session" readonly> <input type="hidden" class="form-control" value="<?php echo $row['id'];?>" name="id" readonly> Fname<input type="text" class="form-control" value="<?php echo $row['fname'];?>" name="fname" readonly> Class <input type="text" class="form-control" value="<?php echo $row1['subject'];?>" name="class" readonly> <div style="overflow-x:auto;"> <table style=" border:1px solid"> <tr> <td>Subjects</td> <td>PT.(20)</td> <td>HY/Y(80)</td> </tr> <tr> <td>Hindi Written </td> <td><input type="text" value='<?php echo $row['mark1p']?>' id='p1' name="mark1p" required></td> <td><input type="text" id='m1' value='<?php echo $row['mark1m']?>' name="mark1m" required></td> </tr> <tr> <td>Hindi Oral </td> <td><input type="text" value='<?php echo $row['mark2p']?>' id='p2' name="mark2p" required></td><td><input type="text" id='m2' value='<?php echo $row['mark2m']?>' name="mark2m" required></td> </tr> <tr> <td>Math Written </td> <td><input type="text" value='<?php echo $row['mark3p']?>' id='p3' name="mark3p" required></td> <td><input type="text" id='m3' value='<?php echo $row['mark3m']?>' name="mark3m" required></td> </tr> <tr> <td>Math Oral </td> <td><input type="text" value='<?php echo $row['mark4p']?>' id='p4' name="mark4p" required></td> <td><input type="text" id='m4' value='<?php echo $row['mark4m']?>' name="mark4m" required></td> </tr> <tr> <td>English Written </td> <td><input type="text" value='<?php echo $row['mark5p']?>' id='p5' name="mark5p" required></td> <td><input type="text" id='m5' value='<?php echo $row['mark5m']?>' name="mark5m" required></td> </tr> <tr> <td>English Oral </td> <td><input type="text" value='<?php echo $row['mark6p']?>'id='p6' name="mark6p" required></td> <td><input type="text" id='m6' value='<?php echo $row['mark6m']?>' name="mark6m" required></td> </tr> <tr> <td>G.K. </td> <td><input type="text" value='<?php echo $row['mark7p']?>'id='p7' name="mark7p" required></td> <td><input type="text" id='m7' value='<?php echo $row['mark7m']?>' name="mark7m" required></td> </tr> <tr> <td>Conversation </td> <td><input type="text" value='<?php echo $row['mark8p']?>'id='p8' name="mark8p" required></td> <td><input type="text" id='m8' value='<?php echo $row['mark8m']?>' name="mark8m" required></td> </tr> <tr> <td>Art </td> <td><input type="text" value='<?php echo $row['mark9p']?>'id='p9' name="mark9p" required></td> <td><input type="text" id='m9' value='<?php echo $row['mark9m']?>' name="mark9m" required></td> </tr> </table> </div> <center> <button class="btn btn-success" > Update</button>    <button class="btn btn-danger" data-dismiss="modal"> Close</button> </center> </form> <?php break; ///// for show result 1 //////for sshow result FIRST case 37: //$rol=$_POST['rol']; $id=$_POST['id']; //$class=$_POST['class']; //$exam=$_POST['exam']; $session=$_POST['session']; $mark1p=$_POST['mark1p']; //$mark1n=$_POST['mark1n']; //$mark1e=$_POST['mark1e']; $mark1m=$_POST['mark1m']; $mark2p=$_POST['mark2p']; //$mark2n=$_POST['mark2n']; //$mark2e=$_POST['mark2e']; $mark2m=$_POST['mark2m']; $mark3p=$_POST['mark3p']; //$mark3n=$_POST['mark3n']; //$mark3e=$_POST['mark3e']; $mark3m=$_POST['mark3m']; $mark4p=$_POST['mark4p']; //$mark4n=$_POST['mark4n']; //$mark4e=$_POST['mark4e']; $mark4m=$_POST['mark4m']; $mark5p=$_POST['mark5p']; //$mark5n=$_POST['mark5n']; //$mark5e=$_POST['mark5e']; $mark5m=$_POST['mark5m']; $mark6p=$_POST['mark6p']; //$mark6n=$_POST['mark6n']; //$mark6e=$_POST['mark6e']; $mark6m=$_POST['mark6m']; $mark7p=$_POST['mark7p']; $mark7m=$_POST['mark7m']; $mark8p=$_POST['mark8p']; $mark8m=$_POST['mark8m']; $mark9p=$_POST['mark9p']; $mark9m=$_POST['mark9m']; $up="update six_eightresult set mark1p='$mark1p',mark1m='$mark1m',mark2p='$mark2p',mark2m='$mark2m',mark3p='$mark3p',mark3m='$mark3m',mark4p='$mark4p',mark4m='$mark4m',mark5p='$mark5p',mark5m='$mark5m',mark6p='$mark6p',mark6m='$mark6m',mark7p='$mark7p',mark7m='$mark7m',mark8p='$mark8p',mark8m='$mark8m',mark9p='$mark9p',mark9m='$mark9m' where id='$id' "; if($res=mysqli_query($conn,$up)) { if($up) { echo "Update"; } else { echo "not"; } } else { echo"not submit"; } break; case 32: //$rol=$_POST['rol']; $id=$_POST['id']; //$class=$_POST['class']; //$exam=$_POST['exam']; $session=$_POST['session']; $mark1p=$_POST['mark1p']; $mark1n=$_POST['mark1n']; $mark1e=$_POST['mark1e']; $mark1m=$_POST['mark1m']; $mark2p=$_POST['mark2p']; $mark2n=$_POST['mark2n']; $mark2e=$_POST['mark2e']; $mark2m=$_POST['mark2m']; $mark3p=$_POST['mark3p']; $mark3n=$_POST['mark3n']; $mark3e=$_POST['mark3e']; $mark3m=$_POST['mark3m']; //$rank=$_POST['rank']; $mark4p=$_POST['mark4p']; $mark4n=$_POST['mark4n']; $mark4e=$_POST['mark4e']; $mark4m=$_POST['mark4m']; $mark5p=$_POST['mark5p']; $mark5n=$_POST['mark5n']; $mark5e=$_POST['mark5e']; $mark5m=$_POST['mark5m']; $mark6p=$_POST['mark6p']; $mark6n=$_POST['mark6n']; $mark6e=$_POST['mark6e']; $mark6m=$_POST['mark6m']; $up="update six_eightresult set mark1p='$mark1p',mark1n='$mark1n',mark1e='$mark1e',mark1m='$mark1m',mark2p='$mark2p',mark2n='$mark2n',mark2e='$mark2e',mark2m='$mark2m',mark3p='$mark3p',mark3n='$mark3n',mark3e='$mark3e',mark3m='$mark3m',mark4p='$mark4p',mark4n='$mark4n',mark4e='$mark4e',mark4m='$mark4m',mark5p='$mark5p',mark5n='$mark5n',mark5e='$mark5e',mark5m='$mark5m',mark6p='$mark6p',mark6n='$mark6n',mark6e='$mark6e',mark6m='$mark6m' where id='$id' "; if($res=mysqli_query($conn,$up)) { if($up) { echo "Update"; } else { echo "not"; } } else { echo"not submit"; } break; case 481: $id=$_REQUEST['id']; $sel1="select * from registration where id='$id' "; $res1=mysqli_query($conn,$sel1); $row1=mysqli_fetch_array($res1,MYSQLI_BOTH); $application=$row1['application']; $session=$row1['session']; $sel="select * from six_eightresult where rol='$application' and exam='HALF YEARLY EXAM' and session='$session'"; $res=mysqli_query($conn,$sel); $row=mysqli_fetch_array($res,MYSQLI_BOTH); $rol=$row['id']; ?> <script> $('#p1').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#p2').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#p3').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#p4').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#p5').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#p6').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#numberbox6').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#n1').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n2').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n3').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n4').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n5').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n6').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n7').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e1').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e2').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e3').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e4').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e5').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e6').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e7').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#m1').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#m2').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#m3').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#m4').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#m5').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#m6').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#m7').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); </script> <form class="form-horizontal" id="regform12" onsubmit="return data2(this)"> Name<input type="text" class="form-control" value="<?php echo $row['name'];?>" name="name" readonly> <input type="hidden" class="form-control" value="<?php echo $row1['session'];?>" name="session" readonly> <input type="hidden" class="form-control" value="<?php echo $row['id'];?>" name="id" readonly> Fname<input type="text" class="form-control" value="<?php echo $row['fname'];?>" name="fname" readonly> Class <input type="text" class="form-control" value="<?php echo $row1['subject'];?>" name="class" readonly> <table style=" border:1px solid"> <tr> <td>Subjects</td> <td>PT.(10)</td> <td>N.B.(5)</td><td>S.B..(5)</td><td>HY/Y(80)</td> </tr> <tr> <td>Hindi </td> <td><input type="text" value='<?php echo $row['mark1p']?>' id='p1' name="mark1p" required></td> <td><input type="text" id='n2' value='<?php echo $row['mark1n']?>' name="mark1n" required></td><td><input type="text" id='e1' value='<?php echo $row['mark1e']?>' name="mark1e" required></td><td><input type="text" id='m1' value='<?php echo $row['mark1m']?>' name="mark1m" required></td> </tr> <tr> <td>English </td> <td><input type="text" value='<?php echo $row['mark2p']?>' id='p2' name="mark2p" required></td> <td><input type="text" id='n2' value='<?php echo $row['mark2n']?>' name="mark2n" required></td><td><input type="text" id='e2' value='<?php echo $row['mark2e']?>' name="mark2e" required></td><td><input type="text" id='m2' value='<?php echo $row['mark2m']?>' name="mark2m" required></td> </tr> <tr> <td>Math </td> <td><input type="text" value='<?php echo $row['mark3p']?>' id='p3' name="mark3p" required></td> <td><input type="text" id='n3' value='<?php echo $row['mark3n']?>' name="mark3n" required></td><td><input type="text" id='e3' value='<?php echo $row['mark3e']?>'name="mark3e" required></td><td><input type="text" id='m3' value='<?php echo $row['mark3m']?>' name="mark3m" required></td> </tr> <tr> <td>Science </td> <td><input type="text" value='<?php echo $row['mark4p']?>' id='p4' name="mark4p" required></td> <td><input type="text" id='n4' value='<?php echo $row['mark4n']?>' name="mark4n" required></td><td><input type="text" id='e4' value='<?php echo $row['mark4e']?>' name="mark4e" required></td><td><input type="text" id='m4' value='<?php echo $row['mark4m']?>' name="mark4m" required></td> </tr> <tr> <td>S.Science </td> <td><input type="text" value='<?php echo $row['mark5p']?>' id='p5' name="mark5p" required></td> <td><input type="text" id='n5' value='<?php echo $row['mark5n']?>' name="mark5n" required></td><td><input type="text" id='e5' value='<?php echo $row['mark5e']?>' name="mark5e" required></td><td><input type="text" id='m5' value='<?php echo $row['mark5m']?>' name="mark5m" required></td> </tr> <tr> <td>Sanskrit </td> <td><input type="text" value='<?php echo $row['mark6p']?>'id='p6' name="mark6p" required></td> <td><input type="text" id='n6' value='<?php echo $row['mark6n']?>' name="mark6n" required></td><td><input type="text" id='e6' value='<?php echo $row['mark6e']?>'name="mark6e" required></td><td><input type="text" id='m6' value='<?php echo $row['mark6m']?>' name="mark6m" required></td> </tr> <tr> <td>Computer </td> <td><input type="text" value='<?php echo $row['mark7p']?>'id='p7' name="mark7p" required></td> <td><input type="text" id='n7' value='<?php echo $row['mark7n']?>' name="mark7n" required></td><td><input type="text" id='e7' value='<?php echo $row['mark7e']?>'name="mark7e" required></td><td><input type="text" id='m7' value='<?php echo $row['mark7m']?>' name="mark7m" required></td> </tr> <tr> <td>G.K. </td> <td><select class='form-control' name='gk'><option <?php if($row['gk']=='A1'){echo'selected';}?>>A1</option> <option <?php if($row['gk']=='A2'){echo'selected';}?>>A2</option> <option <?php if($row['gk']=='B1'){echo'selected';}?>>B1</option> <option <?php if($row['gk']=='B2'){echo'selected';}?>>B2</option> <option <?php if($row['gk']=='C1'){echo'selected';}?>>C1</option> <option <?php if($row['gk']=='C2'){echo'selected';}?>>C2</option> <option <?php if($row['gk']=='D'){echo'selected';}?>>D</option> <option <?php if($row['gk']=='E(FAILED)'){echo'selected';}?>>E()FAILED</option> </select></td> <td>Art</td><td><select class='form-control' name='art'><option <?php if($row['art']=='A1'){echo'selected';}?>>A1</option> <option <?php if($row['art']=='A2'){echo'selected';}?>>A2</option> <option <?php if($row['art']=='B1'){echo'selected';}?>>B1</option> <option <?php if($row['art']=='B2'){echo'selected';}?>>B2</option> <option <?php if($row['art']=='C1'){echo'selected';}?>>C1</option> <option <?php if($row['art']=='C2'){echo'selected';}?>>C2</option> <option <?php if($row['art']=='D'){echo'selected';}?>>D</option> <option <?php if($row['art']=='E(FAILED)'){echo'selected';}?>>E(FAILED)</option></select></td><td></td> </tr> </table> <center> <button class="btn btn-success" > Update</button>    <button class="btn btn-danger" data-dismiss="modal"> Close</button> </center> </form> <?php break; ///// for show result 1 //////for sshow result FIRST case 331: //$rol=$_POST['rol']; $id=$_POST['id']; //$class=$_POST['class']; //$exam=$_POST['exam']; $session=$_POST['session']; $mark1p=$_POST['mark1p']; $mark1n=$_POST['mark1n']; $mark1e=$_POST['mark1e']; $mark1m=$_POST['mark1m']; $mark2p=$_POST['mark2p']; $mark2n=$_POST['mark2n']; $mark2e=$_POST['mark2e']; $mark2m=$_POST['mark2m']; $mark3p=$_POST['mark3p']; $mark3n=$_POST['mark3n']; $mark3e=$_POST['mark3e']; $mark3m=$_POST['mark3m']; //$rank=$_POST['rank']; $mark4p=$_POST['mark4p']; $mark4n=$_POST['mark4n']; $mark4e=$_POST['mark4e']; $mark4m=$_POST['mark4m']; $mark5p=$_POST['mark5p']; $mark5n=$_POST['mark5n']; $mark5e=$_POST['mark5e']; $mark5m=$_POST['mark5m']; $mark6p=$_POST['mark6p']; $mark6n=$_POST['mark6n']; $mark6e=$_POST['mark6e']; $mark6m=$_POST['mark6m']; $mark7p=$_POST['mark7p']; $mark7n=$_POST['mark7n']; $mark7e=$_POST['mark7e']; $mark7m=$_POST['mark7m']; $gk=$_POST['gk']; $art=$_POST['art']; $up="update six_eightresult set mark1p='$mark1p',mark1n='$mark1n',mark1e='$mark1e',mark1m='$mark1m',mark2p='$mark2p',mark2n='$mark2n',mark2e='$mark2e',mark2m='$mark2m',mark3p='$mark3p',mark3n='$mark3n',mark3e='$mark3e',mark3m='$mark3m',mark4p='$mark4p',mark4n='$mark4n',mark4e='$mark4e',mark4m='$mark4m',mark5p='$mark5p',mark5n='$mark5n',mark5e='$mark5e',mark5m='$mark5m',mark6p='$mark6p',mark6n='$mark6n',mark6e='$mark6e',mark6m='$mark6m',mark7p='$mark7p',mark7n='$mark7n',mark7e='$mark7e',mark7m='$mark7m',art='$art',gk='$gk' where id='$id' "; if($res=mysqli_query($conn,$up)) { if($up) { echo "Update"; } else { echo "not"; } } else { echo"not submit"; } break; case 431: //$rol=$_POST['rol']; $id=$_POST['id']; //$class=$_POST['class']; //$exam=$_POST['exam']; $session=$_POST['session']; $mark1p=$_POST['mark1p']; $mark1n=$_POST['mark1n']; $mark1e=$_POST['mark1e']; $mark1m=$_POST['mark1m']; $mark2p=$_POST['mark2p']; $mark2n=$_POST['mark2n']; $mark2e=$_POST['mark2e']; $mark2m=$_POST['mark2m']; $mark3p=$_POST['mark3p']; $mark3n=$_POST['mark3n']; $mark3e=$_POST['mark3e']; $mark3m=$_POST['mark3m']; //$rank=$_POST['rank']; $mark4p=$_POST['mark4p']; $mark4n=$_POST['mark4n']; $mark4e=$_POST['mark4e']; $mark4m=$_POST['mark4m']; $mark5p=$_POST['mark5p']; $mark5n=$_POST['mark5n']; $mark5e=$_POST['mark5e']; $mark5m=$_POST['mark5m']; $mark6p=$_POST['mark6p']; $mark6n=$_POST['mark6n']; $mark6e=$_POST['mark6e']; $mark6m=$_POST['mark6m']; $mark7p=$_POST['mark7p']; $mark7n=$_POST['mark7n']; $mark7e=$_POST['mark7e']; $mark7m=$_POST['mark7m']; $gk=$_POST['gk']; $art=$_POST['art']; $up="update six_eightresult set mark1p='$mark1p',mark1n='$mark1n',mark1e='$mark1e',mark1m='$mark1m',mark2p='$mark2p',mark2n='$mark2n',mark2e='$mark2e',mark2m='$mark2m',mark3p='$mark3p',mark3n='$mark3n',mark3e='$mark3e',mark3m='$mark3m',mark4p='$mark4p',mark4n='$mark4n',mark4e='$mark4e',mark4m='$mark4m',mark5p='$mark5p',mark5n='$mark5n',mark5e='$mark5e',mark5m='$mark5m',mark6p='$mark6p',mark6n='$mark6n',mark6e='$mark6e',mark6m='$mark6m',mark7p='$mark7p',mark7n='$mark7n',mark7e='$mark7e',mark7m='$mark7m',art='$art',gk='$gk' where id='$id' "; if($res=mysqli_query($conn,$up)) { if($up) { echo "Update"; } else { echo "not"; } } else { echo"not submit"; } break; case 501: $id=$_REQUEST['id']; $sel1="select * from registration where id='$id' "; $res1=mysqli_query($conn,$sel1); $row1=mysqli_fetch_array($res1,MYSQLI_BOTH); $application=$row1['application']; $session=$row1['session']; $sel="select * from six_eightresult where rol='$application' and exam='HALF YEARLY EXAM' and session='$session'"; $res=mysqli_query($conn,$sel); $row=mysqli_fetch_array($res,MYSQLI_BOTH); $rol=$row['id']; ?> <form class="form-horizontal" id="regform12" onsubmit="return data2(this)"> Name<input type="text" class="form-control" value="<?php echo $row['name'];?>" name="name" readonly> <input type="hidden" class="form-control" value="<?php echo $row1['session'];?>" name="session" readonly> <input type="hidden" class="form-control" value="<?php echo $row['id'];?>" name="id" readonly> Fname<input type="text" class="form-control" value="<?php echo $row['fname'];?>" name="fname" readonly> <input type="hidden" class="form-control" value="<?php echo $row['mname'];?>" name="mname" readonly> <input type="hidden" class="form-control" value="<?php echo $row['dob'];?>" name="dob" readonly> Sch. No.<input type="text" class="form-control" value="<?php echo $row['rol'];?>" name="rol" readonly> HINDI <input type="text" class="form-control" value="<?php echo $row['mark1'];?>" name="mark1" > ENGLISH I<input type="text" class="form-control" value="<?php echo $row['mark2'];?>" name="mark2" > ENGLISH II<input type="text" class="form-control" value="<?php echo $row['mark3'];?>" name="mark3" > MATH <input type="text" class="form-control" value="<?php echo $row['mark4'];?>" name="mark4" > G.K.<input type="text" class="form-control" value="<?php echo $row['mark5'];?>" name="mark5" > SCIENCE<input type="text" class="form-control" value="<?php echo $row['mark6'];?>" name="mark6" > S.S.T<input type="text" class="form-control" value="<?php echo $row['mark7'];?>" name="mark7" > COMPUTER<input type="text" class="form-control" value="<?php echo $row['mark8'];?>" name="mark8" > ART<input type="text" class="form-control" value="<?php echo $row['mark9'];?>" name="mark9" > RANK<input type="text" class="form-control" value="<?php echo $row['rank'];?>" name="rank" > <center> <button class="btn btn-success" > Update</button>    <button class="btn btn-danger" data-dismiss="modal"> Close</button> </center> </form> <?php break; case 51: $rol=$_POST['rol']; $id=$_POST['id']; $class=$_POST['class']; $exam=$_POST['exam']; $session=$_POST['session']; $mark1=$_POST['mark1']; $mark2=$_POST['mark2']; $mark3=$_POST['mark3']; $mark4=$_POST['mark4']; $mark5=$_POST['mark5']; $mark6=$_POST['mark6']; $mark7=$_POST['mark7']; $mark8=$_POST['mark8']; $mark9=$_POST['mark9']; $rank=$_POST['rank']; $up="update six_eightresult set mark1='$mark1',mark2='$mark2',mark3='$mark3',mark4='$mark4',mark5='$mark5',mark6='$mark6',mark7='$mark7',mark8='$mark8',mark9='$mark9',rank='$rank' where id='$id' order by id desc"; if($res=mysqli_query($conn,$up)) { if($up) { echo "Update"; } else { echo "not"; } } else { echo"not submit"; } break; case 3611: $id=$_REQUEST['id']; $sel1="select * from registration where id='$id' "; $res1=mysqli_query($conn,$sel1); $row1=mysqli_fetch_array($res1,MYSQLI_BOTH); $application=$row1['application']; $session=$row1['session']; $exam=$_REQUEST['exam']; $sel="select * from six_eightresult where rol='$application' and exam='$exam' and session='$session'"; $res=mysqli_query($conn,$sel); $row=mysqli_fetch_array($res,MYSQLI_BOTH); $rol=$row['id']; ?> <script> $('#p1').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#p2').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#p3').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#p4').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#p5').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#p6').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#p7').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#p8').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#p9').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#n1').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n2').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n3').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n4').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n5').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n6').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n7').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n8').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n9').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e1').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e2').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e3').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e4').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e5').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e6').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e7').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e8').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e9').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#m1').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#m2').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#m3').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#m4').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#m5').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#m6').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#m7').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#m8').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#m9').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); </script> <style> table { border-collapse: collapse; border-spacing: 0; width: 100%; border: 1px solid #ddd; } th, td { text-align: left; padding: 8px; } tr:nth-child(even){background-color: #f2f2f2} </style> <form class="form-horizontal" id="regform12" onsubmit="return data2(this)"> EXAM<input type="text" class="form-control" value="<?php echo $row['exam'];?>" style="color:red" readonly> Name<input type="text" class="form-control" value="<?php echo $row['name'];?>" name="name" readonly> <input type="hidden" class="form-control" value="<?php echo $row1['session'];?>" name="session" readonly> <input type="hidden" class="form-control" value="<?php echo $row['id'];?>" name="id" readonly> Fname<input type="text" class="form-control" value="<?php echo $row['fname'];?>" name="fname" readonly> Class <input type="text" class="form-control" value="<?php echo $row1['subject'];?>" name="class" readonly> <div style="overflow-x:auto;"> <table style=" border:1px solid"> <tr> <td>Subjects</td> <td>PT.(10)</td> <td>N.B.(5)</td><td>S.B..(5)</td><td>HY/Y(80)</td> </tr> <tr> <td>English </td> <td><input type="text" value='<?php echo $row['mark2p']?>' id='p2' name="mark2p" required></td> <td><input type="text" id='n2' value='<?php echo $row['mark2n']?>' name="mark2n" required></td><td><input type="text" id='e2' value='<?php echo $row['mark2e']?>' name="mark2e" required></td><td><input type="text" id='m2' value='<?php echo $row['mark2m']?>' name="mark2m" required></td> </tr> <tr> <td>Hindi </td> <td><input type="text" value='<?php echo $row['mark1p']?>' id='p1' name="mark1p" required></td> <td><input type="text" id='n1' value='<?php echo $row['mark1n']?>' name="mark1n" required></td><td><input type="text" id='e1' value='<?php echo $row['mark1e']?>' name="mark1e" required></td><td><input type="text" id='m1' value='<?php echo $row['mark1m']?>' name="mark1m" required></td> </tr> <tr> <td>Math </td> <td><input type="text" value='<?php echo $row['mark3p']?>' id='p3' name="mark3p" required></td> <td><input type="text" id='n3' value='<?php echo $row['mark3n']?>' name="mark3n" required></td><td><input type="text" id='e3' value='<?php echo $row['mark3e']?>'name="mark3e" required></td><td><input type="text" id='m3' value='<?php echo $row['mark3m']?>' name="mark3m" required></td> </tr> <tr> <td>Science/E.v.s </td> <td><input type="text" value='<?php echo $row['mark4p']?>' id='p4' name="mark4p" required></td> <td><input type="text" id='n4' value='<?php echo $row['mark4n']?>' name="mark4n" required></td><td><input type="text" id='e4' value='<?php echo $row['mark4e']?>' name="mark4e" required></td><td><input type="text" id='m4' value='<?php echo $row['mark4m']?>' name="mark4m" required></td> </tr> <tr> <td>S.Science </td> <td><input type="text" value='<?php echo $row['mark5p']?>' id='p5' name="mark5p" required></td> <td><input type="text" id='n5' value='<?php echo $row['mark5n']?>' name="mark5n" required></td><td><input type="text" id='e5' value='<?php echo $row['mark5e']?>' name="mark5e" required></td><td><input type="text" id='m5' value='<?php echo $row['mark5m']?>' name="mark5m" required></td> </tr> <tr> <td>SANSKRIT </td> <td><input type="text" value='<?php echo $row['mark10p']?>'id='p9' name="mark10p" required></td> <td><input type="text" id='n9' value='<?php echo $row['mark10n']?>' name="mark10n" required></td><td><input type="text" id='e9' value='<?php echo $row['mark10e']?>'name="mark10e" required></td><td><input type="text" id='m9' value='<?php echo $row['mark10m']?>' name="mark10m" required></td> </tr> <tr> <td>G.K. </td> <td><input type="text" value='<?php echo $row['mark9p']?>'id='p9' name="mark9p" required></td> <td><input type="text" id='n9' value='<?php echo $row['mark9n']?>' name="mark9n" required></td><td><input type="text" id='e9' value='<?php echo $row['mark9e']?>'name="mark9e" required></td><td><input type="text" id='m9' value='<?php echo $row['mark9m']?>' name="mark9m" required></td> </tr> <tr> <td>Computer </td> <td><input type="text" value='<?php echo $row['mark7p']?>'id='p7' name="mark7p" required></td> <td><input type="text" id='n7' value='<?php echo $row['mark7n']?>' name="mark7n" required></td><td><input type="text" id='e7' value='<?php echo $row['mark7e']?>'name="mark7e" required></td><td><input type="text" id='m7' value='<?php echo $row['mark7m']?>' name="mark7m" required></td> </tr> <tr> <td>Art </td> <td><input type="text" value='<?php echo $row['mark8p']?>'id='p8' name="mark8p" required></td> <td><input type="text" id='n8' value='<?php echo $row['mark8n']?>' name="mark8n" required></td><td><input type="text" id='e8' value='<?php echo $row['mark8e']?>'name="mark8e" required></td><td><input type="text" id='m8' value='<?php echo $row['mark8m']?>' name="mark8m" required></td> </tr> <tr> <td>S.U.P.W. </td> <td><input type="text" value='<?php echo $row['mark6p']?>'id='p6' name="mark6p" required></td> <td><input type="text" id='n6' value='<?php echo $row['mark6n']?>' name="mark6n" required></td><td><input type="text" id='e6' value='<?php echo $row['mark6e']?>'name="mark6e" required></td><td><input type="text" id='m6' value='<?php echo $row['mark6m']?>' name="mark6m" required></td> </tr> </table> </div> <center> <button class="btn btn-success" > Update</button>    <button class="btn btn-danger" data-dismiss="modal"> Close</button> </center> </form> <?php break; ///// for show result 1 //////for sshow result FIRST case 3711: //$rol=$_POST['rol']; $id=$_POST['id']; //$class=$_POST['class']; //$exam=$_POST['exam']; $session=$_POST['session']; $mark1p=$_POST['mark1p']; $mark1n=$_POST['mark1n']; $mark1e=$_POST['mark1e']; $mark1m=$_POST['mark1m']; $mark2p=$_POST['mark2p']; $mark2n=$_POST['mark2n']; $mark2e=$_POST['mark2e']; $mark2m=$_POST['mark2m']; $mark3p=$_POST['mark3p']; $mark3n=$_POST['mark3n']; $mark3e=$_POST['mark3e']; $mark3m=$_POST['mark3m']; //$rank=$_POST['rank']; $mark4p=$_POST['mark4p']; $mark4n=$_POST['mark4n']; $mark4e=$_POST['mark4e']; $mark4m=$_POST['mark4m']; $mark5p=$_POST['mark5p']; $mark5n=$_POST['mark5n']; $mark5e=$_POST['mark5e']; $mark5m=$_POST['mark5m']; $mark6p=$_POST['mark6p']; $mark6n=$_POST['mark6n']; $mark6e=$_POST['mark6e']; $mark6m=$_POST['mark6m']; $mark7p=$_POST['mark7p']; $mark7n=$_POST['mark7n']; $mark7e=$_POST['mark7e']; $mark7m=$_POST['mark7m']; $mark8p=$_POST['mark8p']; $mark8n=$_POST['mark8n']; $mark8e=$_POST['mark8e']; $mark8m=$_POST['mark8m']; $mark9p=$_POST['mark9p']; $mark9n=$_POST['mark9n']; $mark9e=$_POST['mark9e']; $mark9m=$_POST['mark9m']; $mark10p=$_POST['mark10p']; $mark10n=$_POST['mark10n']; $mark10e=$_POST['mark10e']; $mark10m=$_POST['mark10m']; $up="update six_eightresult set mark10p='$mark10p',mark10n='$mark10n',mark10e='$mark10e',mark10m='$mark10m',mark1p='$mark1p',mark1n='$mark1n',mark1e='$mark1e',mark1m='$mark1m',mark2p='$mark2p',mark2n='$mark2n',mark2e='$mark2e',mark2m='$mark2m',mark3p='$mark3p',mark3n='$mark3n',mark3e='$mark3e',mark3m='$mark3m',mark4p='$mark4p',mark4n='$mark4n',mark4e='$mark4e',mark4m='$mark4m',mark5p='$mark5p',mark5n='$mark5n',mark5e='$mark5e',mark5m='$mark5m',mark6p='$mark6p',mark6n='$mark6n',mark6e='$mark6e',mark6m='$mark6m',mark7p='$mark7p',mark7n='$mark7n',mark7e='$mark7e',mark7m='$mark7m',mark8p='$mark8p',mark8n='$mark8n',mark8e='$mark8e',mark8m='$mark8m',mark9p='$mark9p',mark9n='$mark9n',mark9e='$mark9e',mark9m='$mark9m',mark10p='$mark10p',mark10n='$mark10n',mark10e='$mark10e',mark10m='$mark10m' where id='$id' "; if($res=mysqli_query($conn,$up)) { if($up) { echo "Update"; } else { echo "not"; } } else { echo"not submit"; } break; case 36111: $id=$_REQUEST['id']; $sel1="select * from registration where id='$id' "; $res1=mysqli_query($conn,$sel1); $row1=mysqli_fetch_array($res1,MYSQLI_BOTH); $application=$row1['application']; $session=$row1['session']; $exam=$_REQUEST['exam']; $sel="select * from six_eightresult where rol='$application' and exam='$exam' and session='$session'"; $res=mysqli_query($conn,$sel); $row=mysqli_fetch_array($res,MYSQLI_BOTH); $rol=$row['id']; ?> <script> $('#p1').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#p2').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#p3').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#p4').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#p5').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#p6').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#p7').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#p8').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#p9').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#n1').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n2').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n3').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n4').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n5').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n6').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n7').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n8').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n9').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e1').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e2').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e3').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e4').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e5').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e6').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e7').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e8').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e9').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#m1').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#m2').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#m3').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#m4').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#m5').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#m6').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#m7').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#m8').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#m9').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); </script> <style> table { border-collapse: collapse; border-spacing: 0; width: 100%; border: 1px solid #ddd; } th, td { text-align: left; padding: 8px; } tr:nth-child(even){background-color: #f2f2f2} </style> <form class="form-horizontal" id="regform12" onsubmit="return data2(this)"> EXAM<input type="text" class="form-control" value="<?php echo $row['exam'];?>" style="color:red" readonly> Name<input type="text" class="form-control" value="<?php echo $row['name'];?>" name="name" readonly> <input type="hidden" class="form-control" value="<?php echo $row1['session'];?>" name="session" readonly> <input type="hidden" class="form-control" value="<?php echo $row['id'];?>" name="id" readonly> Fname<input type="text" class="form-control" value="<?php echo $row['fname'];?>" name="fname" readonly> Class <input type="text" class="form-control" value="<?php echo $row1['subject'];?>" name="class" readonly> <div style="overflow-x:auto;"> <table style=" border:1px solid"> <tr> <td>Subjects</td> <td>PT.(10)</td> <td>N.B.(5)</td><td>S.B..(5)</td><td>HY/Y(80)</td> </tr> <tr> <td>Hindi </td> <td><input type="text" value='<?php echo $row['mark1p']?>' id='p1' name="mark1p" required></td> <td><input type="text" id='n1' value='<?php echo $row['mark1n']?>' name="mark1n" required></td><td><input type="text" id='e1' value='<?php echo $row['mark1e']?>' name="mark1e" required></td><td><input type="text" id='m1' value='<?php echo $row['mark1m']?>' name="mark1m" required></td> </tr> <tr> <td>English </td> <td><input type="text" value='<?php echo $row['mark2p']?>' id='p2' name="mark2p" required></td> <td><input type="text" id='n2' value='<?php echo $row['mark2n']?>' name="mark2n" required></td><td><input type="text" id='e2' value='<?php echo $row['mark2e']?>' name="mark2e" required></td><td><input type="text" id='m2' value='<?php echo $row['mark2m']?>' name="mark2m" required></td> </tr> <tr> <td>Math </td> <td><input type="text" value='<?php echo $row['mark3p']?>' id='p3' name="mark3p" required></td> <td><input type="text" id='n3' value='<?php echo $row['mark3n']?>' name="mark3n" required></td><td><input type="text" id='e3' value='<?php echo $row['mark3e']?>'name="mark3e" required></td><td><input type="text" id='m3' value='<?php echo $row['mark3m']?>' name="mark3m" required></td> </tr> <tr> <td>Science/E.v.s </td> <td><input type="text" value='<?php echo $row['mark4p']?>' id='p4' name="mark4p" required></td> <td><input type="text" id='n4' value='<?php echo $row['mark4n']?>' name="mark4n" required></td><td><input type="text" id='e4' value='<?php echo $row['mark4e']?>' name="mark4e" required></td><td><input type="text" id='m4' value='<?php echo $row['mark4m']?>' name="mark4m" required></td> </tr> <?php if($row1['subject']=='SIXTH' or $row1['subject']=='SEVENTH' or $row1['subject']=='EIGHTH'){?> <tr> <td>Sanskrit </td> <td><input type="text" value='<?php echo $row['mark10p']?>' id='p4' name="mark10p" required></td> <td><input type="text" id='n4' value='<?php echo $row['mark10n']?>' name="mark10n" required></td><td><input type="text" id='e4' value='<?php echo $row['mark10e']?>' name="mark10e" required></td><td><input type="text" id='m4' value='<?php echo $row['mark10m']?>' name="mark10m" required></td> <?php }?> </tr> <tr> <td>S.Science </td> <td><input type="text" value='<?php echo $row['mark5p']?>' id='p5' name="mark5p" required></td> <td><input type="text" id='n5' value='<?php echo $row['mark5n']?>' name="mark5n" required></td><td><input type="text" id='e5' value='<?php echo $row['mark5e']?>' name="mark5e" required></td><td><input type="text" id='m5' value='<?php echo $row['mark5m']?>' name="mark5m" required></td> </tr> <tr> <td>S.U.P.W. </td> <td><input type="text" value='<?php echo $row['mark6p']?>'id='p6' name="mark6p" required></td> <td><input type="text" id='n6' value='<?php echo $row['mark6n']?>' name="mark6n" required></td><td><input type="text" id='e6' value='<?php echo $row['mark6e']?>'name="mark6e" required></td><td><input type="text" id='m6' value='<?php echo $row['mark6m']?>' name="mark6m" required></td> </tr> <tr> <td>Computer </td> <td><input type="text" value='<?php echo $row['mark7p']?>'id='p7' name="mark7p" required></td> <td><input type="text" id='n7' value='<?php echo $row['mark7n']?>' name="mark7n" required></td><td><input type="text" id='e7' value='<?php echo $row['mark7e']?>'name="mark7e" required></td><td><input type="text" id='m7' value='<?php echo $row['mark7m']?>' name="mark7m" required></td> </tr> <tr> <td>Art </td> <td><input type="text" value='<?php echo $row['mark8p']?>'id='p8' name="mark8p" required></td> <td><input type="text" id='n8' value='<?php echo $row['mark8n']?>' name="mark8n" required></td><td><input type="text" id='e8' value='<?php echo $row['mark8e']?>'name="mark8e" required></td><td><input type="text" id='m8' value='<?php echo $row['mark8m']?>' name="mark8m" required></td> </tr> <tr> <td>G.K. </td> <td><input type="text" value='<?php echo $row['mark9p']?>'id='p9' name="mark9p" required></td> <td><input type="text" id='n9' value='<?php echo $row['mark9n']?>' name="mark9n" required></td><td><input type="text" id='e9' value='<?php echo $row['mark9e']?>'name="mark9e" required></td><td><input type="text" id='m9' value='<?php echo $row['mark9m']?>' name="mark9m" required></td> </tr> </table> </div> <center> <button class="btn btn-success" > Update</button>    <button class="btn btn-danger" data-dismiss="modal"> Close</button> </center> </form> <?php break; ///// for show result 1 //////for sshow result FIRST case 3711: //$rol=$_POST['rol']; $id=$_POST['id']; //$class=$_POST['class']; //$exam=$_POST['exam']; $session=$_POST['session']; $mark1p=$_POST['mark1p']; $mark1n=$_POST['mark1n']; $mark1e=$_POST['mark1e']; $mark1m=$_POST['mark1m']; $mark2p=$_POST['mark2p']; $mark2n=$_POST['mark2n']; $mark2e=$_POST['mark2e']; $mark2m=$_POST['mark2m']; $mark3p=$_POST['mark3p']; $mark3n=$_POST['mark3n']; $mark3e=$_POST['mark3e']; $mark3m=$_POST['mark3m']; //$rank=$_POST['rank']; $mark4p=$_POST['mark4p']; $mark4n=$_POST['mark4n']; $mark4e=$_POST['mark4e']; $mark4m=$_POST['mark4m']; $mark5p=$_POST['mark5p']; $mark5n=$_POST['mark5n']; $mark5e=$_POST['mark5e']; $mark5m=$_POST['mark5m']; $mark6p=$_POST['mark6p']; $mark6n=$_POST['mark6n']; $mark6e=$_POST['mark6e']; $mark6m=$_POST['mark6m']; $mark7p=$_POST['mark7p']; $mark7n=$_POST['mark7n']; $mark7e=$_POST['mark7e']; $mark7m=$_POST['mark7m']; $mark8p=$_POST['mark8p']; $mark8n=$_POST['mark8n']; $mark8e=$_POST['mark8e']; $mark8m=$_POST['mark8m']; $mark9p=$_POST['mark9p']; $mark9n=$_POST['mark9n']; $mark9e=$_POST['mark9e']; $mark9m=$_POST['mark9m']; $mark10p=$_POST['mark10p']; $mark10n=$_POST['mark10n']; $mark10e=$_POST['mark10e']; $mark10m=$_POST['mark10m']; $up="update six_eightresult set mark10p='$mark10p',mark10n='$mark10n',mark10e='$mark10e',mark10m='$mark10m',mark1m='$mark1m',mark1p='$mark1p',mark1n='$mark1n',mark1e='$mark1e',mark1m='$mark1m',mark2p='$mark2p',mark2n='$mark2n',mark2e='$mark2e',mark2m='$mark2m',mark3p='$mark3p',mark3n='$mark3n',mark3e='$mark3e',mark3m='$mark3m',mark4p='$mark4p',mark4n='$mark4n',mark4e='$mark4e',mark4m='$mark4m',mark5p='$mark5p',mark5n='$mark5n',mark5e='$mark5e',mark5m='$mark5m',mark6p='$mark6p',mark6n='$mark6n',mark6e='$mark6e',mark6m='$mark6m',mark7p='$mark7p',mark7n='$mark7n',mark7e='$mark7e',mark7m='$mark7m',mark8p='$mark8p',mark8n='$mark8n',mark8e='$mark8e',mark8m='$mark8m',mark9p='$mark9p',mark9n='$mark9n',mark9e='$mark9e',mark9m='$mark9m' where id='$id' "; if($res=mysqli_query($conn,$up)) { if($up) { echo "Update"; } else { echo "not"; } } else { echo"not submit"; } break; case 361112: $id=$_REQUEST['id']; $sel1="select * from registration where id='$id' "; $res1=mysqli_query($conn,$sel1); $row1=mysqli_fetch_array($res1,MYSQLI_BOTH); $application=$row1['application']; $session=$row1['session']; $exam=$_REQUEST['exam']; $sel="select * from six_eightresult where rol='$application' and exam='$exam' and session='$session'"; $res=mysqli_query($conn,$sel); $row=mysqli_fetch_array($res,MYSQLI_BOTH); $rol=$row['id']; ?> <script> $('#p1').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#p2').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#p3').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#p4').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#p5').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#p6').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#p7').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#p8').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#p9').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#n1').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n2').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n3').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n4').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n5').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n6').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n7').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n8').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n9').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e1').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e2').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e3').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e4').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e5').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e6').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e7').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e8').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e9').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#m1').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#m2').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#m3').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#m4').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#m5').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#m6').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#m7').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#m8').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#m9').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); </script> <style> table { border-collapse: collapse; border-spacing: 0; width: 100%; border: 1px solid #ddd; } th, td { text-align: left; padding: 8px; } tr:nth-child(even){background-color: #f2f2f2} </style> <form class="form-horizontal" id="regform12" onsubmit="return data2(this)"> EXAM<input type="text" class="form-control" value="<?php echo $row['exam'];?>" style="color:red" readonly> Name<input type="text" class="form-control" value="<?php echo $row['name'];?>" name="name" readonly> <input type="hidden" class="form-control" value="<?php echo $row1['session'];?>" name="session" readonly> <input type="hidden" class="form-control" value="<?php echo $row['id'];?>" name="id" readonly> Fname<input type="text" class="form-control" value="<?php echo $row['fname'];?>" name="fname" readonly> Class <input type="text" class="form-control" value="<?php echo $row1['subject'];?>" name="class" readonly> <div class="form-group"> <br/> <label class="col-sm-4 control-label">ENGLISH </label> <div class="col-sm-2">Oral<input type="text" id='' class="form-control" value='<?php echo $row['mark1p'];?>' name="mark1p" required></div> <div class="col-sm-2">Written<input type="text" id='' class="form-control" value='<?php echo $row['mark1p'];?>' name="mark1m" required></div> </div> <div class="form-group"> <br/> <label class="col-sm-4 control-label">Hindi </label> <div class="col-sm-2">Oral<input type="text" id='' class="form-control" value='<?php echo $row['mark2p'];?>' name="mark2p" required></div> <div class="col-sm-2">Written<input type="text" id='' class="form-control" value='<?php echo $row['mark2m'];?>' name="mark2m" required></div> </div> <div class="form-group"> <br/> <label class="col-sm-4 control-label">Maths </label> <div class="col-sm-2">Oral<input type="text" id='' class="form-control" name="mark3p" value='<?php echo $row['mark3p'];?>' required></div> <div class="col-sm-2">Written<input type="text" id=''class="form-control" name="mark3m" value='<?php echo $row['mark3m'];?>' required></div> </div> <div class="form-group"> <br/> <label class="col-sm-4 control-label"> </label> <div class="col-sm-2">G.k.<input type="text" id='' class="form-control" name="mark4p" value='<?php echo $row['mark4p'];?>' required></div> <div class="col-sm-2">Art<input type="text" id=''class="form-control" name="mark4m" value='<?php echo $row['mark4m'];?>' required></div> </div> <div class="form-group" style='display:none'> <br/> <label class="col-sm-4 control-label">MATHS WRITTEN </label> <div class="col-sm-2">10<input type="text" id='' class="form-control" name="mark5p" value='<?php $row['mark5p'];?>' required></div> <div class="col-sm-2">40<input type="text" id='' class="form-control" name="mark5m" value='<?php $row['mark5m'];?>' required></div> </div> <div class="form-group" style='display:none'> <br/> <label class="col-sm-4 control-label">MATHS ORAL </label> <div class="col-sm-2">10<input type="text" id='' class="form-control" name="mark6p" value='<?php $row['mark6p'];?>' required></div> <div class="col-sm-2">40<input type="text" id='' class="form-control" name="mark6m" value='<?php $row['mark6m'];?>' required></div> </div> <div class="form-group" style='display:none'> <br/> <label class="col-sm-4 control-label">G.K </label> <div class="col-sm-2">20<input type="text" id='' class="form-control" name="mark7p" value='<?php $row['mark7p'];?>' required></div> <div class="col-sm-2">80<input type="text" id='' class="form-control" name="mark7m" value='<?php $row['mark7m'];?>' required></div> </div> <div class="form-group" style='display:none'> <br/> <label class="col-sm-4 control-label">ART</label> <div class="col-sm-2">20<input type="text" id='' class="form-control" name="mark8p" value='<?php $row['mark8p'];?>' required></div> <div class="col-sm-2">80<input type="text" id='' class="form-control" name="mark8m" value='<?php $row['mark8m'];?>' required></div> </div> <div class="form-group" style='display:none'> <br/> <label class="col-sm-4 control-label">CONVE</label> <div class="col-sm-2">20<input type="text" id='' class="form-control" name="mark9p" value='<?php $row['mark9p'];?>' required></div> <div class="col-sm-2">80<input type="text" id='' class="form-control" name="mark9m" value='<?php $row['mark9m'];?>' required></div> </div> <div class="form-group"> <br/> <label class="col-sm-4 control-label"> </label> <div class="col-sm-2">Att<input type="text" id='' class="form-control" name="att" value='<?php $row['att'];?>' ></div> </div> <center> <button class="btn btn-success" > Update</button>    <button class="btn btn-danger" data-dismiss="modal"> Close</button> </center> </form> <?php break; case 9898: $id=$_REQUEST['id']; $sel1="select * from registration where id='$id' "; $res1=mysqli_query($conn,$sel1); $row1=mysqli_fetch_array($res1,MYSQLI_BOTH); $application=$row1['application']; $session=$row1['session']; $exam=$_REQUEST['exam']; $sel="select * from six_eightresult where rol='$application' and exam='$exam' and session='$session'"; $res=mysqli_query($conn,$sel); $row=mysqli_fetch_array($res,MYSQLI_BOTH); $rol=$row['id']; ?> <script> $('#p1').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#p2').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#p3').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#p4').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#p5').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#p6').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#p7').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#p8').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#p9').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#n1').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n2').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n3').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n4').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n5').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n6').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n7').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n8').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n9').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e1').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e2').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e3').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e4').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e5').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e6').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e7').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e8').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e9').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#m1').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#m2').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#m3').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#m4').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#m5').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#m6').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#m7').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#m8').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#m9').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); </script> <style> table { border-collapse: collapse; border-spacing: 0; width: 100%; border: 1px solid #ddd; } th, td { text-align: left; padding: 8px; } tr:nth-child(even){background-color: #f2f2f2} </style> <form class="form-horizontal" id="regform12" onsubmit="return data2(this)"> EXAM<input type="text" class="form-control" value="<?php echo $row['exam'];?>" style="color:red" readonly> Name<input type="text" class="form-control" value="<?php echo $row['name'];?>" name="name" readonly> <input type="hidden" class="form-control" value="<?php echo $row1['session'];?>" name="session" readonly> <input type="hidden" class="form-control" value="<?php echo $row['id'];?>" name="id" readonly> Fname<input type="text" class="form-control" value="<?php echo $row['fname'];?>" name="fname" readonly> Class <input type="text" class="form-control" value="<?php echo $row1['subject'];?>" name="class" readonly> <div style="overflow-x:auto;"> <table style=" border:1px solid"> <tr> <td>Subjects</td> <td>Oral</td> <td>Written</td> </tr> <tr> <td>English </td> <td><input type="text" value='<?php echo $row['mark1p']?>' name="mark1p" required></td> <td><input type="text" value='<?php echo $row['mark1m']?>' name="mark1m" required></td> </tr> <tr> <td>Hindi </td> <td><input type="text" value='<?php echo $row['mark2p']?>' name="mark2p" required></td> <td><input type="text" value='<?php echo $row['mark2m']?>' name="mark2m" required></td> </tr> <tr> <td>Maths </td> <td><input type="text" value='<?php echo $row['mark3p']?>' name="mark3p" required></td> <td><input type="text" value='<?php echo $row['mark3m']?>' name="mark3m" required></td> </tr> <tr> <td>G.k. </td> <td><input type="text" value='<?php echo $row['mark4p']?>' name="mark4p" required></td> <td>Art<input type="text" value='<?php echo $row['mark4m']?>' name="mark4m" required></td> </tr> <tr> <td>Att</td> <td><input type="text" value='<?php echo $row['att']?>' name="att" ></td> </tr> </table> </div> <center> <button class="btn btn-success" > Update</button>    <button class="btn btn-danger" data-dismiss="modal"> Close</button> </center> </form> <?php break; ///// for show result 1 //////for sshow result FIRST case 37112: //$rol=$_POST['rol']; $id=$_POST['id']; //$class=$_POST['class']; //$exam=$_POST['exam']; $session=$_POST['session']; $mark1p=$_POST['mark1p']; $mark1m=$_POST['mark1m']; $mark2p=$_POST['mark2p']; $mark2m=$_POST['mark2m']; $mark3p=$_POST['mark3p']; $mark3m=$_POST['mark3m']; //$rank=$_POST['rank']; $mark4p=$_POST['mark4p']; $mark4m=$_POST['mark4m']; $att=$_POST['att']; $up="update six_eightresult set mark1p='$mark1p',mark5m='$mark5m',mark5p='$mark5p',mark6m='$mark6m',mark7p='$mark7p',mark8m='$mark8m',mark9m='$mark9m',mark2p='$mark2p',mark2p='$mark2p',mark1m='$mark1m',mark2p='$mark2p',mark2m='$mark2m',mark3p='$mark3p',mark3m='$mark3m',mark4p='$mark4p',mark4m='$mark4m',att='$att' where id='$id' "; if($res=mysqli_query($conn,$up)) { echo 'update'; } else { echo"not submit"; } break; case 50001: $year=$_POST['year']; $board='CBSE BOARD'; $class=$_POST['class']; ?> <script> $(document).ready(function(){ $('#example').DataTable({ dom: 'Bfrtip', buttons: ['copy', 'csv', 'excel', 'pdf', 'print'] }); }); </script> <div class="table-responsive"> <marquee style="color:red">रिजल्ट updation उपलब्ध है सावधानी पूर्वक fillup करें |</marquee> <h2 style="font-weight:bold;text-align:center"><?php echo $board;?></h2> <table id="example" class="display nowrap" cellspacing="0" width="100%" border="1px"> <thead> <tr> <th>Sr.</th><th>Sch.</th><th>Name</th><th>Dob</th><th>Action</th><th>Result</th> </tr> </thead> <tfoot> <tr> <th>Sr.</th><th>Sch.</th><th>Name</th><th>Dob</th><th>Action</th><th>Result</th> </tr> </tfoot> <tbody> <?php $sel="select * from registration where session='$year' and subject='$class' order by id asc"; $res=mysqli_query($conn,$sel); $s=1; while($row=mysqli_fetch_array($res,MYSQLI_BOTH)) { $application=$row['application']; $session=$year; ?> <tr class="text-center"> <td><?php echo $s;?></td><td><?php echo $row['application'];?></td><td><?php echo $row['name'].'<br/><b>Father-</b>'.$row['fname'].'<br/><b>Mother-</b>'.$row['mname'].'<br/><b>Class-</b>'.$row['subject'];?></td><td><?php echo $row['dob'];?></td> <td> <?php $sel2="select * from six_eightresult where rol='$application' and session='$session' and exam='HALF YEARLY EXAM'"; $res2=mysqli_query($conn,$sel2); if($row2=mysqli_fetch_array($res2,MYSQLI_BOTH)) { echo 'HALF YEARLY EXAM'; } echo '<br/>'; $sel21="select * from six_eightresult where rol='$application' and session='$session' and exam='ANNUAL EXAM'"; $res21=mysqli_query($conn,$sel21); if($row21=mysqli_fetch_array($res21,MYSQLI_BOTH)) { echo 'ANNUAL EXAM'; } ?> </td> <td><button class="btn btn-primary" onclick="result(<?php echo $row['id'];?>)">Result</button> <button class="btn btn-success" onclick="show2(<?php echo $row['id'];?>,'ANNUAL EXAM')">Update AANUAL</button> <button class="btn btn-success" onclick="show2(<?php echo $row['id'];?>,'HALF YEARLY EXAM')">Update HALF</button> <a href="#marksheet.php?flag=<?php echo $row['id'];?>" target='_blank'><span class="fa fa-print"> HALF</span></a>  <a href="mar_nursery.php?flag=<?php echo $row['id'];?>" target='_blank'><span class="fa fa-print"> Anual</span></a> </td> </tr> <?php $s++; } ?> </tbody> </table> </div> <?php break; case 616: $id=$_REQUEST['id']; $sel="select * from registration where id='$id'"; $res=mysqli_query($conn,$sel); $row=mysqli_fetch_array($res,MYSQLI_BOTH); $rol=$row['application']; ?> <script> $('#numberbox').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#numberbox1').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#numberbox2').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#numberbox3').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#numberbox4').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#numberbox5').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#numberbox6').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#numberbox7').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#numberbox8').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#numberbox9').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#numberbox10').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#n1').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n2').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n3').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n4').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n5').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n6').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n7').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n8').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n9').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n10').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e1').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e2').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e3').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e4').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e5').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e6').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e7').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e8').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e9').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e10').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#y1').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#y2').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#y3').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#y4').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#y5').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#y6').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#y7').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#y8').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#y9').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#y10').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $(document).ready(function(){ }); $(document).ready(function(){ $("#numberbox10").attr("readonly", "true"); $("#e10").attr("readonly", "true"); $("#y10").attr("readonly", "true"); $("#n10").attr("readonly", "true"); $("#numberbox10").val('0'); $("#e10").val('0'); $("#n10").val('0'); $("#y10").val('0'); }); </script> <form class="form-horizontal" id="regform12" onsubmit="return data(this)"> <input type="hidden" class="form-control" value="<?php echo $row['fname'];?>" name="fname" > <input type="hidden" class="form-control" value="<?php echo $row['mname'];?>" name="mname" > <input type="hidden" class="form-control" value="<?php echo $row['dob'];?>" name="dob" > <input type="hidden" class="form-control" value="<?php echo $row['mediam'];?>" name="mediam" > <input type="hidden" class="form-control" value="<?php echo $row['picture'];?>" name="image" > <div class="col-sm-6"><input type="hidden" class="form-control" value="<?php echo $row['id'];?>" name="rol" > <input type="hidden" class="form-control" value="<?php echo $row['application'];?>" name="application" > </div> <div class="col-sm-6"><input type="hidden" class="form-control" value="<?php echo $row['name'];?>" name="name" ></div> <label class="col-sm-6 control-label"> </label> <div class="col-sm-6"><input type="hidden" class="form-control" value="<?php echo $row['subject'];?>" id='class1' name="class" ></div> <div class="form-group"> <br/> <label class="col-sm-6 control-label">Sch</label> <div class="col-sm-6"><input type="text" class="form-control" value="<?php echo $row['application'];?>" readonly /></div> </div> <div class="form-group"> <label class="col-sm-6 control-label">Name</label> <div class="col-sm-6"><input type="text" class="form-control" value="<?php echo $row['name'];?>" readonly /></div> </div> <div class="form-group"> <label class="col-sm-6 control-label">Session</label> <div class="col-sm-6"><input type="text" class="form-control" value="<?php echo $row['session'];?>" name="session" readonly /></div> </div> <div class="form-group"> <label class="col-sm-6 control-label">Exam</label> <div class="col-sm-6"> <select required class="form-control" name="exam" > <option>HALF YEARLY EXAM</option> <option>ANNUAL EXAM</option> </select></div> </div> <div class="form-group"> <br/> <label class="col-sm-4 control-label">ENGLISH W </label> <div class="col-sm-2">PT(10)<input type="text" id='numberbox1' class="form-control" name="mark2p" required></div> <div class="col-sm-2">NB(5)<input type="text" id='n2' class="form-control" name="mark2n" required></div> <div class="col-sm-2">S.B.(5)<input type="text" id='e2' class="form-control" name="mark2e" required></div> <div class="col-sm-2">HY/Y(80)<input type="text" id='y2'class="form-control" name="mark2m" required></div> </div> <div class="form-group"> <br/> <label class="col-sm-4 control-label">ENGLISH O </label> <div class="col-sm-2">PT.(10)<input type="text" id='numberbox' class="form-control" name="mark1p" required></div> <div class="col-sm-2">N.B(5)<input type="text" id='n1' class="form-control" name="mark1n" required></div> <div class="col-sm-2">S.B.(5)<input type="text" id='e1' class="form-control" name="mark1e" required></div> <div class="col-sm-2">HY/Y(80)<input type="text" id='y1' class="form-control" name="mark1m" required></div> </div> <div class="form-group"> <br/> <label class="col-sm-4 control-label">HINDI W </label> <div class="col-sm-2">PT(10)<input type="text" id='numberbox2' class="form-control" name="mark3p" required></div> <div class="col-sm-2">NB(5)<input type="text" id='n3' class="form-control" name="mark3n" required></div> <div class="col-sm-2">S.B.(5)<input type="text" id='e3'class="form-control" name="mark3e" required></div> <div class="col-sm-2">HY/Y(80)<input type="text" id='y3' class="form-control" name="mark3m" required></div> </div> <div class="form-group"> <br/> <label class="col-sm-4 control-label">HINDI O </label> <div class="col-sm-2">PT.(10)<input type="text" id='numberbox3' class="form-control" name="mark4p" required></div> <div class="col-sm-2">N.B.(5)<input type="text" id='n4' class="form-control" name="mark4n" required></div> <div class="col-sm-2">S.B.(5)<input type="text" id='e4'class="form-control" name="mark4e" required></div> <div class="col-sm-2">HY/Y(80)<input type="text" id='y4' class="form-control" name="mark4m" required></div> </div> <div class="form-group"> <br/> <label class="col-sm-4 control-label">MATHS W </label> <div class="col-sm-2">PT.(10)<input type="text" id='numberbox4' class="form-control" name="mark5p" required></div> <div class="col-sm-2">N.B.(5)<input type="text" id='n5' class="form-control" name="mark5n" required></div> <div class="col-sm-2">S.B.(5)<input type="text" id='e5'class="form-control" name="mark5e" required></div> <div class="col-sm-2">HY/Y(80)<input type="text" id='y5' class="form-control" name="mark5m" required></div> </div> <div class="form-group"> <br/> <label class="col-sm-4 control-label">MATHS O </label> <div class="col-sm-2">PT.(10)<input type="text" id='numberbox5' class="form-control" name="mark6p" required></div> <div class="col-sm-2">N.B.(5)<input type="text" id='n6' class="form-control" name="mark6n" required></div> <div class="col-sm-2">S.B.(5)<input type="text" id='e6' class="form-control" name="mark6e" required></div> <div class="col-sm-2">HY/Y(80)<input type="text" id='y6'class="form-control" name="mark6m" required></div> </div> <div class="form-group"> <br/> <label class="col-sm-4 control-label">G.K. </label> <div class="col-sm-2">PT.(10)<input type="text" id='numberbox8' class="form-control" name="mark9p" required></div> <div class="col-sm-2">N.B.(5)<input type="text" id='n9' class="form-control" name="mark9n" required></div> <div class="col-sm-2">S.B.(5)<input type="text" id='e9' class="form-control" name="mark9e" required></div> <div class="col-sm-2">HY/Y(80)<input type="text" id='y9'class="form-control" name="mark9m" required></div> </div> <div class="form-group"> <br/> <label class="col-sm-4 control-label">CONVERSATION </label> <div class="col-sm-2">PT.(10)<input type="text" id='numberbox6' class="form-control" name="mark7p" required></div> <div class="col-sm-2">N.B.(5)<input type="text" id='n7' class="form-control" name="mark7n" required></div> <div class="col-sm-2">S.B.(5)<input type="text" id='e7' class="form-control" name="mark7e" required></div> <div class="col-sm-2">HY/Y(80)<input type="text" id='y7'class="form-control" name="mark7m" required></div> </div> <div class="form-group"> <br/> <label class="col-sm-4 control-label">ART </label> <div class="col-sm-2">PT.(10)<input type="text" id='numberbox7' class="form-control" name="mark8p" required></div> <div class="col-sm-2">N.B.(5)<input type="text" id='n8' class="form-control" name="mark8n" required></div> <div class="col-sm-2">S.B.(5)<input type="text" id='e8' class="form-control" name="mark8e" required></div> <div class="col-sm-2">HY/Y(80)<input type="text" id='y8'class="form-control" name="mark8m" required></div> </div> <div class="form-group"> <br/> <label class="col-sm-4 control-label"></label> <div class="col-sm-2">PT.(10)<input type="text" id='numberbox10' class="form-control" value='0' readonly name="mark10p" required></div> <div class="col-sm-2">N.B.(5)<input type="text" id='n10' class="form-control" name="mark10n" value='0' readonly required></div> <div class="col-sm-2">S.B.(5)<input type="text" id='e10'class="form-control" name="mark10e" value='0' readonly required></div> <div class="col-sm-2">HY/Y(80)<input type="text" id='y10' class="form-control" name="mark10m" value='0' readonly required></div> </div> <label class="col-sm-4 control-label">Att</label> <div class="col-sm-2">Att<input type="text" id='y9'class="form-control" name="att" required></div> </div> <center><button class="btn btn-primary" > Submit</button>    <button class="btn btn-danger" data-dismiss="modal"> Close</button> </center> </form> <?php break; case 716: $name=$_POST['name']; $mname=$_POST['mname']; $fname=$_POST['fname']; $dob=$_POST['dob']; $mediam=$_POST['mediam']; $image=$_POST['image']; $rol=$_POST['rol']; $application=$_POST['application']; $class=$_POST['class']; $exam=$_POST['exam']; $session=$_POST['session']; $mark1p=$_POST['mark1p']; $mark1n=$_POST['mark1n']; $mark1e=$_POST['mark1e']; $mark1m=$_POST['mark1m']; $mark2p=$_POST['mark2p']; $mark2n=$_POST['mark2n']; $mark2e=$_POST['mark2e']; $mark2m=$_POST['mark2m']; $mark3p=$_POST['mark3p']; $mark3n=$_POST['mark3n']; $mark3e=$_POST['mark3e']; $mark3m=$_POST['mark3m']; $mark4p=$_POST['mark4p']; $mark4n=$_POST['mark4n']; $mark4e=$_POST['mark4e']; $mark4m=$_POST['mark4m']; $mark5p=$_POST['mark5p']; $mark5n=$_POST['mark5n']; $mark5e=$_POST['mark5e']; $mark5m=$_POST['mark5m']; $mark6p=$_POST['mark6p']; $mark6n=$_POST['mark6n']; $mark6e=$_POST['mark6e']; $mark6m=$_POST['mark6m']; $mark7p=$_POST['mark7p']; $mark7n=$_POST['mark7n']; $mark7e=$_POST['mark7e']; $mark7m=$_POST['mark7m']; $mark8p=$_POST['mark8p']; $mark8n=$_POST['mark8n']; $mark8e=$_POST['mark8e']; $mark8m=$_POST['mark8m']; $mark9p=$_POST['mark9p']; $mark9n=$_POST['mark9n']; $mark9e=$_POST['mark9e']; $mark9m=$_POST['mark9m']; $mark10p=$_POST['mark10p']; $mark10n=$_POST['mark10n']; $mark10e=$_POST['mark10e']; $mark10m=$_POST['mark10m']; $att=$_POST['att']; $sel1="select *from registration where id='$rol'"; $res1=mysqli_query($conn,$sel1); $row1=mysqli_fetch_array($res1,MYSQLI_BOTH); $id=$row1['application']; $date=date("d-m-Y"); $sel2="select * from six_eightresult where rol='$application' and session='$session' and exam='$exam'"; $res2=mysqli_query($conn,$sel2); $row2=mysqli_fetch_array($res2,MYSQLI_BOTH); if($row2) { echo 'Already Exist'; } else { $ins="insert into six_eightresult(rol,name,session,class,exam,mark1p,mark1n,mark1e,mark1m,mark2p,mark2n,mark2e,mark2m,mark3p,mark3n,mark3e,mark3m,mark4p,mark4n,mark4e,mark4m,mark5p,mark5n,mark5e,mark5m,mark6p,mark6n,mark6e,mark6m,mark7p,mark7n,mark7e,mark7m,mark8p,mark8n,mark8e,mark8m,mark9p,mark9n,mark9e,mark9m,mark10p,mark10n,mark10e,mark10m,mname,fname,dob,mediam,image,date,att) value('$application','$name','$session','$class','$exam','$mark1p','$mark1n','$mark1e','$mark1m','$mark2p','$mark2n','$mark2e','$mark2m','$mark3p','$mark3n','$mark3e','$mark3m','$mark4p','$mark4n','$mark4e','$mark4m','$mark5p','$mark5n','$mark5e','$mark5m','$mark6p','$mark6n','$mark6e','$mark6m','$mark7p','$mark7n','$mark7e','$mark7m','$mark8p','$mark8n','$mark8e','$mark8m','$mark9p','$mark9n','$mark9e','$mark9m','$mark10p','$mark10n','$mark10e','$mark10m','$mname','$fname','$dob','$mediam','$image','$date','$att')"; if($res=mysqli_query($conn,$ins)) { echo"submit"; } else { echo"not submit"; } } break; case 36116: $id=$_REQUEST['id']; $sel1="select * from registration where id='$id' "; $res1=mysqli_query($conn,$sel1); $row1=mysqli_fetch_array($res1,MYSQLI_BOTH); $application=$row1['application']; $session=$row1['session']; $exam=$_REQUEST['exam']; $sel="select * from six_eightresult where rol='$application' and exam='$exam' and session='$session'"; $res=mysqli_query($conn,$sel); $row=mysqli_fetch_array($res,MYSQLI_BOTH); $rol=$row['id']; ?> <script> $('#p1').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#p2').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#p3').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#p4').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#p5').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#p6').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#p7').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#p8').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#p9').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#n1').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n2').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n3').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n4').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n5').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n6').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n7').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n8').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n9').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e1').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e2').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e3').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e4').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e5').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e6').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e7').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e8').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e9').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#m1').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#m2').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#m3').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#m4').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#m5').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#m6').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#m7').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#m8').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#m9').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); </script> <style> table { border-collapse: collapse; border-spacing: 0; width: 100%; border: 1px solid #ddd; } th, td { text-align: left; padding: 8px; } tr:nth-child(even){background-color: #f2f2f2} </style> <form class="form-horizontal" id="regform12" onsubmit="return data2(this)"> EXAM<input type="text" class="form-control" value="<?php echo $row['exam'];?>" style="color:red" readonly> Name<input type="text" class="form-control" value="<?php echo $row['name'];?>" name="name" readonly> <input type="hidden" class="form-control" value="<?php echo $row1['session'];?>" name="session" readonly> <input type="hidden" class="form-control" value="<?php echo $row['id'];?>" name="id" readonly> Fname<input type="text" class="form-control" value="<?php echo $row['fname'];?>" name="fname" readonly> Class <input type="text" class="form-control" value="<?php echo $row1['subject'];?>" name="class" readonly> <div style="overflow-x:auto;"> <table style=" border:1px solid"> <tr> <td>Subjects</td> <td>PT.(10)</td> <td>N.B.(5)</td><td>S.B..(5)</td><td>HY/Y(80)</td> </tr> <tr> <td>English w</td> <td><input type="text" value='<?php echo $row['mark2p']?>' id='p2' name="mark2p" required></td> <td><input type="text" id='n2' value='<?php echo $row['mark2n']?>' name="mark2n" required></td><td><input type="text" id='e2' value='<?php echo $row['mark2e']?>' name="mark2e" required></td><td><input type="text" id='m2' value='<?php echo $row['mark2m']?>' name="mark2m" required></td> </tr> <tr> <td>English o </td> <td><input type="text" value='<?php echo $row['mark1p']?>' id='p1' name="mark1p" required></td> <td><input type="text" id='n1' value='<?php echo $row['mark1n']?>' name="mark1n" required></td><td><input type="text" id='e1' value='<?php echo $row['mark1e']?>' name="mark1e" required></td><td><input type="text" id='m1' value='<?php echo $row['mark1m']?>' name="mark1m" required></td> </tr> <tr> <td>Hindi W </td> <td><input type="text" value='<?php echo $row['mark3p']?>' id='p3' name="mark3p" required></td> <td><input type="text" id='n3' value='<?php echo $row['mark3n']?>' name="mark3n" required></td><td><input type="text" id='e3' value='<?php echo $row['mark3e']?>'name="mark3e" required></td><td><input type="text" id='m3' value='<?php echo $row['mark3m']?>' name="mark3m" required></td> </tr> <tr> <td>Hindi O</td> <td><input type="text" value='<?php echo $row['mark4p']?>' id='p4' name="mark4p" required></td> <td><input type="text" id='n4' value='<?php echo $row['mark4n']?>' name="mark4n" required></td><td><input type="text" id='e4' value='<?php echo $row['mark4e']?>' name="mark4e" required></td><td><input type="text" id='m4' value='<?php echo $row['mark4m']?>' name="mark4m" required></td> </tr> <tr> <td>Maths W </td> <td><input type="text" value='<?php echo $row['mark5p']?>' id='p5' name="mark5p" required></td> <td><input type="text" id='n5' value='<?php echo $row['mark5n']?>' name="mark5n" required></td><td><input type="text" id='e5' value='<?php echo $row['mark5e']?>' name="mark5e" required></td><td><input type="text" id='m5' value='<?php echo $row['mark5m']?>' name="mark5m" required></td> </tr> <tr> <td> Maths O </td> <td><input type="text" value='<?php echo $row['mark6p']?>'id='p6' name="mark6p" required></td> <td><input type="text" id='n6' value='<?php echo $row['mark6n']?>' name="mark6n" required></td><td><input type="text" id='e6' value='<?php echo $row['mark6e']?>'name="mark6e" required></td><td><input type="text" id='m6' value='<?php echo $row['mark6m']?>' name="mark6m" required></td> </tr> <tr> <td>G.K. </td> <td><input type="text" value='<?php echo $row['mark9p']?>'id='p9' name="mark9p" required></td> <td><input type="text" id='n9' value='<?php echo $row['mark9n']?>' name="mark9n" required></td><td><input type="text" id='e9' value='<?php echo $row['mark9e']?>'name="mark9e" required></td><td><input type="text" id='m9' value='<?php echo $row['mark9m']?>' name="mark9m" required></td> </tr> <tr> <td>Conversation </td> <td><input type="text" value='<?php echo $row['mark7p']?>'id='p7' name="mark7p" required></td> <td><input type="text" id='n7' value='<?php echo $row['mark7n']?>' name="mark7n" required></td><td><input type="text" id='e7' value='<?php echo $row['mark7e']?>'name="mark7e" required></td><td><input type="text" id='m7' value='<?php echo $row['mark7m']?>' name="mark7m" required></td> </tr> <tr> <td>Art </td> <td><input type="text" value='<?php echo $row['mark8p']?>'id='p8' name="mark8p" required></td> <td><input type="text" id='n8' value='<?php echo $row['mark8n']?>' name="mark8n" required></td><td><input type="text" id='e8' value='<?php echo $row['mark8e']?>'name="mark8e" required></td><td><input type="text" id='m8' value='<?php echo $row['mark8m']?>' name="mark8m" required></td> </tr> <tr> <td> </td> <td><input type="text" value='<?php echo $row['mark10p']?>'id='p9' name="mark10p" required></td> <td><input type="text" id='n9' value='<?php echo $row['mark10n']?>' name="mark10n" required></td><td><input type="text" id='e9' value='<?php echo $row['mark10e']?>'name="mark10e" required></td><td><input type="text" id='m9' value='<?php echo $row['mark10m']?>' name="mark10m" required></td> </tr> </table> </div> <center> <button class="btn btn-success" > Update</button>    <button class="btn btn-danger" data-dismiss="modal"> Close</button> </center> </form> <?php break; ///// for show result 1 //////for sshow result FIRST case 37116: //$rol=$_POST['rol']; $id=$_POST['id']; //$class=$_POST['class']; //$exam=$_POST['exam']; $session=$_POST['session']; $mark1p=$_POST['mark1p']; $mark1n=$_POST['mark1n']; $mark1e=$_POST['mark1e']; $mark1m=$_POST['mark1m']; $mark2p=$_POST['mark2p']; $mark2n=$_POST['mark2n']; $mark2e=$_POST['mark2e']; $mark2m=$_POST['mark2m']; $mark3p=$_POST['mark3p']; $mark3n=$_POST['mark3n']; $mark3e=$_POST['mark3e']; $mark3m=$_POST['mark3m']; //$rank=$_POST['rank']; $mark4p=$_POST['mark4p']; $mark4n=$_POST['mark4n']; $mark4e=$_POST['mark4e']; $mark4m=$_POST['mark4m']; $mark5p=$_POST['mark5p']; $mark5n=$_POST['mark5n']; $mark5e=$_POST['mark5e']; $mark5m=$_POST['mark5m']; $mark6p=$_POST['mark6p']; $mark6n=$_POST['mark6n']; $mark6e=$_POST['mark6e']; $mark6m=$_POST['mark6m']; $mark7p=$_POST['mark7p']; $mark7n=$_POST['mark7n']; $mark7e=$_POST['mark7e']; $mark7m=$_POST['mark7m']; $mark8p=$_POST['mark8p']; $mark8n=$_POST['mark8n']; $mark8e=$_POST['mark8e']; $mark8m=$_POST['mark8m']; $mark9p=$_POST['mark9p']; $mark9n=$_POST['mark9n']; $mark9e=$_POST['mark9e']; $mark9m=$_POST['mark9m']; $mark10p=$_POST['mark10p']; $mark10n=$_POST['mark10n']; $mark10e=$_POST['mark10e']; $mark10m=$_POST['mark10m']; $up="update six_eightresult set mark10p='$mark10p',mark10n='$mark10n',mark10e='$mark10e',mark10m='$mark10m',mark1p='$mark1p',mark1n='$mark1n',mark1e='$mark1e',mark1m='$mark1m',mark2p='$mark2p',mark2n='$mark2n',mark2e='$mark2e',mark2m='$mark2m',mark3p='$mark3p',mark3n='$mark3n',mark3e='$mark3e',mark3m='$mark3m',mark4p='$mark4p',mark4n='$mark4n',mark4e='$mark4e',mark4m='$mark4m',mark5p='$mark5p',mark5n='$mark5n',mark5e='$mark5e',mark5m='$mark5m',mark6p='$mark6p',mark6n='$mark6n',mark6e='$mark6e',mark6m='$mark6m',mark7p='$mark7p',mark7n='$mark7n',mark7e='$mark7e',mark7m='$mark7m',mark8p='$mark8p',mark8n='$mark8n',mark8e='$mark8e',mark8m='$mark8m',mark9p='$mark9p',mark9n='$mark9n',mark9e='$mark9e',mark9m='$mark9m',mark10p='$mark10p',mark10n='$mark10n',mark10e='$mark10e',mark10m='$mark10m' where id='$id' "; if($res=mysqli_query($conn,$up)) { if($up) { echo "Update"; } else { echo "not"; } } else { echo"not submit"; } break; } ?>