Student Management System - Full Document
Student Management System - Full Document
SCAS
ABSTRACT
Our approach is to create a app for students’ web service by providing unique ID for the
students. If the student is absent to the class, attendance procedure for the student has been done
through web services by reading their details and update it to their parents. It will send an
intimation to the student as well as their parents, if the student absents to the class. And also the
student has to submit their leave form by applying the required details that has been provided in
the form. The leave application has been passed on to the staff as well as the HOD for approval.
And finally the leave status of every student will be maintained by the administrator. After
approval the intimation will be passed on to the concerned staffs and the student as well as to
their parents through mobile. It reduces the manual work and enhances the entire process as a
digitalized one. So by using the app the fake attendance presence can be reduced. The objective
of Student Information System is to allow the administrator of any organization to edit and find
out the personal details of a student and allows the student to keep up to date his profile. It’ll also
facilitate keeping all the records of students, such as their id, name, mailing address, phone
number, DOB etc. So all the information about a student will be available in a few seconds.
Overall, it’ll make Student Information Management an easier job for the administrator and the
student of any organization.
1
1. INTRODUCTION
Now a day’s internet plays an important role in the world. This system performs the
attendance maintenance in smart way. This system used inside the college campus. During the
college time the student may be cut their classes. The parents not know about their children
activities. So, this system intimates the absent details to their parent’s mobile each hour in days.
Another process is to apply the leave form through online. The student from anywhere can
access the internet and request their leave and permission. The HOD can receive the student
leave form and check the attendance details of the respective students. The Attendance
Management System is developed for daily student attendance in school, colleges, and in
institutes. As we know today the number of student per class are increasing. So maintaining the
attendance of each student is not easy for the teacher. Manual attendance will create the problem
in taking attendance as any student can give the proxy attendance. To avoid this problem we
have developed the attendance management system. The purpose of developing Attendance
Management System is to change the way of taking attendance. The paper work will reduce and
the work of storing attendance in computers and then calculating average this all will reduce due
to this Smart Attendance Management System. In student details modules maintain the student
details such as student personal details and student mark list and so on. Fix target date module is
used to display the target for book submission date.
2
2.SYSTEM ANALYSIS:
Today in college’s student attendance details are entered manually. The student
attendance details in separate records are tedious task. Referring to all these records and updating
is needed. There is a chance for more manual errors. In this existing system, the leave details of the
students are maintained using the attendance register. The staff needs to submit the details
manually to admin.
2.1.1. DISADVANTAGES OF EXISTING SYSTEM
Parents not aware about their children
Time Consuming
Require much man power i.e. much efforts, much cost and hard to operate and
maintain.
Since, all the work is done in papers so it is very hard to locate a
particular student record when it is required.
2.2. PROPOSED SYSTEM
The main goal of the system is to automate the process carried out in the organization
with improved performance and realize the vision of paperless details. This system decreases the
paper work and easier records maintenance by having a database for leave application details.
The admin will be watching each student’s attendance details for every day. The system
automatically intimates the absent details to their parent’s mobiles. The student will be applying
for leave or permission request in the form and the leave form is automatically generated to their
college. Admin can receive the form and check the respective student attendance details. They
can accept the leave request is automatically intimate to their student’s mobiles.
Eliminate the use of paper leave application form and manually maintains the
attendance details.
It is cost efficient.
Easy to maintain in centralized database.
The students are regular class attends to the college.
The parents are easily view our students’ details.
3
3. SYSTEM SPECIFICATION:
4
4. SOFTWARE DESCRIPTION
4.1 FRONT-END
PHP
PHP: Hypertext Preprocessor (or simply PHP) is a general-purpose programming
language originally designed for web development. It was originally created by Rasmus Lerdorf
in 1994 the PHP reference implementation is now produced by The PHP Group. PHP originally
stood for Personal Home Page, but it now stands for the recursive initialism PHP: Hypertext
Preprocessor.
PHP code may be executed with a command line interface (CLI), embedded into HTML
code, or used in combination with various web template systems, web content management
systems, and web frameworks. PHP code is usually processed by a PHP interpreter implemented
as a module in a web server or as a Common Gateway Interface (CGI) executable. The web
server outputs the results of the interpreted and executed PHP code, which may be any type of
data, such as generated HTML code or binary image data. PHP can be used for many
programming tasks outside of the web context, such as standalone graphical applications and
robotic drone control.
The standard PHP interpreter, powered by the Zend Engine, is free software released
under the PHP License. PHP has been widely ported and can be deployed on most web servers
on almost every operating system and platform, free of charge.
The PHP language evolved without a written formal specification or standard until 2014,
with the original implementation acting as the de facto standard which other implementations
aimed to follow. Since 2014, work has gone on to create a formal PHP specification.
PHP Objects
Basic object-oriented programming functionality was added in PHP 3 and improved in
PHP 4. This allowed for PHP to gain further abstraction, making creative tasks easier for
programmers using the language. Object handling was completely rewritten for PHP 5,
expanding the feature set and enhancing performance. In previous versions of PHP, objects were
handled like value types. The drawback of this method was that code had to make heavy use of
PHP's "reference" variables if it wanted to modify an object it was passed rather than creating a
copy of it. In the new approach, objects are referenced by handle, and not by value.
Implementations
The only complete PHP implementation is the original, known simply as PHP. It is the
most widely used and is powered by the Zend Engine. To disambiguate it from other
implementations, it is sometimes unofficially called "Zend PHP". The Zend Engine compiles
PHP source code on-the-fly into an internal format that it can execute, thus it works as an
interpreter. It is also the "reference implementation" of PHP, as PHP has no formal specification,
and so the semantics of Zend PHP define the semantics of PHP. Due to the complex and nuanced
5
semantics of PHP, defined by how Zend works, it is difficult for competing implementations to
offer complete compatibility.
Licensing
PHP is free software released under the PHP License, which stipulates that: Products
derived from this software may not be called "PHP", nor may "PHP" appear in their name,
without prior written permission from [email protected]. You may indicate that your software
works in conjunction with PHP by saying "Foo for PHP" instead of calling it "PHP Foo" or
"phpfoo". This restriction on use of "PHP" makes the PHP License incompatible with the
General Public License (GPL), while the Zend License is incompatible due to an advertising
clause similar to that of the original BSD license.
Use
A broad overview of the LAMP software bundle, displayed here together with Squid
PHP is a general-purpose scripting language that is especially suited to server-side web
development, in which case PHP generally runs on a web server. Any PHP code in a requested
file is executed by the PHP runtime, usually to create dynamic web page content or dynamic
images used on websites or elsewhere. It can also be used for command-line scripting and client-
side graphical user interface (GUI) applications. PHP can be deployed on most web servers,
many operating systems and platforms, and can be used with many relational database
management systems (RDBMS). Most web hosting providers support PHP for use by their
clients. It is available free of charge, and the PHP Group provides the complete source code for
users to build, customize and extend for their own use.
6
Originally designed to create dynamic web pages, PHP now focuses mainly on server-
side scripting, and it is similar to other server-side scripting languages that provide dynamic
content from a web server to a client, such as Microsoft's ASP.NET, Sun Microsystems' Java
Server Pages, and mod_perl. PHP has also attracted the development of many software
frameworks that provide building blocks and a design structure to promote rapid application
development (RAD). Some of these include PRADO, CakePHP, Symfony, CodeIgniter, Laravel,
Yii Framework, Phalcon and Zend Framework, offering features similar to other web
frameworks.
The LAMP architecture has become popular in the web industry as a way of deploying
web applications. PHP is commonly used as the P in this bundle alongside Linux, Apache and
MySQL, although the P may also refer to Python, Perl, or some mix of the three. Similar
packages, WAMP and MAMP, are also available for Windows and macOS, with the first letter
standing for the respective operating system. Although both PHP and Apache are provided as
part of the macOS base install, users of these packages seek a simpler installation mechanism
that can be more easily kept up to date.
As of April 2007, over 20 million Internet domains had web services hosted on servers
with PHP installed and mod_php was recorded as the most popular Apache HTTP Server
module. As of August 2019, PHP was used as the server-side programming language on 79.1%
of websites, down from 83.5% previously, where the language could be determined. Web
content management systems written in PHP include MediaWiki, Joomla, eZ Publish, eZ
Platform, SilverStripe, WordPress, Drupal, and Moodle. Websites written in PHP, in back-end
and/or user-facing portion, include Facebook, Digg, Tumblr, Dailymotion, and Slack.
For specific and more advanced usage scenarios, PHP offers a well-defined and
documented way for writing custom extensions in C or C++. Besides extending the language
itself in form of additional libraries, extensions are providing a way for improving execution
speed where it is critical and there is room for improvements by using a true compiled language.
PHP also offers well defined ways for embedding itself into other software projects. That way
PHP can be easily used as an internal scripting language for another project, also providing tight
interfacing with the project's specific internal data structures. PHP received mixed reviews due to
lacking support for multithreading at the core language level, though using threads is made
possible by the "pthreads" PECL extension. As of January 2013, PHP was used in more than 240
million websites (39% of those sampled) and was installed on 2.1 million web servers. A
command line interface, php-cli, and two ActiveX Windows Script Host scripting engines for
PHP have been produced. As of 2019, PHP 5 is most used on the web; which was last updated
with security updates in January 2019, with PHP 5.6.40.
Security
In 2017, 3% of all vulnerabilities listed by the National Vulnerability Database were
linked to PHP; historically, about 30% of all vulnerabilities listed since 1996 in this database are
linked to PHP. Technical security flaws of the language itself or of its core libraries are not
frequent (22 in 2009, about 1% of the total although PHP applies to about 20% of programs
listed).Recognizing that programmers make mistakes, some languages include taint checking to
automatically detect the lack of input validation which induces many issues. Such a feature is
7
being developed for PHP, but its inclusion into a release has been rejected several times in the
past. There are advanced protection patches such as Suhosin and Hardening-Patch, especially
designed for web hosting environments. Historically, old versions of PHP had some
configuration parameters and default values for such runtime settings that made some PHP
applications prone to security issues. Among these, magic_quotes_gpc and register_globals
configuration directives were the best known; the latter made any URL parameters become PHP
variables, opening a path for serious security vulnerabilities by allowing an attacker to set the
value of any uninitialized global variable and interfere with the execution of a PHP script.
Support for "magic quotes" and "register globals" settings has been deprecated as of PHP 5.3.0,
and removed as of PHP 5.4.0.
WAMP
WAMP is an acronym that stands for Windows, Apache, MySQL, and PHP. It’s a
software stack which means installing WAMP installs Apache, MySQL, and PHP on your
operating system (Windows in the case of WAMP). Even though you can install them separately,
they are usually bundled up, and for a good reason too.
What’s good to know is that WAMP derives from LAMP (the L stands for Linux). The
only difference between these two is that WAMP is used for Windows, while LAMP – for Linux
based operating systems.
Let’s quickly go over what each letter represents:
“W” stands for Windows, there’s also LAMP (for Linux) and MAMP (for Mac).
“A” stands for Apache. Apache is the server software that is responsible for serving web
pages. When you request a page to be seen by you, Apache grants your request over HTTP and
shows you the site.
“M” stands for MySQL. MySQL’s job is to be the database management system for your
server. It stores all of the relevant information like your site’s content, user profiles, etc.
“P” stands for PHP. It’s the programming language that was used to write WordPress. It
acts like glue for this whole software stack. PHP is running in conjunction with Apache and
communicating with MySQL.
Instead of installing and testing WordPress on your hosting account, you can do it on
your personal computer (localhost).
WAMP acts like a virtual server on your computer. It allows you to test all WordPress
features without any consequences since it’s localized on your machine and is not connected to
the web.
First of all, this means that you don’t need to wait until files are uploaded to your site,
and secondly – this makes creating backups much easier.
WAMP speeds up the work process for both developers and theme designers alike. What
is more, you also get the benefit of playing around with your site to your heart’s content.
However, to actually make the website go live, you need to get some form of hosting
service and a Domain. See our beginner-friendly article about web hosting for more information.
Functionalities
WampServer`s functionalities are very complete and easy to use so we won`t explain
here how to use them. With a left click on WampServer`s icon, you will be able to:
8
Manage your Apache and MySQL services
Switch online/offline (give access to everyone or only localhost)
Install and switch Apache, MySQL and PHP releases
Manage your servers settings
Access your logs
Access your settings files
Create Alias
Change WampServer`s menu language
Access this Page
4.2. BACK-END
9
AngularJS is a structural framework for dynamic web apps. It lets you use HTML as your
template language and lets you extend HTML's syntax to express your application's components
clearly and succinctly. AngularJS's data binding and dependency injection eliminate much of the
code you would otherwise have to write. And it all happens within the browser, making it an
ideal partner with any server technology.
AngularJS is what HTML would have been, had it been designed for applications. HTML
is a great declarative language for static documents. It does not contain much in the way of
creating applications, and as a result building web application is an exercise in what do I have to
do to trick the browser into doing what I want?
The impedance mismatch between dynamic applications and static documents is often
solved with:
a library - a collection of functions which are useful when writing web apps. Your code
is in charge and it calls into the library when it sees fit. E.g., jQuery.
frameworks - a particular implementation of a web application, where your code fills in
the details. The framework is in charge and it calls into your code when it needs
something app specific. E.g., durandal, ember, etc.
AngularJS takes another approach. It attempts to minimize the impedance mismatch
between document centric HTML and what an application needs by creating new HTML
constructs. AngularJS teaches the browser new syntax through a construct we call directives.
Examples include:
Data binding, as in {{}}.
DOM control structures for repeating, showing and hiding DOM fragments.
Support for forms and form validation.
Attaching new behavior to DOM elements, such as DOM event handling.
Grouping of HTML into reusable components.
A complete client-side solution
AngularJS is not a single piece in the overall puzzle of building the client-side of a web
application. It handles all of the DOM and AJAX glue code you once wrote by hand and puts it
in a well-defined structure. This makes AngularJS opinionated about how a CRUD (Create,
Read, Update, Delete) application should be built. But while it is opinionated, it also tries to
make sure that its opinion is just a starting point you can easily change. AngularJS comes with
the following out-of-the-box:
Everything you need to build a CRUD app in a cohesive set: Data-binding, basic
templating directives, form validation, routing, deep-linking, reusable components and
dependency injection.
Testability story: Unit-testing, end-to-end testing, mocks and test harnesses.
Seed application with directory layout and test scripts as a starting point.
AngularJS's sweet spot
AngularJS simplifies application development by presenting a higher level of abstraction to the
developer. Like any abstraction, it comes at a cost of flexibility. In other words, not every app is
a good fit for AngularJS. AngularJS was built with the CRUD application in mind. Luckily
10
CRUD applications represent the majority of web applications. To understand what AngularJS is
good at, though, it helps to understand when an app is not a good fit for AngularJS.
Games and GUI editors are examples of applications with intensive and tricky DOM
manipulation. These kinds of apps are different from CRUD apps, and as a result are probably
not a good fit for AngularJS. In these cases, it may be better to use a library with a lower level of
abstraction, such as jQuery.
Dreamweaver
Adobe Dreamweaver is a proprietary web development tool from Adobe Inc.. It was
created by Macromedia in 1997 and developed by them until Macromedia was acquired by
Adobe Systems in 2005.
Adobe Dreamweaver is available for the macOS and Windows operating systems.
Following Adobe's acquisition of the Macromedia product suite, releases of Dreamweaver
subsequent to version 8.0 have been more compliant with W3C standards. Recent versions have
improved support for Web technologies such as CSS, JavaScript, and various server-side
scripting languages and frameworks including ASP (ASP JavaScript, ASP VBScript, ASP.NET
C#, ASP.NET VB), ColdFusion, Scriptlet, and PHP.
Adobe Dreamweaver CC is a web design and development application that uses both a visual
design surface known as Live View and a code editor with standard features such as syntax
highlighting, code completion, and code collapsing as well as more advanced features such as
real-time syntax checking and code introspection for generating code hints to assist the user in
writing code. Combined with an array of site management tools, Dreamweaver allows for its
users to design, code and manage websites, as well as mobile content. Dreamweaver is
an Integrated Development Environment (IDE) tool. You can live preview of changes for the
frontend. Dreamweaver is positioned as a versatile web design and development tool that enables
visualization of web content while coding. Dreamweaver, like other HTML editors,
edits files locally then uploads them to the remote web server using FTP, SFTP, or WebDAV.
Dreamweaver CS4 now supports the Subversion (SVN) version control system.
11
5. SYSTEM DESIGN
12
5.2. DATA FLOW DIAGRAM
Symbol Description
13
Student Leave Maintenance
Admin Student
Database
Level 1:
Admin Login
Database
Level 2:
Apply Leave
Attendance details
14
Leave details
Feedback
Database
15
5.5. DATABASE DESIGN
16
6. SYSTEM TESTING
6.1. TYPES OF TESTING
Test Case
File level deduplication will save a relatively large memory space. In general, file level
deduplication view multiple copies of same file. It stores first file and then it links other
references to the first file. Only one copy will be stored. In testing, even though file names are
same, the system can able to detect deduplication. If we upload the same file by using different
names, it will view only the content and not names. Thus redundant data is avoided.
In registration phase, the user may not have registered before and type their information.
So if the user is new user, the alert message will display that the user is not registered before.
17
Unit Testing
It is the testing of an individual unit or group of related units. It is done by programmer to
test that the implementation is producing expected output against given input and it falls under
white box testing. Unit testing is done in order to check registration whether the user properly
registered into the cloud. It is done in order to check whether a file is properly uploaded into the
cloud. And an encryption and decryption is checked with unit testing if it is converted properly.
Then deduplication is checked with unit testing.
Integration Testing
All the modules should be integrated into a single module and it should be checked that it
is still working still by integration testing.
System Testing
It is done to ensure that by putting the software in different environments and check that
it still works. System Testing is done by uploading same file in this cloud checking whether any
duplicate file exists.
Software Testing
It is the process of evaluating a software item to detect differences between given input
and expected output. Also to assess the feature of a software item. Testing assess the quality of
the product. It is a process that should be done during the development process. In other words
software testing is a verification and validation process.
There are two types of software testing.
1. Black box testing
2. White box testing
Verification
Verification is the process to make sure the product satisfies the conditions imposed at
the start of the development phase. In other words, to make sure the product behaves the way we
want it to.
Validation
Validation is the process to make sure the product satisfies the specified requirements at
the end of the development phase. In other words, to make sure the product is built as per
customer requirements.
Black Box Testing
Black box testing is a testing which ignores internal mechanism of system and focuses on
output generated against any input and execution of system. It is done for validation. It is done to
check encryption and decryption after uploading a file into the cloud.
White Box Testing
It is done for verification and it is a testing that takes into account the internal mechanism
of the system. It is done by checking content verification. It will verify that whether same content
exists in the cloud.
18
7. SYSTEM IMPLEMENTATION:
Admin
Login
Maintain attendance
Staff
Login
Leave intimation
Admin modules
Admin login
19
Admin is the head for the entire system that controls the whole process under his
guidance. The admin login the student attendance system using their username and password.
Add staff details
The admin added staff information in the student attendance maintenance system. Admin
will maintain recorded to store in the database.
Add student details
This information’s are view to the administrator. Admin can manage to collection of
student details, department details, course details, mark details and attendance are Stored in the
database. Update and upload student details every day and it store to the system.
Maintain attendance
The admin maintains student attendance details in attendance maintenance database.
student leave details are intimated to their parents.
Staff modules
Staff Login
The staff login the student attendance system website using their own username and
password.
View student details
the staff can view student details in student maintenance websites. Student attendance
details are maintaining by staff and stored in database.
20
8. APPENDICES
Student Login
Staff Login
21
Admin Login
Department
22
Add Department
Staff
23
Add New Staff
Student Details
24
Add New Students
Take Attendance
25
Student Profile
26
8.2. SOURCE CODE
Admin
<?php
session_start();
include("dbconnect.php");
extract($_POST);
?>
<!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><?php include("title.php"); ?></title>
27
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form id="form1" name="form1" method="post" action="">
<span class="hd"><imgsrc="images/student5.jpg" width="1300" height="200" /></span>
</div></div>
<?php include("link_admin.php"); ?>
<p> </p>
<h2 align="center">Welcome to Admin </h2>
<p> </p>
<p> </p>
<p> </p>
</form>
</body>
</html>
Index
<?php
session_start();
include("dbconnect.php");
extract($_POST);
if(isset($btn))
{
$qry=mysql_query("select * from students where regno='$uname' &&dob='$pass' ");
$num=mysql_num_rows($qry);
if($num==1)
{
$_SESSION['uname']=$uname;
header("location:userhome.php");
}
else
{
$msg="Login Incorrect!";
}
}
?>
28
<!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><?php include("title.php"); ?></title>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form id="form1" name="form1" method="post" action="">
<imgsrc="images/student5.jpg" width="1300" height="200" /></span>
<?php include("link_home.php"); ?>
<p> </p>
<table width="352" height="176" border="0" align="center" cellpadding="5" class="bor">
<tr>
<thcolspan="2" scope="row">STUDENT</th>
</tr>
<tr>
<thcolspan="2" align="left" class="msg" scope="row"><?php echo $msg; ?></th>
</tr>
<tr>
<th width="167" align="left" scope="row">Regno.</th>
<td width="190" align="left"><input type="text" name="uname" /></td>
</tr>
<tr>
<th align="left" scope="row">Date of Birth </th>
<tdalign="left"><input type="password" name="pass" /></td>
</tr>
<tr>
<th scope="row"> </th>
<td><input type="submit" name="btn" value="Login" /></td>
</tr>
<tr>
<th scope="row"> </th>
<td> </td>
</tr>
</table>
29
<p> </p>
<p> </p>
<p> </p>
</form>
</body>
</html>
Login
<?php
session_start();
include("dbconnect.php");
extract($_POST);
if(isset($btn))
{
$qry=mysql_query("select * from staff where uname='$uname' && pass='$pass'");
$num=mysql_num_rows($qry);
if($num==1)
{
$_SESSION['uname']=$uname;
header("location:staff.php");
}
else
{
$msg="Login Incorrect!";
}
}
?>
<!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><?php include("title.php"); ?></title>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
30
<form id="form1" name="form1" method="post" action="">
<span class="hd"><imgsrc="images/student5.jpg" width="1300" height="200" /></span>
</div>
<?php include("link_home.php"); ?>
<p> </p>
<table width="352" height="176" border="0" align="center" cellpadding="5" class="bor">
<tr>
<thcolspan="2" scope="row">STAFF</th>
</tr>
<tr>
<thcolspan="2" align="left" class="msg" scope="row"><?php echo $msg; ?></th>
</tr>
<tr>
<th width="167" align="left" scope="row">Username</th>
<td width="190" align="left"><input type="text" name="uname" /></td>
</tr>
<tr>
<th align="left" scope="row">Password</th>
<tdalign="left"><input type="password" name="pass" /></td>
</tr>
<tr>
<th scope="row"> </th>
<td><input type="submit" name="btn" value="Login" /></td>
</tr>
<tr>
<th scope="row"> </th>
<td> </td>
</tr>
</table>
<p> </p>
<p> </p>
<p> </p>
</form>
</body>
</html>
user_apply
31
<?php
session_start();
include("dbconnect.php");
extract($_POST);
$uname=$_SESSION['uname'];
$q1=mysql_query("select * from students where regno='$uname'");
$r1=mysql_fetch_array($q1);
$dept=$r1['dept'];
$rdate=date("d-m-Y");
if(isset($btn))
{
$mq=mysql_query("select max(id) from apply_leave");
$mr=mysql_fetch_array($mq);
$id=$mr['max(id)']+1;
?>
<!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><?php include("title.php"); ?></title>
<link href="style.css" rel="stylesheet" type="text/css" />
<style type="text/css">
32
<!--
.style1 {
color: #0033CC;
font-weight: bold;
}
-->
</style>
</head>
<body>
<form id="form1" name="form1" method="post" action="">
<span class="hd"><imgsrc="images/student5.jpg" width="1300" height="200" /></span>
</div>
<?php include("link_user.php"); ?>
<h2 align="center">Apply Leave </h2>
<table width="397" height="165" border="0" align="center" cellpadding="5" cellspacing="0">
<tr>
<th width="167" align="left" scope="row">Leave From</th>
<td width="181" align="left"><input type="text" name="lfrom" /></td>
</tr>
<tr>
<th align="left" scope="row">To</th>
<tdalign="left"><input type="text" name="lto" /></td>
</tr>
<tr>
<th align="left" scope="row">Reason</th>
<tdalign="left"><input type="text" name="reason" /></td>
</tr>
<tr>
<thcolspan="2" align="center" scope="row"><input type="submit" name="btn" value="Submit"
/></th>
</tr>
</table>
<p align="center"> </p>
<p align="center"> </p>
<p> </p>
<p> </p>
</form>
33
</body>
</html>
view_dept
<?php
session_start();
include("dbconnect.php");
extract($_POST);
?>
<!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><?php include("title.php"); ?></title>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form id="form1" name="form1" method="post" action="">
<span class="hd"><imgsrc="images/student5.jpg" width="1300" height="200" /></span>
</div></div>
<?php include("link_admin.php"); ?>
<p> </p>
<h2 align="center">Department</h2>
<table width="336" border="1" align="center">
<tr>
<th scope="row">Sno</th>
<th>Department</th>
</tr>
<?php
$i=0;
$qry=mysql_query("select * from department");
while($row=mysql_fetch_array($qry))
{
34
$i++;
?>
<tr>
<th scope="row"><?php echo $i; ?></th>
<td><?php echo $row['department']; ?></td>
</tr>
<?php
}
?>
</table>
<p align="center"> </p>
<p> </p>
<p> </p>
<p> </p>
</form>
</body>
</html>
Test
35
width:50px;
height:50px;
border:#000000 1px solid;
}
.box3
{
background-color:#99FF99;
width:50px;
height:50px;
border:#000000 1px solid;
}
.box4
{
background-color:#999999;
width:50px;
height:50px;
border:#000000 1px solid;
}
</style>
</head>
<body>
<?php
$month=$_REQUEST['month'];
$year=$_REQUEST['year'];
$d=date("d");
$m=date("n");
$mon=date("M");
$y=date("Y");
//$t=date("t");
$l=date("l");
if($month=="") { $month=$m; }
if($year=="") { $year=$y; }
if($m==$month)
36
{
$mon2=$m;
}
else
{
if($month>$m)
{
$mm1=$month-$m;
$mon2=$m+$mm1;
}
else if($month<$m)
{
$mm2=$m-$month;
$mon2=$m-$mm2;
}
}
if($y==$year)
{
$yr2=$y;
}
else
{
if($year>$y)
{
$yy1=$year-$y;
$yr2=$y+$yy1;
}
else
{
$yy2=$y-$year;
$yr2=$y-$yy2;
}
}
$mon3=$mon2-1;
if($mon3<1)
{
$mon3=12;
37
}
$mon4=$mon2+1;
if($mon4>12)
{
$mon4=1;
}
if($mon3==12)
{
$yr3=$yr2-1;
}
else
{
$yr3=$year;
}
if($mon4==1)
{
$yr4=$yr2+1;
}
else
{
$yr4=$year;
}
$mmm=array(1=>"Jan",2=>"Feb",3=>"Mar",4=>"Apr",5=>"May",6=>"June",7=>"Jul",8=>"Au
g",9=>"Sep",10=>"Oct",11=>"Nov",12=>"Dec");
$days=array(1=>"Sunday",2=>"Monday",3=>"Tuesday",4=>"Wednesday",5=>"Thursday",6=>"
Friday",7=>"Saturday");
$ds=array("Sunday"=>1,"Monday"=>2,"Tuesday"=>3,"Wednesday"=>4,"Thursday"=>5,"Friday
"=>6,"Saturday"=>7);
38
echo "<tr>";
echo "<td class=box4>Sun</td>";
echo "<td class=box4>Mon</td>";
echo "<td class=box4>Tue</td>";
echo "<td class=box4>Wed</td>";
echo "<td class=box4>Thu</td>";
echo "<td class=box4>Fri</td>";
echo "<td class=box4>Sat</td>";
echo "</tr>";
$monarr=array(1=>31,2=>28,3=>31,4=>30,5=>31,6=>30,7=>31,8=>30,9=>30,10=>31,11=>30,
12=>31);
$t=$monarr[$month];
if($month==2)
{
if($year%4==0)
{
$t=29;
}
else
{
$t=28;
}
}
for($i=1;$i<=$t;$i++)
{
$rd=$d-$i;
if($d>$i)
{
$mk=mktime(0,0,0,$mon2,date("d")-$rd,$yr2);
$dn=date("d",$mk);
$dy=date("l",$mk);
}
39
else
{
$sd=$i-$d;
$mk=mktime(0,0,0,$mon2,date("d")+$sd,$yr2);
$dn=date("d",$mk);
$dy=date("l",$mk);
}
$col=$ds[$dy];
if($d==$dn) {$class="box3"; } else { $class="box2"; }
if($col==1)
{
echo "<tr>";
}
if($col==7)
{
echo "</tr>";
}
}
40
echo "</table>";
?>
</body>
</html>
Userhome
<?php
session_start();
include("dbconnect.php");
extract($_POST);
$uname=$_SESSION['uname'];
$q1=mysql_query("select * from students where regno='$uname'");
$r1=mysql_fetch_array($q1);
$dept=$r1['dept'];
?>
<!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><?php include("title.php"); ?></title>
<link href="style.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
.style1 {
color: #0033CC;
font-weight: bold;
}
-->
</style>
</head>
<body>
<form id="form1" name="form1" method="post" action="">
<div class="hd" align="center"><?php include("title.php"); ?></div>
<?php include("link_user.php"); ?>
<h2 align="center">Students Information</h2>
41
<table width="366" height="259" border="1" align="center">
<tr>
<th width="167" align="left" scope="row">Regno.</th>
<td width="181" align="left"><?php echo $r1['regno']; ?></td>
</tr>
<tr>
<th align="left" scope="row">Name</th>
<td align="left"><?php echo $r1['name']; ?></td>
</tr>
<tr>
<th align="left" scope="row">Father Name </th>
<td align="left"><?php echo $r1['fname']; ?></td>
</tr>
<tr>
<th align="left" scope="row">Date of Birth </th>
<td align="left"><?php echo $r1['dob']; ?></td>
</tr>
<tr>
<th align="left" scope="row">Mobile No. </th>
<td align="left"><?php echo $r1['contact']; ?></td>
</tr>
<tr>
<th align="left" scope="row">Parent Mobile No. </th>
<td align="left"><?php echo $r1['contact2']; ?></td>
</tr>
<tr>
<th align="left" scope="row">E-mail</th>
<td align="left"><?php echo $r1['email']; ?></td>
</tr>
<tr>
<th align="left" scope="row">Department</th>
<td align="left"><?php echo $r1['dept']; ?></td>
</tr>
<tr>
<th align="left" scope="row">Year of Joining </th>
<td align="left"><?php echo $r1['yoj']; ?></td>
</tr>
</table>
42
<p> </p>
</div>
<p align="center"> </p>
<p> </p>
<p> </p>
</form>
</body>
</html>
9. CONCLUSION
This system will ease is school/collage to monitor the student. The system can reduces
manpower. Although there are different methods of tracking student but our system is very easy
to handle and very convenient for college/university level. This system gives time saving, easy
control and reliability. The mobile attendance system has been built to eliminate the time and
effort wasted in taking attendances in schools and colleges. It also greatly reduces the amount of
paper resources needed in attendance data management. The automatic attendance system is
necessary to reduce the work of staff. The existing manual attendance system is time consuming
and requires semi manual work from teacher and student, using this all work will reduce. The
accuracy will be maintained and the faster result will generate. Using this parent and student are
able to see the performance, attendance average etc. This saves time and improves the efficiency
of student in services. The main intention to design this kind of applications is to put the
student’s thoughts and actions into right path
43
10. BIBLIOGRAPHY
REFERENCE BOOK
1) “Beginning PHP and MySQL From Novice to Professional” by W Jason Gilmore
2) “PHP: A Beginner’s Guide” by Vikram Vaswani
3) “PHP Object – Oriented Solutions” by David Powers
4) “Learning PHP 5” by David Sklar
5) “Build Your Own Database Driven Web Site Using PHP & MySQL” by Kevin Yank
6) “Modern PHP: New Features and Good Practices” by Josh Lockhart
7) “PHP: Learn PHP in 24 Hours or Less – A Beginner’s Guide To Learning PHP
Programming Now” by Robert Dwight
REFERENCE WEBSITE
https://www.w3schools.com/php/php_intro.asp
https://www.tutorialspoint.com/php/index.html
https://www.tutorialspoint.com/php/php_syntax_overview.html
44
11. REFERENCE
1. Z. Kai, “Design and implementation of college students' entrepreneurship management system
based on B/S structure,” RISTI - Revista Iberica de Sistemas e Tecnologias de Informacao, vol.
2016, no. 17, pp. 102–113, 2016.
4. J. Daor, J. Daemen, and V. Rijmen, “Aes proposal: rijndael. Vazirani, efficient and secure
pseudo-random number generation,” in Proceedings of the 25th IEEE FOCS, 1999.
45
6. US Department of Commerce and NIST, “Advanced Encryption Standard,” in Proceedings of
the National Computer Conference, pp. 83–87, 2006.
7. R. Ahmad and W. Ismail, “A survey of high performance cryptography algorithms for WiMAX
applications using SDR,” Self-Organization and Green Applications in Cognitive Radio
Networks, pp. 231–246, 2013.
8. C. Monteiro, Y. Takahashi, and T. Sekine, “Low-power secure S-box circuit using charge-
sharing symmetric adiabatic logic for advanced encryption standard hardware design,” IET
Circuits, Devices and Systems, vol. 9, no. 5, pp. 362–369, 2015.
46