Save the given code with name "getstudentinfo.php" in admin directory. This file will be used to display the whole infomation submitted by the student in admin Panel.
Source code is given below...
<?php
include("../functions.php");
if(isset($_POST['save']))
{
approveApplication();
header("Location: registrationapproval.php");
}
if(isset($_POST['reject']))
{
delete();
header("Location: registrationapproval.php");
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US">
<head>
<title>Welcome To Online Admission(Student Zone)</title>
<link rel="STYLESHEET" type="text/css" href="../styles/admission_form.css" />
<link rel="STYLESHEET" type="text/css" href="../styles/style.css" />
<script type="text/javascript">
function ValidateForm()
{
if(admission_form.coursetype.selectedIndex== 0)
{
alert('Course type must be selected.');
return false;
}
if(admission_form.sccodes[0].checked == false && admission_form.sccodes[1].checked == false && admission_form.sccodes[2].checked == false)
{
alert('Choose one study center to be alloted to student.');
return false;
}
if(admission_form.i_agree.checked == false)
{
alert("You should check the declaration.");
return false;
}
return true;
}
</script>
</head>
<body >
<?php include("header.php");?>
<div class='mainDiv'>
<div><font size="4" name="sans-serif" color="white"><div class="heading" align="center"><b>Welcome To Distance Education University Online Admission Form</b></br>Admin Approve or Reject Application</div></font></br></br>
<div align="center">
<form name='admission_form' id='admission_form' method='post' action='' enctype="multipart/form-data">
<?php
if (isset($_GET['edit']))
{ $appunum=$_GET['edit']; }
getStudentDetail($appunum);?>
<br/>
<div align="center"><b><font color="red">*</font></b><input type="checkbox" name="i_agree" value="1">I declare that all submitted documents and payment made are right and Student is eligible for taking enroment in given program</div>
<br />
<div align="center"><input type="submit" name="save" value="Submit" onclick="return ValidateForm();" title="Click To Update Details">
<input type="submit" name="reject" value="Reject" title="Click To Reject Application"></div>
<br />
</form>
</div>
</div></br>
<?php include("footer.php");?>
</body>
</html>
Source code is given below...
<?php
include("../functions.php");
if(isset($_POST['save']))
{
approveApplication();
header("Location: registrationapproval.php");
}
if(isset($_POST['reject']))
{
delete();
header("Location: registrationapproval.php");
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US">
<head>
<title>Welcome To Online Admission(Student Zone)</title>
<link rel="STYLESHEET" type="text/css" href="../styles/admission_form.css" />
<link rel="STYLESHEET" type="text/css" href="../styles/style.css" />
<script type="text/javascript">
function ValidateForm()
{
if(admission_form.coursetype.selectedIndex== 0)
{
alert('Course type must be selected.');
return false;
}
if(admission_form.sccodes[0].checked == false && admission_form.sccodes[1].checked == false && admission_form.sccodes[2].checked == false)
{
alert('Choose one study center to be alloted to student.');
return false;
}
if(admission_form.i_agree.checked == false)
{
alert("You should check the declaration.");
return false;
}
return true;
}
</script>
</head>
<body >
<?php include("header.php");?>
<div class='mainDiv'>
<div><font size="4" name="sans-serif" color="white"><div class="heading" align="center"><b>Welcome To Distance Education University Online Admission Form</b></br>Admin Approve or Reject Application</div></font></br></br>
<div align="center">
<form name='admission_form' id='admission_form' method='post' action='' enctype="multipart/form-data">
<?php
if (isset($_GET['edit']))
{ $appunum=$_GET['edit']; }
getStudentDetail($appunum);?>
<br/>
<div align="center"><b><font color="red">*</font></b><input type="checkbox" name="i_agree" value="1">I declare that all submitted documents and payment made are right and Student is eligible for taking enroment in given program</div>
<br />
<div align="center"><input type="submit" name="save" value="Submit" onclick="return ValidateForm();" title="Click To Update Details">
<input type="submit" name="reject" value="Reject" title="Click To Reject Application"></div>
<br />
</form>
</div>
</div></br>
<?php include("footer.php");?>
</body>
</html>
0 Comments:
Post a Comment