Вы находитесь на странице: 1из 61

Parishkar College of Global Excellence

Manasarovar, Jaipur
(Affiliated to the University of Rajasthan)

(DEPARTMENT OF COMPUTER SCIENCE)

Project Report On

“ONLINE EXAMINATION PORTAL”

Our Team

Name: Manasvi Pareek Name: Lokesh Meena Name: Lalit Sain


Enroll no.:14/7671 Enroll no.:14/7650 Enroll no.: 14/
Degree for which Submitted: BCA- Degree for which Submitted: Degree for which Submitted:
III BCA-III BCA-III
Project Title: ONLINE Project Title: ONLINE EXAM Project Title: ONLINE EXAM
EXAM PORTAL PORTAL PORTAL
Session: 2014-2017 Session: 2014-2017 Session: 2014-2017

Submitted for the partial fulfillment or requirement for the award of BCA-III Degree (2014-17)

Submitted to:

Dr. Sachin Bajaj

HOD

Department of Computer science

Parishkar College of global excellence, Jaipur

(Rajasthan University)

Project Report – ONLINE EXAM PORTAL Page 1


UNDERTAKING
I declare that the work presented in this Project Report
titled "ONLINE EXAM PORTAL", submitted to Rajasthan
University, Jaipur, for the award of the Bachelor of Computer
Application degree is my original work. I have not plagiarized or
submitted the same work for the award of any other degree.
I further declare that neither I nor the Institution to which I
belong hold claim on the result of the project work and
acknowledge that all Intellectual Properties rights arising out of
the project shall be the property of Parishkar College of global
excellence, Jaipur.
October, 13, 2016
Jaipur
_________________________________
(Manasvi Pareek, Lokesh Meena, Lalit Sain)

Project Report – ONLINE EXAM PORTAL Page 2


ACKNOWLEDGEMENTS
I am deeply indebted to Parishkar College of global excellence for giving me
an opportunity to work on Project “ONLINE EXAM PORTAL” and also for
their invaluable guidance and patience with me.
I record my deep regards and gratitude to my project leader, Mr.
Pramod Choudhary for his kind guidance and invaluable suggestion
throughout the project. While preparing this report on my project on
“ONLINE EXAM PORTAL” bestowed his special interest and always favored
me by providing his invaluable time and advice. Without his encouragement
and constant guidance, I could not able to complete this project in its
present form.
I profusely thank Dr. Sachin Bajaj, Parishkar college of global excellence for
providing me all the facilities and the very best technical and support
infrastructure to carry on my work.
I would like to extend my sincere gratitude towards Dr. Sachin Bajaj for
guiding me throughout the project and being an unfailing source of
encouragement, and he unveiled to me different ways to approach a
software problem, and the need to be persistent to accomplish and goal.
I would like to thank the entire Parishkar college faculty who extended help
directly or indirectly during our training period. And last but not the least I
would like to thanks all our BCA-III friends for their continuous support and
cooperation, special acknowledgments are placed on record for their love
and care given to me throughout our BCA-III curriculum, which I shall never
forget.

Manasvi Pareek
Lokesh Meena
Lalit Sain

Project Report – ONLINE EXAM PORTAL Page 3


INDEX

Sr No. Topic Page no.

1 Introduction to Project…………………………………………………… 5–6

2 Objective and Scope of the Project…………………………………. 7–8

3 Technical Details………………………………………………………….... 9

4 Software Development Life Cycle…………………………………… 10 – 11

5 System Analysis & Design User Requirements………………… 12 -

6 Data Flow Diagram………………………………………………………….

7 Entity Relationship Diagram……………………………………………

8 Feasibility Analysis………………………………………………………....

9 System Implementation………………………………………………….

10 Software Testing…………………………………………………………....

11 Project Code……………………………………………………………………

12 Conclusion…………………………………………………………………......

Project Report – ONLINE EXAM PORTAL Page 4


1. Introduction to Project
Online exam portal is an application which is helpful for students as well as the school
authorities. In the current system all the activities are done manually. It is very time
consuming and costly. Our exam portal deals with the various activities related to the
Student.

There are mainly 3 modules in this application

1. Admin Module
2. Faculty Module
3. Student Module

There are three types of user in this application.

1. Admin
2. Faculty
3. Student

Admin can perform following tasks:

1. Create new user.


2. Edit and Delete existing user.
3. Import student data from Excel sheet.
4. View various reports.
5. View/Edit existing students.
6. Change Password.
7. Logout

User can perform following tasks:

1. View student reports.


2. Upload notes
3. Reply of student’s queries
4. Create and start session exams
5. Upload answers.
6. View logged-in students.
7. Logout

Project Report – ONLINE EXAM PORTAL Page 5


User can perform following tasks:

1. Give exam
2. Edit profile
3. Give various types of exams
4. See progress report
5. Chat with teacher
6. Logout.

Project Report – ONLINE EXAM PORTAL Page 6


2. Objective and Scope of the Project
Compatible with: - The software will be compatible with Mozilla Firefox, Internet
Explorer and Chrome. This means the favorites created by user will be able to read by
Mozilla Firefox, Internet Explorer and Chrome without losing information and vice-versa.

Intuitive: - The software will be easy to use. The user interfaces will carefully design to
make tasks can be done in the least efforts and intuitively.

Lightweight: - The program must be small. Therefore, only useful stuff (not fancy) will
be included to avoid overhead.

Useful: - The software will be so good that users will be able to search anything related
to subject at one click.

Hierarchical Structure: - It will provide you a hierarchical structure to get information


according to given search criteria.

ONLINE EXAM PORTAL is a complete system that provides facilities to fulfill all the
requirements related to any online exam portal with high level securities.

Present Scope: - ONLINE EXAM PORTAL is a complete system that provides facilities to
fulfill all the requirements related to any online exam portal with high level securities.
Using this application, faculty can record all information of each student’s progress in
exams. Admin can Add/Edit/Delete user and students. There are various report views
which are based on different criteria.

The main role of Admin would be:

 Create/Edit/Delete Student
 Create/Edit/Delete Faculty
 Import Bulk data into System
 View Date Wise reports
 View Student Wise reports
 View Class Wise reports
 Change Password

Project Report – ONLINE EXAM PORTAL Page 7


The main role of faculty would be:

 Schedule session exam


 Can generate student report
 Can generate result
 Can reply of student’s questions
 Can chat with student
 Can upload notes
 Broadcast student related information

The main role of student would be:

 Give exam
 Give exam according his interest(individual)
 Chat with teacher
 Give session exam
 Read and download notes
 View his/her progress

Future Scope: -

 Student of other stream can also be added.


 Make it more commercial look of website.
 More type of reports can be generated.
 Charts and pagination can be added.
 Can be online for worldwide students.

Project Report – ONLINE EXAM PORTAL Page 8


3. Technical details
1. Hardware details:
It is recommended that the minimum configuration for clients is as
appended below: -

Suggested configuration of windows clients: -

 Microprocessor : Pantium-4 class processor, 2.1 GHz


 RAM : 256 MB
 Hard Disk : 10 GB
2. Software details:
 Front End : HTML with CSS
 Operating System : Windows XP/ Windows 7,8,8.1,10
 Back End : PHP, SQL
 Server : MYSQL

Project Report – ONLINE EXAM PORTAL Page 9


4. Software development life cycle
Introduction to SDLC

Software Development, a process consisting of two major steps of System Analysis and
design, starts when Management or sometimes systems development personnel realize
that a particular business system needs improvement.

The Software Development Life Cycle (SDLC) method is thought of as the set of activities
that analysts, designers and users carry out to develop and implement an information
system. The Software Development Life Cycle method consists of the following
activities:

1. Preliminary investigation, which comprises of Feasibility Study.


2. Determination of System Requirements.
3. Software Design.
4. Software Testing
5. Implementation.

SDLC Models

The following 4 Software Development Life Cycle (SDLC) is used:

Prototyping Model Waterfall Model

Incremental Model Evolutionary Model

Our Project Need:

According to our project requirements, we are going to use the Waterfall Model to
develop our software. Through this model we would be able to produce well-
documented maintainable software in manner that is very predictable and easy to
understand. We are using this model because it reinforces the notion of “Define before
Design” and “Design before Code” making it systematic approach.

Project Report – ONLINE EXAM PORTAL Page 10


Waterfall Model

This is the most familiar model and consists of five phases given below-

 Requirement Analysis and Specification


 Design
 Implementation and Unit Testing
 Operation and Maintenance

The phases always occur in this order and sequence. They must not overlap with one
another. The developer must complete each phase before starting with the next one. It
is called Waterfall model because its diagrammatic representation is similar to cascades
of waterfall.

Waterfall Model

Project Report – ONLINE EXAM PORTAL Page 11


5. System Analysis & Design User
Requirements
1. Requirement Analysis:

System Planning

The following Gantt chart shows a detailed description of the system planning we did:

System Requirement Specification (SRS):

Introduction

Purpose of the document: System Requirement Specification (SRS) is a document that completely
describe what the proposed system should so without describing how will do it. SRS describes the
complete external behavior of the proposed system. SRS provide that basis for detailed design and
construction.

The purpose of this document is to describe the external requirements. It includes both the user
requirements and a detailed specification of the product. It also aims at providing the user with an
overview of end product specifying the constraints an interfaces of the system. The document saves as a
reference tool for the users and system administrator.

Project Report – ONLINE EXAM PORTAL Page 12


Definations, Acronyms and Abbreviations:

GUI – Graphical User Interface.

Hardware- Physical component of a computer system.

Eg. Monitor, Keyboard, Memory etc.

Software – Set of instructions, data and related documents to perform a sprcified task.

Operating System – System software that is an interface between the user and computer hardware.

Database- It is a collection of voluminous and related information about a product.

PHP – PHP is a server side scripting language that is embedded in HTML. It is used to manage dynamic
content, databases, session tracking, even build entire e-commerce sites.

SQL – SQL is a structured query language. It is used to store large database.

Hyperlink – It is a string that appears in different colors from the rest of the text. When a mouse pointer
is over a hyperlink, the browser requests and displays another document. You must specify the URL of
the hyper Linked destination.

Textboxes – This control displays text that is entered by the administrator.

Message Boxes- This control displays the appropriate message.

Web Browser- It is an interface to access information from internet.

Password- A valid string that authenticates the database administrator.

Admin-id- A unique identifiers used by the administrator to log on to the database.

Overview (Interfaces):

Our project basically includes information about the following:

User Interface- Admin and user can log into application using login screen.

Admin- It is used for admin task like upload student bulk data, create user, edit/delete student and user
etc.

User- User interace provide all user related facility like Student Attendance, show reports etc.

Project Report – ONLINE EXAM PORTAL Page 13


Existing System:

System Analysis is a detailed study of the various operations performed by a system and their
relationships within and outside of the system. Here the key question is- What all problems exist in the
present system? What must be done to solve the problem?

Analysis begins when a user or manager begins a study of the program using existing system. During
analysis, data collected on the various files, decision points and transactions handled by the present
system. The commonly used tools in the system are Data Flow Diagram, interviews, etc. Training,
experience and common sense are required for collection of relevant information needed to develop
the system. The success of the system depends largely on how clearly the problem is defined,
thoroughly investigated and properly carried out through the choice of solution. A good analysis model
should provide not only the mechanisms of problem understanding but also the frame work of the
solution. Thus it should be studied thoroughly by collecting data about the system. Then the proposed
system should be analyzed thoroughly in accordance with the needs.

System analysis can be categorized into four parts.

1. System planning and initial investigation


2. Information Gathering Applying analysis tools for structured analysis
3. Feasibility study
4. Cost/ Benefit analysis.

In the current system we need to keep a number of records related to the student and want to enter the
details of the student and their attendance manually. This is time consuming and has much cost.

Proposed System:

In our proposed system we have the provision for marking of student by user only through entering
their unique id no and name, it helps to reduce the tedious task of manual entries. Another advantage of
the system is that it is very easy to edit the details of the student and delete a student when it found
unnecessary. The attendance reports of the students can be seen easily.

Our proposed system has several advantages

1. User friendly interface


2. Fast access to database
3. Less error
4. More Storage Capacity
5. Search facility

All the manual difficulties in managing the student details in college have been rectified by
implementing computerization.

Project Report – ONLINE EXAM PORTAL Page 14


6. Data flow diagram
Design Methodology Used

Data flow diagrams are used to depict the design of the system. Data flow diagrams (DFD) are one of
the three essential prespectives of SSADM. The sponsor of a project and the end users will need to be
briefed and consulted throughout all stages of a system evolution. With a dataflow diagram, uers are
able to visualize how the system will operate, what the system will accomplish and how the system will
be impletemted. Dataflow diagram can be used to provide the end user with a physical idea of where
the data they input ultimately has an effect upon the structure of the whole system from order to
dispatch to restock how any system is developed can be determined through a DFD.

Compoents of DFD

A data flow diagram illustrates the processes, data stores, and external entities in a business or other
system and the connecting data flows. The four components of a data flow diagram:

Context Diagram

A data flow diagram (DFD) is a graphical representation of the “Flow” of data through an information
system. A DFD can also be used for the visualization of data processing (structure design). It is common
practice for a designer to draw a context-level DFD first which shows the interaction between the
system and outside entities. This contextlevel DFD is then “exploded” to show more detail of the system
being modeled first level.

Project Report – ONLINE EXAM PORTAL Page 15


Project Report – ONLINE EXAM PORTAL Page 16
Project Report – ONLINE EXAM PORTAL Page 17
7. Entity Relationship Diagram

Project Report – ONLINE EXAM PORTAL Page 18


8. Feasibility analysis
Whatever we think need not be feasible. It is wise to think about the feasibility of any problem we
undertake. Feasibility is the study of impact, which happens in the organization by the development of a
system. The impact can be either positive or negative. When the positives nominate the negatives, then
the system is considered feasible. Here the feasibility study can be performed in two ways such as
technical feasibility and Economical Feasibility.

Technical Feasibility:

We can strongly say that it is technically feasible, since there will not be much difficulty in getting
required resources for the development and maintaining the system as well. All the resources needed
for the development of the software as well as the maintenance of the same is available in the
organization here we are utilizing the resources which are already available.

Economic Feasibility

Development of this application is highly economically feasible. The organization needed not spend
much money for the development of the system already available. The only thing is to be done is making
an environment for the development with an effective supervision. If we are doing so, we can attain the
maximum usability of the corresponding resources. Even after the development, the organization will
not be in condition to invest more in the organization. Therefore, the system is economically feasible.

Project Report – ONLINE EXAM PORTAL Page 19


9. System Implementation
Implementation is the stage in the project where the theoretical design is turned into a working system.
The implementation phase constructs, installs and operates the new system. The most crucial stage in
achieving a new successful system is that it will work efficiently and effectively. There are several
activities involved while implementing a new project.

They are: -

1. End user training

2. End user Education

3. Training on the application software

4. System Design

5. Parallel Run and to New System

6. Post implementation Review

End user Training: The successful implementation of the new system will purely upon the involvement
of the officers working in that department. The officers will be imparted the necessary training on the
new technology

End User Education: The education of the end user start after the implementation and testing is over.
When the system is found to be more difficult to understand and complex, more effort is put to educate
the end used to make them aware of the system, giving them lectures about the new system and
providing them necessary documents and materials about how the system can do this.

Training of application software: After providing the necessary basic training on the computer
awareness, the users will have to be trained upon the new system such as the screen flows and screen
design type of help on the screen, type of errors while entering the data, the corresponding validation
check at each entry and the way to correct the data entered. It should then cover information needed
by the specific user or group to use the system.

Post Implementation View: The department is planning a method to know the states of the past
implementation process. For that regular meeting will be arranged by the concerned officers about the
implementation problem and success.

Project Report – ONLINE EXAM PORTAL Page 20


10. Software Testing
Is the menu bar displayed in the appropriate contested some system related features included either in
menus or tools? Do pull –Down menu operation and Tool-bars work properly? Are all menu function and
pull down sub function properly listed? Is it possible to invoke each menu function using a logical
assumption that if all parts of the system are? correct, the goal will be successfully achieved.? In
adequate testing or non-testing will leads to errors that may appear few months later.

This create two problem 1. Time delay between the cause and appearance of the problem. 2. The effect
of the system errors on files and records within the system

The purpose of the system testing is to consider all the likely variations to which it will be suggested and
push the systems to limits. The testing process focuses on the logical intervals of the software ensuring
that all statements have been tested and on functional interval is conducting tests to uncover errors and
ensure that defined input will produce actual results that agree with the required results.

Program level testing, modules level testing integrated and carried out. There are two major type of
testing they are 1) White Box Testing. 2) Black Box Testing.

White Box Testing

White box sometimes called “Glass box testing” is a test case design uses the control structure of the
procedural design to drive test case. Using white box testing methods, the following tests were made on
the system

a) All independent paths within a module have been exercised once. In our system, ensuring that case
was selected and executed checked all case structures. The bugs that were prevailing in some part of the
code where fixed b) All logical decisions were checked for the truth and falsity of the values.

Black box Testing

Black box testing focuses on the functional requirements of the software. This is black box testing
enables the software engineering to derive a set of input conditions that will fully exercise all functional
requirements for a program. Black box testing is not an alternative to white box testing rather it is
complementary approach that is likely to uncover a different class of errors that white box methods like.

1) Interface errors

2) Performance in data structure

3) Performance errors

4) Initializing and termination errors

Project Report – ONLINE EXAM PORTAL Page 21


User Acceptance Testing:

User acceptance of the system is a key factor for success of any system. The system under consideration
is tested for user acceptance by constantly keeping in touch with prospective system and user at the
time of developing and making changes whenever required.

Project Report – ONLINE EXAM PORTAL Page 22


11. Project Code

Project Report – ONLINE EXAM PORTAL Page 23


1. Index.php
<?php session_start();

include("connection.php");

if(isset($_POST["Login"]) && $_POST["Login"]!="" )

$name = $_POST["uname"];

$upass= $_POST["upass"];

$user_type= $_POST["user_type"];

if( $name && $upass && $user_type !="")

$fetch="select count(user_name) from users where user_name='$name' || college_id='$name'";

$fetch_query=mysql_query($fetch);

$fetch_result=mysql_fetch_array($fetch_query);

if( $fetch_result[0]> 0)

$fetch="select count(user_name),college_id,user_type from users where (user_name='$name'


|| college_id='$name') && user_pass='$upass' && user_type='$user_type'";

$fetch_query=mysql_query($fetch);

$fetch_result=mysql_fetch_array($fetch_query);

if( $fetch_result[0]> 0)

if($fetch_result[2] == admin)

Project Report – ONLINE EXAM PORTAL Page 24


$_SESSION["admin"]=$fetch_result[1];

header("location:admin/index.php");

else if($fetch_result[2] == faculty)

$_SESSION["faculty"]=$fetch_result[1];

header("location:faculty/index.php");

else

$_SESSION["student"]=$fetch_result[1];

$cookiename ="testexpiry";

if(!isset($_COOKIE[$cookiename]))

$cookievalue = date("H:i:s");

setcookie($cookiename, $cookievalue, time() + (300), "/");

header("location:students/index.php");

?>

<!DOCTYPE html>

Project Report – ONLINE EXAM PORTAL Page 25


<html lang="en">

<head>

<title>Online Exam Portal</title>

<link rel="shortcut icon" href="images/favicon.ico" type="image/x-icon">

<link rel="icon" href="images/favicon.ico" type="image/x-icon">

<meta charset="utf-8">

<meta name="viewport" content="width=device-width, initial-scale=1">

<link rel="stylesheet" href="css/bootstrap.min.css">

<link rel="stylesheet" href="css/index.css">

<script src="js/jquery.min.js"></script>

<script src="js/bootstrap.min.js"></script>

<link href="font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">

</head>

<body class="body" >

<div class="container-fixed">

<div class="row">

<div class="col-xs-12 col-sm-4 col-md-4 col-lg-4 form animated shake">

Project Report – ONLINE EXAM PORTAL Page 26


<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 form_header">

<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12" style="text-align:center;">

<img src="images/parishkar.png" class="img"/>

</div>

<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">

ONLINE TEST PORTAL

</div>

</div>

<form method="post">

<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12" style="margin:10px !important;font-size:17px;">

Username/College ID

</div>

<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">

<i class="fa fa-user fa-fw namerror" style="margin:5px !important;font-size:22px;"></i>

<input type="text" autofocus autocomplete="off" name="uname" id="uname" maxlength="25"

value="<?php echo (isset($_POST["uname"]) &&


trim($_POST["uname"])!="")?$_POST["uname"]:"";?>" />

Project Report – ONLINE EXAM PORTAL Page 27


<br>

<?php

if(isset($_POST["uname"]) && trim($_POST["uname"])== "")

echo"<style> .namerror{color:#DC8F02;} </style>";

echo "<span style='color:red;'>Username/College ID is required</span><br>";

if(isset($_POST["uname"]) && trim($_POST["uname"])!="")

$detail=$_POST["uname"];

$fetch="select count(user_name) from users where user_name='$name' || college_id='$name'";

$fetch_query=mysql_query($fetch);

$fetch_result=mysql_fetch_array($fetch_query);

if( $fetch_result[0] == 0)

echo"<style> .namerror{color:#E16565 !important;} </style>";

echo "<span style='color:#E20000'> Invalid Username/College ID</span><br>";

else

echo"<style> .namerror{color:#2288AF !important;} </style>";

?>

Project Report – ONLINE EXAM PORTAL Page 28


</div>

<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12" style="margin:10px !important;font-size:17px;">

Password

</div>

<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12" >

<i class="fa fa-lock fa-fw error" style="margin:5px !important;font-size:22px;"></i>

<input type="password" name="upass" id="upass" maxlength="20"/><br>

<?php

if(isset($_POST["upass"]) && trim($_POST["upass"])== "")

echo"<style> .error{color:#DC8F02;} </style>";

echo "<span style='color:red;'>Password is required</span><br>";

?>

<?php

if(isset($_POST["uname"]) && trim($_POST["uname"]) != "" && isset($_POST["upass"]) &&


trim($_POST["upass"]) !="")

$uname=$_POST["uname"];

$upass=$_POST["upass"];

$fetch="select count(user_name) from users where (user_name='$uname' ||


college_id='$uname') && user_pass='$upass'";

$fetch_query=mysql_query($fetch);

Project Report – ONLINE EXAM PORTAL Page 29


$fetch_result=mysql_fetch_array($fetch_query);

if( $fetch_result[0] == 0)

echo"<style> .error{color:#E16565 !important;} </style>";

echo "<span style='color:#E20000;'> Invalid password </span><br>";

?>

</div>

<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12" style="margin:10px !important;font-size:17px;">

Login as

</div>

<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12" >

<select name="user_type" style="font-size:17px;padding:7px 44px;margin-left:30px;">

<option value="student" selected="selected"> Student </option>

<option value="faculty" > Faculty </option>

<option value="admin" > Admin </option>

</select>

<?php

if(isset($_POST["uname"]) && trim($_POST["uname"]) != "" && isset($_POST["user_type"]) &&


trim($_POST["user_type"]) !="")

$uname=$_POST["uname"];

Project Report – ONLINE EXAM PORTAL Page 30


$user_type=$_POST["user_type"];

$fetch="select count(user_name) from users where (user_name='$uname' ||


college_id='$uname') && user_type='$user_type'";

$fetch_query=mysql_query($fetch);

$fetch_result=mysql_fetch_array($fetch_query);

if( $fetch_result[0] == 0)

echo "<br><span style='color:red;'>No user found</span><br>";

?>

</div>

<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12" style="margin:5px !important;text-align:center


!important;">

<input type="submit" name="Login" value="Login" id="Login"/>

</div>

</form>

</div>

</div><br><br>

<div class="footer" style="text-align:center;font-weight:bold;font-size:11px">&copy; Copyrights


<?php echo date('Y');?><br>

visit <a href="#">www.parishkar.org</a> for more details.

</div>

</div>

</body>

Project Report – ONLINE EXAM PORTAL Page 31


</html>

2. Includes.html
<!DOCTYPE>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Online Exam Portal</title>
<link rel="shortcut icon" href="..images/favicon.ico" type="image/x-icon">
<link rel="icon" href="../images/favicon.ico" type="image/x-icon">
<link rel="stylesheet" href="../css/bootstrap.min.css">
<link rel="stylesheet" href="../css/account_page.css">
<link rel="stylesheet" href="../tests/stylesheet.css">

<link href="../font-awesome/css/font-awesome.min.css" rel="stylesheet"


type="text/css">
<script src="../js/jquery.min.js"></script>
<script src="../js/bootstrap.min.js"></script>
<script type="text/javascript" src="../js/jquery.js"></script>
<script type="text/javascript" src="../js/jquery-1.12.0.min.js"></script>
<script type="text/javascript" src="../js/jquery.form.min.js"></script>
<script type="text/javascript" src="../js/canvasjs.min.js"></script>

<script type="text/javascript" src="../js/jquery.bootpag.min.js"></script>


<script type="text/javascript" src="../js/jquery.bootpage.min.js"></script>

<script type="text/javascript">
$(document).ready(function(){

$('#uploadForm').submit(function(e) {
if( !$('#userImage').val())

Project Report – ONLINE EXAM PORTAL Page 32


{
$('#loader-icon').show();
$("#loader-icon").html("<br><i class='fa fa-
warning'style='color:#E4AB0A'></i> Select an Image to Upload.");
return false
}
var ftype = $('#userImage')[0].files[0].type; // get file type
switch(ftype)
{
case 'image/png': case 'image/gif': case 'image/jpeg': case
'image/pjpeg':
break;
default:
$("#loader-icon").html("<br><i class='fa fa-
warning'style='color:#E4AB0A'></i> Unsupported file type !");
return false
}
if($('#userImage').val()) {

e.preventDefault();
$('#loader-icon').show();
$(this).ajaxSubmit({
target:'.targetLayer',
success:function (){
$('#loader-icon').hide();
},
resetForm: true
});
return false;
}
});
$('#sessionform').submit(function(e) {

Project Report – ONLINE EXAM PORTAL Page 33


$("#sessiondiv").html("<br><center><img
src='../images/loader.gif'/></center>");

e.preventDefault();
$(this).ajaxSubmit({
target: '#sessiondiv',
success:function (){
$("#sessiondiv").html();
},
resetForm: true
});
return false;

});

$('#randomtst').submit(function(e){
$("#testdiv").html("<img src='../images/loader.gif'/>");

e.preventDefault();
$(this).ajaxSubmit({
target: '#testdiv',
success:function (){
$("#testdiv").html();
},
resetForm: true
});
return false;

});
$('#manualtst').submit(function(e){
Project Report – ONLINE EXAM PORTAL Page 34
$("#manualtestdiv").html("<img src='../images/loader.gif'/>");
if( !$('#questionfile').val())
{
$("#manualtestdiv").html("<br><i class='fa fa-
warning'style='color:#E4AB0A'></i> Select a File containing questions.");
return false
}
var filtype = $('#questionfile')[0].files[0].type; // get file type
switch(filtype)
{
case 'application/vnd.ms-excel':
break;
default:
$("#manualtestdiv").html("<br><i class='fa fa-
warning'style='color:#E4AB0A'></i> Unsupported file type !");
return false
}
if($('#questionfile').val()) {
e.preventDefault();
$(this).ajaxSubmit({
target: '#manualtestdiv',
success:function (){
$("#manualtestdiv").html();
},
resetForm: true
});
return false;
}
});
$('#uploadsheet').submit(function(e) {
if( !$('#userfile').val())
{

Project Report – ONLINE EXAM PORTAL Page 35


$("#sheetlayer").html("<i class='fa fa-
warning'style='color:#E4AB0A'></i> Select a File to Upload.");
return false
}
var ftype = $('#userfile')[0].files[0].type; // get file type
switch(ftype)
{
case 'application/vnd.ms-excel':
break;
default:
$("#sheetlayer").html("<i class='fa fa-
warning'style='color:#E4AB0A'></i> Unsupported file type !");
return false
}
if($('#userfile').val()) {
$('#sheetlayer').html("<img src='../images/loader.gif'
/>");
e.preventDefault();
$(this).ajaxSubmit({
target: '#sheetlayer',
success:function (){
$("#sheetlayer").html();
},
resetForm: true
});
return false;
}
});
$('#sendmessage').submit(function(e) {
if( !$('#msg_body').val())
{
$("#msgLayer").html("<br><i class='fa fa-
warning'style='color:#E4AB0A'></i> Message Should'nt be Empty.");
Project Report – ONLINE EXAM PORTAL Page 36
return false
}
if($('#msg_body').val()) {
$('#msgLayer').html("<img src='../images/loader.gif'
/>");
e.preventDefault();
$(this).ajaxSubmit({

target:'#msgLayer',
success:function (){
$("#msgLayer").html("<br><i class='fa fa-
check-circle' style='color:#0099FF;font-size:17px''></i> Message sent
successfully.");
},
resetForm:true
});
return false;
}
});

$('#myuploadnote').submit(function(e) {
if($('#upd_file_to').val() == null)
{
$("#noteLayer").html("<i class='fa fa-
warning'style='color:#E4AB0A'></i> Select recepients !");
return false
}
if( !$('#upload_file').val())
{
$("#noteLayer").html("<i class='fa fa-
warning'style='color:#E4AB0A'></i> Select a File to Upload.");
return false
}
Project Report – ONLINE EXAM PORTAL Page 37
if($('#upload_file').val()) {

$('#noteLayer').html("<img src='../images/loader.gif' />");


e.preventDefault();
$(this).ajaxSubmit({
success:function (){
$("#noteLayer").html("<i class='fa fa-check-circle'
style='color:#0099FF;font-size:17px'></i> File Uploaded successfully.");
},
resetForm: true
});
return false;
}
});

$('.deleteuser').click(function(e)
{
$('#queryresult').html("<img src='../images/loader.gif' />");
e.preventDefault();
$(this).ajaxSubmit({
cache:false,
success:function (edit){
$("#queryresult").html(edit);
},
resetForm: true
});
return false;
});

$('.deletetest').click(function(e)
{
Project Report – ONLINE EXAM PORTAL Page 38
$('#queryresult').html("<img src='../images/loader.gif' />");
e.preventDefault();
$(this).ajaxSubmit({
cache:false,
success:function (edit){
$("#queryresult").html(edit);
},
resetForm: true
});
return false;
});

$(".accordion2 h3").eq(0).addClass("active");
$(".accordion2 p").eq(0).show();
$(".accordion2 h3").click(function(){
$(this).next("p").slideToggle("slow")
.siblings("p:visible").slideUp("fast");
$(this).toggleClass("active");
$(this).siblings("h3").removeClass("active");

});
$("#button").click(function(){
$("#my").html("<center><img src='../images/loader.gif'
/></center>");

$.ajax({
type: 'POST',
cache:false,
url: '../tests/quicktest.php',
success: function(data) {

Project Report – ONLINE EXAM PORTAL Page 39


$("#my").html(data);
}
});
});

});

function fetchsubject()
{
$("#subject").html("<option value='0'>Loading...</option>");
data="class="+$("#upd_file_to").val();
$.ajax
({

type:"POST",data:data,url:"fetchsubject.php",success:function(outpu
t)
{
$("#subject").html(output);
} });

}
function fetchsubject2()
{
$("#selectsubject").html("<option
value='0'>Loading...</option>");
data="class="+$("#selectclass").val();
$.ajax
({

type:"POST",data:data,url:"fetchsubject.php",success:function(outpu
t)
{
$("#selectsubject").html(output);
Project Report – ONLINE EXAM PORTAL Page 40
}
});

}
function fetchsubject1()
{
$("#selectsubject1").html("<option
value='0'>Loading...</option>");
data="class="+$("#selectclass1").val();
$.ajax
({

type:"POST",data:data,url:"fetchsubject.php",success:function(outpu
t)
{
$("#selectsubject1").html(output);
}
});

}
function fetchusers()
{
$("#defaultuser").html("<br><center><img
src='../images/loader.gif' /></center>");
data="user="+$("#sortusers").val();

$.ajax
({

type:"POST",data:data,url:"fetchusers.php",success:function(output)
{
$("#defaultuser").html(output);
}
Project Report – ONLINE EXAM PORTAL Page 41
});

function sortnotes()
{
$("#default").html("<br><center><img
src='../images/loader.gif' /></center>");
sort=$("#sortby").val();
st_year=$("#st_year").val();
$.ajax
({
type:"POST",
data:{sort:sort,st_year:st_year},
url:"sortnote.php",
success:function(output)
{
$("#default").html(output);

} });

}
function keypress()
{
$("#defaultuser").html("<center><img
src='../images/loader.gif'/></center>");
search=$("#search").val();
$.ajax
({
type:"POST",
data:{search:search},
url:"searchuser.php",
success:function(searchresults)
Project Report – ONLINE EXAM PORTAL Page 42
{
$("#defaultuser").html(searchresults);
}
});

function loadist()
{
$("#customdiv").html("<center><img src='../images/loader.gif'
/></center>");
if($('#seconds').val() == "")
{
$("#customdiv").html("<br><center><i class='fa fa-
warning'style='color:#E4AB0A'></i> Input Time in Seconds ! </center>");
return false
}
seconds=$("#seconds").val();
level=$("#level").val();
topic=$("#topic").val();
document.getElementById('tobe').style.display = 'none';

$.ajax
({
type:"POST",
cache:false,
data:{seconds:seconds,topic:topic,level:level},
url:"../tests/customtest.php",
success:function(output)
{
//alert(output);
$("#customdiv").html(output);
} });
Project Report – ONLINE EXAM PORTAL Page 43
}
function changepassword()
{

$("#info_div").html("<img src='../images/loader.gif'/>");

crr_pass=$("#crr_pass").val();
new_pass=$("#new_pass").val();
cfm_new=$("#cfm_new").val();
//alert (data);
$.ajax
({
type:"POST",
cache:false,
resetForm: true,

data:{crr_pass:crr_pass,new_pass:new_pass,cfm_new:cfm_new},
url:"changepassword.php",
success:function(changepassword)
{

$("#info_div").html(changepassword);
} });

}
function facultypassword()
{

$("#info_div").html("<img src='../images/loader.gif'/>");

crr_pass=$("#crr_pass").val();
new_pass=$("#new_pass").val();
Project Report – ONLINE EXAM PORTAL Page 44
cfm_new=$("#cfm_new").val();
//alert (data);
$.ajax
({
type:"POST",
cache:false,
resetForm: true,

data:{crr_pass:crr_pass,new_pass:new_pass,cfm_new:cfm_new},
url:"changepassword.php",
success:function(changepassword)
{

$("#info_div").html(changepassword);
} });

}
window.smoothScroll = function(target) {
var scrollContainer = target;
do { //find scroll container
scrollContainer = scrollContainer.parentNode;
if (!scrollContainer) return;
scrollContainer.scrollTop += 1;
} while (scrollContainer.scrollTop == 0);

var targetY = 0;
do { //find the top of target relatively to the container
if (target == scrollContainer) break;
targetY += target.offsetTop;
} while (target = target.offsetParent);

scroll = function(c, a, b, i) {
i++; if (i > 30) return;
Project Report – ONLINE EXAM PORTAL Page 45
c.scrollTop = a + (b - a) / 30 * i;
setTimeout(function(){ scroll(c, a, b, i); }, 20);
}
// start scrolling
scroll(scrollContainer, scrollContainer.scrollTop, targetY, 0);
}
var hidden = false;
function action() {
hidden = !hidden;
if(hidden) {
document.getElementById('hide').style.display = 'none';

document.getElementById('button').style.display =
'none';

} else {
document.getElementById('button').style.display = 'none';
}
}

</script>
</head>

3. Connection.php
<?php
date_default_timezone_set("Asia/Kolkata");
$dbhost = "localhost";
$dbuser = "root";
$dbpass = "";
$dbname = "database";
$item_per_page = 10;

Project Report – ONLINE EXAM PORTAL Page 46


mysql_connect($dbhost,$dbuser,$dbpass) or die('cannot connect
to the server');
mysql_select_db($dbname) or die('database selection problem');
?>
4. Css / account_page.css
.hidden-content .tobe
{
display:none !important;
}
.pagination li {
display: inline-block;
border:none !important;
list-style: none;
text-align: center;
background: #45789D !important;
margin:3px !important;
margin-top:25px !important;
border-radius:4px !important;
}
.pagination li a{
color:#fff;
text-decoration:none !important;
background:#45789D !important;
}

.pagination .disabled
{
display:none !important;

Project Report – ONLINE EXAM PORTAL Page 47


}

.paginate li {
display: inline-block;
border:none !important;
list-style: none;
text-align: center;
margin-top:10px !important;
background: #45789D !important;
line-height: 25px;
padding: 3px 12px !important;
margin: 3px !important;
margin-top:25px !important;
border-radius: 4px !important;

}
.paginate li a{
color:#fff;
background:#45789D !important;
text-decoration:none !important;
}

.paginate .disabled
{
display:none !important;
}
.nav-pills>li>a {
border-radius: 4px;

Project Report – ONLINE EXAM PORTAL Page 48


color: #000 !important;
border-bottom:1px solid #ccc !important;
}
.nav-pills>li.active>a, .nav-pills>li.active>a:focus, .nav-
pills>li.active>a:hover {
color: #000 !important;
border:1px solid #ccc !important;
border-bottom:none !important;
background:none;
}
.margin10
{
margin:10px!important
}
*{
margin: 0;
padding: 0;
}
body
{
font-family:verdana;
}
p{
padding: 0 0 1em;
}
.input
{
border:none;

Project Report – ONLINE EXAM PORTAL Page 49


background:none;
}
.bull
{

}
.arrow
{
visibility:hidden;
}
.bull
{
color:#06F2A5;

}
.accordion2 h3 {
padding: 10px 15px;
margin: 0;
font-size:16px;
border-bottom: none;
cursor: pointer;
}
.accordion2 h3:hover {
background-color:#555;
}
.accordion2 h3.active {
background-color:#3289C8;
}

Project Report – ONLINE EXAM PORTAL Page 50


.accordion2 h3.active .arrow {
visibility:visible;
float:right;
}
.accordion2 h3.active .bull{
visibility:hidden;
float:right;
}

.accordion2 p {
background: #222;
margin: 0;
padding: 10px 15px 20px;
display: none;
}
div
{
padding:0px !important;margin:0px !important;
}
li
{
padding:0px !important;margin:0px !important;
}
ul
{
padding:0px !important;margin:0px !important;
}

Project Report – ONLINE EXAM PORTAL Page 51


a
{
color:#fff !important;
}
a:hover
{
background:none !important;
}
.navbar-inverse {
background-color: #222;
border-radius:0px !important;
}
.navbar {
position: relative;
min-height: 50px;
margin-bottom:0px !important;\
border: 1px solid transparent;
}
.dropdown_links
{
color:#222 !important;
padding:10px !important;
}
.dropdown_links:hover
{
color:#222 !important;
background:#EEE !important;
}

Project Report – ONLINE EXAM PORTAL Page 52


.dropdown-menu {
position: absolute;
top: 100%;
left: 0;
z-index: 1000;
display: none;
float: left;
min-width: 160px;
padding: 5px 0;
margin: 2px 0 0;
font-size: 14px;
text-align: left;
list-style: none;
background-color: #fff !important;
-webkit-background-clip: padding-box;
background-clip: padding-box;
border: 1px solid #ccc;
border: 1px solid rgba(0,0,0,.15);
border-radius: 4px;
-webkit-box-shadow: 0 6px 12px rgba(0,0,0,.175);
box-shadow: 0 6px 12px rgba(0,0,0,.175);
}

.dropdown-alerts {
width: 300px !important;
min-width: 0;
}
.navbar-brand {

Project Report – ONLINE EXAM PORTAL Page 53


float: left;
height: auto !important;
padding: 15px 15px;
font-size: 18px;
line-height: 20px;
}
label
{
margin-bottom: 5px;
font-weight:normal;
cursor:pointer;
}
.time_div
{
float:right !important;font-size:15px;margin-right:10px;
}
.pan
{
padding:14px !important;
border-left:5px solid #D49916 ;
border-bottom:1px solid #E8BF62 ;
margin:3px !important;
}
.panel-info
{
border-color:#fff !important;
}
.time_div

Project Report – ONLINE EXAM PORTAL Page 54


{
float:right !important;font-size:15px;margin:10px;
}
.breadcrumb
{
margin-bottom: 0px !important;
}
.modal-content {
position: relative !important;
background-color: #fff!important;
-webkit-background-clip: padding-box!important;
background-clip: padding-box !important;
border: 1px solid #999 !important;
border: 1px solid rgba(0,0,0,.2) !important;
border-radius: 6px!important;
outline: 0;
-webkit-box-shadow: 0 3px 9px rgba(0,0,0,.5);
box-shadow: 0 3px 9px rgba(0,0,0,.5);
}.modal-header {
padding: 15px !important;
border-bottom: 1px solid #e5e5e5;
}
.modal-body {
position: relative!important;
padding: 15px !important;
}

Project Report – ONLINE EXAM PORTAL Page 55


.demoInputBox{padding:5px; border:#F0F0F0 1px solid;
width:100%;border-radius:4px; background-color:#FFF;}
.btnSubmit{background-color:#09f;border:0;padding:10px 40px
!important;color:#FFF;border:#F0F0F0 1px solid; border-
radius:4px;}
#targetLayer{width:100%;text-align:center;}
.navbar-inverse .navbar-nav>.open>a, .navbar-inverse .navbar-
nav>.open>a:focus, .navbar-inverse .navbar-nav>.open>a:hover {
color: #fff !important ;
background-color: #3289C8!important;
}

.demoInputBox{padding:5px; border:#F0F0F0 1px solid;


width:100%;border-radius:4px; background-color:#FFF;}
.btnSubmit{background-color:#09f;border:0;padding:10px 40px
!important;color:#FFF;border:#F0F0F0 1px solid; border-
radius:4px;}
#targetLayer{width:100%;text-align:center;margin-bottom:20px
!important;}
input[type=file] { display: block;background:#F3F1F1;margin-
bottom:10px;}
.navbar-inverse .navbar-nav>.open>a, .navbar-inverse .navbar-
nav>.open>a:focus, .navbar-inverse .navbar-nav>.open>a:hover {
color: #fff;
background-color: #3289C8!important;
}
.inboxtable {
table-layout:fixed !important;

Project Report – ONLINE EXAM PORTAL Page 56


}
.inboxtable td {
overflow:hidden;
white-space:nowrap;
cursor:pointer;
}
.inboxtable td:hover {
overflow: visible !important;
white-space: normal !important;
background:rgba(217, 247, 229, 0.28) !important;
text-align:justify;
}
.inboxlabel
{
text-decoration:none;padding:4px 4px !important;font-
size:11px;background:#32C88A !important;color:#fff;border-
radius:5px;
}
.inbox_sub
{
padding:0px !important;color:#666;font-
size:12px;display:block;margin-top:5px;margin-bottom:0px;
}
.directory{
text-decoration:none;padding:10px 10px !important;font-
size:15px;background:#2F7992 !important;color:#fff;border-
radius:5px;margin:20px !important;
}

Project Report – ONLINE EXAM PORTAL Page 57


.directory:hover
{
text-decoration:none;background:#2F7992
!important;color:#fff;
}

#sortby
{
text-align:center !important;
}

.dropdown-menu>.active>a, .dropdown-menu>.active>a .text-


muted, .dropdown-menu>.active>a:focus, .dropdown-
menu>.active>a:hover {
color: #fff !important;
text-decoration: none;
background-color: #337ab7 !important;
outline: 0;
}
.block
{
border:none !important;
background:none !important;
color:#000 !important;
}
.block:hover
{
text-decoration:underline;

Project Report – ONLINE EXAM PORTAL Page 58


}
form#editusers {
display: inline !important;
}

.myscore
{
border:1px solid #ccc;margin:5px!important;padding:31px
20px !important;text-
align:center;background:#657580;color:#fff;border-radius:8px;
}
.highest
{
width:100%;height:40px;color:#fff;background:#3D5769;ma
rgin:5px !important;padding:15px !important;text-
align:center;font-weight:bold;
}
.toppers
{
margin:5px !important;border:1px solid #ccc;padding:10px
!important;
}
.toppers_img
{
border-radius:50%;float:left;margin-right:20px;
}

Project Report – ONLINE EXAM PORTAL Page 59


/*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXX*/

@media screen and (max-width: 768px)


{
.margin10
{
margin:0px!important
}
.inboxlabel {
max-width:30%;
text-align:center;
color: #fff;
border-radius: 5px;
display: block;
margin: 5px;
}
#sortby
{
display:block !important;
margin:5px !important;
}
.open>.dropdown-menu {
display: block;

Project Report – ONLINE EXAM PORTAL Page 60


width: 100% !important;
}
.block
{
display:block !important;
}
}

12. Conclusion
Our project is only a humble venture to satisfy the needs in an Institution. Several user friendly coding
have also adopted. This package shall prove to be a powerful package in satisfying all the requirements
of the organization.

The objective of software planning is to provide a frame work that enables the manger to make
reasonable estimates made within a limited time frame at the beginning of the software project and
should be updated regularly as the project progresses

Project Report – ONLINE EXAM PORTAL Page 61

Вам также может понравиться