D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
diafrica
/
result.dominicaninstitute.org
/
Filename :
managegp1.php
back
Copy
<?php if (!$_SESSION){ session_start(); } $acc=$_SESSION['acc']; $yto=$_SESSION['yto']; if(isset($acc) && ($acc=="administratoroftheduresult2018byto")){?> <?php include("Connecter/dataconn.php"); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <?php include("head.php"); ?> <script src="validator/lib/jquery.js"></script> <script src="validator/dist/jquery.validate.js"></script> <script> $().ready(function() { //Disable cut copy paste $('input.gnum').bind("cut copy paste",function(e) { e.preventDefault(); }); $('input.gchar').bind("cut copy paste",function(e) { e.preventDefault(); }); $('input.gchar2').bind("cut copy paste",function(e) { e.preventDefault(); }); //Disable mouse right click $('input.gnum').on("contextmenu",function(e){ return false; }); $('input.gchar').on("contextmenu",function(e){ return false; }); $('input.gchar2').on("contextmenu",function(e){ return false; }); //Prevents some keys from being entered //Allows numbers, backspaces. No characters, spaces or dot $('input.gnum').keypress(function(key) { if((key.charCode < 48 || key.charCode > 57) && key.charCode != 0 && key.charCode != 8 && key.charCode != 9) return false; }); //Allows numbers, backspaces and dot. No characters, spaces or dot $('input.gnum2').keypress(function(key) { if((key.charCode < 48 || key.charCode > 57) && key.charCode != 0 && key.charCode != 8 && key.charCode != 9 && key.charCode != 46) return false; }); //Allows characters, backspaces and hyphen. No numbers $('input.gchar').keypress(function(key) { if((key.charCode < 97 || key.charCode > 122) && (key.charCode < 65 || key.charCode > 90) && (key.charCode != 45) && key.charCode != 0 && key.charCode != 8 && key.charCode != 9) return false; }); //Allows characters, backspaces, hyphen and spaces. No numbers $('input.gchar2').keypress(function(key) { if((key.charCode < 97 || key.charCode > 122) && (key.charCode < 65 || key.charCode > 90) && (key.charCode != 45) && key.charCode != 0 && key.charCode != 8 && key.charCode != 9 && key.charCode != 32) return false; }); }); </script> <script src="jay/jquery-2.2.4.min.js"></script> <script src='jay/bootbox.min.js'></script> <link rel="stylesheet" href="jay/bootstrap.min.css"> <script src="jay/bootstrap.min.js"></script> <script> $(document).ready(function(){ $("#NewApply").submit(function(event){ var vname = $("#hgp").val(); if(vname=="" || vname>9 || vname==0){ event.preventDefault(); if(vname>9){bootbox.alert("Highest Grade Point cannot exceed 9");} if(vname==0){bootbox.alert("Highest Grade Point cannot be 0");} if(vname==""){bootbox.alert("Highest Grade Point cannot be blank");} } else { } }); }); </script> </head> <body> <?php include("top.php"); ?> <?php include("dtable0.php"); ?> <?php include("nav.php"); ?> <?php include("dtable1.php"); ?> <?php include("topcontainer.php"); ?> <!--Content Goes Here--> <div class="headingbiggest">Editing Grade Point (GP)</div> <div class="headingbigger">Please, specify the highest grade point (GP) below</div> <hr /> <form class="form-horizontal" role="form" id="NewApply" name="NewApply" method="post" action="managegp2.php"> <div class="form-group"> <label class="control-label col-sm-2" for="phone">Highest Grade Point:</label> <div class="col-sm-10"> <input type="text" class="form-control gnum" id="hgp" name="hgp" value="7" required> </div> </div> <div class="col-sm-offset-2 col-sm-10"> <button type="submit" class="btn btn-primary" name="applystage1" id="applystage1" value="Stage 1"><span class="glyphicon glyphicon-menu-right" aria-hidden="true"></span> Proceed</button> </div> </div> </form> <!--Content Ends Here--> <?php include("bottomcontainer.php"); ?> <?php include("dtable2.php"); ?> <?php include("side.php"); ?> <?php include("dtable3.php"); ?> <?php include("foot.php"); ?> </body> </html> <?php } else { include("ddadmin.php"); }?>