Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Complete Project Coding: Sourabh Gupta 29 0700115049

Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 21

Complete project coding

<?php
session_start();
?>
<!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=iso-8859-1" />
<title>Untitled Document</title>
<style type="text/css">
a:link {color:#FF0000; text-decoration:none}
a:visited {color:#999900; text-decoration:none;}
a:hover {color: #FFFFFF; text-decoration:none;}
a:active {color:#0000FF; text-decoration:none;}
<!--
.style4 {
color: #fff;
font-size: 16px;
text-transform:uppercase;
font-family:Arial, Helvetica, sans-serif;
text-decoration:none;

Sourabh gupta 29 0700115049


}
.style5 {font-size: 12mm}
.style13 {font-size: 24px}
.style20 {color: #CC9933}
.style21 {color: #CCCC00}
.style22 {font-family: Arial, Helvetica, sans-serif; font-size: 18px;}
.style26 {font-size: 16px; color: #ffffff; font-family: Arial, Helvetica, sans-serif; }
.style27 {font-size: 18px}
.style32 {font-size: 36px}
.style47 {color: #003300}
.style48 {color: #003333}
.style51 {
color: #FFFFFF;
font-family: "Times New Roman", Times, serif;
}
.style52 {color: #000000}
.style54 {font-size: 16mm; font-family: Georgia, "Times New Roman", Times, serif, "Monotype
Corsiva"; color: #CC0033;}
.style57 {font-size: 20px; color: #FFFFFF; font-family: Arial, Helvetica, sans-serif; }
.style59 {font-family: Arial, Helvetica, sans-serif; font-size: 20px;}
-->
</style>
</head>
<body background="images/green.jpg"><center>
<div>
<form method="post">
<table width="94%" height="100%" border="0" bgcolor="#FFFFFF">
<tr>
<td colspan="6" height="100%">
<table width="100%" height="100%">
<tr>
<td width="131" height="122" align="center" bgcolor="#996600"><img
src="images/logo1.jpg" width="115" height="103"/></td>
<td width="629" height="122" align="center" bgcolor="#999933"><p class="style5"><span
class="style54"> PANACEA</span> <span class="style52">Training Institute</span><span
class="style13"><br />
The best way of computer knowledge .... </span></p></td>
<td width="119" align="center" bgcolor="#996600"><img src="images/animated_globe.gif"
width="99" height="102"/></td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="6">
<table width="100%" height="100%">
<tr>
<td width="296" height="31" align="center" bgcolor="#996600"><span class="style4"><a
href="?np=adminlogin"><b>Admin</b></a></span></td>
<td width="295" height="39" align="center" bgcolor="#996600"><span class="style4"><a
href="?np=registration"><b>Online Registration</b></a></span></td>

Sourabh gupta 30 0700115049


<td width="288" align="center" bgcolor="#996600"><span class="style4"><a href="?
np=login"><b>Login<b></a></span></td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="72" colspan="6" align="center"><img src="images/banner_design_06.jpg"
width="99%" height="96%" /></td>
</tr>
<tr>
<td height="2" colspan="6"></td>
</tr>
<tr>
<td colspan="6">
<table width="100%" height="100%">
<tr>
<td width="170" height="44" align="center" bgcolor="#996600" class="style22"><span
class="style20">Training</span> <span class="style21">We offers</span> </td>
<td width="125" align="center" bgcolor="#996600"><span class="style26"><a href="?
np=home"><b>Home</b></a></span></td>
<td width="142" align="center" bgcolor="#996600"><span class="style26"><a href="?
np=about"><b>About Us</b></a></span></td>
<td width="144" align="center" bgcolor="#996600"><span class="style26"><a href="?
np=contact"><b>Contact Us</b></a></span></td>
<td width="145" align="center" bgcolor="#996600"><span class="style26"><a href="?
np=services"><b>Services</b></a></span></td>
<td width="141" align="center" bgcolor="#996600"><span class="style26"><a href="?
np=career"><b>Careers</b></a></span></td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="2" colspan="6"></td>
</tr>
<tr>
<td width="175" height="51" align="left" bgcolor="#99CC66"><span class="style27"> <span
class="style32">&nbsp;. </span><span class="style26"><a href="?
np=php"><b>PHP</b></a></span></span></td>
<td rowspan="8" width="507" height="402">
<table width="100%" height="100%">
<tr>
<td width="0"></td>
<td width="100%">
<div style="overflow:auto; height:400px; text-align:left; width:500px" >
<?php
if($_REQUEST['np']=='home')
include("home.php");
else if($_REQUEST['np']=='about')
include("aboutus.php");

Sourabh gupta 31 0700115049


else if($_REQUEST['np']=='contact')
include("contactus.php");
else if($_REQUEST['np']=='services')
include("services.php");
else if($_REQUEST['np']=='career')
include("career.php");
else if($_REQUEST['np']=='php')
include("courses/php.php");
else if($_REQUEST['np']=='java')
include("courses/java.php");
else if($_REQUEST['np']=='.net')
include("courses/dotnet.php");
else if($_REQUEST['np']=='web')
include("courses/webdesigning.php");
else if($_REQUEST['np']=='autocad')
include("courses/autocad.php");
else if($_REQUEST['np']=='erp')
include("courses/erp.php");
else if($_REQUEST['np']=='linux')
include("courses/linux.php");
else if($_REQUEST['np']=='ceo')
include("courses/ceo.php");
else if($_REQUEST['np']=='registration')
include("onlineregistration.php");
else if($_REQUEST['np']=='login')
include("login.php");
else if($_REQUEST['np']=='signup')
include("signup.php");
else if($_REQUEST['np']=='adminlogin')
include("adminlogin.php");
else
include("home.php");
?>
</div>
</td>
<td width="0"></td>
</tr>
</table>
</td>
<td width="197" rowspan="8" align="center">
<table width="104%" height="94%">
<tr>
<td height="313" align="center"><img src="images/boyimg1.JPG"
width="91%" height="100%" /></td>
</tr>
<tr><td height="69" align="center" bgcolor="#FFFFFF"><img
src="images/computer_training.gif" width="175" /></td>
</tr>
</table>
</td>
</tr>

Sourabh gupta 32 0700115049


<tr>
<td height="44" align="left" bgcolor="#99CC66"><span class="style27"><span
class="style32">&nbsp;. </span><span class="style26"><a href="?np=java"><b>JAVA
Technology</b></a></span></span></td>
</tr>
<tr>
<td height="47" align="left" bgcolor="#99CC66"><span class="style27"><span
class="style32">&nbsp;.</span> <span class="style26"><a href="?np=.net"><b>.Net
Technology</b></a></span> </span></td>
</tr>
<tr>
<td height="44" align="left" bgcolor="#99CC66"><span class="style27"><span
class="style32">&nbsp;.</span> <span class="style26"><a href="?np=web"><b>Web
Designing</b></a></span> </span></td>
</tr>
<tr>
<td height="45" align="left" bgcolor="#99CC66"><span class="style27"><span
class="style32">&nbsp;.&nbsp;</span><span class="style26"><a href="?np=autocad"><b>Auto
Cad</b></a></span> </span></td>
</tr>
<tr>
<td height="42" align="left" bgcolor="#99CC66"><span class="style27"><span
class="style32">&nbsp;.</span> <span class="style26"><a href="?np=erp"><b>ERP
Sap</b></a></span> </span></td>
</tr>
<tr>
<td height="45" align="left" bgcolor="#99CC66"><span class="style27"><span
class="style32">&nbsp;.</span> <span class="style26"><a href="?
np=linux"><b>Linux</b></a></span></span></td>
</tr>
<tr>
<td height="45" align="left" bgcolor="#99CC66"><span class="style27"><span
class="style32">&nbsp;.</span> <span class="style26"><a href="?np=ceo"><b>CEO
Certification</b></a></span></span></td>
</tr>
<tr>
<td height="10" colspan="6"><hr /></td>
</tr>
<table width="95.5%">
<tr>
<td></td>
<td height="10" colspan="6" bgcolor="#FFFFFF"><font face="Arial, Helvetica, sans-serif"
color="#993366" size="+2">: Upcoming Batches :</font></td>
<td></td>
</tr>
<tr>
<td></td>
<td height="10" colspan="6" bgcolor="#FFFFFF"><font face="Arial, Helvetica, sans-serif"
color="#996600" size="+1">Batches start from 15 August</font></td>
<td></td>
</tr>

Sourabh gupta 33 0700115049


<tr>
<td> </td>
<td height="32" colspan="6">
<fieldset style="width:920px; background-color: #996633; border-width:4px">
<?php
mysql_connect("localhost","root","") or die("connection failed".mysql_error());
mysql_select_db("trainingportal2") or die("database selection
failed".mysql_error());
$qry="select * from batch";
$rst=mysql_query($qry);
?>
<table border="0" bgcolor="#FFFFFF" width="50%">
<tr>
<?php
while($ob=mysql_fetch_field($rst))
{?>
<td bgcolor="#009900"><font color="#FFFFFF">
<b><?=$ob->name?></b></font></td>
<? } ?>
</tr>
<?
while($row=mysql_fetch_row($rst))
{ ?>
<tr>
<?
for($i=0;$i<mysql_num_fields($rst);$i++)
{?>
<td>
<?=$row[$i]; ?>
</td>
<? } ?>
</tr>
<? } ?>
</table>
</fieldset>
</td>
<td> </td>
</tr>
</table>
<tr>
<td height="10" colspan="6"><hr width="50%"/></td>
</tr>
<tr>
<td height="32" colspan="6" bgcolor="#996600"></td>
</tr>
<tr>
<td height="10" colspan="6"><hr width="94%" /></td>
</tr>
</table></form></div></center></body></html>

Sourabh gupta 34 0700115049


ADMIN LOGIN PAGE

Coding:
<?php
mysql_connect("localhost","root","")or die("server connection failed".mysql_error());
mysql_select_db("trainingportal2")or die("Database connection failed".mysql_error());
if(isset($_REQUEST['sbmt']))
{
$qry="select * from admins where user_id='$_REQUEST[tbid]' and
pass='$_REQUEST[tbpass]'";
$rst=mysql_query($qry)or die("Login Query failed".mysql_error());
if(mysql_num_rows($rst)>0)
{
$_SESSION['admin_id']=$_REQUEST['tbid'];
$row=mysql_fetch_row($rst);
$_SESSION['admin_name']=$row[2];
?><script>window.location="adminwelcome.php";</script><?
}
}
?>
<!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=iso-8859-1" />
<title>Untitled Document</title>
<script type="text/javascript">

Sourabh gupta 35 0700115049


function check_val()
{
var go_ahead=true;
var wrong_field="";
val=document.getElementById("adminname").value;
if(val=="")
{
go_ahead=false;
if(wrong_field=="")
{
wrong_field="admin name";
}
}
val=document.getElementById("password").value;
if(val=="")
{
go_ahead=false;
if(wrong_field=="")
{
wrong_field="password";
}
}
if(wrong_field!="" && go_ahead==false)
{
alert("invalid entry for field "+wrong_field);
return go_ahead;
}
}
</script>
<style type="text/css">
<!--
.style29 {
font-family: Arial, Helvetica, sans-serif;
font-size: 16px;
font-weight: bold;
color: #009933;
}
.style30 {
font-family: Arial, Helvetica, sans-serif;
font-size: 14px;
font-weight: bold;
}
-->
</style>
</head>
<body>
<form method="post">
<table width="283" border="0">
<tr>
<td colspan="2" height="45"><span class="style1 style29">Login with your name...
</span></td>

Sourabh gupta 36 0700115049


</tr>
<tr>
<td width="120" height="32"><span class="style3 style30">Admin name</span></td>
<td width="147"><input type="text" id="tbid" name="tbid" /></td>
</tr>
<tr>
<td height="31"><span class="style3 style30">Password</span></td>
<td><input type="password" id="tbpass" name="tbpass" />
</tr>
<tr>
<td height="37" colspan="2" align="center"><input type="submit" value="Sign in" id="sbmt"
name="sbmt" onClick="return check_val()" /></td>
</tr>
</table>
</form>
</body>
</html>

Login Page:

Sourabh gupta 37 0700115049


Coding:
<?php
require_once("autogen.php");
mysql_connect("localhost","root","")or die("server connection failed".mysql_error());
mysql_select_db("trainingportal2")or die("Database connection failed".mysql_error());
if(isset($_REQUEST['sbmt']))
{
$qry="select * from signup where registration_id='$_REQUEST[registrationid]' and
password='$_REQUEST[password]'";
$rst=mysql_query($qry)or die("Login Query failed".mysql_error());
if(mysql_num_rows($rst)>0)
{
$_SESSION['registration_id']=$_REQUEST['registrationid'];
$row=mysql_fetch_row($rst);
$_SESSION['user_name']=$row[1];
}
$qry1="select * from signup where registration_id='$_REQUEST[registrationid]'";
$rst1=mysql_query($qry1);
if(mysql_fetch_array($rst1)>0)
{
$pre=substr($_REQUEST['registrationid'],0,3);
if($pre=="ins")
{
?>
<script>window.location="instructorwelcome.php"</script>
<?
}
elseif($pre=="app")
{
?>
<script>window.location="approverwelcome.php"</script>
<?
}
elseif($pre=="stu")
{
?>
<script>window.location="studentwelcome.php"</script>
<?
}
else
{
?>
<script>window.location="main.php"</script>
<?
}
}

}
?>

Sourabh gupta 38 0700115049


<!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=iso-8859-1" />
<title>Untitled Document</title>
<script type="text/javascript">

function check_val()
{
var go_ahead=true;
var wrong_field="";
val=document.getElementById("registrationid").value;
if(val=="")
{
go_ahead=false;
if(wrong_field=="")
{
wrong_field="registration id";
}
}
val=document.getElementById("password").value;
if(val=="")
{
go_ahead=false;
if(wrong_field=="")
{
wrong_field="password";
}
}
if(wrong_field!="" && go_ahead==false)
{
alert("invalid entry for field "+wrong_field);
return go_ahead;
}
}
</script>
<style type="text/css">
<!--
.style29 {
font-family: Arial, Helvetica, sans-serif;
font-size: 16px;
font-weight: bold;
color: #009933;
}
.style30 {
font-family: Arial, Helvetica, sans-serif;
font-size: 14px;
font-weight: bold;
}
-->

Sourabh gupta 39 0700115049


</style>
</head>

<body>
<form method="post">
<table width="283" border="0">
<tr>
<td colspan="2" height="45"><span class="style1 style29">Login with your Registration id ....
</span></td>
</tr>
<tr>
<td width="120" height="32"><span class="style3 style30">Registration id </span></td>
<td width="147"><input type="text" id="registrationid" name="registrationid" /></td>
</tr>
<tr>
<td height="31"><span class="style3 style30">Password</span></td>
<td><input type="password" id="password" name="password" />
</tr>
<tr>
<td height="37" colspan="2" align="center"><input type="submit" id="sbmt" name="sbmt"
value="Sign in" onClick="return check_val()" /></td>
</tr>
<tr>
<td height="29" colspan="2" bgcolor="#006633"><span class="style5 style30">if you are new
user then<a href="main.php?np=signup"> Sign up</a> first... </span></td>
</tr>
</table>
</form>
</body>
</html>

Sourabh gupta 40 0700115049


Admin welcome page:

Coding:
<?php
session_start();
if(!(isset($_SESSION['admin_id'])))
{
header("location:http://$_SERVER[HTTP_HOST]/trainingportal/main.php");
}
?>
<body background="images/1926.jpg"><center>
<table width="1042" height="589" border="0" bgcolor="#FFFFFF">
<tr>
<td width="176" rowspan="2"><img src="images/pic1.JPG" width="175" height="178"
/></td>
<td height="129" colspan="4" align="center" bgcolor="#006600"><span
class="style1">PANACEA</span><span class="style2"> Training Institute</span><br />
<span class="style3">The best way of computer knowledge...</span></td>
<td width="261" rowspan="2"><img src="images/pic2.JPG" width="171" height="175"
/></td>
</tr>
<tr>
<td height="43" colspan="4" align="center" bgcolor="#009933"><span
class="style3">Welcome&nbsp;<?=$_SESSION['admin_name']?></span></td>
</tr>
<tr>

Sourabh gupta 41 0700115049


<td height="33" align="center" bgcolor="#006600"><a href="?np=home"
class="style4">Home</a></td>
<td width="148" align="center" bgcolor="#006600"><span class="style4"><a href="?
np=instructor" class="style4">Instructor</a></span></td>
<td width="122" align="center" bgcolor="#006600"><span class="style4"><a href="?
np=student" class="style4">Student</a></span></td>
<td width="121" align="center" bgcolor="#006600"><span class="style4"><a href="?
np=approver" class="style4">Approver</a></span></td>
<td width="136" align="center" bgcolor="#006600"> <span class="style4"><a href="?
np=loginregistration" class="style4">Registration</a></span></td>
<td align="center" bgcolor="#006600"><span class="style4"><a href="adminlogout.php"
class="style4">Logout</a></span></td>
</tr>
<tr>
<td rowspan="5" align="center" bgcolor="#009966"><span class="style11">Administrator
</span></td>
<td height="25" colspan="5" bgcolor="#009966"></td>
</tr>
<tr>
<td colspan="5" rowspan="5" valign="top">
<div style="overflow:auto; height:300px; text-align:left;">
<?php
if($_REQUEST['np']=='add')
include("admin/addcourse.php");
elseif($_REQUEST['np']=='modifycourse')
include("admin/modifycourse.php");
elseif($_REQUEST['np']=='instructor')
include("admin/instructor.php");
elseif($_REQUEST['np']=='student')
include("admin/student.php");
elseif($_REQUEST['np']=='approver')
include("admin/approver.php");
elseif($_REQUEST['np']=='loginregistration')
include("admin/loginregistration.php");
elseif($_REQUEST['np']=='addschedule')
include("admin/addschedule.php");
elseif($_REQUEST['np']=='modifyschedule')
include("admin/modifyschedule.php");
elseif($_REQUEST['np']=='viewfeedback')
include("admin/viewfeedback.php");
elseif($_REQUEST['np']=='modifyfeedback')
include("admin/modifyfeedback.php");
elseif($_REQUEST['np']=='home')
include("admin/home.php");
else
include("admin/home.php");
?>
</div>
</td>
</tr>
<tr>

Sourabh gupta 42 0700115049


</tr>
<tr>

</tr>
<tr>
</tr>
<tr>
<td height="300">
<table width="100%" height="93%" bordercolor="#006633" border="1">
<tr>
<td height="49" align="left" bgcolor="#669966"><span
class="style9">&nbsp;.&nbsp;&nbsp;<a href="?np=add">Add a Course</a></span></td>
</tr>
<tr>
<td height="47" align="left" bgcolor="#669966"><span
class="style9">&nbsp;.&nbsp;&nbsp;<a href="?np=modifycourse">Modify a
Course</a></span></td>
</tr>
<tr>
<td height="46" align="left" bgcolor="#669966"><span
class="style9">&nbsp;.&nbsp;&nbsp;<a href="?np=addschedule">Add a
Schedule</a></span></td>
</tr>
<tr>
<td height="45" align="left" bgcolor="#669966"><span
class="style9">&nbsp;.&nbsp;&nbsp;<a href="?np=modifyschedule">Modify
Schedule</a></span></td>
</tr>
<tr>
<td height="47" align="left" bgcolor="#669966"><span
class="style9">&nbsp;.&nbsp;&nbsp;<a href="?np=viewfeedback">view
feedback</a></span></td>
</tr>
<tr>
<td height="48" align="left" bgcolor="#669966"><span
class="style9">&nbsp;.&nbsp;&nbsp;<a href="?np=modifyfeedback">Modify
Feedback</a></span></td>
</tr>
</table>

</td>
</tr>
<tr>
<td height="23" bgcolor="#009966">&nbsp;</td>
<td colspan="5" bgcolor="#009966">&nbsp;</td>
</tr>
</table>
</center>
</body></html>

Sourabh gupta 43 0700115049


Instructor page coding:

<?php
session_start();
if(!(isset($_SESSION['registration_id'])))
{
header("location:http://$_SERVER[HTTP_HOST]/trainingportal/main.php");
}
?>
<head>
<link rel="stylesheet" type="text/css" href="calendar/dhtmlgoodies_calendar.css" />
<script type="text/javascript" src="calendar/dhtmlgoodies_calendar.js?
random=20060118"></script>
/*Css style include*/</head>
<body background="images/vista-green-wallpaper.jpg"><center>
<table width="913" height="572" border="0" bgcolor="#FFFFFF">
<tr>
<td width="175" rowspan="2"><img src="images/pic1.JPG" width="175" height="178"
/></td>
<td height="129" colspan="4" align="center" bgcolor="#006600"><span
class="style1">PANACEA</span><span class="style2"> Training Institute</span><br />
<span class="style3">The best way of computer knowledge...</span></td>
<td width="171" rowspan="2"><img src="images/pic2.JPG" width="171" height="175"
/></td>
</tr>
<tr>
<td height="43" colspan="4" align="center" bgcolor="#009933"><span
class="style3">Welcome <?=$_SESSION['user_name']?></span></td>
</tr>
<tr>
<td colspan="2" height="33" align="center" bgcolor="#006600"><span class="style4"><a
href="?np=home">Home</a></span></td>
<td width="233" align="center" bgcolor="#006600"><span class="style4"><a href="?
np=project">Projects</a></span></td>
<td width="162" align="center" bgcolor="#006600"><span class="style4"><a href="?
np=forum">Forum</a></span></td>
<td width="149" align="center" bgcolor="#006600"> <span class="style4"><a href="?
np=notes">Notes</a></span></td>
<td align="center" bgcolor="#006600"><span class="style4"><a
href="adminlogout.php">Logout</a></span></td>
</tr>
<tr>
<td rowspan="5" align="center" bgcolor="#009966"><span class="style11">Instructor
</span></td>
<td height="25" colspan="5" bgcolor="#009966"></td>
</tr>
<tr>
<td colspan="5" rowspan="5" valign="top">
<div style="overflow:auto; height:300px; text-align:left;">
<?php

Sourabh gupta 44 0700115049


if($_REQUEST['np']=='attendence')
include("instructor/ins_attendence.php");
elseif($_REQUEST['np']=='project')
include("instructor/ins_project.php");
elseif($_REQUEST['np']=='forum')
include("instructor/ins_forum.php");
elseif($_REQUEST['np']=='notes')
include("instructor/ins_notes.php");
elseif($_REQUEST['np']=='genattendence')
include("instructor/genattendence.php");
elseif($_REQUEST['np']=='viewfeedback')
include("instructor/viewfeedback.php");
elseif($_REQUEST['np']=='viewschedule')
include("instructor/viewschedule.php");
elseif($_REQUEST['np']=='home')
include("instructor/home.php");
else
include("instructor/home.php");
?>
</div>
</td>
</tr>
<tr>

</tr>
<tr>

</tr>
<tr>

</tr>
<tr>
<td height="289">
<table width="100%" height="100%" border="1" bordercolor="#006633">
<tr>
<td width="164" height="58" align="left" bgcolor="#669966"><span
class="style12">&nbsp;.&nbsp;&nbsp;<a href="?np=genattendence">Generate
Attendence</a></span></td>
</tr>
<tr>
<td height="49" align="left" bgcolor="#669966"><span
class="style12">&nbsp;.&nbsp;&nbsp;<a href="?np=viewfeedback">View Feedback
</a></span></td>
</tr>
<tr>
<td height="49" align="left" bgcolor="#669966"><span
class="style12">&nbsp;.&nbsp;&nbsp;<a href="?np=viewschedule">View Schedule
</a></span></td>
</tr>
</table>
</td>

Sourabh gupta 45 0700115049


</tr>
<tr>
<td height="23" bgcolor="#009966">&nbsp;</td>
<td colspan="5" bgcolor="#009966">&nbsp;</td>
</tr>
</table>
</center>
</body>
</html>

Approver page coding:

<?php
session_start();
if(!(isset($_SESSION['registration_id'])))
{
header("location:http://$_SERVER[HTTP_HOST]/trainingportal/main.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>/*css style*/</head>
<body background="images/vista-green-wallpaper.jpg"><center>
<table width="904" height="607" border="0" bgcolor="#FFFFFF">
<tr>
<td width="175" rowspan="2"><img src="images/pic1.JPG" width="175" height="178"
/></td>
<td height="129" colspan="4" align="center" bgcolor="#006600" width="600px"><span
class="style1">PANACEA</span><span class="style2"> Training Institute</span><br />
<span class="style3">( The best way of computer knowledge ) </span></td>
<td width="170" rowspan="2" align="center"><img src="images/pic2.JPG" width="167"
height="180" /></td>
</tr>
<tr>
<td height="43" colspan="4" align="center" bgcolor="#009933"><span
class="style3">Welcome <?=$_SESSION['user_name']?></span></td>
</tr>
<tr>
<td colspan="6" height="33" align="center" bgcolor="#006600">&nbsp;</td>
</tr>
<tr>
<td rowspan="5" align="center" bgcolor="#009966"><span class="style11">Approver
</span></td>
<td height="25" colspan="5" bgcolor="#009966"></td>
</tr>
<tr>
<td colspan="5" rowspan="5" valign="top">
<div style="overflow:auto; height:300px; text-align:left;">
<?php

Sourabh gupta 46 0700115049


if($_REQUEST['np']=='trainingapprove')
include("approver/trainingapprove.php");
elseif($_REQUEST['np']=='modifyapprove')
include("approver/modifyapproves.php");
elseif($_REQUEST['np']=='training')
include("approver/training.php");
else
include("approver/home.php");
?>
</div>
</td>
</tr>
<tr>

</tr>
<tr>

</tr>
<tr> </tr>
<tr>
<td height="289" valign="top">
<table width="100%" height="95%" border="1">
<tr>
<td height="45" align="left" valign="top" bgcolor="#669966"><span
class="style12">&nbsp;.&nbsp;<a href="?np=trainingapprove">Training
Approve</a></span></td>
</tr>
<tr><td height="42" align="left" valign="top" bgcolor="#669966"><span
class="style12">&nbsp;.&nbsp;&nbsp;<a href="?np=modifyapprove">Modify
Approve</a></span></td>
</tr>
<tr><td height="42" align="left" valign="top" bgcolor="#669966"><span
class="style12">&nbsp;.&nbsp;&nbsp;<a href="?np=training">Training
Details</a></span></td>
</tr>
<tr><td height="194" rowspan="3" align="left" valign="top" bgcolor="#669966"><span
class="style12">&nbsp;.&nbsp;&nbsp;<a href="adminlogout.php">Log out</a></span></td>
</tr>
</table>
</td> </tr>
<tr>
<td height="23" bgcolor="#009966">&nbsp;</td>
<td colspan="5" bgcolor="#009966">&nbsp;</td>
</tr>
</table>
</center>
</body>
</html>

Sourabh gupta 47 0700115049


Trainee/Student page coading:
<?php
session_start();
if(!(isset($_SESSION['registration_id'])))
{
header("location:http://$_SERVER[HTTP_HOST]/trainingportal/main.php");
}
?>
<head>/*Css sheets include*/</head>
<body background="images/green_network_widescreen_wallpaper_51558.jpg"><center>
<table width="894" height="572" border="0" bgcolor="#FFFFFF">
<tr>
<td width="176" rowspan="2"><img src="images/pic1.JPG" width="175"
height="178"/></td>
<td height="129" colspan="4" align="center" bgcolor="#006600"><span
class="style1">PANACEA</span><span class="style2"> Training Institute</span><br />
<span class="style3">( The best way of computer knowledge ) </span></td>
<td width="178" rowspan="2"><img src="images/pic2.JPG" width="171"
height="175"/></td>
</tr>
<tr>
<td height="43" colspan="4" align="center" bgcolor="#009933"><span
class="style3">Welcome <?=$_SESSION['user_name']?></span></td>
</tr> <tr>
<td colspan="2" height="33" align="center" bgcolor="#006600"><span class="style4"><a
href="?np=home">Home</a></span></td>
<td width="186" align="center" bgcolor="#006600"><span class="style4"><a href="?
np=project">Projects</a></span></td>
<td width="163" align="center" bgcolor="#006600"><span class="style4"><a href="?
np=forum">Forum</a></span></td>
<td width="168" align="center" bgcolor="#006600"> <span class="style4"><a href="?
np=notes">Notes</a></span></td>
<td align="center" bgcolor="#006600"><span class="style4"><a
href="adminlogout.php">Logout</a></span></td>
</tr>
<tr>
<td rowspan="5" align="center" bgcolor="#009966"><span class="style11">Student
</span></td>
<td height="25" colspan="5" bgcolor="#009966"></td>
</tr>
<tr>
<td colspan="5" rowspan="5" valign="top">
<div style="overflow:auto; height:300px; text-align:left;">
<?php
if($_REQUEST['np']=='attendence')
include("student/attendence.php");
elseif($_REQUEST['np']=='project')
include("student/project.php");
elseif($_REQUEST['np']=='forum')
include("student/forum.php");

Sourabh gupta 48 0700115049


elseif($_REQUEST['np']=='notes')
include("student/ins_notes.php");
elseif($_REQUEST['np']=='unregistration')
include("student/unregistration.php");
elseif($_REQUEST['np']=='addfeedback')
include("student/addfeedback.php");
elseif($_REQUEST['np']=='modifyfeedback')
include("student/modifyfeedback.php");
elseif($_REQUEST['np']=='attendedtraining')
include("student/attendedtraining.php");
elseif($_REQUEST['np']=='home')
include("student/home.php");
else
include("student/home.php");
?>
</div></td>
</tr>
<tr>
</tr> <tr>

</tr>
<tr>
</tr>
<tr>
<td height="289">
<table width="100%" height="100%" border="1">
<tr>
<td height="50" align="left" bgcolor="#669966"><span
class="style12">&nbsp;.&nbsp;&nbsp;<a href="?
np=unregistration">Unregister</a></span></td>
</tr>
<tr>
<td height="49" align="left" bgcolor="#669966"><span
class="style12">&nbsp;.&nbsp;&nbsp;<a href="?np=addfeedback">Add a
Feedback</a></span></td>
</tr>
<tr>
<td height="48" align="left" bgcolor="#669966"><span
class="style12">&nbsp;.&nbsp;&nbsp;<a href="?np=attendedtraining">Attended
Training</a></span></td></tr>
</table>
</td></tr><tr>
<td height="23" bgcolor="#009966">&nbsp;</td> <td colspan="5"
bgcolor="#009966">&nbsp;</td>
</tr></table>
</center></body></html>

Sourabh gupta 49 0700115049

You might also like