Design and Implementation of An Advance Online Assignment System
Design and Implementation of An Advance Online Assignment System
RIVERS STATE.
ABSTRACT
particular course lecture, who have access to the system for grading
technologies.
CHAPTER ONE
INTRODUCCTION
the use of the World-Wide Web, the Internet and computers to aid
have more time, and to be in pace with this fast moving IT world.
1.2 STATEMENT OF THE PROBLEM
careless could lead to a zero mark for the victim whose paper was
All these problems highlighted are the main reasons the researcher
institutions.
1.3 OBJECTIVES OF STUDY
study are:
assignment submission
lecturers.
The University has two other campuses, St John’s Diobu along the
Port Harcourt – Aba Express Road near Garrison Junction. The St.
John’s Campus houses the University’s Business School with world
Universities commission.
an educational institution.
LITERATURE REVIEW
brief search of the web still reveals many examples where these
but there are still a few bugs. For now, you will need to put your file
checking and marking. The Hot Potatoes suite (Hot Potatoes, 2002)
assignments.
The BOSS system (Joy & Luck, 1998) is closer to OAS in terms of
find that the F2M2 marking program is easy to use and many have
that, before the files are submitted to F2M2, they have already been
virus checked, are already compiled and may easily have been run
programs.
immediately obvious and can distract students and staff from the
2000).
reasons which have driven many staff to adopt and use OASM.
Darbyshire (2000) reports finding over 6000 hits from web search
3.0 INTRODUCTION
article entry. The rest of this section describes the components and
diagrams.
use cases. Actors are entities that interact with the system while
Add student
Submit assignment
Search assignment
Delete assignment
user
Grades student
Display UI
Enter Command
Yes
[Manage]
Upload file]
[Search]
Display UI
Search Database
Initiate file
explorer then
[Add student]
upload
Display results
Main program
Enter command
If command = manage
End if,
Manage subprogram
Begin
Enter command
End if;
End sub,
Search subprogram
Begin
Trim keywords
End sub,
Match Subprogram
Begin
Enter student ID
End sub
Begin
End sub
Begin
End sub
Enter
Command
Is F Is F is
manage? assignm
search?
ent?
T T T
Display Job
Enter search Enter ID
criteria
Stop
LOGIN INTERFACE
LOGIN WINDOW x
User ID
PASSWORD
LOGIN
for system access, the window is for both the system admin and
student.
ADD ASSIGNMENT INTERFACE
User Login
Name:
file:
Lecturer ID:
Faculty:
Title Of file:
SUBMIT
User Login
NAME
Qualification
Salary
SEARCH
Search field
Continue
E E S
Figure 3.8: Student personal Interface
USERS
FIELD DATA TYPE DESCRIPTION
Id Int(11) ID auto-increment
Username Varchar(20) Username
Password Varchar(20) Password
User group Varchar(25) User group
Status Varchar(15) Status
Date-registered Date/time Date of registration
ACADEMIC YEAR
FIELD DATA TYPE DESCRIPTION
ADMISSION
FIELD DATA TYPE DESCRIPTION
Admission-ID Int (11) Admission ID
Institution-ID Int (11) Institution ID
Faculty-ID Int (11) Faculty ID
Dept-ID Int (11) Department ID
Title-ID Int(11) Title ID
First name Varchar(20) First name
Surname Varchar (20) Surname
Nationality Varchar (50) Nationality
Student no Varchar (15) Student number
Reg-no Varchar (20) Registration number
Academic year ID Int (11) Academic year ID
Course-ID Int (11) Course ID
Program-ID Int (11) Program ID
Sponsor-ID Int (11) Sponsor
Year Int (11) Year
Sex Enum (“M”, “F”) Sex
DOB Date Date of birth
POB Varchar (40) Place of birth
M-status Int (11) Marital status
Admission date Date Admission date
Admission-time Time Time of admission
ASSIGNMENTTABLE
FIELD DATA TYPE DESCRIPTION
FACULTY
FIELD DATA TYPE DESC RIPTION
RESULT
FIELD DATA TYPE DESCRIPTION
ROLE
FIELD DATA TYPE DESCRIPTION
SEMESTER
FIELD DATA TYPE DESCRIPTION
STAFF
FIELD DATA TYPE DESCRIPTION
STAFF TYPE
FIELD DATA TYPE DESCRIPTION
Staff type-id Int(11) Staff type ID
STATUS
FIELD DATA TYPE DESCRIPTION
ID Int(11) ID
PASS MARK
PROGRAM
FIELD DATE TYPE DESCRIPTION
Program-id Int(11) Program ID
REGISTRATION
FIELD DATA TYPE DESCRIPTION
Takes-id Int(11) Takes ID
Academic-yr-id Int (11) Academic year ID
Yearost-id Int (11) Yearost ID
Sem-id Int (11) Semester ID
Reg no Varchar (20) Registration number
Student-no Varchar (15) Student number
Course-id Int(11) Course ID
Course unit-id Int (11) Course unit ID
Takes-date Date Takes date
Take-time Time Time taken
COURSE
FIELD DATA TYPE DESCRIPTION
Course-id Int (11) Course ID
Faculty-id Int (11) Faculty ID
Dept-id Int (11) Department ID
Course-code Varchar(20) Course code
Course-name Varchar(200) Course name
Duration-id Int (11) Duration ID
Tuition Int (11) Tuition
Course-date Date/time Course-date
GRADES
FIELD DATA TYPE DESCRIPTION
Id Int(11) Id
Upper Decimal(5,2) Upper credit
Lower Decimal(5,2) Lower credit
Grade Varchar(5) Grades
GP Decimal(5,3) Grade point
ARTICLE ENTRY
FIELD DATA TYPE DESCRIPTION
Id Int(11) Id
Student –no Int(11) Student number
Reg-no Varchar(12) Registration number
Academic-yr Int(11) Academic year
Yearost-id Int(11) Year of start id
Sem-id Int(11) Semester id
Date sent Date Date sent
Time sent Time Time sent
status Varchar(20) Status
VIEW STAFF
FIELD DATA TYPE DESCRIPTION
Staff-id Varchar (10) Staff-ID
Staff-type Varchar (20) Staff-type
Staff-name Varchar (40) Staff-name
Status Varchar (15) Status
Staff-date Date/time Staff date
VIEW TEACHERS
FIELD DATA TYPE DESCRIPTION
ID Int (11) ID
Subject Varchar (100) Subject
Staff Varchar (40) Staff
Date Date Date
VIEW USERS
FIELD DATA TYPE DESCRIPTION
Id Int (11) ID
Username Varcahr (20) Username
Password Varchar (20) Password
User group Varchar (25) User group
Status Varchar (15) Status
Date-registered Date/time Date registered
TEACHES
FIELD DATA TYPE DESCRIPTION
Teaches-id Int (11) Teaches ID
Course unit-id Int (11) Course unit ID
Staff-id Varchar (10) Staff ID
Teaches-date Date Teaches date
CHAPTER FOUR
SYSTEM IMPLEMENTATION
4.1.0 INTRODUCTION
LANGUAGE
research.
of operating systems.
the application.
a unit and how to use it can look at the unit test to gain a basic
were carried out on the various parts of the system and necessary
simplest form, the units that have already been tested and are
expand the process to test the modules with those of other groups.
The integration test result for the system in this research was
satisfactory.
software requirements.
Component Requirement
Operating system Windows 2000, XP, VISTA, 7
Component Requirement
RAM 250MB or higher
ii. To start the client application, the user should use the
iii. When this page is displayed, the user can perform any of the
following operations:
user page.
v. Add a test to a job by clicking on the “add test” link on the job
view page.
5.1.0 INTRODUCTION
system as a whole.
successful.
5.2.0 CONCLUSION
like for a school before abstracting to the research domain for any
data.
access the assignment page and being able to upload his / her
5.3.0 RECOMMENDATION
73.
http://www.dest.gov.au/highered/statistics/tables/students2000.
htm
http://www.cs.nott.ac.uk/CourseMaster/cm_com/index.html
http://www.cs.nott.ac.uk/~ceilidh/
http://web.uvic.ca/hrd/halfbaked/
Joy, M. & Luck, M. (1995). On-line submission and testing of
Nulty, D., Bancroft, P., Brewster, S., & Smith, D. (1998). Web online
http://www.qut.edu.au/chan/pr/planning/StratPlan/stratplan.ht
m.
1998.
Index.php
<?php
session_start();
require("conection/connects.php");
$msg="";
if(isset($_POST['btn_log'])){
$uname=$_POST['unametxt'];
$pwd=$_POST['pwdtxt'];
WHERE
$cout=mysqli_num_rows($sql);
if($cout>0){
$row=mysqli_fetch_array($sql);
$_SESSION['uname'] =$row['username'];
$_SESSION['pass'] =$row['password'];
if($row['type']=='admin')
else
header("location: everyone.php");
else
$msg="Login Username and Password
Wrong......";
?>
Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-
transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
8" />
</head>
<body>
<form method="post">
<fieldset>
<fieldset></fieldset>
<div id="login_back">
<div id="msg">
</div>
<div id="login_form">
<label for="login">Username:</label>
<div class="clear"></div>
<label for="login">Password:</label>
<input type="password" class="fields" name="pwdtxt" title="Enter
<div class="clear"></div>
in" />
</div>
</div>
</fieldset>
</form>
</body>
</html>
Home(everyone.php)home.php
Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-
transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
8" />
</head>
<body>
<div id="content">
<div >
</div>
<div id="space"></div>
<div id="question">
</div>
<div id="space"></div>
</html>
LOCATION_ENTRY.PHP
<?php
$id="";
$opr="";
if(isset($_GET['opr']))
$opr=$_GET['opr'];
if(isset($_GET['rs_id']))
$id=$_GET['rs_id'];
if(isset($_POST['btn_sub'])){
$loca_name=$_POST['locationtxt'];
$description=$_POST['descriptxt'];
$note =$_POST['notetxt'];
VALUES(
NULL,
'$loca_name',
'$description' ,
'$note'
");
if($sql_ins==true)
$msg="Insert Error:".mysql_error();
//------------------uodate data----------
if(isset($_POST['btn_upd'])){
$loca_name=$_POST['locationtxt'];
$description=$_POST['descriptxt'];
$note=$_POST['notetxt'];
l_name='$loca_name' ,
description='$description' ,
note='$note'
WHERE loca_id=$id
");
if($sql_update==true)
header("location:?tag=view_location");
else
$msg="Update Fail!...";
?>
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" />
</head>
<body>
<?php
if($opr=="upd")
loca_id=$id");
$rs_upd=mysql_fetch_array($sql_upd);
?>
<div id="top_style">
<div id="top_style_text">
Loction Update
</div>
<div id="top_style_button">
<form method="post">
/></a>
</form>
<form method="post">
<div>
<tr>
<td>Location Name</td>
<td>
</td>
</tr>
<tr>
<td>Description:</td>
<td>
<textarea name="descriptxt" cols="23" rows="4"><?php echo
$rs_upd['description'];?></textarea>
</td>
</tr>
<tr>
<td>Note</td>
<td>
$rs_upd['note'];?></textarea>
</td>
</tr>
<tr>
<td colspan="2">
<input type="reset" value="Cancel" id="button-in"/>
in" />
</td>
</tr>
</table>
</div>
</form>
<?php
else
{
?>
<div id="top_style">
<div id="top_style_text">
Loction Entry
</div>
<div id="top_style_button">
<form method="post">
style="width:120px;" /></a>
</form>
<div id="style_informations">
<form method="post">
<div>
<tr>
<td>Location Name</td>
<td>
</td>
</tr>
<tr>
<td>Description:</td>
<td>
</td>
</tr>
<tr>
<td>Note</td>
<td>
</td>
</tr>
<tr>
<td colspan="2">
in" />
</td>
</tr>
</table>
</div>
</form>
<?php
?>
</body>
</html>
LOGOUT.PHP
<?php
session_start();
session_destroy();
header('location:index.php');
?>
STUDENT_ENTRY.PHP
<?php
$id="";
$opr="";
if(isset($_GET['opr']))
$opr=$_GET['opr'];
if(isset($_GET['rs_id']))
$id=$_GET['rs_id'];
//--------------add data-----------------
if(isset($_POST['btn_sub'])){
$f_name=$_POST['fnametxt'];
$l_name=$_POST['lnametxt'];
$gender=$_POST['gender'];
$dob=$_POST['yy']."/".$_POST['mm']."/".$_POST['dd'];
$pob=$_POST['pobtxt'];
$addr=$_POST['addrtxt'];
$phone=$_POST['phonetxt'];
$mail=$_POST['emailtxt'];
$note=$_POST['notetxt'];
$reg_no=$_POST['reg_no'];
$username=$_POST['username'];
$password=$_POST['password'];
VALUES(
NULL,
'$f_name',
'$l_name' ,
'$gender',
'$dob',
'$pob',
'$addr',
'$phone',
'$mail',
'$note',
'$reg_no',
'$username',
'$password'
");
if($sql_ins==true)
else
$msg="Insert Error:".mysqli_error();
//------------------uodate data----------
if(isset($_POST['btn_upd'])){
$f_name=$_POST['fnametxt'];
$l_name=$_POST['lnametxt'];
$gender=$_POST['gender'];
$dob=$_POST['yy']."/".$_POST['mm']."/".$_POST['dd'];
$pob=$_POST['pobtxt'];
$addr=$_POST['addrtxt'];
$phone=$_POST['phonetxt'];
$mail=$_POST['emailtxt'];
$note=$_POST['notetxt'];
$reg_no=$_POST['reg_no'];
$username=$_POST['username'];
$password=$_POST['password'];
f_name='$f_name',
l_name='$l_name' ,
gender='$gender',
dob='$dob',
pob='$pob',
address='$addr',
phone='$phone',
email='$mail',
note='$note',
reg_no = '$reg_no',
username='$username',
password='$password'
WHERE
stu_id=$id
");
if($sql_update==true)
?>
<script>
window.location='everyone.php?tag=view_students';
</script>
<?php }
else
$msg=mysqli_error('Update Fail');
?>
Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-
transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
8" />
</head>
<body>
<?php
if($opr=="upd")
stu_id=$id");
$rs_upd=mysqli_fetch_array($sql_upd);
list($y,$m,$d)=explode('-',$rs_upd['dob']);
?>
<div id="top_style">
<div id="top_style_text">
<div id="top_style_button">
<form method="post">
</form>
<div id="style_informations">
<div>
<tr>
<td>Reg No:</td>
<td>
echo $rs_upd['reg_no'];?>"/>
</td>
</tr>
<tr>
<td>First Name:</td>
<td>
echo $rs_upd['f_name'];?>"/>
</td>
</tr>
<tr>
<td>Last Name:</td>
<td>
<input type="text" name="lnametxt" id="textbox" value="<?php
echo $rs_upd['l_name'];?>"/>
</td>
</tr>
<tr>
<td>Gender:</td>
<td>
</td>
</tr>
<tr>
<td>Date Of Birth:</td>
<td>
<option>years</option>
<?php
$sel="";
for($i=1985;$i<=2015;$i++){
if($i==$y){
$sel="selected='selected'";}
else
$sel="";
</option>";
?>
</select>
<select name="mm">
<option>Month</option>
<?php
$sel="";
$mm=array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","
Oct","NOv","Dec");
$i=0;
foreach($mm as $mon){
$i++;
if($i==$m){
$sel=$sel="selected='selected'";}
else
$sel="";
?>
</select>
<select name="dd">
<option>Date</option>
<?php
$sel="";
for($i=1;$i<=31;$i++){
if($i==$d){
$sel=$sel="selected='selected'";}
else
$sel="";
?>
<?php
if($i<10)
echo"0"."$i" ;
else
echo"$i";
?>
</option>
<?php
}?>
</select>
</td>
</tr>
<tr>
<td>Place Of Brith:</td>
<td>
</td>
</tr>
<tr>
<td>Address:</td>
<td>
$rs_upd['address'];?></textarea>
</td>
</tr>
<tr>
<td colspan="2">
id="button-in" />
</td>
</tr>
</table>
</div>
<div>
<tr>
<td>Phone:</td>
<td>
</td>
</tr>
<tr>
<td>E-mail:</td>
<td>
</td>
</tr>
<tr>
<td>Note:</td>
<td>
$rs_upd['note'];?></textarea>
</td>
</tr>
<tr>
<td>Username:</td>
<td>
</td>
</tr>
<tr>
<td>Password:</td>
<td>
</tr>
</table>
</div>
</form>
<?php
else
?>
<div id="top_style_text">
Students Entry
<div id="top_style_button">
<form method="post">
</form>
<div id="style_informations">
<tr>
<td>Reg No:</td>
<td>
</td>
</tr>
<tr>
<td>First Name:</td>
<td>
</td>
</tr>
<tr>
<td>Last Name:</td>
<td>
</td>
</tr>
<tr>
<td>Gender:</td>
<td>
checked="checked" />Male
</td>
</tr>
<tr>
<td>Date Of Birth:</td>
<td>
<option>Year</option>
<?php
for($i=1985;$i<=2015;$i++){
echo"<option
value='$i'>$i</option>";
?>
</select>
<select name="mm">
<option>Month</option>
<?php
$mm=array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","
Oct","NOv","Dec");
$i=0;
foreach($mm as $mon){
$i++;
?>
</select>
<select name="dd">
<option>Date</option>
<?php
for($i=1;$i<=31;$i++){
?>
<option value="<?php echo $i; ?>">
<?php
if($i<10)
echo"0".$i;
else
echo"$i";
?>
</option>
<?php
}?>
</select>
</td>
</tr>
<tr>
<td>Place Of Brith:</td>
<td>
</td>
</tr>
<tr>
<td>Address:</td>
<td>
</td>
</tr>
<tr>
<td colspan="2">
id="button-in" />
</td>
</tr>
</table>
</div>
<div>
<tr>
<td>Phone:</td>
</tr>
<tr>
<td>E-mail:</td>
<tr>
<td>Note:</td>
rows="5"></textarea></td>
</tr>
<tr>
<td>Username:</td>
<td>
</td>
</tr>
<tr>
<td>Password:</td>
<td>
</tr>
</table>
</div>
</form>
<?php
?>
</body>
</html>
SCORE_ENTYR.PHP
<?php
$id="";
$opr="";
if(isset($_GET['opr']))
$opr=$_GET['opr'];
if(isset($_GET['rs_id']))
$id=$_GET['rs_id'];
if(isset($_POST['btn_sub'])){
$stu_name=$_POST['sudenttxt'];
$fa_name=$_POST['factxt'];
$sub_name=$_POST['subjecttxt'];
$miderm=$_POST['midermtxt'];
$final=$_POST['finaltxt'];
$note=$_POST['notetxt'];
$sql_ins=mysql_query("INSERT INTO stu_score_tbl
VALUES(
NULL,
'$stu_name',
'$fa_name' ,
'$sub_name',
'$miderm',
'$final',
'$note'
");
if($sql_ins==true)
else
$msg="Insert Error:".mysql_error();
//------------------uodate data----------
if(isset($_POST['btn_upd'])){
$stu_id=$_POST['sudenttxt'];
$faculties_id =$_POST['factxt'];
$sub_id=$_POST['subjecttxt'];
$miderm=$_POST['midermtxt'];
$final=$_POST['finaltxt'];
$note=$_POST['notetxt'];
stu_id='$stu_id' ,
faculties_id='$faculties_id' ,
sub_id='$sub_id' ,
miderm='$miderm' ,
final='$final' ,
note='$note'
WHERE ss_id=$id
");
if($sql_update==true)
header("location:?tag=view_scores");
else
$msg="Update Fail!...";
?>
<!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>
8" />
</head>
<body>
<?php
if($opr=="upd")
{
$sql_upd=mysql_query("SELECT * FROM stu_score_tbl
WHERE ss_id=$id");
$rs_upd=mysql_fetch_array($sql_upd);
?>
<div id="top_style">
<div id="top_style_text">
Scores Update
<div id="top_style_button">
<form method="post">
/></a>
</form>
<div id="style_informations">
<form method="post">
<div>
<tr>
<td>Students's Name</td>
<td>
<?php
while($row=mysql_fetch_array($student_name)){
if($row['stu_id']==$rs_upd['stu_id'])
$iselect="selected";
else
$iselect="";
?>
></option>
<?php
?>
</select>
</td>
</tr>
<tr>
<td>Facuties's Name</td>
<td>
<?php
$fac_name=mysql_query("SELECT * FROM
facuties_tbl");
while($row=mysql_fetch_array($fac_name)){
if($row['faculties_id']==$rs_upd['faculties_id'])
$iselect="selected";
else
$iselect="";
?>
<?php
?>
</select>
</td>
</tr>
<tr>
<td>Subjects's Name</td>
<td>
<?php
$subject=mysql_query("SELECT * FROM
sub_tbl");
while($row=mysql_fetch_array($subject)){
if($row['sub_id']==$rs_upd['sub_id'])
$iselect="selected";
else
$iselect="";
?>
<?php
?>
</select>
</td>
</tr>
<tr>
<td>Miderm</td>
<td>
</td>
</tr>
<tr>
<td>Final</td>
<td>
</td>
</tr>
<tr>
<td>Note</td>
<td>
$rs_upd['note'];?></textarea>
</td>
</tr>
<tr>
<td colspan="2">
</td>
</tr>
</table>
</div>
</form>
<?php
else
?>
<div id="top_style">
<div id="top_style_text">
Scores Entry
</div><!-- end of top_style_text-->
<div id="top_style_button">
<form method="post">
style="width:120px;" /></a>
</form>
<div id="style_informations">
<form method="post">
<div>
<tr>
<td>Students's Name</td>
<td>
<?php
while($row=mysql_fetch_array($student_name)){
?>
<?php
?>
</select>
</td>
</tr>
<tr>
<td>Facuties's Name</td>
<td>
<?php
$fac_name=mysql_query("SELECT * FROM
facuties_tbl");
while($row=mysql_fetch_array($fac_name)){
?>
echo $row['faculties_name'];?></option>
<?php
}
?>
</select>
</td>
</tr>
<tr>
<td>Subjects's Name</td>
<td>
<?php
$subject=mysql_query("SELECT * FROM
sub_tbl");
while($row=mysql_fetch_array($subject)){
?>
$row['sub_name'];?></option>
<?php
?>
</select>
</td>
</tr>
<tr>
<td>Miderm</td>
<td>
</td>
</tr>
<tr>
<td>Final</td>
<td>
</td>
</tr>
<tr>
<td>Note</td>
<td>
</td>
</tr>
<tr>
<td colspan="2">
<input type="reset" value="Cancel" id="button-in"/>
id="button-in" />
</td>
</tr>
</table>
</div>
</form>
<?php
?>
</body>
</html>
TEACHER.PHP
<?php
$msg="";
$opr="";
$id="";
if(isset($_GET['opr']))
$opr=$_GET['opr'];
if(isset($_GET['rs_id']))
$id=$_GET['rs_id'];
//--------------add data-----------------
if(isset($_POST['btn_sub'])){
$f_name=$_POST['fnametxt'];
$l_name=$_POST['lnametxt'];
$gender=$_POST['genderrdo'];
$dob=$_POST['yy']."/".$_POST['mm']."/".$_POST['dd'];
$pob=$_POST['pobtxt'];
$addr=$_POST['addrtxt'];
$degree=$_POST['degree'];
$salary=$_POST['slarytxt'];
$married=$_POST['marriedrdo'];
$phone=$_POST['phonetxt'];
$mail=$_POST['emailtxt'];
$note=$_POST['notetxt'];
VALUES(
NULL,
'$f_name',
'$l_name' ,
'$gender',
'$dob',
'$pob',
'$addr',
'$degree',
'$salary' ,
'$married',
'$phone',
'$mail',
'$note'
");
if($sql_ins==true)
else
$msg="Insert Error:".mysql_error();
//------------------uodate data----------
if(isset($_POST['btn_upd'])){
$f_name=$_POST['fnametxt'];
$l_name=$_POST['lnametxt'];
$gender=$_POST['genderrdo'];
$dob=$_POST['yy']."/".$_POST['mm']."/".$_POST['dd'];
$pob=$_POST['pobtxt'];
$addr=$_POST['addrtxt'];
$degree=$_POST['degree'];
$salary=$_POST['slarytxt'];
$married=$_POST['marriedrdo'];
$phone=$_POST['phonetxt'];
$mail=$_POST['emailtxt'];
$note=$_POST['notetxt'];
f_name='$f_name' ,
l_name='$l_name' ,
gender='$gender' ,
dob='$dob' ,
pob='$pob' ,
address='$addr' ,
degree='$degree' ,
salary='$salary' ,
married='$married' ,
phone='$phone' ,
email='$mail' ,
note='$note'
WHERE teacher_id=$id
");
if($sql_update==true)
header("location:?tag=view_teachers");
else
$msg="Update Fail!...";
?>
Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-
transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
8" />
<link rel="stylesheet" type="text/css" href="css/style_entry.css" />
</head>
<body>
<?php
if($opr=="upd")
teacher_id=$id");
$rs_upd=mysql_fetch_array($sql_upd);
list($y,$m,$d)=explode('-',$rs_upd['dob']);
?>
<div id="top_style">
<div id="top_style_text">
Teachers
Update</div>
<div id="top_style_button">
<form method="post">
style="width:70px;" /></a>
</form>
<form method="post">
<div>
<tr>
<td>First Name</td>
<td>
</td>
</tr>
<tr>
<td>Last Name</td>
<td>
<input type="text" name="lnametxt" id="textbox" value="<?
</td>
</tr>
<tr>
<td>Gender</td>
<td>
</td>
</tr>
<tr>
<td>Date Of Birth:</td>
<td>
<option>years</option>
<?php
$sel="";
for($i=1985;$i<=2015;$i++){
if($i==$y){
$sel="selected='selected'";}
else
$sel="";
</option>";
?>
</select>
<select name="mm">
<option>Month</option>
<?php
$sel="";
$mm=array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","
Oct","NOv","Dec");
$i=0;
foreach($mm as $mon){
$i++;
if($i==$m){
$sel=$sel="selected='selected'";}
else
$sel="";
?>
</select>
<select name="dd">
<option>Date</option>
<?php
$sel="";
for($i=1;$i<=31;$i++){
if($i==$d)
$sel="selected='selected'";
else
$sel="";
?>
<option value="<?php echo $i ;?>"<?php echo $sel ;?>>
<?php
if($i<10)
echo"0"."$i" ;
else
echo"$i";
?>
</option>
<?php
}?>
</select>
</td>
</tr>
<tr>
<td>Place Of Birth</td>
<td>
</td>
</tr>
<tr>
<td>Address</td>
<td>
$rs_upd['address'];?></textarea>
</td>
</tr>
<tr>
<td colspan="2">
id="button-in" />
</td>
</tr>
</table >
</div>
<div>
<tr>
<td>Degree</td>
<td>
$mm=array("Bachelor","Master","P.HD");
$i=0;
foreach($mm as $mon){
$i++;
if($mon==$rs_upd['degree'])
$iselect="selected";
else
$iselect="";
echo"<option
}
?>
</select>
</td>
</tr>
<tr>
<td>Salary</td>
<td>
</td>
</tr>
<tr>
<td>Married</td>
<td>
<input type="radio" name="marriedrdo" value="Yes"<?php
</td>
</tr>
<tr>
<td>Phone</td>
<td>
</td>
</tr>
<tr>
<td>E-mail</td>
<td>
</td>
</tr>
<tr>
<td>Note</td>
<td>
$rs_upd['note'];?></textarea>
</td>
</tr>
</table>
</div>
</form>
<?php
else
?>
<div id="top_style">
<div id="top_style_text">
Teachers Entry
</div>
<div id="top_style_button">
<form method="post">
</form>
<div id="style_informations">
<form method="post">
<div>
<tr>
<td>First Name</td>
<td>
</td>
</tr>
<tr>
<td>Last Name</td>
<td>
</td>
</tr>
<tr>
<td>Gender</td>
<td>
<input type="radio" name="genderrdo" value="Male"
checked="checked"/>Male
</td>
</tr>
<td>Date Of Birth</td>
<td>
<option>Year</option>
<?php
for($i=1985;$i<=2015;$i++){
echo"<option
value='$i'>$i</option>";
?>
</select>
<option>Month</option>
<?php
$mm=array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","
Oct","NOv","Dec");
$i=0;
foreach($mm as $mon){
$i++;
?>
</select>
-
<select name="dd" style="height:25px;">
<option>Date</option>
<?php
for($i=1;$i<=31;$i++){
?>
<?php
if($i<10)
echo"0".$i;
else
echo"$i";
?>
</option>
<?php
}?>
</select>
</td>
</tr>
<tr>
<td>Place Of Birth</td>
<td>
</td>
</tr>
<tr>
<td>Address</td>
<td>
</td>
</tr>
<tr>
<td colspan="2">
id="button-in" />
</td>
</tr>
</table >
</div>
<div>
<tr>
<td>Degree</td>
<td>
<?php
$mm=array("Bachelor","Master","P.HD");
$i=0;
foreach($mm as $mon){
$i++;
echo"<option
value='$mon'> $mon</option>";
?>
</select>
</td>
</tr>
<tr>
<td>Salary</td>
<td>
</td>
</tr>
<tr>
<td>Married</td>
<td>
checked="checked"/>Yes
</td>
</tr>
<tr>
<td>Phone</td>
<td>
</td>
</tr>
<tr>
<td>E-mail</td>
<td>
</td>
</tr>
<tr>
<td>Note</td>
<td>
</td>
</tr>
</table>
</div>
</form>
<?php
?>
</body>
</html>
SUBJECT_ENTRY.PHP
<?php
$id="";
$opr="";
if(isset($_GET['opr']))
$opr=$_GET['opr'];
if(isset($_GET['rs_id']))
$id=$_GET['rs_id'];
if(isset($_POST['btn_sub'])){
$fa_name=$_POST['factxt'];
$teach_name=$_POST['techtxt'];
$semester=$_POST['semestertxt'];
$sub_name=$_POST['subtxt'];
$note=$_POST['notetxt'];
VALUES(
NULL,
'$fa_name',
'$teach_name' ,
'$semester',
'$sub_name' ,
'$note'
");
if($sql_ins==true)
else
$msg="Insert Error:".mysqli_error();
//------------------uodate data----------
if(isset($_POST['btn_upd'])){
$fac_id=$_POST['factxt'];
$tea_id=$_POST['techtxt'];
$semester=$_POST['semestertxt'];
$sub_name=$_POST['subtxt'];
$note=$_POST['notetxt'];
$sql_update=mysqli_query($db,"UPDATE sub_tbl SET
faculties_id='$fac_id' ,
teacher_id='$tea_id' ,
semester='$semester' ,
sub_name='$sub_name' ,
note='$note'
WHERE sub_id=$id
");
if($sql_update==true)
header("location:?tag=view_subjects");
else
$msg="Update Fail!...";
?>
<!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>
8" />
</head>
<body>
<?php
if($opr=="upd")
sub_id=$id");
$rs_upd=mysqli_fetch_array($sql_upd);
?>
<div id="top_style">
<div id="top_style_text">
Subjects Entry
<div id="top_style_button">
<form method="post">
style="width:70px;" /></a>
</form>
<div id="style_informations">
<form method="post">
<div>
<tr>
<td>Facuties's Name</td>
<td>
<?php
$fac_name=mysqli_query($db,"SELECT * FROM
facuties_tbl");
while($row=mysqli_fetch_array($fac_name)){
if($row['faculties_id']==$rs_upd['faculties_id'])
$iselect="selected";
else
$iselect="";
?>
<?php
?>
</select>
</td>
</tr>
<tr>
<td>Teacher's Name</td>
<td>
<?php
$te_name=mysqli_query($db,"SELECT * FROM
teacher_tbl");
while($row=mysqli_fetch_array($te_name)){
if($row['teacher_id']==$rs_upd['teacher_id'])
$iselect="selected";
else
$iselect="";
?>
$row['l_name'];?></option>
<?php
?>
</select>
</td>
</tr>
<tr>
<td>Semester</td>
<td>
<input type="text" name="semestertxt" id="textbox" value="<?
</td>
</tr>
<tr>
<td>Subjects's name</td>
<td>
</td>
</tr>
<tr>
<td>Note</td>
<td>
<textarea name="notetxt" cols="23" rows="3"><?php echo
$rs_upd['note'];?></textarea>
</td>
</tr>
<tr>
<td colspan="2">
id="button-in" />
</td>
</tr>
</table>
</div>
</form>
</div><!-- end of style_informatios -->
<?php
else
?>
<div id="top_style">
<div id="top_style_text">
Subjects Entry
<form method="post">
<div>
<tr>
<td>Facuties's Name</td>
<td>
<?php
$fac_name=mysqli_query($db,"SELECT * FROM
facuties_tbl");
while($row=mysqli_fetch_array($fac_name)){
?>
echo $row['faculties_name'];?></option>
<?php
?>
</select>
</td>
</tr>
<tr>
<td>Teacher's Name</td>
<td>
<?php
$te_name=mysqli_query($db,"SELECT * FROM
teacher_tbl");
while($row=mysqli_fetch_array($te_name)){
?>
<?php
?>
</select>
</td>
</tr>
<tr>
<td>Semester</td>
<td>
<input type="text" name="semestertxt" id="textbox" />
</td>
</tr>
<tr>
<td>Subjects's name</td>
<td>
</td>
</tr>
<tr>
<td>Note</td>
<td>
</td>
</tr>
<tr>
<td colspan="2">
id="button-in" />
</td>
</tr>
</table>
</div>
</form>
?>
</body>
</html>
FACULTIES.PHP
<?php
$id="";
$opr="";
if(isset($_GET['opr']))
$opr=$_GET['opr'];
if(isset($_GET['rs_id']))
$id=$_GET['rs_id'];
if(isset($_POST['btn_sub'])){
$facuties_name=$_POST['fnametxt'];
$note=$_POST['notetxt'];
VALUES(
NULL,
'$facuties_name',
'$note'
");
if($sql_ins==true)
else
$msg="Insert Error:".mysql_error();
//------------------uodate data----------
if(isset($_POST['btn_upd'])){
$fac_name=$_POST['fnametxt'];
$note=$_POST['notetxt'];
faculties_name='$fac_name',
note='$note'
WHERE
faculties_id=$id
");
if($sql_update==true)
header("location:?tag=view_faculties");
else
$msg="Update Fail".mysql_error();
?>
Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-
transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
8" />
</head>
<body>
<?php
if($opr=="upd")
faculties_id=$id");
$rs_upd=mysql_fetch_array($sql_upd);
?>
<div id="top_style">
<div id="top_style_text">
Faculties Update
</div><!-- end of top_style_text-->
<div id="top_style_button">
<form method="post">
</form>
<div id="style_informations">
<form method="post">
<div>
<td>Faculties's Name</td>
<td>
</td>
</tr>
<tr>
<td>Note</td>
<td>
$rs_upd['note'];?></textarea>
</td>
</tr>
<tr>
<td colspan="2">
id="button-in" />
</td>
</tr>
</table>
</div>
</form>
else
?>
<div id="top_style">
<div id="top_style_text">
Faculties Entry
<div id="top_style_button">
<form method="post">
</form>
</div><!-- end of top_style_button-->
<div id="style_informations">
<form method="post">
<div>
<tr>
<td>Faculties's Name</td>
<td>
</td>
</tr>
<tr>
<td>Note</td>
<td>
</td>
</tr>
<tr>
<td colspan="2">
id="button-in" />
</td>
</tr>
</table>
</div>
</form>
<?php
?>
</body>
</html>
CONNECTION.PHP
<?php
$host = "localhost";
$user = "root";
$pass = "";
$dbname = "assignment";
//session_start();
to database server");
database name");
$docRoot = $_SERVER['DOCUMENT_ROOT'];
$thisFile);
define('WEB_ROOT', $webRoot);
define('SRV_ROOT', $srvRoot);
define('PRODUCT_IMAGE_DIR', 'employer_images/');
define('LIMIT_PRODUCT_WIDTH', true);
define('MAX_PRODUCT_IMAGE_WIDTH', 180);
define('THUMBNAIL_WIDTH', 180);
if (!get_magic_quotes_gpc())
if (isset($_POST))
$_POST[$key] = trim(addslashes($value));
if (isset($_GET))
$_GET[$key] = trim(addslashes($value));
?>
Login screen(index.php)
Welcome screen (everyone.php included home.php)
VIEW ASSIGNMENT
STUDENT ENTRY
SCORE_ENTRY
VIEW_ASSIGNMENT
STUDENT LOGIN
STUDENT HOME SCREEN
FILE ENTRY