0% found this document useful (0 votes)
19 views137 pages

Student Result Management System Project Report

The document outlines the software requirements for a Student Result Management System, detailing its objectives such as automating result processing and providing a centralized database. It specifies the system's hardware and software configurations, design principles, and technologies used, including PHP and MySQL. The document serves as a comprehensive guide for the development, testing, and implementation teams involved in the project.

Uploaded by

opchalam
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views137 pages

Student Result Management System Project Report

The document outlines the software requirements for a Student Result Management System, detailing its objectives such as automating result processing and providing a centralized database. It specifies the system's hardware and software configurations, design principles, and technologies used, including PHP and MySQL. The document serves as a comprehensive guide for the development, testing, and implementation teams involved in the project.

Uploaded by

opchalam
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 137

CONTENT

Introduction

This document aims at defining overall software requirement for


STUDENT RESULT MANAGEMENT SYSTEM .Efforts have been made to
define the requirements exhaustively and accurately. The final product will be
having only features/functionalities mentioned in this document and
assumptions for any additional functionality/feature should not be made by
any of the parties involved in developing/testing/implementing /using this
product .

The primary objectives of the Student Result Management System include:

 Automating result processing and report generation


 Providing a centralized database for student records
 Ensuring accuracy and reducing human errors in grading
 Enabling quick access to results for students, teachers, and administrators
 Enhancing transparency and security in academic record-keeping
Purpose

This specification document describes the capabilities that will be provided by


the

software application STUDENT RESULT MANAGEMENT SYSTEM .It also

states the various constraints by which the system will abide. The intended

audience for this document are the development team, testing team and end

users of the product

Scope

The application will manage the information about various students enrolled in

this course in different years, the subjects offered during different semesters of

the course, the marks obtained by the various students in various subjects in

different semesters.

The application will greatly simplify and speed up the result preparation and

management process.
SYSTEM ENVIRONMENT

Hardware Configuration

1. Pentium IV Processor

2. 512 MB RAM

3. 40GB HDD

4. 1024 * 768 Resolution Color Monitor

Note: This is not the “System Requirements”.

Software Configuration

1. OS : Windows XP

2.PHP (PHP5.6, MySQL, Apache, and PHPMyAdmin)

Design
INTRODUCTION:

Design is the first step in the development phase for any techniques and
principles for the purpose of defining a device, a process or system in sufficient
detail to permit its physical realization.

Once the software requirements have been analyzed and specified the software
design involves three technical activities - design, coding, implementation and
testing that are required to build and verify the software.

The design activities are of main importance in this phase, because in this
activity, decisions ultimately affecting the success of the software
implementation and its ease of maintenance are made. These decisions have the
final bearing upon reliability and maintainability of the system. Design is the
only way to accurately translate the customer’s requirements into finished
software or a system.

Design is the place where quality is fostered in development. Software design is


a process through which requirements are translated into a representation of
software. Software design is conducted in two steps. Preliminary design is
concerned with the transformation of requirements into data.
Context Diagram

Student case Diagram


Admin Case Diagram
Relationship Diagram Between Tables
OVERVIEW OF TECHNOLOGIES USED

3.1 Front End Technology

PHP

PHP is a server-side scripting language designed specifically for the web.


Within an HTML page, you can embed PHP code that will be executed each
time the page is visited. Your PHP code is interpreted at the web server and
generates HTML or other output that the visitor will see.
PHP was introduced in 1994. As of November 2007, it was installed on more
than 21 million domains worldwide, and this number is growing rapidly. You
can see the current number at http://www.php.net/usage.php
PHP is an Open Source project. PHP originally stood for Personal Home Page
and now stands for PHP Hypertext Preprocessor.

Unique Features

If you are familiar with other server side language like ASP.NET or JSP you
might be wondering what makes PHP so special, or so different from these
competing alternatives well, here are some reasons:

1. Performance
2. Portability(Platform Independent)
3. Ease Of Use
4. Open Source
5. Third-Party Application Support
6. Community Support

Performance

Scripts written in PHP executives faster than those written in other scripting
language, with numerous independent benchmarks, putting the language ahead
of competing alternatives like JSP,ASP.NET and PERL.The PHP 5.0 engine was
completely redesigned with an optimized memory manager to improve
performance, and is noticeable faster than previous versions.In addition, third
party accelerators are available to further improve performance and response
time.

Portability

PHP is available for UNIX, MICROSOFT WINDOWS, MAC OS, and


OS/2.PHP Programs are portable between platforms. As a result, a PHP
application developed on, say, Windows will typically run on UNIX without any
significant issues.This ability to easily undertake cross-platform development is
a valuable one, especially when operating in a multi platform corporate
environment or when trying to address multiple market segments.

Ease Of Use

“Simplicity is the ultimate sophistication”, Said Leonardo da Vinci, and by that


measure, PHP is an extremely sophisticated programming language. Its syntax is
clear and consistent, and it comes with exhaustive documentation for the 5000+
functions included with the core distributions.This significantly reduces the
learning curve for both novice and experienced programmers, and it’s one of the
reasons that PHP is favored as a rapid prototyping tool for Web-based
applications.

Open Source

PHP is an open source project – the language is developed by a worldwide team


of volunteers who make its source code freely available on the Web, and it may
be used without payment of licensing fees or investments in expensive hardware
or software .This reduces software development costs without affecting either
flexibility or reliabilityThe open-source nature of the code further means that
any developer, anywhere , can inspect the code tree, spit errors, and suggest
possible fixes, this produces a stable, robust product wherein bugs, once
discovered, are rapidly resolved – sometimes within a few hours of discovery !.

Third-Party Application Support

One of PHP’s Strengths has historically been its support for a wide range of
different databases, including MySQL, PostgreSQL, Oracle, and Microsoft SQL
Server. PHP 5.3 Supports more than fifteen different database engines, and it
includes a common API for database access. XML support makes it easy to read
and write XML documents though they were native PHP data structures, access
XML node collections using Xpath, and transform XML into other formats with
XSLT style sheets.

Community Support

One of the nice things about a community-supported language like PHP is the
access it offers to the creativity and imagination of hundreds of developers
across the world.Within the PHP community, the fruits of this creativity may be
found in PEAR, the PHP Extension and Application Repository and PECL, the
PHP Extension Community Library, which contains hundreds of ready-,made
widgets and extensions that developers can use to painlessly and new
functionality to PHP.Using these widgets is often a more time-and cost-efficient
alternative to rolling your own code.

PHP Server
The PHP Community Provides Some types of Software Server solution under
The GNU (General Public License).

These are the following:


1. WAMP Server
2. LAMP Server
3. MAMP Server
4. XAMPP Server
All these types of software automatic configure inside operating system after
installation it having PHP, MySQL, Apache and operating system base
configuration file, it doesn’t need to configure manually.

WAMP----- Microsoft window o/s,Apache Mysql PHP

LAMP---- Linux Operating System Apache Mysql PHP

MAMP---- Mac os Apache Mysql PHP

XAMPP---- x-os(cross operating system) Apache Mysql PHP Perl

Introduction to HTML

The hypertext markup language (HTML) is a simple markup language. Used to


create a hypertext documents that are portable from one platform to another
HTML documents are SGML (Standard generalized mark up language)
documents with generic semantics that are appropriate for representing
information from a wide range of applications. This specification defines HTML
version 3.2. HTML 3.2 aims to capture recommended practice as of early ’96
and as such a replacement for HTML2.0 (RFC 1866).

A set of instructions embedded in a document is called mark up language. These


instructions describe what the document text means and how it should look like
in a display. Hyper Text Mark Up language (HTML) is the language used to
encode World Wide Web documents.

WHY TO USE HTML?

Website is a collection of pages, publications, and documents that reside on web


server. While these pages publications and a document as a formatted in a single
format, you should use HTML for home page and all primary pages in the site.
This will enable the millions of web users can easily access and to take
advantage of your website.

HTML is considered first for formatting any new material you plan to
publish on the web. HTML documents are platform independent, meaning that
they don’t confirm to any standard. If they are created properly you can move
home page to any server platform or you can access them with any complaint
www browser.

STRUCTURE OF HTML

HTML elements perform a defined task. HTML uses two types of elements

. Empty Tags

. Container Tags

These tags differ because of what they represent. Empty tags represent
formatting constricts such as line breaks and horizontal rules. Container tags
define a section of text, formats and dot all of the selected text. A container tag
has both a beginning and an ending.

HTML LAYOUT:

An HTML document consists of text, which comprises the content of the


document and tags, which, defines the structure, and appearance of the
document. The structure of an HTML document is simple, consists of outer.

<HTML>tag enclosing the document header and body

<HTML>

<HEAD>
<TITLE>the title of HTML document</TITLE>

</HEAD>

<BODY>

This is where the actual HTML documents

Text lies, which is displayed in the browser

</BODY>

</HTML>

Each document has a head and body delimited by the <HEAD> and <BODY>
tag. The head is where you give your HTML document a title and where you
indicate other parameters the browser may use when displaying the document.
This includes the text for displaying the text. Tag also references special and
indicates the hot spots that link your document to other documents.

HTML FORMS:

Creating a form usually involves two independent steps: Creating the


layout for the form itself and then writing a script program on the server side to
process the formation you get back from a form.

To create a form, You use the <FORM> tag. Inside the opening and
closing FORM tags are each of the individual form elements plus any other
HTML content to create a layout for that form.
The opening tag of the FORM element usually includes the attributes:
METHOD and ACTION. The METHOD attributes can be either GET or POST
which determines how your form data is sent to the script to process it.

The ACTION attribute is a pointer to the script that processes the form on
the server side. The ACTION can be included by a relative path or by a full
URL to a script on your server or somewhere else. For example, the following
<FORM> tag would call a script called form-name in cgi-bin directory on server
www.myservser.com

<FORM Method= post action=http://www.mytservser.com/cgi-bin/form-name.pl>

……………….

</FORM>

METHOD ATTRIBUTE:

The other required attribute for the <form> tag sets the methods by which the
browser form’s data to the server for processing. There are two ways: the POST
method and GET method. With POST method, the browser sends the data in
two steps: the browser first contacts the form-processing server specified in the
action attributes, and once contact is made, sends the data.
BACK END TECHNOLOGY:

MYSQL

MySQL Introduction
There are a large number of database management systems currently available,
some commercial and some free.

Some of them : Oracle, Microsoft Access, Mysql and PostgreSQL.


These database systems are powerful, feature-rich software, capable of
organizing and searching millions of records at very high speeds.

Understanding Databases, Records, and Primary Keys


Every Database is composed of one or more tables.

These Tables, which structure data into rows and columns, Impose organization
on the data.

The records in a table(below) are not arranged in any particular order.

SQL, statements fall into one of three categories.(Types of SQL)


Data Definition Language(DDL) : DDL Consists of statements that define the
structure and relationships of a database and its table.
These Statements are used to Create, drop and modify databases and tables.
Data Manipulation Language(DML) : DML statements are related to
altering and extracting data from a database.
These statements are used to add records to, update records in, and delete
records from, a database; perform queries; retrieve table records matching one
or more user specified criteria; and join tables together using their common
fields.

Data Control Language(DCL) : DCL statements are sued to define access


levels and security privileges for a database.
You would use these statements to grant or deny user privileges; assign roles;
change passwords; view permissions; and create rulesets to protect access to
data.
The Syntax of SQL is quite intuitive. every SQL statement begins with an
“action word”, like DELETE, INSERT,ALTER etc. it ends with a semicolon.
whitespace, tabs, carriage returns are ignored.
Some example of valid SQL statements :
CREATE DATABASE emplyee;
SELECT name FROM users where email =”[email protected]”;
DELETE FROM cars WHERE year_of_manufacture < 1980;

PHP Mysql connectivity


Use the mysql_connect( ) function to established connection to the MySQL
server. To access the database functionality we have to make a connection to
database using Php.

mysql_connect() function is used to establish the connection to mysql server.


four arguments need to be passed to mysql_connect() function. hostname : if
you are working on local system , you can use localhost or you can also
provide ip address or server name.

username : if there is a existing user , you can provide username. default


username is ‘root’.

password : by default password is blank or null.

dbname : it is a optional field . it is basically a name of the database that


need to be connected. mysql_connect(host, username, password, dbname);
host(Server name)---- Either a host name(server name) or an IP address
username---- The MySQL user name
password---- The password to log in with
dbname---- Optional. The database to be used when performing queries

Note : There are more available parameters, but the ones listed above are the
most important.

In the following example we store the connection in a variable ($con) for later
use in the script.

<?php
// Create connection

$con=mysqli_connect("localhost","root","") or die(mysql_error());

?>

Here localhost is server name. root is MySQL default user name. default
password is blank and database name is my_db. mysql_error( ) function
provides mysql connectivity error message.

MySQL Close Connection


<?php

// Create connection

$con=mysqli_connect("localhost","root","","my_db") or die(mysql_error());

//code to be

executed. // Close

connection

mysql_close($con);

?>

after work with the database is done we have to close the connection
using mysql_close() function in which the connection to the database is
passed.

Functions

Functions are bet declared between the <Head> tag of HTML page. Functions
are called by user-initiated events. Seems reasonable to keep the functions
between the <Head> tags. They are loaded first before a user can do anything
that might call a function. Scripts can be placed between inside comment fields
to ensure that older browser do not display the script itself.

<html>

<head>

<script

language=”JavaScript”>

function pushbutton (){ alert

(“Hello!”);

</script>

</head>

<body>

<form>

<input type=”button” name=”Button1” value=”push me” onclick=”pushbutton


()”>

</form>

</body>

</html>
If we want to test this one immediately and you are using a Java Script enabled
browser then please go ahead and push the button.

This script will create a button and when you press it a window will pop up
saying
“hello!”. In fact we have a lot of possibilities just by adding functions to our
scripts.

The common browsers transmit the form information by either method: here’s
the complete tag including the GET transmission method attribute for the
previous form

Example

<Form method =GET action=http://www.mycompany.com/ upfdate.php>

………

</form>

Input elements.

Use the <input> tag to define any one of a number of common form elements
including text fields multiple choice lists click able images and submission
buttons. There are many attributers for this tag only that types and name
attributes are required for each element, each type of input element uses only a
subset of the followed attributes. Additional <input> attributes may be required
based upon which type of the form element you specify.
Submit button:

The submit button (<input type=submit> ) does what its name implies, settings in motion
the form’s submission to the server from the browser. We many have more than submit
buttons will be added to the parameter list the browser sends along to the server.

Example

< Input type =”submit”>

<Input type=”submit” value=”submit” name=”name”>

Reset button:

The reset button if firm <input> button is nearly self- explanatory; it lets the
user reset erase or set to some default value all elements in the form. By default
the browser displays a reset button worth the label “reset”. We can change that
by specifying a value attribute with tour own button label.

DATABASE MODELS

Single Tier

In a single tier the server and client are the same in the sense that a client
program that needs information (client) and the source of this type of architecture
is also possible in java, in case flat files are used to store the data. However this is
useful only in case of small applications. The advantage with this is the simplicity
and portability of the application developed.
Server and
client

Database

Two Tier (client-server)

In two tier architecture the database resides in one machine and client in
different machine they are connected through the network. In this type of
architecture a database management takes control of the database and provides
access to clients in a network. This software bundle is also called as the server.
Software in different machines, requesting for information are called as the
clients
Server

Client

Client

Database

Three Tier and N-Tier

In the three-tier architecture, any number servers can access the database that
resides on server. Which in turn serve clients in a network. For example, you
want to access the database using java applets, the applet running in some other
machine, can send request only to the server from which it is down loaded. For
this reason we will need to have a intermediate server which will accept the
requests from applets and them to the actual database server. This intermediate
server acts as a two-way communication channel also. This is the information or
data from the database is passed on to the applet that is requesting it. This can be
extended to make n tiers of servers, each server carrying to specific type of
request from clients, however in practice only 3 tiers architecture is popular.
FEASIBILITY STUDY:

Feasibility study is conducted once the problem is clearly understood.


Feasibility study is a high level capsule version of the entire system analysis and
design process. The objective is to determine quickly at a minimum expense
how to solve a problem. The purpose of feasibility is not to solve the problem
but to determine if the problem is worth solving.

The system has been tested for feasibility in the following points.

1. Technical Feasibility

2. Economical Feasibility

3. Operational Feasibility.

1. Technical Feasibility

The project entitles "Courier Service System” is technically feasibility because


of the below mentioned feature. The project was developed in Java which
Graphical User Interface.
It provides the high level of reliability, availability and compatibility. All
these make Java an appropriate language for this project. Thus the existing
software Java is a powerful language.

2. Economical Feasibility
The computerized system will help in automate the selection leading the profits
and details of the organization. With this software, the machine and manpower
utilization are expected to go up by 80-90% approximately. The costs incurred
of not creating the system are set to be great, because precious time can be
wanted by manually.

3. Operational Feasibility

In this project, the management will know the details of each project where he
may be presented and the data will be maintained as decentralized and if any
inquires for that particular contract can be known as per their requirements and
necessaries.

Implementation:

Implementation is the stage where the theoretical design is turned into a


working system. The most crucial stage in achieving a new successful system
and in giving confidence on the new system for the users that it will work
efficiently and effectively.

The system can be implemented only after thorough testing is done and if it is
found to work according to the specification.

It involves careful planning, investigation of the current system and its


constraints on implementation, design of methods to achieve the change over
and an evaluation of change over methods a part from planning. Two major
tasks of preparing the implementation are education and training of the users
and testing of the system.
The more complex the system being implemented, the more involved will be the
systems analysis and design effort required just for implementation.

The implementation phase comprises of several activities. The required


hardware and software acquisition is carried out. The system may require some
software to be developed. For this, programs are written and tested. The user
then changes over to his new fully tested system and the old system is
discontinued.

INTRODUCTION TO HTML4.0
What is the World Wide Web?

The World Wide Web is a network of information resources. The Web relies on
three mechanisms to make these resources readily available to the widest
possible audience.

1. A uniform naming scheme for locating resources on the Web (e.g. URLs)
2. Protocols, for access to named resources over the Web (e.g. HTTP)
3. Hypertext, for easy navigation among resources (e.g.HTML)

The ties between the three mechanisms are apparent throughout this
specification

What is HTML?
To publish information for global distribution, one needs a universally
understood language, a kind of publishing mother tongue that all computers may
potentially understand. The publishing language used by the World Wide Web
is HTML
(from Hyper Text Markup Language). HTML gives authors the means
to - Publish online documents with headings, text, tables, lists, photos, etc.
- Retrieve online information via hypertext links, at the click of a button
- Design forms for conducting transactions with remote services, for use in
searching for information, making reservations, ordering products etc.
- Include spread - sheets, video clips, sound clips, and other applications directly
in their documents.

A brief history of HTML:

HTML was originally developed by Tim Berners-Lee while at CERN, and


popularized by the Mosaic browser developed at NCSA. During the course of
the 1990s it has blossomed with the explosive growth of the Web during this
time. HTML has been extended in a number of ways. The Web depends on
Web page authors and vendors sharing the same conventions for HTML. This
has motivated joint work on specifications for HTML.
HTML 2.0 (November 1995) was developed under the aegis of the Internet
Engineering Task Force (IETF) to codify common practice in late 1994. HTML
(1993) and ([HTML.30]) (1995) proposed much richer versions of HTML,
despite never receiving consensus in standards discussions, these drafts led to
the adoption of a range new features. The efforts of the World Wide Web
Consortium’s
HTML working group to codify common in 1996 resulted in HTML 3.2
(January 1997). Most people agree that HTML documents should work well
across different browsers and platforms. Achieving interoperability lowers costs
to content providers since they must develop only one version of a document. If
the effort is not made, there is much greater risk that the Web will devolve into
a proprietary world of incompatible formats, ultimately reducing the Web’s
commercial potential for all participants.
SOFTWARE METHODOLOGY

The software methodology followed in this project includes the object-


oriented methodology and the application system development
methodologies. The description of these methodologies is given below.
Application System Development – A Life cycle Approach

Although there are a growing number of applications (such as decision support


systems) that should be developed using an experimental process strategy such
as prototyping, a significant amount of new development work continue to
involve major operational applications of broad scope. The application systems
are large highly structured. User task comprehension and developer task
proficiency is usually high. These factors suggest a linear or iterative assurance
strategy. The most common method for this stage class of problems is a system
development life cycle modal in which each stage of development is well
defined and has straightforward requirements for deliverables, feedback and
sign off. The system development life cycle is described in detail since it
continues to be an appropriate methodology for a significant part of new
development work.

The basic idea of the system development life cycle is that there is a well-
defined process by which an application is conceived and developed and
implemented. The life cycle gives structure to a creative process. In order to
manage and control the development effort, it is necessary to know what should
have been done, what has been done, and what has yet to be accomplished. The
phrases in the system development life cycle provide a basis for management
and control because they define segments of the
flow of work, which can be identified for managerial purposes and specifies the
documents or other deliverables to be produced in each phase.

The phases in the life cycle for information system development are described
differently by different writers, but the differences are primarily in the amount
of necessity and manner of categorization. There is a general agreement on the
flow of development steps and the necessity for control procedures at each
stage.

The information system development cycle for an application consists of three


major stages.

1) Definition.
2) Development.
3) Installation and operation.

The first stage of the process, which defines the information requirements for a
feasible cost effective system. The requirements are then translated into a
physical system of forms, procedures, programs etc., by the system design,
computer programming and procedure development. The resulting system is test
and put into operation. No system is perfect so there is always a need for
maintenance changes. To complete the cycle, there should be a post audit of the
system to evaluate how well it performs and how well it meets the cost and
performance specifications. The stages of definition, development and
installation and operation can therefore be divided into smaller steps or phrases
as follows.
Definition
Proposed definition : preparation of request for proposed applications.
Feasibility assessment : evaluation of feasibility and cost benefit of proposed
system.
Information requirement analysis : determination of information needed.

Design
Conceptual design : User-oriented design of application development.
Physical system design : Detailed design of flows and processes in
applications processing system and preparation of program specification.
Development
Program development : coding and testing of computer programs.
Procedure development : design of procedures and preparation of user
instructions.

Installation and operation

Conversion : final system test and conversion.


Operation and maintenance : Month to month operation and maintenance
Post audit : Evaluation of development process,application
system and results of use at the completion of the each phase, formal approval
sign-off is required from the users as well as from the manager of the project
development.
Testing
Testing is a process of executing a program with the indent of finding an
error. Testing is a crucial element of software quality assurance and presents
ultimate review of specification, design and coding.
System Testing is an important phase. Testing represents an interesting anomaly
for the software. Thus a series of testing are performed for the proposed system
before the system is ready for user acceptance testing.

A good test case is one that has a high probability of finding an as


undiscovered error. A successful test is one that uncovers an as undiscovered
error.

Testing Objectives:

1. Testing is a process of executing a program with the intent of finding an error


2. A good test case is one that has a probability of finding an as yet undiscovered
error
3. A successful test is one that uncovers an undiscovered error

Testing Principles:

• All tests should be traceable to end user requirements


• Tests should be planned long before testing begins
• Testing should begin on a small scale and progress towards testing in large
• Exhaustive testing is not possible
• To be most effective testing should be conducted by a independent third party

The primary objective for test case design is to derive a set of tests that has the
highest livelihood for uncovering defects in software. To accomplish this
objective two different categories of test case design techniques are used. They
are
 White box testing.

 Black box testing.

White-box testing:

White box testing focus on the program control structure. Test cases are
derived to ensure that all statements in the program have been executed at least
once during testing and that all logical conditions have been executed.

Block-box testing:

Black box testing is designed to validate functional requirements without regard


to the internal workings of a program. Black box testing mainly focuses on the
information domain of the software, deriving test cases by partitioning input and
output in a manner that provides through test coverage. Incorrect and missing
functions, interface errors, errors in data structures, error in functional logic are
the errors falling in this category.

Testing strategies:

A strategy for software testing must accommodate low-level tests that are
necessary to verify that all small source code segment has been correctly
implemented as well as high-level tests that validate major system functions
against customer requirements.

Testing fundamentals:
Testing is a process of executing program with the intent of finding error.
A good test case is one that has high probability of finding an undiscovered
error. If testing is conducted successfully it uncovers the errors in the software.
Testing cannot show the absence of defects, it can only show that software
defects present.
Testing Information flow:

Information flow for testing flows the pattern. Two class of input
provided to test the process. The software configuration includes a software
requirements specification, a design specification and source code.

Test configuration includes test plan and test cases and test tools. Tests are
conducted and all the results are evaluated. That is test results are compared
with expected results. When erroneous data are uncovered, an error is implied
and debugging commences.

Unit Testing:

Unit testing is essential for the verification of the code produced during
the coding phase and hence the goal is to test the internal logic of the modules.
Using the detailed design description as a guide, important paths are tested to
uncover errors with in the boundary of the modules. These tests were carried
out during the programming stage itself. All units of ViennaSQL were
successfully tested.

Integration testing :

Integration testing focuses on unit tested modules and build the program
structure that is dictated by the design phase.

System testing:
System testing tests the integration of each module in the system. It also
tests to find discrepancies between the system and it’s original objective, current
specification and system documentation. The primary concern is the
compatibility of individual modules. Entire system is working properly or not
will be tested here, and specified path ODBC connection will correct or not, and
giving output or not are tested here these verifications and validations are done
by giving input values to the system and by comparing with expected output.
Top-down testing implementing here.

Acceptance Testing:

This testing is done to verify the readiness of the system for the implementation.
Acceptance testing begins when the system is complete. Its purpose is to
provide the end user with the confidence that the system is ready for use. It
involves planning and execution of functional tests, performance tests and stress
tests in order to demonstrate that the implemented system satisfies its
requirements.

Tools to special importance during acceptance testing include:

Test coverage Analyzer – records the control paths followed for each test case.

Timing Analyzer – also called a profiler, reports the time spent in various
regions of the code are areas to concentrate on to improve system performance.

Coding standards – static analyzers and standard checkers are used to inspect
code for deviations from standards and guidelines.

Test Cases:
Test cases are derived to ensure that all statements in the program have
been executed at least once during testing and that all logical conditions have
been executed.
Using White-Box testing methods, the software engineer can drive test cases
that

• Guarantee that logical decisions on their true and false sides.


• Exercise all logical decisions on their true and false sides.
• Execute all loops at their boundaries and with in their operational bounds.
• Exercise internal data structure to assure their validity.
The test case specification for system testing has to be submitted for review
before system testing commences.

CONCLUSION:

The package was designed in such a way that future modifications


can be done easily. The following conclusions can
be deduced from the development of the project.

 Automation of the entire system improves the efficiency


 It provides a friendly graphical user interface which proves to be
better when compared to the existing system.
 It gives appropriate access to the authorized users depending on
their permissions.
 It effectively overcomes the delay in communications.
 Updating of information becomes so easier.
 System security, data security and reliability are the striking
features.
 The System has adequate scope for modification in future if it is
necessary.
BIBLIOGRAPHY

The following books were referred during the analysis and execution
phase of the project

PHP and MySQL Web Development

Book by Luke Welling

Head First PHP & MySQL

Book by Lynn Beighley and Michael Morrison

PHP & MySQL for Dummies

Book by Janet Valade

WEBSITES:

• www.google.com
• www.w3schools.com
• www.tutorialspoint.php
• http://stackoverflow.com
PROGRAM CODE

<?php

error_reporting(0);

include('includes/config.php');

?>

<!DOCTYPE html>

<html lang="en">

<head>

<meta charset="utf-8" />

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


scale=1, shrink-to-fit=no" />

<meta name="description" content="" />

<meta name="author" content="" />

<title>Student Result Management System</title>

<!-- Favicon-->

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

<!-- Core theme CSS (includes Bootstrap)-->

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


</head>

<body>

<!-- Responsive navbar-->

<nav class="navbar navbar-expand-lg navbar-dark bg-dark">

<div class="container">

<a class="navbar-brand" href="index.php">SRMS-(Student


Result Management System)</a>

<button class="navbar-toggler" type="button" data-bs-


toggle="collapse" data-bs-target="#navbarSupportedContent" aria-
controls="navbarSupportedContent" aria-expanded="false" aria-
label="Toggle navigation"><span
class="navbar-toggler-icon"></span></button>

<div class="collapse navbar-collapse"


id="navbarSupportedContent">

<ul class="navbar-nav ms-auto mb-2 mb-lg-0">

<li class="nav-item"><a class="nav-link active" aria-


current="page" href="#!">Home</a></li>

<li class="nav-item"><a class="nav-link active"


href="find-result.php">Students</a></li>

<li class="nav-item"><a class="nav-link active"


href="admin-login.php">Admin</a></li>

</ul>
</div>

</div>

</nav>

<!-- Header - set the background image for the header in the line
below-->

<header class="py-5 bg-image-full" style="background-image:


url('images/background-image.jpg')">

</header>

<!-- Content section-->

<section class="py-5">

<div class="container my-5">

<div class="row justify-content-center">

<div class="col-lg-6">

<h2>Notice Board</h2>

<hr color="#000" />

<marquee direction="up" onmouseover="this.stop();"


onmouseout="this.start();">

<ul>
<?php $sql = "SELECT * from tblnotice";

$query = $dbh->prepare($sql);

$query->execute();

$results=$query->fetchAll(PDO::FETCH_OBJ);

$cnt=1;

if($query->rowCount() > 0)

foreach($results as $result)

{ ?>

<li><a href="notice-details.php?nid=<?php echo htmlentities($result-


>id);?>" target="_blank"><?php echo htmlentities($result->noticeTitle);?
></li>

<?php }} ?>

</ul>

</marquee>

</div>

</div>
</div>

</section>

<!-- Footer-->

<footer class="py-5 bg-dark">

<div class="container"><p class="m-0 text-center text-white">


Student Result Management System</p></div>

</footer>

<!-- Bootstrap core JS-->

<script
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.
min.js"></script>

<!-- Core theme JS-->

<script src="js/scripts.js"></script>

</body>

</html>
DASH BOARD
<?php
session_start();
error_reporting(0);
include('includes/config.php');
if(strlen($_SESSION['alogin'])=="")
{ header("Location: index.php"); }else{
?>

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Student Result Management System | Dashboard</title>
<link rel="stylesheet" href="css/bootstrap.min.css" media="screen" >
<link rel="stylesheet" href="css/font-awesome.min.css" media="screen" >
<link rel="stylesheet" href="css/animate-css/animate.min.css" media="screen" >
<link rel="stylesheet" href="css/lobipanel/lobipanel.min.css" media="screen" >
<link rel="stylesheet" href="css/toastr/toastr.min.css" media="screen" >
<link rel="stylesheet" href="css/icheck/skins/line/blue.css" >
<link rel="stylesheet" href="css/icheck/skins/line/red.css" >
<link rel="stylesheet" href="css/icheck/skins/line/green.css" >
<link rel="stylesheet" href="css/main.css" media="screen" >
<script src="js/modernizr/modernizr.min.js"></script>
</head>
<body class="top-navbar-fixed">
<div class="main-wrapper">
<?php include('includes/topbar.php');?>
<div class="content-wrapper">
<div class="content-container">

<?php include('includes/leftbar.php');?>

<div class="main-page">
<div class="container-fluid">
<div class="row page-title-div">
<div class="col-sm-6">
<h2 class="title">Dashboard</h2>

</div>
<!-- /.col-sm-6 -->
</div>
<!-- /.row -->

</div>
<!-- /.container-fluid -->

<section class="section">
<div class="container-fluid">
<div class="row">
<div class="col-lg-6 col-md-6 col-sm-6 col-xs-12">
<a class="dashboard-stat bg-primary" href="manage-students.php">
<?php
$sql1 ="SELECT StudentId from tblstudents ";
$query1 = $dbh -> prepare($sql1);
$query1->execute();
$results1=$query1->fetchAll(PDO::FETCH_OBJ);
$totalstudents=$query1->rowCount();
?>

<span class="number counter"><?php echo


htmlentities($totalstudents);?></span>
<span class="name">Regd Users</span>
<span class="bg-icon"><i class="fa fa-users"></i></span>
</a>
<!-- /.dashboard-stat -->
</div>
<!-- /.col-lg-3 col-md-3 col-sm-6 col-xs-12 -->

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


<a class="dashboard-stat bg-danger" href="manage-subjects.php">
<?php
$sql ="SELECT id from tblsubjects ";
$query = $dbh -> prepare($sql);
$query->execute();
$results=$query->fetchAll(PDO::FETCH_OBJ);
$totalsubjects=$query->rowCount();
?>
<span class="number counter"><?php echo
htmlentities($totalsubjects);?></span>
<span class="name">Subjects Listed</span>
<span class="bg-icon"><i class="fa fa-ticket"></i></span>
</a>
<!-- /.dashboard-stat -->
</div>
<!-- /.col-lg-3 col-md-3 col-sm-6 col-xs-12 -->

<div class="col-lg-6 col-md-6 col-sm-6 col-xs-12" style="margin-


top:1%;">
<a class="dashboard-stat bg-warning" href="manage-classes.php">
<?php
$sql2 ="SELECT id from tblclasses ";
$query2 = $dbh -> prepare($sql2);
$query2->execute();
$results2=$query2->fetchAll(PDO::FETCH_OBJ);
$totalclasses=$query2->rowCount();
?>
<span class="number counter"><?php echo
htmlentities($totalclasses);?></span>
<span class="name">Total classes listed</span>
<span class="bg-icon"><i class="fa fa-bank"></i></span>
</a>
<!-- /.dashboard-stat -->
</div>
<!-- /.col-lg-3 col-md-3 col-sm-6 col-xs-12 -->

<div class="col-lg-6 col-md-6 col-sm-6 col-xs-12" style="margin-


top:1%">
<a class="dashboard-stat bg-success" href="manage-results.php">
<?php
$sql3="SELECT distinct StudentId from tblresult ";
$query3 = $dbh -> prepare($sql3);
$query3->execute();
$results3=$query3->fetchAll(PDO::FETCH_OBJ);
$totalresults=$query3->rowCount();
?>

<span class="number counter"><?php echo


htmlentities($totalresults);?></span>
<span class="name">Results Declared</span>
<span class="bg-icon"><i class="fa fa-file-text"></i></span>
</a>
<!-- /.dashboard-stat -->
</div>
<!-- /.col-lg-3 col-md-3 col-sm-6 col-xs-12 -->

</div>
<!-- /.row -->
</div>
<!-- /.container-fluid -->
</section>
<!-- /.section -->

</div>
<!-- /.main-page -->

</div>
<!-- /.content-container -->
</div>
<!-- /.content-wrapper -->

</div>
<!-- /.main-wrapper -->

<!-- ========== COMMON JS FILES ========== -->


<script src="js/jquery/jquery-2.2.4.min.js"></script>
<script src="js/jquery-ui/jquery-ui.min.js"></script>
<script src="js/bootstrap/bootstrap.min.js"></script>
<script src="js/pace/pace.min.js"></script>
<script src="js/lobipanel/lobipanel.min.js"></script>
<script src="js/iscroll/iscroll.js"></script>

<!-- ========== PAGE JS FILES ========== -->


<script src="js/prism/prism.js"></script>
<script src="js/waypoint/waypoints.min.js"></script>
<script src="js/counterUp/jquery.counterup.min.js"></script>
<script src="js/amcharts/amcharts.js"></script>
<script src="js/amcharts/serial.js"></script>
<script src="js/amcharts/plugins/export/export.min.js"></script>
<link rel="stylesheet" href="js/amcharts/plugins/export/export.css" type="text/css"
media="all" />
<script src="js/amcharts/themes/light.js"></script>
<script src="js/toastr/toastr.min.js"></script>
<script src="js/icheck/icheck.min.js"></script>

<!-- ========== THEME JS ========== -->


<script src="js/main.js"></script>
<script src="js/production-chart.js"></script>
<script src="js/traffic-chart.js"></script>
<script src="js/task-list.js"></script>
<script>
$(function(){

// Counter for dashboard stats


$('.counter').counterUp({
delay: 10,
time: 1000
});

// Welcome notification
toastr.options = {
"closeButton": true,
"debug": false,
"newestOnTop": false,
"progressBar": false,
"positionClass": "toast-top-right",
"preventDuplicates": false,
"onclick": null,
"showDuration": "300",
"hideDuration": "1000",
"timeOut": "5000",
"extendedTimeOut": "1000",
"showEasing": "swing",
"hideEasing": "linear",
"showMethod": "fadeIn",
"hideMethod": "fadeOut"
}
toastr["success"]( "Welcome to student Result Management System!");

});
</script>
</body>
</html>
<?php } ?>

Admin login
<?php
session_start();
error_reporting(0);
include('includes/config.php');
if($_SESSION['alogin']!=''){
$_SESSION['alogin']='';
}
if(isset($_POST['login']))
{
$uname=$_POST['username'];
$password=md5($_POST['password']);
$sql ="SELECT UserName,Password FROM admin WHERE UserName=:uname and
Password=:password";
$query= $dbh -> prepare($sql);
$query-> bindParam(':uname', $uname, PDO::PARAM_STR);
$query-> bindParam(':password', $password, PDO::PARAM_STR);
$query-> execute();
$results=$query->fetchAll(PDO::FETCH_OBJ);
if($query->rowCount() > 0)
{
$_SESSION['alogin']=$_POST['username'];
echo "<script type='text/javascript'> document.location = 'dashboard.php'; </script>";
} else{

echo "<script>alert('Invalid Details');</script>";

}
}

?>

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Admin Login</title>
<link rel="stylesheet" href="css/bootstrap.min.css" media="screen" >
<link rel="stylesheet" href="css/font-awesome.min.css" media="screen" >
<link rel="stylesheet" href="css/animate-css/animate.min.css" media="screen" >
<link rel="stylesheet" href="css/prism/prism.css" media="screen" > <!-- USED FOR DEMO
HELP - YOU CAN REMOVE IT -->
<link rel="stylesheet" href="css/main.css" media="screen" >
<script src="js/modernizr/modernizr.min.js"></script>
</head>
<body class="">
<div class="main-wrapper">

<div class="">
<div class="row">
<h1 align="center">Student Result Management System</h1>

<div class="col-lg-3"></div>
<div class="col-lg-6">
<section class="section">
<div class="row mt-40">
<div class="col-md-10 col-md-offset-1 pt-50">

<div class="row mt-30 ">


<div class="col-md-11">
<div class="panel">
<div class="panel-heading">
<div class="panel-title text-center">
<h4>Admin Login</h4>
</div>
</div>
<div class="panel-body p-20">

<form class="form-horizontal" method="post">


<div class="form-group">
<label for="inputEmail3" class="col-sm-2 control-
label">Username</label>
<div class="col-sm-10">
<input type="text" name="username"
class="form-control" id="inputEmail3" placeholder="UserName">
</div>
</div>
<div class="form-group">
<label for="inputPassword3" class="col-sm-2
control-label">Password</label>
<div class="col-sm-10">
<input type="password" name="password"
class="form-control" id="inputPassword3" placeholder="Password">
</div>
</div>

<div class="form-group mt-20">


<div class="col-sm-offset-2 col-sm-10">

<button type="submit" name="login"


class="btn btn-success btn-labeled pull-right">Sign in<span class="btn-label btn-label-right"><i
class="fa fa-check"></i></span></button>
</div>
</div>
</form>

</div>
</div>
<!-- /.panel -->
<p class="text-muted text-center"><small>Student Result
Management System</small></p>
</div>
<!-- /.col-md-11 -->
</div>
<!-- /.row -->
</div>
<!-- /.col-md-12 -->
</div>
<!-- /.row -->
</section>

</div>
<!-- /.col-md-6 -->
</div>
<!-- /.row -->
</div>
<!-- /. -->

</div>
<!-- /.main-wrapper -->

<!-- ========== COMMON JS FILES ========== -->


<script src="js/jquery/jquery-2.2.4.min.js"></script>
<script src="js/jquery-ui/jquery-ui.min.js"></script>
<script src="js/bootstrap/bootstrap.min.js"></script>
<script src="js/pace/pace.min.js"></script>
<script src="js/lobipanel/lobipanel.min.js"></script>
<script src="js/iscroll/iscroll.js"></script>

<!-- ========== PAGE JS FILES ========== -->


<!-- ========== THEME JS ========== -->
<script src="js/main.js"></script>
<script>
$(function(){

});
</script>

<!-- ========== ADD custom.js FILE BELOW WITH YOUR CHANGES ==========
-->
</body>
</html>

ADD STUDENTS
<?php
session_start();
error_reporting(0);
include('includes/config.php');
if(strlen($_SESSION['alogin'])=="")
{
header("Location: index.php");
}
else{
if(isset($_POST['submit']))
{
$studentname=$_POST['fullanme'];
$roolid=$_POST['rollid'];
$studentemail=$_POST['emailid'];
$gender=$_POST['gender'];
$classid=$_POST['class'];
$dob=$_POST['dob'];
$status=1;
$sql="INSERT INTO
tblstudents(StudentName,RollId,StudentEmail,Gender,ClassId,DOB,Status)
VALUES(:studentname,:roolid,:studentemail,:gender,:classid,:dob,:status)";
$query = $dbh->prepare($sql);
$query->bindParam(':studentname',$studentname,PDO::PARAM_STR);
$query->bindParam(':roolid',$roolid,PDO::PARAM_STR);
$query->bindParam(':studentemail',$studentemail,PDO::PARAM_STR);
$query->bindParam(':gender',$gender,PDO::PARAM_STR);
$query->bindParam(':classid',$classid,PDO::PARAM_STR);
$query->bindParam(':dob',$dob,PDO::PARAM_STR);
$query->bindParam(':status',$status,PDO::PARAM_STR);
$query->execute();
$lastInsertId = $dbh->lastInsertId();
if($lastInsertId)
{
$msg="Student info added successfully";
}
else
{
$error="Something went wrong. Please try again";
}

}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>SMS Admin| Student Admission< </title>
<link rel="stylesheet" href="css/bootstrap.min.css" media="screen" >
<link rel="stylesheet" href="css/font-awesome.min.css" media="screen" >
<link rel="stylesheet" href="css/animate-css/animate.min.css" media="screen" >
<link rel="stylesheet" href="css/lobipanel/lobipanel.min.css" media="screen" >
<link rel="stylesheet" href="css/prism/prism.css" media="screen" >
<link rel="stylesheet" href="css/select2/select2.min.css" >
<link rel="stylesheet" href="css/main.css" media="screen" >
<script src="js/modernizr/modernizr.min.js"></script>
</head>
<body class="top-navbar-fixed">
<div class="main-wrapper">

<!-- ========== TOP NAVBAR ========== -->


<?php include('includes/topbar.php');?>
<!-- ========== WRAPPER FOR BOTH SIDEBARS & MAIN CONTENT
========== -->
<div class="content-wrapper">
<div class="content-container">

<!-- ========== LEFT SIDEBAR ========== -->


<?php include('includes/leftbar.php');?>
<!-- /.left-sidebar -->

<div class="main-page">

<div class="container-fluid">
<div class="row page-title-div">
<div class="col-md-6">
<h2 class="title">Student Admission</h2>

</div>

<!-- /.col-md-6 text-right -->


</div>
<!-- /.row -->
<div class="row breadcrumb-div">
<div class="col-md-6">
<ul class="breadcrumb">
<li><a href="dashboard.php"><i class="fa fa-home"></i>
Home</a></li>

<li class="active">Student Admission</li>


</ul>
</div>

</div>
<!-- /.row -->
</div>
<div class="container-fluid">

<div class="row">
<div class="col-md-12">
<div class="panel">
<div class="panel-heading">
<div class="panel-title">
<h5>Fill the Student info</h5>
</div>
</div>
<div class="panel-body">
<?php if($msg){?>
<div class="alert alert-success left-icon-alert" role="alert">
<strong>Well done!</strong><?php echo htmlentities($msg); ?>
</div><?php }
else if($error){?>
<div class="alert alert-danger left-icon-alert" role="alert">
<strong>Oh snap!</strong> <?php echo
htmlentities($error); ?>
</div>
<?php } ?>
<form class="form-horizontal" method="post">

<div class="form-group">
<label for="default" class="col-sm-2 control-label">Full Name</label>
<div class="col-sm-10">
<input type="text" name="fullanme" class="form-control" id="fullanme"
required="required" autocomplete="off">
</div>
</div>

<div class="form-group">
<label for="default" class="col-sm-2 control-label">Rool Id</label>
<div class="col-sm-10">
<input type="text" name="rollid" class="form-control" id="rollid" maxlength="5"
required="required" autocomplete="off">
</div>
</div>

<div class="form-group">
<label for="default" class="col-sm-2 control-label">Email id)</label>
<div class="col-sm-10">
<input type="email" name="emailid" class="form-control" id="email"
required="required" autocomplete="off">
</div>
</div>

<div class="form-group">
<label for="default" class="col-sm-2 control-label">Gender</label>
<div class="col-sm-10">
<input type="radio" name="gender" value="Male" required="required"
checked="">Male <input type="radio" name="gender" value="Female"
required="required">Female <input type="radio" name="gender" value="Other"
required="required">Other
</div>
</div>
<div class="form-group">
<label for="default" class="col-sm-2 control-
label">Class</label>
<div class="col-sm-10">
<select name="class" class="form-control" id="default" required="required">
<option value="">Select Class</option>
<?php $sql = "SELECT * from tblclasses";
$query = $dbh->prepare($sql);
$query->execute();
$results=$query->fetchAll(PDO::FETCH_OBJ);
if($query->rowCount() > 0)
{
foreach($results as $result)
{ ?>
<option value="<?php echo htmlentities($result->id); ?>"><?php echo
htmlentities($result->ClassName); ?>&nbsp; Section-<?php echo htmlentities($result-
>Section); ?></option>
<?php }} ?>
</select>
</div>
</div>
<div class="form-group">
<label for="date" class="col-sm-2 control-
label">DOB</label>
<div class="col-sm-10">
<input type="date" name="dob" class="form-
control" id="date">
</div>
</div>

<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<button type="submit" name="submit"
class="btn btn-primary">Add</button>
</div>
</div>
</form>
</div>
</div>
</div>
<!-- /.col-md-12 -->
</div>
</div>
</div>
<!-- /.content-container -->
</div>
<!-- /.content-wrapper -->
</div>
<!-- /.main-wrapper -->
<script src="js/jquery/jquery-2.2.4.min.js"></script>
<script src="js/bootstrap/bootstrap.min.js"></script>
<script src="js/pace/pace.min.js"></script>
<script src="js/lobipanel/lobipanel.min.js"></script>
<script src="js/iscroll/iscroll.js"></script>
<script src="js/prism/prism.js"></script>
<script src="js/select2/select2.min.js"></script>
<script src="js/main.js"></script>
<script>
$(function($) {
$(".js-states").select2();
$(".js-states-limit").select2({
maximumSelectionLength: 2
});
$(".js-states-hide").select2({
minimumResultsForSearch: Infinity
});
});
</script>
</body>
</html>
<?PHP } ?>

ADD RESULT
<?php
session_start();
error_reporting(0);
include('includes/config.php');
if(strlen($_SESSION['alogin'])=="")
{
header("Location: index.php");
}
else{
if(isset($_POST['submit']))
{
$marks=array();
$class=$_POST['class'];
$studentid=$_POST['studentid'];
$mark=$_POST['marks'];

$stmt = $dbh->prepare("SELECT tblsubjects.SubjectName,tblsubjects.id FROM


tblsubjectcombination join tblsubjects on tblsubjects.id=tblsubjectcombination.SubjectId
WHERE tblsubjectcombination.ClassId=:cid order by tblsubjects.SubjectName");
$stmt->execute(array(':cid' => $class));
$sid1=array();
while($row=$stmt->fetch(PDO::FETCH_ASSOC))
{

array_push($sid1,$row['id']);
}

for($i=0;$i<count($mark);$i++){
$mar=$mark[$i];
$sid=$sid1[$i];
$sql="INSERT INTO tblresult(StudentId,ClassId,SubjectId,marks)
VALUES(:studentid,:class,:sid,:marks)";
$query = $dbh->prepare($sql);
$query->bindParam(':studentid',$studentid,PDO::PARAM_STR);
$query->bindParam(':class',$class,PDO::PARAM_STR);
$query->bindParam(':sid',$sid,PDO::PARAM_STR);
$query->bindParam(':marks',$mar,PDO::PARAM_STR);
$query->execute();
$lastInsertId = $dbh->lastInsertId();
if($lastInsertId)
{
$msg="Result info added successfully";
}
else
{
$error="Something went wrong. Please try again";
}
}
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>SMS Admin| Add Result </title>
<link rel="stylesheet" href="css/bootstrap.min.css" media="screen" >
<link rel="stylesheet" href="css/font-awesome.min.css" media="screen" >
<link rel="stylesheet" href="css/animate-css/animate.min.css" media="screen" >
<link rel="stylesheet" href="css/lobipanel/lobipanel.min.css" media="screen" >
<link rel="stylesheet" href="css/prism/prism.css" media="screen" >
<link rel="stylesheet" href="css/select2/select2.min.css" >
<link rel="stylesheet" href="css/main.css" media="screen" >
<script src="js/modernizr/modernizr.min.js"></script>
<script>
function getStudent(val) {
$.ajax({
type: "POST",
url: "get_student.php",
data:'classid='+val,
success: function(data){
$("#studentid").html(data);

}
});
$.ajax({
type: "POST",
url: "get_student.php",
data:'classid1='+val,
success: function(data){
$("#subject").html(data);

}
});
}
</script>
<script>

function getresult(val,clid)
{
var clid=$(".clid").val();
var val=$(".stid").val();;
var abh=clid+'$'+val;
//alert(abh);
$.ajax({
type: "POST",
url: "get_student.php",
data:'studclass='+abh,
success: function(data){
$("#reslt").html(data);

}
});
}
</script>

</head>
<body class="top-navbar-fixed">
<div class="main-wrapper">

<!-- ========== TOP NAVBAR ========== -->


<?php include('includes/topbar.php');?>
<!-- ========== WRAPPER FOR BOTH SIDEBARS & MAIN CONTENT
========== -->
<div class="content-wrapper">
<div class="content-container">

<!-- ========== LEFT SIDEBAR ========== -->


<?php include('includes/leftbar.php');?>
<!-- /.left-sidebar -->

<div class="main-page">

<div class="container-fluid">
<div class="row page-title-div">
<div class="col-md-6">
<h2 class="title">Declare Result</h2>

</div>

<!-- /.col-md-6 text-right -->


</div>
<!-- /.row -->
<div class="row breadcrumb-div">
<div class="col-md-6">
<ul class="breadcrumb">
<li><a href="dashboard.php"><i class="fa fa-home"></i>
Home</a></li>

<li class="active">Student Result</li>


</ul>
</div>
</div>
<!-- /.row -->
</div>
<div class="container-fluid">

<div class="row">
<div class="col-md-12">
<div class="panel">

<div class="panel-body">
<?php if($msg){?>
<div class="alert alert-success left-icon-alert" role="alert">
<strong>Well done!</strong><?php echo htmlentities($msg); ?>
</div><?php }
else if($error){?>
<div class="alert alert-danger left-icon-alert" role="alert">
<strong>Oh snap!</strong> <?php echo htmlentities($error); ?>
</div>
<?php } ?>
<form class="form-horizontal" method="post">

<div class="form-group">
<label for="default" class="col-sm-2 control-label">Class</label>
<div class="col-sm-10">
<select name="class" class="form-control clid" id="classid" onChange="getStudent(this.value);"
required="required">
<option value="">Select Class</option>
<?php $sql = "SELECT * from tblclasses";
$query = $dbh->prepare($sql);
$query->execute();
$results=$query->fetchAll(PDO::FETCH_OBJ);
if($query->rowCount() > 0)
{
foreach($results as $result)
{ ?>
<option value="<?php echo htmlentities($result->id); ?>"><?php echo htmlentities($result-
>ClassName); ?>&nbsp; Section-<?php echo htmlentities($result->Section); ?></option>
<?php }} ?>
</select>
</div>
</div>
<div class="form-group">
<label for="date" class="col-sm-2 control-label ">Student
Name</label>
<div class="col-sm-10">
<select name="studentid" class="form-control stid"
id="studentid" required="required" onChange="getresult(this.value);">
</select>
</div>
</div>

<div class="form-group">
<div class="col-sm-10">
<div id="reslt">
</div>
</div>
</div>

<div class="form-group">
<label for="date" class="col-sm-2
control-label">Subjects</label>
<div class="col-sm-10">
<div id="subject">
</div>
</div>
</div>

<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<button type="submit" name="submit" id="submit"
class="btn btn-primary">Declare Result</button>
</div>
</div>
</form>

</div>
</div>
</div>
<!-- /.col-md-12 -->
</div>
</div>
</div>
<!-- /.content-container -->
</div>
<!-- /.content-wrapper -->
</div>
<!-- /.main-wrapper -->
<script src="js/jquery/jquery-2.2.4.min.js"></script>
<script src="js/bootstrap/bootstrap.min.js"></script>
<script src="js/pace/pace.min.js"></script>
<script src="js/lobipanel/lobipanel.min.js"></script>
<script src="js/iscroll/iscroll.js"></script>
<script src="js/prism/prism.js"></script>
<script src="js/select2/select2.min.js"></script>
<script src="js/main.js"></script>
<script>
$(function($) {
$(".js-states").select2();
$(".js-states-limit").select2({
maximumSelectionLength: 2
});
$(".js-states-hide").select2({
minimumResultsForSearch: Infinity
});
});
</script>
</body>
</html>
<?PHP } ?>

ADD NOTICE

<?php

session_start();

error_reporting(0);

include('includes/config.php');

if(strlen($_SESSION['alogin'])==""){

header("Location: index.php");

}else{

if(isset($_POST['submit']))

$ntitle=$_POST['noticetitle'];

$ndetails=$_POST['noticedetails'];

$sql="INSERT INTO tblnotice(noticeTitle,noticeDetails) VALUES(:ntitle,:ndetails)";


$query = $dbh->prepare($sql);

$query->bindParam(':ntitle',$ntitle,PDO::PARAM_STR);

$query->bindParam(':ndetails',$ndetails,PDO::PARAM_STR);

$query->execute();

$lastInsertId = $dbh->lastInsertId();

if($lastInsertId)

echo '<script>alert("Notice added succesfully")</script>';

echo "<script>window.location.href ='manage-notices.php'</script>";

}else {

echo '<script>alert("Something went wrong. Please try again.")</script>';

?>

<!DOCTYPE html>

<html lang="en">

<head>

<meta charset="utf-8">

<meta http-equiv="X-UA-Compatible" content="IE=edge">

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


<title>SRMS Admin | Add Notice</title>

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

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

<link rel="stylesheet" href="css/animate-css/animate.min.css" media="screen" >

<link rel="stylesheet" href="css/lobipanel/lobipanel.min.css" media="screen" >

<link rel="stylesheet" href="css/prism/prism.css" media="screen" > <!-- USED FOR DEMO


HELP - YOU CAN REMOVE IT -->

<link rel="stylesheet" href="css/main.css" media="screen" >

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

<style>

.errorWrap {

padding: 10px;

margin: 0 0 20px 0;

background: #fff;

border-left: 4px solid #dd3d36;

-webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);

box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);

.succWrap{

padding: 10px;

margin: 0 0 20px 0;
background: #fff;

border-left: 4px solid #5cb85c;

-webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);

box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);

</style>

</head>

<body class="top-navbar-fixed">

<div class="main-wrapper">

<!-- ========== TOP NAVBAR ========== -->

<?php include('includes/topbar.php');?>

<div class="content-wrapper">

<div class="content-container">

<?php include('includes/leftbar.php');?>

<div class="main-page">
<div class="container-fluid">

<div class="row page-title-div">

<div class="col-md-6">

<h2 class="title">Add Notice</h2>

</div>

</div>

<div class="row breadcrumb-div">

<div class="col-md-6">

<ul class="breadcrumb">

<li><a href="dashboard.php"><i class="fa fa-


home"></i> Home</a></li>

<li><a href="#">Notices</a></li>

<li class="active">Add Notice</li>

</ul>

</div>

</div>

</div>
<section class="section">

<div class="container-fluid">

<div class="row">

<div class="col-md-8 col-md-offset-2">

<div class="panel">

<div class="panel-heading">

<div class="panel-title">

<h5>Add Notice</h5>

</div>

</div>

<div class="panel-body">

<form method="post">
<div class="form-group has-success">

<label for="success" class="control-label">Notice


Title</label>

<div class="">

<input type="text" name="noticetitle" class="form-


control" required="required" id="noticetitle">

</div>

</div>

<div class="form-group has-success">

<label for="success" class="control-label">Notice


Details</label>

<div class="">

<textarea class="form-control" name="noticedetails" required


rows="5"></textarea>

</div>

</div>

<div class="form-group has-success">

<div class="">

<button type="submit" name="submit" class="btn btn-


success btn-labeled">Submit<span class="btn-label btn-label-right"><i class="fa
fa-check"></i></span></button>

</div>
</form>

</div>

</div>

</div>

<!-- /.col-md-8 col-md-offset-2 -->

</div>

<!-- /.row -->

</div>

<!-- /.container-fluid -->

</section>

<!-- /.section -->


</div>

<!-- /.main-page -->

</div>

<!-- /.content-container -->

</div>

<!-- /.content-wrapper -->

</div>

<!-- /.main-wrapper -->

<!-- ========== COMMON JS FILES ========== -->

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

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

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

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

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

<script src="js/iscroll/iscroll.js"></script>

<!-- ========== PAGE JS FILES ========== -->

<script src="js/prism/prism.js"></script>
<!-- ========== THEME JS ========== -->

<script src="js/main.js"></script>

<!-- ========== ADD custom.js FILE BELOW WITH YOUR CHANGES ==========
-->

</body>

</html>

<?php } ?>

ADD SUBJECT COMBINATION

<?php

session_start();

error_reporting(0);

include('includes/config.php');

if(strlen($_SESSION['alogin'])==""){

header("Location: index.php");

}else{

if(isset($_POST['submit']))

$ntitle=$_POST['noticetitle'];
$ndetails=$_POST['noticedetails'];

$sql="INSERT INTO tblnotice(noticeTitle,noticeDetails) VALUES(:ntitle,:ndetails)";

$query = $dbh->prepare($sql);

$query->bindParam(':ntitle',$ntitle,PDO::PARAM_STR);

$query->bindParam(':ndetails',$ndetails,PDO::PARAM_STR);

$query->execute();

$lastInsertId = $dbh->lastInsertId();

if($lastInsertId)

echo '<script>alert("Notice added succesfully")</script>';

echo "<script>window.location.href ='manage-notices.php'</script>";

}else {

echo '<script>alert("Something went wrong. Please try again.")</script>';

?>

<!DOCTYPE html>

<html lang="en">

<head>

<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">

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

<title>SRMS Admin | Add Notice</title>

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

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

<link rel="stylesheet" href="css/animate-css/animate.min.css" media="screen" >

<link rel="stylesheet" href="css/lobipanel/lobipanel.min.css" media="screen" >

<link rel="stylesheet" href="css/prism/prism.css" media="screen" > <!-- USED FOR DEMO


HELP - YOU CAN REMOVE IT -->

<link rel="stylesheet" href="css/main.css" media="screen" >

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

<style>

.errorWrap {

padding: 10px;

margin: 0 0 20px 0;

background: #fff;

border-left: 4px solid #dd3d36;

-webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);

box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);

.succWrap{
padding: 10px;

margin: 0 0 20px 0;

background: #fff;

border-left: 4px solid #5cb85c;

-webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);

box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);

</style>

</head>

<body class="top-navbar-fixed">

<div class="main-wrapper">

<!-- ========== TOP NAVBAR ========== -->

<?php include('includes/topbar.php');?>

<div class="content-wrapper">

<div class="content-container">

<?php include('includes/leftbar.php');?>

<div class="main-page"><div class="container-fluid">

<div class="row page-title-div"><div class="col-md-6"><h2 class="title">Add Notice</h2>


</div></div><div class="row breadcrumb-div"><div class="col-md-6">

<ul class="breadcrumb">

<li><a href="dashboard.php"><i class="fa fa-home"></i> Home</a></li>

<li><a href="#">Notices</a></li><li class="active">Add Notice</li></ul>

</div</div</div><section class="section"><div class="container-fluid">

<div class="row"><div class="col-md-8 col-md-offset-2"><div class="panel">

<div class="panel-heading"><div class="panel-title"><h5>Add Notice</h5></div></div>

<div class="panel-body"><form method="post"><div class="form-group has-success">

<label for="success" class="control-label">Notice Title</label><div class="">

<input type="text" name="noticetitle" class="form-control" required="required"


id="noticetitle"></div></div><div class="form-group has-success">

<label for="success" class="control-label">Notice Details</label><div class="">

<textarea class="form-control" name="noticedetails" required rows="5"></textarea>

</div></div> <div class="form-group has-success"><div class="">

<button type="submit" name="submit" class="btn btn-success btn-labeled">Submit<span


class="btn-label btn-label-right"><i class="fa fa-check"></i></span></button>

</div>

</form>
</div>

</div>

</div>

<!-- /.col-md-8 col-md-offset-2 -->

</div>

<!-- /.row -->

</div>

<!-- /.container-fluid -->

</section>

<!-- /.section -->

</div>

<!-- /.main-page -->

</div>

<!-- /.content-container -->


</div>

<!-- /.content-wrapper -->

</div>

<!-- /.main-wrapper -->

<!-- ========== COMMON JS FILES ========== -->

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

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

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

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

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

<script src="js/iscroll/iscroll.js"></script>

<!-- ========== PAGE JS FILES ========== -->

<script src="js/prism/prism.js"></script>

<!-- ========== THEME JS ========== -->

<script src="js/main.js"></script>

<!-- ========== ADD custom.js FILE BELOW WITH YOUR CHANGES ==========
-->
</body>

</html>

<?php } ?>

CREATE SUBJECT

<?php

session_start();

error_reporting(0);

include('includes/config.php');

if(strlen($_SESSION['alogin'])=="")

header("Location: index.php");

else{

if(isset($_POST['submit']))

$subjectname=$_POST['subjectname'];

$subjectcode=$_POST['subjectcode'];

$sql="INSERT INTO tblsubjects(SubjectName,SubjectCode)


VALUES(:subjectname,:subjectcode)";
$query = $dbh->prepare($sql);

$query->bindParam(':subjectname',$subjectname,PDO::PARAM_STR);

$query->bindParam(':subjectcode',$subjectcode,PDO::PARAM_STR);

$query->execute();

$lastInsertId = $dbh->lastInsertId();

if($lastInsertId)

$msg="Subject Created successfully";

else

$error="Something went wrong. Please try again";

?>

<!DOCTYPE html>

<html lang="en">

<head>

<meta charset="utf-8">

<meta http-equiv="X-UA-Compatible" content="IE=edge">


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

<title>SMS Admin Subject Creation </title>

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

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

<link rel="stylesheet" href="css/animate-css/animate.min.css" media="screen" >

<link rel="stylesheet" href="css/lobipanel/lobipanel.min.css" media="screen" >

<link rel="stylesheet" href="css/prism/prism.css" media="screen" >

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

<link rel="stylesheet" href="css/main.css" media="screen" >

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

</head>

<body class="top-navbar-fixed">

<div class="main-wrapper">

<!-- ========== TOP NAVBAR ========== -->

<?php include('includes/topbar.php');?>

<!-- ========== WRAPPER FOR BOTH SIDEBARS & MAIN CONTENT


========== -->

<div class="content-wrapper">

<div class="content-container">
<!-- ========== LEFT SIDEBAR ========== -->

<?php include('includes/leftbar.php');?>

<!-- /.left-sidebar -->

<div class="main-page">

<div class="container-fluid">

<div class="row page-title-div">

<div class="col-md-6">

<h2 class="title">Subject Creation</h2>

</div>

<!-- /.col-md-6 text-right -->

</div>

<!-- /.row -->

<div class="row breadcrumb-div">

<div class="col-md-6">

<ul class="breadcrumb">

<li><a href="dashboard.php"><i class="fa fa-home"></i>


Home</a></li>
<li> Subjects</li>

<li class="active">Create Subject</li>

</ul>

</div>

</div>

<!-- /.row -->

</div>

<div class="container-fluid">

<div class="row">

<div class="col-md-12">

<div class="panel">

<div class="panel-heading">

<div class="panel-title">

<h5>Create Subject</h5>

</div>

</div>

<div class="panel-body">

<?php if($msg){?>

<div class="alert alert-success left-icon-alert" role="alert">


<strong>Well done!</strong><?php echo htmlentities($msg); ?>

</div><?php }

else if($error){?>

<div class="alert alert-danger left-icon-alert" role="alert">

<strong>Oh snap!</strong> <?php echo htmlentities($error); ?>

</div>

<?php } ?>

<form class="form-horizontal" method="post">

<div class="form-group">

<label for="default" class="col-sm-2 control-label">Subject


Name</label>

<div class="col-sm-10">

<input type="text" name="subjectname" class="form-control" id="default" placeholder="Subject


Name" required="required">

</div>

</div>

<div class="form-group">

<label for="default" class="col-sm-2 control-label">Subject


Code</label>

<div class="col-sm-10">

<input type="text" name="subjectcode" class="form-control" id="default" placeholder="Subject


Code" required="required">

</div>
</div>

<div class="form-group">

<div class="col-sm-offset-2 col-sm-10">

<button type="submit" name="submit" class="btn btn-


primary">Submit</button>

</div>

</div>

</form>

</div>

</div>

</div>

<!-- /.col-md-12 -->

</div>

</div>

</div>

<!-- /.content-container -->

</div>
<!-- /.content-wrapper -->

</div>

<!-- /.main-wrapper -->

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

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

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

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

<script src="js/iscroll/iscroll.js"></script>

<script src="js/prism/prism.js"></script>

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

<script src="js/main.js"></script>

<script>

$(function($) {

$(".js-states").select2();

$(".js-states-limit").select2({

maximumSelectionLength: 2

});

$(".js-states-hide").select2({

minimumResultsForSearch: Infinity

});

});
</script>

</body>

</html>

<?PHP } ?>

CREATE CLASS

<?php

session_start();

error_reporting(0);

include('includes/config.php');

if(strlen($_SESSION['alogin'])=="")

header("Location: index.php");

else{

if(isset($_POST['submit']))

$classname=$_POST['classname'];

$classnamenumeric=$_POST['classnamenumeric'];

$section=$_POST['section'];
$sql="INSERT INTO tblclasses(ClassName,ClassNameNumeric,Section)
VALUES(:classname,:classnamenumeric,:section)";

$query = $dbh->prepare($sql);

$query->bindParam(':classname',$classname,PDO::PARAM_STR);

$query->bindParam(':classnamenumeric',$classnamenumeric,PDO::PARAM_STR);

$query->bindParam(':section',$section,PDO::PARAM_STR);

$query->execute();

$lastInsertId = $dbh->lastInsertId();

if($lastInsertId)

$msg="Class Created successfully";

else

$error="Something went wrong. Please try again";

?>

<!DOCTYPE html>

<html lang="en">
<head>

<meta charset="utf-8">

<meta http-equiv="X-UA-Compatible" content="IE=edge">

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

<title>SMS Admin Create Class</title>

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

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

<link rel="stylesheet" href="css/animate-css/animate.min.css" media="screen" >

<link rel="stylesheet" href="css/lobipanel/lobipanel.min.css" media="screen" >

<link rel="stylesheet" href="css/prism/prism.css" media="screen" > <!-- USED FOR DEMO


HELP - YOU CAN REMOVE IT -->

<link rel="stylesheet" href="css/main.css" media="screen" >

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

<style>

.errorWrap {

padding: 10px;

margin: 0 0 20px 0;

background: #fff;

border-left: 4px solid #dd3d36;

-webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);

box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);


}

.succWrap{

padding: 10px;

margin: 0 0 20px 0;

background: #fff;

border-left: 4px solid #5cb85c;

-webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);

box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);

</style>

</head>

<body class="top-navbar-fixed">

<div class="main-wrapper">

<!-- ========== TOP NAVBAR ========== -->

<?php include('includes/topbar.php');?>

<!-----End Top bar>

<!-- ========== WRAPPER FOR BOTH SIDEBARS & MAIN CONTENT


========== -->

<div class="content-wrapper">

<div class="content-container">
<!-- ========== LEFT SIDEBAR ========== -->

<?php include('includes/leftbar.php');?>

<!-- /.left-sidebar -->

<div class="main-page">

<div class="container-fluid">

<div class="row page-title-div">

<div class="col-md-6">

<h2 class="title">Create Student Class</h2>

</div>

</div>

<!-- /.row -->

<div class="row breadcrumb-div">

<div class="col-md-6">

<ul class="breadcrumb">

<li><a href="dashboard.php"><i class="fa fa-


home"></i> Home</a></li>

<li><a href="#">Classes</a></li>

<li class="active">Create Class</li>


</ul>

</div>

</div>

<!-- /.row -->

</div>

<!-- /.container-fluid -->

<section class="section">

<div class="container-fluid">

<div class="row">

<div class="col-md-8 col-md-offset-2">

<div class="panel">

<div class="panel-heading">

<div class="panel-title">

<h5>Create Student Class</h5>


</div>

</div>

<?php if($msg){?>

<div class="alert alert-success left-icon-alert" role="alert">

<strong>Well done!</strong><?php echo htmlentities($msg); ?>

</div><?php }

else if($error){?>

<div class="alert alert-danger left-icon-alert" role="alert">

<strong>Oh snap!</strong> <?php echo htmlentities($error); ?>

</div>

<?php } ?>

<div class="panel-body">

<form method="post">

<div class="form-group has-success">

<label for="success" class="control-label">Class


Name</label>

<div class="">

<input type="text" name="classname" class="form-


control" required="required" id="success">

<span class="help-block">Eg- Third, Fouth,Sixth etc</span>


</div>

</div>

<div class="form-group has-success">

<label for="success" class="control-label">Class Name in


Numeric</label>

<div class="">

<input type="number" name="classnamenumeric"


required="required" class="form-control" id="success">

<span class="help-block">Eg- 1,2,4,5 etc</span>

</div>

</div>

<div class="form-group has-success">

<label for="success" class="control-label">Section</label>

<div class="">

<input type="text" name="section" class="form-control"


required="required" id="success">

<span class="help-block">Eg- A,B,C etc</span>

</div>

</div>

<div class="form-group has-success">

<div class="">
<button type="submit" name="submit" class="btn btn-
success btn-labeled">Submit<span class="btn-label btn-label-right"><i class="fa
fa-check"></i></span></button>

</div>

</form>

</div>

</div>

</div>

<!-- /.col-md-8 col-md-offset-2 -->

</div>

<!-- /.row -->

</div>

<!-- /.container-fluid -->


</section>

<!-- /.section -->

</div>

<!-- /.main-page -->

</div>

<!-- /.content-container -->

</div>

<!-- /.content-wrapper -->

</div>

<!-- /.main-wrapper -->

<!-- ========== COMMON JS FILES ========== -->

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

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

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

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

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

<script src="js/iscroll/iscroll.js"></script>
<!-- ========== PAGE JS FILES ========== -->

<script src="js/prism/prism.js"></script>

<!-- ========== THEME JS ========== -->

<script src="js/main.js"></script>

<!-- ========== ADD custom.js FILE BELOW WITH YOUR CHANGES ==========
-->

</body>

</html>

<?php } ?>

CHANGE PASSWORD

<?php

session_start();

error_reporting(0);

include('includes/config.php');
if(strlen($_SESSION['alogin'])=="")

header("Location: index.php");

else{

if(isset($_POST['submit']))

$password=md5($_POST['password']);

$newpassword=md5($_POST['newpassword']);

$username=$_SESSION['alogin'];

$sql ="SELECT Password FROM admin WHERE UserName=:username and


Password=:password";

$query= $dbh -> prepare($sql);

$query-> bindParam(':username', $username, PDO::PARAM_STR);

$query-> bindParam(':password', $password, PDO::PARAM_STR);

$query-> execute();

$results = $query -> fetchAll(PDO::FETCH_OBJ);

if($query -> rowCount() > 0)

$con="update admin set Password=:newpassword where UserName=:username";

$chngpwd1 = $dbh->prepare($con);
$chngpwd1-> bindParam(':username', $username, PDO::PARAM_STR);

$chngpwd1-> bindParam(':newpassword', $newpassword, PDO::PARAM_STR);

$chngpwd1->execute();

$msg="Your Password succesfully changed";

else {

$error="Your current password is wrong";

?>

<!DOCTYPE html>

<html lang="en">

<head>

<meta charset="utf-8">

<meta http-equiv="X-UA-Compatible" content="IE=edge">

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

<title>Admin change password</title>

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

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

<link rel="stylesheet" href="css/animate-css/animate.min.css" media="screen" >

<link rel="stylesheet" href="css/lobipanel/lobipanel.min.css" media="screen" >


<link rel="stylesheet" href="css/prism/prism.css" media="screen" > <!-- USED FOR DEMO
HELP - YOU CAN REMOVE IT -->

<link rel="stylesheet" href="css/main.css" media="screen" >

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

<script type="text/javascript">

function valid()

if(document.chngpwd.newpassword.value!= document.chngpwd.confirmpassword.value)

alert("New Password and Confirm Password Field do not match !!");

document.chngpwd.confirmpassword.focus();

return false;

return true;

</script>

<style>

.errorWrap {

padding: 10px;

margin: 0 0 20px 0;

background: #fff;
border-left: 4px solid #dd3d36;

-webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);

box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);

.succWrap{

padding: 10px;

margin: 0 0 20px 0;

background: #fff;

border-left: 4px solid #5cb85c;

-webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);

box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);

</style>

</head>

<body class="top-navbar-fixed">

<div class="main-wrapper">

<?php include('includes/topbar.php');?>

<div class="content-wrapper">

<div class="content-container">

<?php include('includes/leftbar.php');?>

<!-- /.left-sidebar -->


<div class="main-page">

<div class="container-fluid">

<div class="row page-title-div">

<div class="col-md-6">

<h2 class="title">Admin Change Password</h2>

</div>

</div>

<!-- /.row -->

<div class="row breadcrumb-div">

<div class="col-md-6">

<ul class="breadcrumb">

<li><a href="dashboard.php"><i class="fa fa-


home"></i> Home</a></li>

<li class="active">Admin change


password</li>

</ul>

</div>

</div>
<!-- /.row -->

</div>

<!-- /.container-fluid -->

<section class="section">

<div class="container-fluid">

<div class="row">

<div class="col-md-8 col-md-offset-2">

<div class="panel">

<div class="panel-heading">

<div class="panel-title">

<h5>Admin Change Password</h5>

</div>

</div>

<?php if($msg){?>

<div class="alert alert-success left-icon-alert" role="alert">


<strong>Well done!</strong><?php echo htmlentities($msg); ?>

</div><?php }

else if($error){?>

<div class="alert alert-danger left-icon-alert" role="alert">

<strong>Oh snap!</strong> <?php echo htmlentities($error); ?>

</div>

<?php } ?>

<div class="panel-body">

<form name="chngpwd" method="post" \ onSubmit="return


valid();">

<div class="form-group has-success">

<label for="success" class="control-label">Current


Password</label>

<div class="">

<input type="password" name="password" class="form-control"


required="required" id="success">

</div>

</div>

<div class="form-group has-success">


<label for="success" class="control-label">New
Password</label>

<div class="">

<input type="password" name="newpassword"


required="required" class="form-control" id="success">

</div>

</div>

<div class="form-group has-success">

<label for="success" class="control-label">Confirm


Password</label>

<div class="">

<input type="password" name="confirmpassword"


class="form-control" required="required" id="success">

</div>

</div>

<div class="form-group has-success">

<div class="">

<button type="submit" name="submit" class="btn btn-


success btn-labeled">Change<span class="btn-label btn-label-right"><i class="fa
fa-check"></i></span></button>

</div>
</form>

</div>

</div>

</div>

<!-- /.col-md-8 col-md-offset-2 -->

</div>

<!-- /.row -->

</div>

<!-- /.container-fluid -->

</section>

<!-- /.section -->

</div>

<!-- /.main-page -->


</div>

<!-- /.content-container -->

</div>

<!-- /.content-wrapper -->

</div>

<!-- /.main-wrapper -->

<!-- ========== COMMON JS FILES ========== -->

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

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

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

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

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

<script src="js/iscroll/iscroll.js"></script>

<!-- ========== PAGE JS FILES ========== -->

<script src="js/prism/prism.js"></script>

<!-- ========== THEME JS ========== -->


<script src="js/main.js"></script>

<!-- ========== ADD custom.js FILE BELOW WITH YOUR CHANGES ==========
-->

</body>

</html>

<?php } ?>

RESULT

<?php

session_start();

error_reporting(0);

include('includes/config.php');

?>

<!DOCTYPE html>

<html lang="en">

<head>

<meta charset="utf-8">

<meta http-equiv="X-UA-Compatible" content="IE=edge">


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

<title>Result Management System</title>

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

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

<link rel="stylesheet" href="css/animate-css/animate.min.css" media="screen" >

<link rel="stylesheet" href="css/lobipanel/lobipanel.min.css" media="screen" >

<link rel="stylesheet" href="css/prism/prism.css" media="screen" >

<link rel="stylesheet" href="css/main.css" media="screen" >

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

</head>

<body>

<div class="main-wrapper">

<div class="content-wrapper">

<div class="content-container">

<!-- /.left-sidebar -->

<div class="main-page">

<div class="container-fluid">

<div class="row page-title-div">


<div class="col-md-12">

<h2 class="title" align="center">Result Management System</h2>

</div>

</div>

<!-- /.row -->

<!-- /.row -->

</div>

<!-- /.container-fluid -->

<section class="section" id="exampl">

<div class="container-fluid">

<div class="row">

<div class="col-md-8 col-md-offset-2">

<div class="panel">

<div class="panel-heading">

<div class="panel-title">
<h3 align="center">Student Result Details</h3>

<hr />

<?php

// code Student Data

$rollid=$_POST['rollid'];

$classid=$_POST['class'];

$_SESSION['rollid']=$rollid;

$_SESSION['classid']=$classid;

$qery = "SELECT
tblstudents.StudentName,tblstudents.RollId,tblstudents.RegDate,tblstudents.StudentId,tblstudents.
Status,tblclasses.ClassName,tblclasses.Section from tblstudents join tblclasses on
tblclasses.id=tblstudents.ClassId where tblstudents.RollId=:rollid and tblstudents.ClassId=:classid
";

$stmt = $dbh->prepare($qery);

$stmt->bindParam(':rollid',$rollid,PDO::PARAM_STR);

$stmt->bindParam(':classid',$classid,PDO::PARAM_STR);

$stmt->execute();

$resultss=$stmt->fetchAll(PDO::FETCH_OBJ);

$cnt=1;

if($stmt->rowCount() > 0)

foreach($resultss as $row)

{ ?>
<p><b>Student Name :</b> <?php echo htmlentities($row->StudentName);?></p>

<p><b>Student Roll Id :</b> <?php echo htmlentities($row->RollId);?>

<p><b>Student Class:</b> <?php echo htmlentities($row->ClassName);?>(<?php echo


htmlentities($row->Section);?>)

<?php }

?>

</div>

<div class="panel-body p-20">

<table class="table table-hover table-bordered" border="1"


width="100%">

<thead>

<tr style="text-align: center">

<th style="text-align: center">#</th>

<th style="text-align: center"> Subject</th>


<th style="text-align: center">Marks</th>

</tr>

</thead>

<tbody>

<?php

// Code for result

$query ="select t.StudentName,t.RollId,t.ClassId,t.marks,SubjectId,tblsubjects.SubjectName from


(select sts.StudentName,sts.RollId,sts.ClassId,tr.marks,SubjectId from tblstudents as sts join
tblresult as tr on tr.StudentId=sts.StudentId) as t join tblsubjects on tblsubjects.id=t.SubjectId
where (t.RollId=:rollid and t.ClassId=:classid)";

$query= $dbh -> prepare($query);

$query->bindParam(':rollid',$rollid,PDO::PARAM_STR);

$query->bindParam(':classid',$classid,PDO::PARAM_STR);

$query-> execute();

$results = $query -> fetchAll(PDO::FETCH_OBJ);

$cnt=1;

if($countrow=$query->rowCount()>0)
{

foreach($results as $result){

?>

<tr>

<th scope="row" style="text-align: center"><?php echo htmlentities($cnt);?></th>

<td style="text-align: center"><?php echo htmlentities($result->SubjectName);?></td>

<td style="text-align: center"><?php echo htmlentities($totalmarks=$result->marks);?></td>

</tr>

<?php

$totlcount+=$totalmarks;

$cnt++;}

?>

<tr>

<th scope="row" colspan="2" style="text-align: center">Total Marks</th>

<td style="text-align: center"><b><?php echo htmlentities($totlcount); ?></b> out of <b><?php


echo htmlentities($outof=($cnt-1)*100); ?></b></td>

</tr>

<tr>

<th scope="row" colspan="2" style="text-align: center">Percntage</th>


<td style="text-align: center"><b><?php echo htmlentities($totlcount*(100)/$outof); ?>
%</b></td>

</tr>

<tr>

<td colspan="3" align="center"><i class="fa fa-print fa-2x" aria-hidden="true"


style="cursor:pointer" OnClick="CallPrint(this.value)" ></i></td>

</tr>

<?php } else { ?>

<div class="alert alert-warning left-icon-alert" role="alert">

<strong>Notice!</strong> Your result not declare yet

<?php }

?>

</div>

<?php

} else

{?>

<div class="alert alert-danger left-icon-alert" role="alert">

strong>Oh snap!</strong>
<?php

echo htmlentities("Invalid Roll Id");

?>

</div>

</tbody>

</table>

</div>

</div>

<!-- /.panel -->

</div>

<!-- /.col-md-6 -->

<div class="form-group">

<div class="col-sm-6">

<a href="index.php">Back to Home</a>


</div>

</div>

</div>

<!-- /.row -->

</div>

<!-- /.container-fluid -->

</section>

<!-- /.section -->

</div>

<!-- /.main-page -->

</div>

<!-- /.content-container -->

</div>

<!-- /.content-wrapper -->

</div>
<!-- /.main-wrapper -->

<!-- ========== COMMON JS FILES ========== -->

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

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

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

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

<script src="js/iscroll/iscroll.js"></script>

<!-- ========== PAGE JS FILES ========== -->

<script src="js/prism/prism.js"></script>

<!-- ========== THEME JS ========== -->

<script src="js/main.js"></script>

<script>

$(function($) {

});

function CallPrint(strid) {
var prtContent = document.getElementById("exampl");

var WinPrint = window.open('', '',


'left=0,top=0,width=800,height=900,toolbar=0,scrollbars=0,status=0');

WinPrint.document.write(prtContent.innerHTML);

WinPrint.document.close();

WinPrint.focus();

WinPrint.print();

</script>

</script>

<!-- ========== ADD custom.js FILE BELOW WITH YOUR CHANGES ==========
-->

</body>

</html>

LOGOUT

<?php

session_start();
$_SESSION = array();

if (ini_get("session.use_cookies")) {

$params = session_get_cookie_params();

setcookie(session_name(), '', time() - 60*60,

$params["path"], $params["domain"],

$params["secure"], $params["httponly"]

);

unset($_SESSION['login']);

session_destroy(); // destroy session

header("location:index.php");

?>

You might also like