You are on page 1of 138

BANGALORE INSTITUTE OF TECHNOLOGY

K.R.Road, V.V.Puram, Bengaluru-560004

Department of Master of Computer Applications


MINI PROJECT
Subject Code: 18MCA29
II Semester MCA
2019-2020
BANGALORE INSTITUTE OF TECHNOLOGY
K.R.Road, V.V.Puram, Bengaluru-560004
Department of Master of Computer Applications

LAB CERTIFICATE
This is to certify that POORNIMA MC, MUHAMMED WASIL YOUNUS K M
has satisfactorily completed the course in MINI PROJECT as prescribed
by the VISVESVARAYA TECHNOLOGICAL UNIVERSITY for II
Semester MCA during the academic year 2019-2020.
USN No: 1IH19MCA10, 1IH19MCA02

Prof. RAJESHWARI
Prof. VIDYA S
(Asst. Professor, Dept. of MCA) (Asst. Professor, Dept. of
MCA)
BIT, Bengaluru
BIT, Bengaluru.

Examiners Prof. A M Shivaram


Assoc. Professor, HOD, Dept. of
1.
MCA
2. BIT, Bengaluru.
Alumni management system 3

BANGALORE INSTITUTE OF TECHNOLOGY


K.R.Road, V.V.Puram, Bengaluru-560004

Vision
To establish and develop the Institute as a centre of higher learning, ever abreast with expanding
horizon of knowledge in the field of engineering and technology, with entrepreneurial thinking,
leadership excellence for life-long success and solve societal problem.

Mission

 Provide high quality education in the engineering disciplines from the undergraduate through
doctoral levels with creative academic and professional programs.
 Develop the Institute as a leader in Science, Engineering, Technology and management,
Research and apply knowledge for the benefit of society.
 Establish mutual beneficial partnerships with industry, alumni, local, state and central
governments by public service assistance and collaborative research.
 Inculcate personality development through sports, cultural and extracurricular activities and
engage in the social, economic and professional challenges.

Bangalore Institute of Technology Department of MCA 2019-20


BANGALORE INSTITUTE OF TECHNOLOGY

K.R.Road, V.V.Puram, Bengaluru-560004

Department of Master of Computer Applications

Vision

To transform young graduates into skilled computer professionals to meet Industrial and
Social needs.

Mission
 To enhance the Teaching learning process to meet quality education in the field of
Computer applications
 To impart the knowledge in current technologies to meet the industrial needs
 To inculcate ethical values and leadership qualities for the betterment of society

PEO’s
 PEO1: To develop quality application software with innovative ideas to meet the
industrial requirements
 PEO2: To imbibe the current technologies and to adopt in computing profession as per
the changing needs
 PEO3: To progress in their career with leadership qualities and ethical values that
enhances self and societal growth
Alumni management system 5

Subject: Min Project Subject Code: 18MCA29


Year: 2019 Batch

CO Description PO
Identify the suitable problem making use of technical
1
and engineering knowledge gained from previous PO1,P02,PO6,PO10
courses with the awareness of impact of technology on
the society and their ethical responsibility.
Understand and analyze the project requirement and
involve in designing a project with a comprehensive and
2 systematic approach.
PO1,PO2,PO3

Ability to adopt and apply appropriate techniques to


3 segregate work and execute/implement project using PO1,PO5
appropriate tools.
Design & develop skills to disseminate technical
4 information means of oral as well as written PO3,PO9
presentation skills.
Contribute work as an individual & a team member in
5 developing a project.
PO7,PO11

CO-PO Mapping:

PO PO PO PO PO PO PO PO PO PO PO1 PO1 PO1


1 2 3 4 5 6 6 7 8 9 0 1 2

CO
3 3 3 3
1

CO
3 3 3
2

CO
2 2
3

CO
2 2
4

CO
3 3
5

CONTENTS

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 6

Sl Programs Pg
no no

1 Abstract 7

2 Introduction 8

3 Requirement Specification 9

4 System Analysis 9-21

5 Design 22-32

6 Snapshots 33-59

7 Coding 60-
126

8 Testing 127-
131

9 Conclusion 132-

10 Future Enhancement 132

11 Bibliography 133

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 7

ABSTRACT

The information system for communication with alumni embodies one


of many ways how university can keep tracking with its graduates.
Except for communication between university and its graduates, the
information system should allow communication between graduates
themselves and their personal presentation in public.

The system also should collect actual information about working


experience of graduates, which can improve faculty credits and
teaching process. The presented information system includes all these
points and focuses on usability and comfortable user interface.

The aim of this project is to build an Alumni of visvesvaraya


technological university online dashboard, it is intended to manage
especially the Alumni of college of science with their respective
fields.

The project mange the fresh as well as old graduate students with
their respective information in actively participating in making
registering, searching, managing the alumni information for sharing
their expertise, network, jobs opportunities and resources.

This participation has evolved into multiple dimensions; and is now


eager to formally enter into the domain of mentorship to students
through a regular program. Alumni registration management system
(Alumni Dashboard) is a step towards this, creating multidimensional
interactions between current and past students .

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 8

RESEARCH PROBLEM

Existing system is a manual one in which users are maintaining


documents paper work to store the information like colleges details,
student details. It is very difficult to maintain historical data. It is
difficult to maintain important information in documents paper work.
More manual hours need to generate required reports. It is tedious to
manage historical data which needs much space to keep all the
previous years, ledgers, documents paper work.

INTRODUCTION

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 9

The aim of this project is to build a system that will be able to manage
alumni data of a college and provide easy access to the same. Alumni of a
college generally stay in touch with their immediate friends but find it hard
to stay connected with other college mates.

Contact between alumni can be used to forge business connections and to


gain references or insight in a new field. New college students will be
initially given a student login ID. Access to the system can help them in
building connections to help them in their projects or for placements.

The system will automatically list all college students as alumni on their
graduation and their account status will be transferred from the student
module to the alumni module. Users will be prompted to update social
network details such as their Facebook, LinkedIn and Twitter handles.
Users can also choose to automatically share new updates in work status
from their LinkedIn profile.

Users will also be able to share and promote their business Facebook pages
or Twitter handles through the system. This single system will be able to
bypass the requirement of any other Alumni organization. The system can
track user location as given by the user. Once the system notices that more
than 10 alumni are available in the same city it can notify all of them about
the possibility of a meet.

Alumni will also be able to provide public posts on the system about
possible job opportunities or other college related news. Since it is unlikely
that alumni will check the system frequently the system will be able collate
all public posts and create a newsletter that can be emailed to all alumni.

The system will also privacy features. Users can determine what
information they want to share and also whom they want to share it with.

For example users can choose to share their Facebook profile name and
mobile number with alumni who graduated in the same year as them.

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 10

They system will also have a chat feature which will enable alumni to chat
without revealing their mobile number or personal e – mail ID.

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 11

REQUIREMENT SPECIFICATION

SOFTWARE REQUIREMENTS:

OPERATING SYSTEM : WINDOWS 8

FRONT END : HTML,CSS,JS,BOOTSTRAP,PHP

BACK END : PHP,XAMPP

HARDWARE REQUIREMENTS:

PROCESSOR : Intel® Core™ i3-7020U @ 2.30GHz

MEMORY (RAM) : 8.00 GB

SYSTEM TYPE : 64-bit Operating System

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 12

SYSTEM ANALYSIS

The blue print of the developer is nothing but the Requirement Analysis
document when the requirement of the system is to be converted into an actual
documentation. The programmer has to use his intuition to determine what
activities the module is supposed to perform.

 IDENTIFICATION OF PROBLEM:
 FEASIBILITY STUDY:

EXISTING SYSTEM:

Hospitals currently use a manual system for the management and maintainance of
critical information. The current system requires numerous paper forms, with data
stores spread through out the hospital management infrastructure. Often
information is incomplete or does not follow management standards. Forms are
often lost in transit between departments requiring a comprehensive auditing
process to ensure that no vital information is lost. Multiple copies of the same
information exist in the hospital and may lead to inconsistencies in data in various
data stores.

PROPOSED SYSTEM:

The Hospital Management System is designed for any hospital to replace their
existing manual paper based system. The new system is to control the information of
patients. Room availability, staff and operating room schedules and patient invoices.
These services are to be provided in an efficient, cost effective manner, with the goal
of reducing the time and resources currently required for such tasks .

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 13

FEASIBILITY STUDY

The feasibility of the project is analysed in this phase and business proposal is put
forth with a very general plan for the project and some cost estimates. During system
analysis the feasibility study of the proposed system is to be carried out. This is to
ensure that the proposed system is not a burden to the company. For feasibility
analysis, some understanding of the major requirements for the system is essential.

Three key considerations involved in the feasibility analysis are:

1) Economic Feasibility
This study is carried out to check the economic impact will have on the system will
have on the organization. The amount of fund that the company can pour into the
research and development of the system is limited. The expenditures must be justified.
Thus the developed system as well within the budget and this was achieved because
most of the technologies used are freely available. Only the customised products have
to be purchased.

2) Technical Feasibility
This study is carried out to check the technical feasibility, that is,the technical
requirements of the system. Any system developed must not have a high demand on
the available available technical resources. This will lead to high demands being
placed on the client. The developed system must have a modest requirement, as only
minimal or null changes for the implementing this system.

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 14

3) Operational Feasibility
The aspect of study is to check the level of acceptance of the system by the user.
This includes the process of training the user to use the system efficiently. The user
must not feel threatened by the system, instead must accept it as a necessity. The
level of acceptance by the users solely depends on the methods that are employed
to educate the user about the system and to make him familiar with it. His level of
confidence must be raised so that he is also able to make some constructive
criticism, which is welcomed, as he is the final user of the system.

PROJECT SCHEDULING:
Software Process Models: ITERATIVE AND INCREMENTAL DEVELOPMENT
The basic idea behind this method is to develop a system through repeated cycles
(iterative) and in smaller portions at a time (incremental), allowing software
developers to take advantage of what was learned during development of earlier
parts or versions of the system.

Learning comes from both the development and use of the system, where possible
key steps in the process start with a simple implementation of a subset of the
software requirements and iteratively enhance the evolving versions until the full
system is implemented.

At each iteration, design modifications are made and new functional capabilities
are added

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 15

INITIALIZATION

REQUIREMENTS

PLANNING
DESIGN

EVALUATION
IMPLEMENTATION

VERIFICATION

DEPLOYMENT

 Inception identifies project scope, requirements (functional


and non-functional) and risks at a high level but in enough
detail that work can be estimated.
 Elaboration delivers a working architecture that mitigates the
top risks and fulfills the non-functional requirements.
 Construction incrementally fills-in the architecture with
production-ready code produced from analysis, design,
implementation, and testing of the functional requirements.
 Transition delivers the system into the production operating
environment.

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 16

Software Requirements Specification

The software Requirements Specification is produced at the culmination of the


analysis task. The function and performance allocated to software as part of system
engineering are refined by establishing a complete information description, a
detailed functional and behavioural description, an indication of performance
requirements and design constraints, appropriate validation criteria, and other data
pertinent to requirements.

The proposed system has the following requirements:

 System needs store information about new entry of database.


 System needs to help the internal staff to keep information of Patient and
find them as per various quires.
 System need to maintain quantity record.
 System need to update and delete the record.
 System also needs a search area.
 It also needs a security system to prevent data.

UML Approach

UML Diagram

A diagram is the graphical presentation of a set of elements, most often rendered as a


connected graph of vertices and arcs . you draw diagram to visualize a system from
different perspective, so a diagram is a projection into a system. For all but most trivial
systems, a diagram represents an elided view of the elements that make up a system.
The same element may appear in all diagrams, only a few diagrams , or in no diagrams
at all. In theory, a diagram may contain any combination of things and relationships. In
practice, however, a small number of common combinations arise, which are
consistent with the five most useful views that comprise the architecture of a software-
intensive system.

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 17

For this reason, the UML includes nine such diagrams:


1. USECASE DIAGRAM
2. CLASS DIAGRAM
3. SEQUENCE DIAGRAM
4. COLLBORTIONS DIAGRAM
5. OBJECT DIAGRAM
6. DEPLOYMENT DIAGRAM
7. STATE CHART DIAGRAM
8. ACTIVITY DIAGRAM
9. COMPONENT DIAGRAM

USE CASE DIAGRAM FORADMIN


A usecase diagram in the Unified Modeling Language(UML) is a type of behavioral
diagram defined by and created from a use-case analysis. its purpose is to present a
graphical overview of the functionality provided by a system in terms of actors, their
goals(represented as use cases),and any dependencies between those use cases.

Use case diagrams are formally included in two modeling languages defined
by the OMG: the unified modeling language(UML) and the systems modeling
language(sys ML)

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 18

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 19

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 20

Class Diagram
A Class is a category or group of things that has similar attributes and common
behavior. A Rectangle is the icon that represents the class it is divided into three areas.
The upper most area contains the name, the middle; area contains the attributes and the
lowest areas show the operations. Class diagrams provides the representation that
developers work from. Class diagrams help on the analysis side, too.

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 21

Sequence Diagram
A Sequence Diagram is an interaction diagram that emphasis the time ordering of
messages; a collaboration diagram is an interaction diagram that emphasizes the
structural organization of the objects that send and receive messages. Sequence
diagrams and collaboration diagrams are isomorphic, meaning that you can take one
and transform it into the other.

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 22

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 23

Collaboration diagram:

A Collaboration Diagram also called a communication diagram or interaction


diagram, is an illustration of the relationships and interactions among software objects.
The concept is more than a decade old although it has been refined as modeling
paradigms have evolved.

Deployement diagram:

A Deployment Diagram shows the configuration of run-time processing nodes and


the components that live on them. Deployment diagrams address the static deployment
view of architecture. They are related to component diagrams in that a node typically
encloses one or more components.

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 24

Statechart Diagrams:
The state diagram shows the states of an object and represents activities as arrows
connecting the states. The Activity Diagram highlights the activities. Each activity is
represented by a rounded rectangle-narrower and more oval-shaped than the state icon.
An arrow represents the transition from the one activity to the next. The activity
diagram has a starting point represented by filled-in circle, and an end point
represented by bulls eye

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 25

Component diagram
Component diagram is a special kind of diagram in UML. The purpose is also different
from all other diagrams discussed so far. It does not describe the functionality of the
system but it describes the components used to make those functionalities.

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 26

ACTIVITY diagram
• Login

• view Feedback

• Chang password

• Add college

• Add colleg Info

• Then logout

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 27

DESIGN TOOLS
HTML:
HTML or Hypertext Markup Language is the standard markup language used to
create web pages.
HTML is written in the form of HTML elements consisting of tags enclosed in angle
brackets (like <html>). HTML tags most commonly come in pairs
like <h1> and </h1>, although some tags represent empty elements and so are
unpaired, for example <img>. The first tag in a pair is the start tag, and the second tag
is the end tag (they are also called opening tags and closing tags). Though not always
necessary, it is best practice to append a slash to tags which are not paired with a
closing tag.

The purpose of a web browser is to read HTML documents and compose them into
visible or audible web pages. The browser does not display the HTML tags, but uses
the tags to interpret the content of the page. HTML describes the structure of a website
semantically along with cues for presentation, making it a markup language rather than
a programming language.

HTML elements form the building blocks of all websites. HTML allows images and
objects to be embedded and can be used to create interactive forms. It provides a
means to create structured documents by denoting structural semantics for text such as
headings, paragraphs, lists, links, quotes and other items. It can embed scripts written
in languages such as JavaScript which affect the behavior of HTML web pages.

CASCADING STYLE SHEETS (CSS):

It is a style sheet language used for describing the look and formatting of a document


written in a markup language. While most often used to style web
pages and interfaces written in HTML and XHTML, the language can be applied to
any kind of XML document, including plain XML, SVG and XUL. CSS is a
cornerstone specification of the web and almost all web pages use CSS style sheets to
describe their presentation.

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 28

CSS is designed primarily to enable the separation of document content from


document presentation, including elements such as the layout, colors, and fonts.[1] This
separation can improve content accessibility, provide more flexibility and control in
the specification of presentation characteristics, enable multiple pages to share
formatting, and reduce complexity and repetition in the structural content .

CSS can also allow the same markup page to be presented in different styles for
different rendering methods, such as on-screen, in print, by voice (when read out by a
speech-based browser or screen reader) and on Braille-based, tactile devices. It can
also be used to allow the web page to display differently depending on the screen size
or device on which it is being viewed. While the author of a document typically links
that document to a CSS file, readers can use a different style sheet, perhaps one on
their own computer, to override the one the author has specified. However if the author
or the reader did not link the document to a specific style sheet the default style of the
browser will be applied.

JAVASCRIPT:

JavaScript is the scripting language of the Web. All modern HTML pages are using
JavaScript. A scripting language is a lightweight programming language.JavaScript
code can be inserted into any HTML page, and it can be executed by all types of web
browsers. JavaScript is easy to learn.

WHY TO USE JAVASCRIPT:

JavaScript is one of the 3 languages all web developers  must learn:

1. HTML to define the content of web pages


2. CSS to specify the layout of web pages
3. JavaScript to specify the behavior of web pages

Example
x = document.getElementById("demo");  //Find the HTML element with id="demo"
x.innerHTML = "Hello JavaScript";     //Change the content of the HTML element

document.getElementById() is one of the most commonly used HTML DOM


methods.

OTHER USES OF JAVASCRIPT:

 Delete HTML elements


 Create new HTML elements
 Copy HTML elements

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 29

 In HTML, JavaScript is a sequence of statements that can be executed by the


web browser.

JAVASCRIPT STATEMENTS:

 JavaScript statements are "commands" to the browser.


 The purpose of the statements is to tell the browser what to do.
 This JavaScript statement tells the browser to write "Hello Dolly" inside an
HTML element with id="demo":

Semicolon;
 Semicolon separates JavaScript statements.
 Normally you add a semicolon at the end of each executable statement.
 Using semicolons also makes it possible to write many statements on one line.

JAVASCRIPT CODE:

 JavaScript code (or just JavaScript) is a sequence of JavaScript statements.


 Each statement is executed by the browser in the sequence they are written.
 This example will manipulate two HTML elements:
 Example
 document.getElementById("demo").innerHTML="Hello Dolly";
document.getElementById("myDIV").innerHTML="How are you?";
JAVASCRIPT PROPERTIES:

 Properties are the values associated with a JavaScript object.

 A JavaScript object is a collection of unordered properties.

 Properties can usually be changed, added, and deleted, but some are read only.

BOOTSTRAP

Bootstrap is responsive, mobile-first, prevailing, and front-end framework, which is


developed along with CSS, JavaScript, and HTML. Bootstrap has many benefits from
scratch for every web development project, and one such reason is the huge number of
resources accessible for Bootstrap.

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 30

1. Easy to Use
It is extremely an easy and speedy procedure to begin with Bootstrap. Bootstrap is
very adaptable too. You can utilize Bootstrap along with CSS, or LESS, or also with
Sass [after you download the Sass version].

2. Responsiveness
Every year mobile devices persist to grow hugely popular, and the requirement to have
a responsive website has become compulsory and important too. As the fluid grid
layout amends vigorously to the appropriate screen resolution, thus crafting a mobile-
ready site is a smooth and easy task along with Bootstrap. With the use of ready-made
classes of Bootstrap, you can recognize the number of spots in the grid system that you
would like each column to engage in. Then only you can identify at whichever point
you would like your columns to load in horizontal position, instead of vertically to
exhibit accurately on mobile appliances.

3. The Speed of the Development


One of the main benefits of utilizing Bootstrap happens to be the speed of the
development. While driving out a new, fresh website or application swiftly, you should
certainly reflect upon utilizing Bootstrap. Instead of coding from scrape, Bootstrap lets
you to use ready-made coding blocks in order to assist you in setting up. You can
blend that along with CSS-Less functionality and cross-browser compatibility that can
give way to saving of ample hours of coding. You can even buy ready-made Bootstrap
themes and alter them to fit your requirements, for gaining the quickest potential route.

4. Customizable Bootstrap
The Bootstrap can be customized as per the designs of your project. The web
developers can make a choice to select the aspects which are required which can be
simply complete by utilizing Bootstrap customize page. You just have to tick off all
the aspects that you do not require, such as- Common CSS: typography, code, grid
system, tables, buttons, forms, print media styles; Components: input groups, button
groups, pager, labels, navs, navbar, badges, pagination; JavaScript components:
dropdowns, popovers, modals, tooltips, carousels; Utilities: Responsive utilities, basic
utilities. Thus your custom version of Bootstrap is all set for download process.

5. Consistency
Few Twitter employees firstly expanded Bootstrap as a framework for boosting the
consistency across interior tools. But later the Co-founder Mark Otto after
understanding the actual potential released in August 2011 the first open-source
version of Bootstrap. He even portrayed how the Bootstrap was enlarged with the use

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 31

of one core concept- pairing of designers along with developers. Thus Bootstrap
became popular on Twitter.

6. Support
As Bootstrap holds a big support community, you can be provided with help whenever
there comes any problem. The creators always keep the Bootstrap updated. Presently
Bootstrap is hosted, expanded, and preserved on the GitHub along with more than 9,000
commits, as well as more than 500 contributors.

7. Packaged JavaScript Components


Bootstrap approaches with a pack of JavaScript components for including the
functionality that crafts it in simple way for operating things, such as tooltips, modal
windows, alerts, etc. You can even leave out the writing scripts completely.

8. Simple Integration
Bootstrap can be simply integrated along with distinct other platforms and
frameworks, on existing sites and new ones too. You can also utilize particular
elements of Bootstrap along with your current CSS.

9. Grid
Bootstrap has the capability to utilize a 12-column grid that is responsive. It also
upholds offset and nested elements. The grid can be maintained in a responsive mode,
or you can simply modify it to a secured layout.

10. Pre-styled Components


Bootstrap approaches with pre-styled components for alerts, dropdowns, nav bars, etc.
Hence, being a feature-rich, Bootstrap provides numerous advantages of using it. Hope
you would have understood the above reasons so that you can easily use Bootstrap for
making superb web designs for your sites!

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 32

PHP:

WHAT IS PHP?

 PHP is an acronym for "PHP Hypertext Preprocessor"


 PHP is a widely-used, open source scripting language
 PHP scripts are executed on the server
 PHP costs nothing, it is free to download and use

WHAT IS PHP FILE?

 PHP files can contain text, HTML, CSS, JavaScript, and PHP code
 PHP code are executed on the server, and the result is returned to the browser as
plain HTML
 PHP files have extension ".php"

WHAT CAN PHP DO?

 PHP can generate dynamic page content


 PHP can create, open, read, write, delete, and close files on the server
 PHP can collect form data
 PHP can send and receive cookies
 PHP can add, delete, modify data in your database
 PHP can restrict users to access some pages on your website
 PHP can encrypt data

With PHP you are not limited to output HTML. You can output images, PDF files, and
even Flash movies. You can also output any text, such as XHTML and XML.

WHY PHP?

 PHP runs on various platforms (Windows, Linux, Unix, Mac OS X, etc.)


 PHP is compatible with almost all servers used today (Apache, IIS, etc.)
 PHP supports a wide range of databases

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 33

 PHP is free. Download it from the official PHP resource: www.php.net

What is XAMPP?

XAMPP is an abbreviation where X stands for Cross-Platform, A stands for Apache,


M stands for MYSQL, and the Ps stand for PHP and Perl, respectively. It is an open-
source package of web solutions that includes Apache distribution for many servers
and command-line executables along with modules such as Apache server, MariaDB,
PHP, and Perl.

XAMPP helps a local host or server to test its website and clients via computers and
laptops before releasing it to the main server. It is a platform that furnishes a suitable
environment to test and verify the working of projects based on Apache, Perl, MySQL
database, and PHP through the system of the host itself. 

Components of XAMPP

As defined earlier, XAMPP is used to symbolize the classification of solutions for


different technologies. It provides a base for testing of projects based on different
technologies through a personal server. XAMPP is an abbreviated form of each
alphabet representing each of its major components. This collection of software
contains a web server named Apache, a database management system
named MariaDB and scripting/ programming languages such as PHP and Perl. X
denotes Cross-platform, which means that it can work on different platforms such
as Windows, Linux, and macOS.

Many other components are also part of this collection of software and are explained
below.

1. Cross-Platform: Different local systems have different configurations of


operating systems installed in it. The component of cross-platform has been
included to increase the utility and audience for this package of Apache
distributions. It supports various platforms such as packages of Windows, Linus,
and MAC OS.
2. Apache: It is an HTTP a cross-platform web server. It is used worldwide for
delivering web content. The server application has made free for installation and
used for the community of developers under the aegis of Apache Software
Foundation. The remote server of Apache delivers the requested files, images,
and other documents to the user.
3. MariaDB: Originally, MySQL DBMS was a part of XAMPP, but now it has
been replaced by MariaDB. It is one of the most widely used relational DBMS,

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 34

developed by MySQL. It offers online services of data storage, manipulation,


retrieval, arrangement, and deletion.
4. PHP: It is the backend scripting language primarily used for web development.
PHP allows users to create dynamic websites and applications. It can be
installed on every platform and supports a variety of database management
systems. It was implemented using C language. PHP stands for Hypertext
Processor. It is said to be derived from Personal Home Page tools, which
explains its simplicity and functionality.
5. Perl: It is a combination of two high-level dynamic languages, namely Perl 5
and Perl 6. Perl can be applied for finding solutions for problems based on
system administration, web development, and networking. Perl allows its users
to program dynamic web applications. It is very flexible and robust.
6. phpMyAdmin: It is a tool used for dealing with MariaDB. Its version 4.0.4 is
currently being used in XAMPP. Administration of DBMS is its main role.
7. OpenSSL: It is the open-source implementation of the Secure Socket Layer
Protocol and Transport Layer Protocol. Presently version 0.9.8 is a part of
XAMPP.
8. XAMPP Control Panel: It is a panel that helps to operate and regulate upon
other components of the XAMPP. Version 3.2.1 is the most recent update. A
detailed description of the control panel will be done in the next section of the
tutorial.
9. Webalizer: It is a Web Analytics software solution used for User logs and
provide details about the usage.
10.Mercury: It is a mail transport system, and its latest version is 4.62. It is a mail
server, which helps to manage the mails across the web.
11.Tomcat: Version 7.0.42 is currently being used in XAMPP. It is a servlet based
on JAVA to provide JAVA functionalities.
12.Filezilla: It is a File Transfer Protocol Server, which supports and eases the
transfer operations performed on files. Its recently updated version is 0.9.41.

Creating MySQL Database with XAMPP

XAMPP stack of software is an open-source localhost server providing a number of


functionalities through the package of software it contains. The software, which is part
of XAMPP is started/stopped using the XAMPP Control Panel. It is used for testing
the projects and modifications offline before launching it on the global web. One such
very important functionality provided by XAMPP is the creation of the MySQL
database. This is done by using phpMyAdmin. The detailed explanation of what is
phpMyAdmin and how to use it to create MySQL database with XAMPP will be
discussed in this article.

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 35

phpMyAdmin

phpMyAdmin is a costless and open source software that provides the functionality of
operating and managing MySQL over the internet. It provides an ease to the user to
control and supervise the database with the help of a graphic user interface known as
phpMyAdmin.This GUI is written in PHP programming language. Over time it has
gained a lot of trust and demand for the purpose of finding a web-based MySQL
administration solution. The user can operate upon MySQL via phpMyAdmin user
interface while still directly executing SQL queries. The GUI allows the host to carry a
number of manipulation operations on the database, such as editing, creating,
dropping, amending, alteration of fields, tables, indexes, etc. It can also be used to
manage access control over the data by giving privileges and
permissions. phpMyAdmin has thus a vital role to play in handling and creating a
database.

Steps To Create MySQL Database Using XAMPP

STEP 1- Navigate to XAMPP in your system or simply launch it by clicking the


XAMPP   Icon. The Control Panel is now visible and can be used to initiate or halt
the working of any module.

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 36

STEP 2- Click on the "Start" button corresponding to Apache and MySQL modules. Once it starts working, the user
can see the following screen:

STEP 3- Now click on the "Admin" button corresponding to


the MySQL module. This automatically redirects the user to a web browser to the
following address-

http://localhost/phpmyadmin

STEP 4- One can see a number of tabs such as Database, SQL, User Accounts,
Export, Import, Settings, etc. Click on the "Database" tab. Here you can see
the Create option. Choose an appropriate name for the input field titled Database
name. Things to keep in mind while selecting the name for the database are-

o The number of characters used should be equal to or less than 64.


o The name should comprise of letters, numbers and underscore.
o The DB name should not start with a number.
o It should be relevant to the topic for which it is being created

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 37

STEP 5- It is very important to create tables in order to store the information in a
systematic manner. In this step, we will build tables for the created database. In the
created Database (Login page in this case), click on the 'Structure' tab. Towards the
end of the tables list, the user will see a 'Create Table' option. Fill the input fields
titled "Name" and "Number of Columns" and hit the 'Go' button.

STEP 6- Now, we have to initialize our columns based on their type. Enter the names
for each of your columns, select the type, and the maximum length allowed for the
input field. Click on "Save" in the bottom right corner. The table with the initialized
columns has been created. You can create any number of tables for your database.

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 38

SNAPSHOTS
HOME PAGE

ADMIN LOGIN PAGE

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 39

ADMIN DASHBOARD

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 40

ABOUT US

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 41

ADD PATIENT

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 42

VIEW PATIENT RECORD

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 43

REGISTRATION

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 44

CONTACT

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 45

DOCTOR ADMINI

DOCTOR ADMIN DASHBOARD

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 46

ADD ROOM

VIEW ROOM

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 47

ADD NEW APPOINTMENT

VIEW APPOINTMENT PENDING

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 48

View APPOINTMENT APPROVED

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 49

TREATMENT

VIEW TREATMENT

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 50

ADD TREATMENT RECORDS

VIEW TREATMENT RECORD

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 51

ADD DOCTOR

View DOCTOR

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 52

ADD DOCTOR TIMINGS

VIEW DOCTOR TIMINGS

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 53

ADD DEPARTMENT

VIEW DEPARTMENT

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 54

ADD MEDICINE

VIEW MEDICINE

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 55

ORDERS

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 56

VIEW ORDER

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 57

BILLING AMOUNT

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 58

VIEW PAYMENT

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 59

SERVICE TYPE

VIEW SERVICE TYPE

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 60

BACKEND PHP

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 61

ADMIN DATABASE

APPOINTMENT DATABASE

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 62

PATIENT DATABASE

PAYMENT DATABASE

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 63

ORDERS

MEDICINE

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 64

DOCTOR

DOCTOR TIMINGS

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 65

CODINGS
ADMIN

<?php
session_start();
include("headers.php");
include("dbconnection.php");
if(isset($_POST[submit]))
{
  if(isset($_GET[editid]))
  {
      $sql ="UPDATE admin SET 
      adminid='$_POST[adminid]'adminname='$_P
OST[adminname]',loginid='$_POST[loginid]',pas
sword='$_POST[password]',confirmpassword='$_P
OST[confirmpassword]',status='$_POST[select]' 
WHERE adminid='$_GET[editid]'";
    if($qsql = mysqli_query($con,$sql))
    {
      echo "<script>alert('admin record updat
ed successfully...');</script>";
    }
    else
    {
      echo mysqli_error($con);
    } 
  }
  else
Bangalore Institute of Technology Department of MCA 2019-20
Alumni management system 66

  {
  $sql ="INSERT INTO admin(adminid,adminname,
loginid,password,confirmpassword,status) valu
es('$_POST[adminid]','$_POST[adminname]','$_P
OST[loginid]','$_POST[password]','$_POST[conf
irmpassword]','$_POST[select]')";
  if($qsql = mysqli_query($con,$sql))
  {
    echo "<script>alert('Administrator record 
inserted successfully...');</script>";
  }
  else
  {
    echo mysqli_error($con);
  }
}
}
if(isset($_GET[editid]))
{
  $sql="SELECT * FROM admin WHERE adminid='$_
GET[editid]' ";
  $qsql = mysqli_query($con,$sql);
  $rsedit = mysqli_fetch_array($qsql);
  
}
?>

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 67

<div class="wrapper col2">
  <div id="breadcrumb">
    <ul>
      <li class="first">Add New Admin</li></
ul>
  </div>
</div>
<div class="wrapper col4">
  <div id="container">
    <h1>Add new Administrator record</h1>
    <form method="post" action="" name="frmad
min" onSubmit="return validateform()">
    <table width="200" border="3">
      <tbody>
      <tr>
          <td width="34%">Admin id</td>
          <td width="66%"><input type="text" 
name="adminid" id="adminid" value="<?php echo 
$rsedit[adminid]; ?>"/></td>
        </tr>
        <tr>
          <td width="34%">Admin Name</td>
          <td width="66%"><input type="text" 
name="adminname" id="adminname" value="<?php 
echo $rsedit[adminname]; ?>"/></td>
        </tr>

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 68

        <tr>
          <td>Login ID</td>
          <td><input type="text" name="logini
d" id="loginid" value="<?php echo $rsedi
t[loginid]; ?>" /></td>
        </tr>
        <tr>
          <td>Password</td>
          <td><input type="password" name="pa
ssword" id="password" value="<?php echo $rsed
it[password]; ?>"/></td>
        </tr>
        <tr>
          <td>Confirm Password</td>
          <td><input type="password" name="co
nfirmpassword" id="confirmpassword" value="<?
php echo $rsedit[confirmpassword]; ?>"/></td>
        </tr>
        <tr>
          <td>Status</td>
          <td><select name="select" id="selec
t">
          <option value="">Select</option>
          <?php
      $arr = array("Active","Inactive");
      foreach($arr as $val)

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 69

      {
        if($val == $rsedit[status])
        {
        echo "<option value='$val' selected>$
val</option>";
        }
        else
        {
          echo "<option value='$val'>$val</
option>";        
        }
      }
      ?>
          </select></td>
        </tr>
        <tr>
          <td colspan="2" align="center"><inp
ut type="submit" name="submit" id="submit" va
lue="Submit" /></td>
        </tr>
      </tbody>
    </table>
    </form>
    <p>&nbsp;</p>
  </div>
</div>

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 70

</div>
 <div class="clear"></div>
  </div>
</div>
<?php
include("footers.php");
?>
<script type="application/javascript">
var alphaExp = /^[a-zA-Z]+$/; //Variable to v
alidate only alphabets
var alphaspaceExp = /^[a-zA-Z\s]+$/; //
Variable to validate only alphabets and space
var numericExpression = /^[0-9]+$/; //
Variable to validate only numbers
var alphanumericExp = /^[0-9a-zA-Z]+$/; //
Variable to validate numbers and alphabets
var emailExp = /^[\w\-\.\+]+\@[a-zA-Z0-9\.\-]
+\.[a-zA-z0-9]{2,4}$/; //Variable to validate 
Email ID 

function validateform()
{
  if(document.frmadmin.adminname.value == "")
  {
    alert("Admin name should not be empty..")
;

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 71

    document.frmadmin.adminname.focus();
    return false;
  }
  else if(!
document.frmadmin.adminname.value.match(alpha
spaceExp))
  {
    alert("Admin name not valid..");
    document.frmadmin.adminname.focus();
    return false;
  }
  else if(document.frmadmin.loginid.value == 
"")
  {
    alert("Login ID should not be empty..");
    document.frmadmin.loginid.focus();
    return false;
  }
  else if(!
document.frmadmin.loginid.value.match(alphanu
mericExp))
  {
    alert("Login ID not valid..");
    document.frmadmin.loginid.focus();
    return false;
  }

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 72

  else if(document.frmadmin.password.value == 
"")
  {
    alert("Password should not be empty..");
    document.frmadmin.password.focus();
    return false;
  }
  else if(document.frmadmin.password.value.le
ngth < 8)
  {
    alert("Password length should be more tha
n 8 characters...");
    document.frmadmin.password.focus();
    return false;
  }
  else if(document.frmadmin.password.value != 
document.frmadmin.cnfirmpassword.value )
  {
    alert("Password and confirm password shou
ld be equal..");
    document.frmadmin.password.focus();
    return false;
  }
  else if(document.frmadmin.select.value == "
" )
  {

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 73

    alert("Kindly select the status..");
    document.frmadmin.select.focus();
    return false;
  }
  else
  {
    return true;
  }
}
</script>

ADMIN ACCOUNT

<?php
session_start();
if(!isset($_SESSION['adminid']))
{
  echo "<script>window.location='adminlogin.p
hp';</script>";
}
include("dbconnection.php");
include("headers.php");
?>
<div class="wrapper col2">
  <div id="breadcrumb">

<div class="dropdown">
<strong>Admin Dashboard</strong>
Bangalore Institute of Technology Department of MCA 2019-20
Alumni management system 74

</div>

  </div>
</div>
<div class="wrapper col4">
  <div id="container">
  <p><form method="get" action=""><strong>Dat
e -</strong> <input type="date" name="date" v
alue="<?php echo $_GET[date]; ?>" ><input typ
e="submit" name="submit" value="Submit"></
form></p>
    <h1>Number of Appointment Records :     
    <?php
  $sql = "SELECT * FROM appointment WHERE sta
tus='Active'";
  if(isset($_GET[date]))
  {
    $sql = $sql . " AND appointmentdate ='$_G
ET[date]'";
  }
  $qsql = mysqli_query($con,$sql);
  echo mysqli_num_rows($qsql);
  ?>
    </h1> 
    
   
Bangalore Institute of Technology Department of MCA 2019-20
Alumni management system 75

    <h1>Number of payment Reports :  
    <?php
  $sql = "SELECT * FROM payment WHERE status=
'Active'";
  if(isset($_GET[date]))
  {
    $sql = $sql . " AND paymentdate ='$_GET[d
ate]'";
  }
  $qsql = mysqli_query($con,$sql);
  echo mysqli_num_rows($qsql);
  ?>
    </h1>

    <h1>Number of Patient Records : 
    <?php
  $sql = "SELECT * FROM patient WHERE status=
'Active'";
  if(isset($_GET[date]))
  {
    $sql = $sql . " AND admissiondate ='$_GET
[date]'";
  }
  $qsql = mysqli_query($con,$sql);
Bangalore Institute of Technology Department of MCA 2019-20
Alumni management system 76

  echo mysqli_num_rows($qsql);
  ?>
    </h1>    
    <h1>Number of Treatment Records : 
    <?php
  $sql = "SELECT * FROM treatment_records WHE
RE status='Active'";
  if(isset($_GET[date]))
  {
    $sql = $sql . " AND treatment_date  ='$_G
ET[date]'";
  }
  $qsql = mysqli_query($con,$sql);
  echo mysqli_num_rows($qsql);
  ?>
    </h1>
    
    <h1>Number of Prescription  : 
    <?php
  $sql = "SELECT * FROM prescription WHERE st
atus='Active'";
  if(isset($_GET[date]))
  {
    $sql = $sql . " AND prescriptiondate   ='
$_GET[date]'";
  }

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 77

  $qsql = mysqli_query($con,$sql);
  echo mysqli_num_rows($qsql);
  ?>
    </h1>
    <br>
<hr>
    
    <h1 style="color:rgba(0,4,70,1.00)"> &nbs
p; Database Records</h1>
   
   
    <h1>Number of Prescription Records : 
    <?php
  $sql = "SELECT * FROM prescription_records 
WHERE status='Active'";
  $qsql = mysqli_query($con,$sql);
  echo mysqli_num_rows($qsql);
  ?>
    </h1>
    <h1>Number of Treatment Types : 
    <?php
  $sql = "SELECT * FROM treatment WHERE statu
s='Active'";
  $qsql = mysqli_query($con,$sql);
  echo mysqli_num_rows($qsql);
  ?>

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 78

    </h1>
    
  
    <h1>Number of Admin records :  
    <?php
  $sql = "SELECT * FROM admin WHERE status='A
ctive'";
  $qsql = mysqli_query($con,$sql);
  echo mysqli_num_rows($qsql);
  ?>
    </h1>
    <h1>Number of Department Records : 
    <?php
  $sql = "SELECT * FROM department WHERE stat
us='Active'";
  $qsql = mysqli_query($con,$sql);
  echo mysqli_num_rows($qsql);
  ?>
    </h1>
     <h1>Number of Doctor Records : 
    <?php
  $sql = "SELECT * FROM doctor ";
  $qsql = mysqli_query($con,$sql);
  echo mysqli_num_rows($qsql);
  ?>
    </h1>

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 79

 <h1>Number of Doctor Timings Records : 
    <?php
  $sql = "SELECT * FROM doctor_timings WHERE 
status='Active'";
  $qsql = mysqli_query($con,$sql);
  echo mysqli_num_rows($qsql);
  ?>
    </h1>
    <h1>Number of Billing Records :
    <?php
  $sql = "SELECT * FROM billing_records WHERE 
status='Active'";
  $qsql = mysqli_query($con,$sql);
  echo mysqli_num_rows($qsql);
  ?>
    </h1>
    <h1>Number of ROOM BEDS :
    <?php
  $sql = "SELECT * FROM room WHERE status='Ac
tive'";
  $qsql = mysqli_query($con,$sql);
  echo mysqli_num_rows($qsql);
  ?>
    </h1>

  </div>
Bangalore Institute of Technology Department of MCA 2019-20
Alumni management system 80

</div>

    <div class="clear"></div>
  </div>
</div>
<?php
include("footers.php");
?>
ADMIN CHANGE PASSWORD

<?php
session_start();
include("headers.php");
include("dbconnection.php");
if(isset($_POST[submit]))
{
  $sql = "UPDATE admin SET password='$_POST[n
ewpassword]' WHERE password='$_POST[oldpasswo
rd]' AND adminid='$_SESSION[adminid]'";
  $qsql= mysqli_query($con,$sql);
  if(mysqli_affected_rows($con) == 1)
  {
    echo "<script>alert('Password has been up
dated successfully..');</script>";
  }
  else
  {

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 81

    echo "<script>alert('Failed to update pas
sword...');</script>";   
  }
}
?>

<div class="wrapper col2">
  <div id="breadcrumb">
    <ul>
      <li class="first"> Change Password</
li></ul>
  </div>
</div>
<div class="wrapper col4">
  <div id="container">
      <form method="post" action="" name="frm
adminchange" onSubmit="return validateform1()
">
    <table width="200" border="3">
      <tbody>
        <tr>
          <td width="34%">Old Password</td>
          <td width="66%"><input type="passwo
rd" name="oldpassword" id="oldpassword" /></
td>
        </tr>

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 82

        <tr>
          <td>New Password</td>
          <td><input type="password" name="ne
wpassword" id="newpassword" /></td>
        </tr>
        <tr>
          <td>Confirm Password</td>
          <td><input type="password" name="pa
ssword" id="password" /></td>
        </tr>
        <tr>
          <td height="36" colspan="2" align="
center"><input type="submit" name="submit" id
="submit" value="Submit" /></td>
        </tr>
      </tbody>
    </table>
    </form>
    <p>&nbsp;</p>
  </div>
</div>
</div>
 <div class="clear"></div>
  </div>
</div>
<?php

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 83

include("footers.php");
?>
<script type="application/javascript">
function validateform1()
{
  if(document.frmadminchange.oldpassword.valu
e == "")
  {
    alert("Old password should not be empty..
");
    document.frmadminchange.oldpassword.focus
();
    return false;
  }
  else if(document.frmadminchange.newpassword
.value == "")
  {
    alert("New Password should not be empty..
");
    document.frmadminchange.newpassword.focus
();
    return false;
  }
  else if(document.frmadminchange.newpassword
.value.length < 8)
  {

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 84

    alert("New Password length should be more 
than 8 characters...");
    document.frmadminchange.newpassword.focus
();
    return false;
  }
  else if(document.frmadminchange.newpassword
.value != documen
t.frmadminchange.password.value )
  {
    alert(" New Password and confirm password 
should be equal..");
    document.frmadminchange.password.focus();
    return false;
  }
  else
  {
    return true;
  }
}
</script>

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 85

ADMIN LOGIN

<?php
session_start();
include("header.php");
include("dbconnection.php");
if(isset($_SESSION[adminid]))
{
  echo "<script>window.location='adminaccount
.php';</script>";
}
if(isset($_POST[submit]))
{
  $sql = "SELECT * FROM admin WHERE loginid='
$_POST[loginid]' AND password='$_POST[passwor
d]' AND status='Active'";
  $qsql = mysqli_query($con,$sql);
  if(mysqli_num_rows($qsql) == 1)
  {
    $rslogin = mysqli_fetch_array($qsql);
    $_SESSION[adminid]= $rslogin[adminid] ;
    echo "<script>window.location='adminaccou
nt.php';</script>";
  }
  else
  {
    echo "<script>alert('Invalid login id and 
password entered..'); </script>";
Bangalore Institute of Technology Department of MCA 2019-20
Alumni management system 86

  }
}
?>
<div class="wrapper col2">
  <div id="breadcrumb">
    <ul>
      <li class="first">Admin Login Panel</
li></ul>
  </div>
</div>
<div class="wrapper col4">
  <div id="container">
    <h1>Kindly enter Login ID and Password</
h1>
    <form method="post" action="" name="frmad
minlogin" onSubmit="return validateform()">
    <table width="200" border="3">
      <tbody>
        <tr>
          <td width="34%">Login ID</td>
          <td width="66%"><input type="text" 
name="loginid" id="loginid" /></td>
        </tr>
        <tr>
          <td>Password</td>

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 87

          <td><input type="password" name="pa
ssword" id="password" /></td>
        </tr>
        <tr>
          <td height="36" colspan="2" align="
center"><input type="submit" name="submit" id
="submit" value="Login" /></td>
        </tr>
      </tbody>
    </table>
    </form>
    <p>&nbsp;</p>
  </div>
</div>
</div>
 <div class="clear"></div>
  </div>
</div>
<?php
include("footer.php");
?>
<script type="application/javascript">
var alphaExp = /^[a-zA-Z]+$/; //Variable to v
alidate only alphabets
var alphaspaceExp = /^[a-zA-Z\s]+$/; //
Variable to validate only alphabets and space

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 88

var numericExpression = /^[0-9]+$/; //
Variable to validate only numbers
var alphanumericExp = /^[0-9a-zA-Z]+$/; //
Variable to validate numbers and alphabets
var emailExp = /^[\w\-\.\+]+\@[a-zA-Z0-9\.\-]
+\.[a-zA-z0-9]{2,4}$/; //Variable to validate 
Email ID 

function validateform()
{
  if(document.frmadminlogin.loginid.value == 
"")
  {
    alert("Login ID should not be empty..");
    document.frmadminlogin.loginid.focus();
    return false;
  }
  else if(!
document.frmadminlogin.loginid.value.match(al
phanumericExp))
  {
    alert("Login ID not valid..");
    document.frmadminlogin.loginid.focus();
    return false;
  }

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 89

  else if(document.frmadminlogin.password.val
ue == "")
  {
    alert("Password should not be empty..");
    document.frmadminlogin.password.focus();
    return false;
  }
  else if(document.frmadminlogin.password.val
ue.length < 8)
  {
    alert("Password length should be more tha
n 8 characters...");
    document.frmadminlogin.password.focus();
    return false;
  }
  else
  {
    return true;
  }
}
</script>

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 90

Patient

<?php
session_start();
include("header.php");
include("dbconnection.php");
if(isset($_POST[submit]))
{
  if(isset($_GET[editid]))
  {
      $sql ="UPDATE patient SET patientid='$_
POST[patientid]'patientname='$_POST[patientna
me]',admissiondate='$_POST[admissiondate]',ad
missiontme='$_POST[admissiontme]',address='$_
POST[address]',mobilenumber='$_POST[mobilenum
ber]',city='$_POST[city]',pincode='$_POST[pin
code]',loginid='$_POST[loginid]',password='$_
POST[password]',bloodgroup='$_POST[select2]',
gender='$_POST[select3]',dateofbirth='$_POST[
dateofbirth]',status='$_POST[select]' WHERE p
atientid='$_GET[editid]'";
    if($qsql = mysqli_query($con,$sql))
    {
      echo "<script>alert('patient record upd
ated successfully...');</script>";
    }
    else
Bangalore Institute of Technology Department of MCA 2019-20
Alumni management system 91

    {
      echo mysqli_error($con);
    } 
  }
  else
  {
  $sql ="INSERT INTO patient(patientid,patien
tname,admissiondate,admissiontme,address,mobi
lenumber,city,pincode,loginid,password,bloodg
roup,gender,dateofbirth,status) values(
    '$_POST[patientid]','$_POST[patientname]'
,'$dt','$tim','$_POST[address]','$_POST[mobil
enumber]','$_POST[city]','$_POST[pincode]','$
_POST[loginid]','$_POST[password]','$_POST[se
lect2]','$_POST[select3]','$_POST[dateofbirth
]','Active')";
  if($qsql = mysqli_query($con,$sql))
  {
    echo "<script>alert('patients record inse
rted successfully...');</script>";
    $insid= mysqli_insert_id($con);
    if(isset($_SESSION[adminid]))
    {
    echo "<script>window.location='appointmen
t.php?patid=$insid';</script>";  
    }

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 92

    else
    {
    echo "<script>window.location='patientlog
in.php';</script>";  
    }   
  }
  else
  {
    echo mysqli_error($con);
  }
}
}
if(isset($_GET[editid]))
{
  $sql="SELECT * FROM patient WHERE patientid
='$_GET[editid]' ";
  $qsql = mysqli_query($con,$sql);
  $rsedit = mysqli_fetch_array($qsql);
  
}
?>

<div class="wrapper col2">
  <div id="breadcrumb">
    <ul>

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 93

      <li class="first">Add New Patient</
li></ul>
  </div>
</div>
<div class="wrapper col4">
  <div id="container">
    <h1>Patient profile Registration Panel</
h1>
    <form method="post" action="" name="frmpa
tient" onSubmit="return validateform()">
    <table width="200" border="3">
      <tbody>
      <tr>
          <td width="34%">Patient ID</td>
          <td width="66%"><input type="text" 
name="patientid" id="patientid"  value="<?php 
echo $rsedit[patientid]; ?>"/></td>
        </tr>
        <tr>
          <td width="34%">Patient Name</td>
          <td width="66%"><input type="text" 
name="patientname" id="patientname"  value="<
?php echo $rsedit[patientname]; ?>"/></td>
        </tr>
<?php
if(isset($_GET[editid]))

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 94

{
?>       
        <tr>
          <td>Admission Date</td>
          <td><input type="date" name="admiss
iondate" id="admissiondate" value="<?php echo 
$rsedit[admissiondate]; ?>" readonly /></td>
        </tr>
        <tr>
          <td>Admission Time</td>
          <td><input type="time" name="admiss
iontme" id="admissiontme" value="<?php echo $
rsedit[admissiontime]; ?>" readonly /></td>
        </tr>
<?php
}
?>
        <tr>
          <td>Address</td>
          <td><textarea name="address" id="ad
dress" cols="45" rows="5"><?php echo $rsedi
t[address]; ?></textarea></td>
        </tr>
        <tr>
          <td>Mobile Number</td>

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 95

          <td><input type="text" name="mobile
number" id="mobilenumber" value="<?php echo $
rsedit[mobileno]; ?>" /></td>
        </tr>
        <tr>
          <td>City</td>
          <td><input type="text" name="city" 
id="city" value="<?php echo $rsedit[city]; ?
>" /></td>
        </tr>
        <tr>
          <td>PIN Code</td>
          <td><input type="text" name="pincod
e" id="pincode" value="<?php echo $rsedi
t[pincode]; ?>" /></td>
        </tr>
        <tr>
          <td>Login ID</td>
          <td><input type="text" name="logini
d" id="loginid"  value="<?php echo $rsedi
t[loginid]; ?>"/></td>
        </tr>
        <tr>
          <td>Password</td>

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 96

          <td><input type="password" name="pa
ssword" id="password" value="<?php echo $rsed
it[password]; ?>" /></td>
        </tr>
        <tr>
          <td>Confirm Password</td>
          <td><input type="password" name="co
nfirmpassword" id="confirmpassword"  value="<
?php echo $rsedit[confirmpassword]; ?>"/></
td>
        </tr>
        <tr>
          <td>Blood Group</td>
          <td><select name="select2" id="sele
ct2">
           <option value="">Select</option>
          <?php
      $arr = array("A+","A-","B+","B-","O+","
O-","AB+","AB-");
      foreach($arr as $val)
      {
        if($val == $rsedit[bloodgroup])
        {
        echo "<option value='$val' selected>$
val</option>";
        }

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 97

        else
        {
          echo "<option value='$val'>$val</
option>";        
        }
      }
      ?>
          </select></td>
        </tr>
        <tr>
          <td>Gender</td>
          <td><select name="select3" id="sele
ct3">
           <option value="">Select</option>
          <?php
      $arr = array("MALE","FEMALE");
      foreach($arr as $val)
      {
        if($val == $rsedit[gender])
        {
        echo "<option value='$val' selected>$
val</option>";
        }
        else
        {

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 98

          echo "<option value='$val'>$val</
option>";        
        }
      }
      ?>
          </select></td>
        </tr>
        <tr>
          <td>Date Of Birth</td>
          <td><input type="date" name="dateof
birth" max="<?php echo date("Y-m-d"); ?>" i
d="dateofbirth"  value="<?php echo $rsedi
t[dateofbirth]; ?>"/></td>
        </tr>
       
          
        <tr>
          <td colspan="2" align="center"><inp
ut type="submit" name="submit" id="submit" va
lue="Submit" /></td>
        </tr>
      </tbody>
    </table>
    </form>
    <p>&nbsp;</p>
  </div>

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 99

</div>
</div>
 <div class="clear"></div>
  </div>
</div>
<?php
include("footer.php");
?>
<script type="application/javascript">
var alphaExp = /^[a-zA-Z]+$/; //Variable to v
alidate only alphabets
var alphaspaceExp = /^[a-zA-Z\s]+$/; //
Variable to validate only alphabets and space
var numericExpression = /^[0-9]+$/; //
Variable to validate only numbers
var alphanumericExp = /^[0-9a-zA-Z]+$/; //
Variable to validate numbers and alphabets
var emailExp = /^[\w\-\.\+]+\@[a-zA-Z0-9\.\-]
+\.[a-zA-z0-9]{2,4}$/; //Variable to validate 
Email ID 

function validateform()
{
  if(document.frmpatient.patientname.value == 
"")
  {

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 100

    alert("Patient name should not be empty..
");
    document.frmpatient.patientname.focus();
    return false;
  }
else if(!
document.frmpatient.patientname.value.match(a
lphaspaceExp))
  {
    alert("Patient name not valid..");
    document.frmpatient.patientname.focus();
    return false;
  }
  else if(document.frmpatient.admissiondate.v
alue == "")
  {
    alert("Admission date should not be empty
..");
    document.frmpatient.admissiondate.focus()
;
    return false;
  }
  else if(document.frmpatient.admissiontme.va
lue == "")
  {

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 101

    alert("Admission time should not be empty
..");
    document.frmpatient.admissiontme.focus();
    return false;
  }
  else if(document.frmpatient.address.value =
= "")
  {
    alert("Address should not be empty..");
    document.frmpatient.address.focus();
    return false;
  }
  else if(document.frmpatient.mobilenumber.va
lue == "")
  {
    alert("Mobile number should not be empty.
.");
    document.frmpatient.mobilenumber.focus();
    return false;
  }
  else if(!
document.frmpatient.mobilenumber.value.match(
numericExpression))
  {
    alert("Mobile number not valid..");
    document.frmpatient.mobilenumber.focus();

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 102

    return false;
  }
  else if(document.frmpatient.city.value == "
")
  {
    alert("City should not be empty..");
    document.frmpatient.city.focus();
    return false;
  }
  else if(!
document.frmpatient.city.value.match(alphaspa
ceExp))
  {
    alert("City not valid..");
    document.frmpatient.city.focus();
    return false;
  }
  else if(document.frmpatient.pincode.value =
= "")
  {
    alert("Pincode should not be empty..");
    document.frmpatient.pincode.focus();
    return false;
  }

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 103

  else if(!
document.frmpatient.pincode.value.match(numer
icExpression))
  {
    alert("Pincode not valid..");
    document.frmpatient.pincode.focus();
    return false;
  }
  else if(document.frmpatient.loginid.value =
= "")
  {
    alert("Login ID should not be empty..");
    document.frmpatient.loginid.focus();
    return false;
  }
  else if(!
document.frmpatient.loginid.value.match(alpha
numericExp))
  {
    alert("Login ID not valid..");
    document.frmpatient.loginid.focus();
    return false;
  }
  else if(document.frmpatient.password.value 
== "")
  {

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 104

    alert("Password should not be empty..");
    document.frmpatient.password.focus();
    return false;
  }
  else if(document.frmpatient.password.value.
length < 8)
  {
    alert("Password length should be more tha
n 8 characters...");
    document.frmpatient.password.focus();
    return false;
  }
  else if(document.frmpatient.password.value 
!= document.frmpatient.confirmpassword.value 
)
  {
    alert("Password and confirm password shou
ld be equal..");
    document.frmpatient.confirmpassword.focus
();
    return false;
  }
  else if(document.frmpatient.select2.value =
= "")
  {

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 105

    alert("Blood Group should not be empty.."
);
    document.frmpatient.select2.focus();
    return false;
  }
  else if(document.frmpatient.select3.value =
= "")
  {
    alert("Gender should not be empty..");
    document.frmpatient.select3.focus();
    return false;
  }
  else if(document.frmpatient.dateofbirth.val
ue == "")
  {
    alert("Date Of Birth should not be empty.
.");
    document.frmpatient.dateofbirth.focus();
    return false;
  }
  else if(document.frmpatient.select.value == 
"" )
  {
    alert("Kindly select the status..");
    document.frmpatient.select.focus();
    return false;

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 106

  }
  else
  {
    return true;
  }
}
</script>

MEDICINE

<?php
session_start();
include("headers.php");
include("dbconnection.php");
if(isset($_POST[submit]))
{
  if(isset($_GET[editid]))
  {
    $sql ="UPDATE medicine SET medicinename='
$_POST[medicinename]',medicinecost='$_POST[me
dicinecost]',description='$_POST[description]
',status='$_POST[status]' WHERE medicineid='$
_GET[editid]'";
    if($qsql = mysqli_query($con,$sql))
    {
      echo "<script>alert('Medicine record up
dated successfully...');</script>";
    }
Bangalore Institute of Technology Department of MCA 2019-20
Alumni management system 107

    else
    {
      echo mysqli_error($con);
    } 
  }
  else
  {
    $sql ="INSERT INTO medicine(medicineid,me
dicinename,medicinecost,description,status) v
alues('$_POST[medicineid]','$_POST[medicinena
me]','$_POST[medicinecost]','$_POST[descripti
on]','$_POST[status]')";
    if($qsql = mysqli_query($con,$sql))
    {
      echo "<script>alert('Medicine record in
serted successfully...');</script>";
    }
    else
    {
      echo mysqli_error($con);
    }
  }
}
if(isset($_GET[editid]))
{

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 108

  $sql="SELECT * FROM medicine WHERE medicine
id='$_GET[editid]' ";
  $qsql = mysqli_query($con,$sql);
  $rsedit = mysqli_fetch_array($qsql);
  
}
?>

<div class="wrapper col2">
  <div id="breadcrumb">
    <ul>
      <li class="first">Add New Medicine </
li></ul>
  </div>
</div>
<div class="wrapper col4">
  <div id="container">
    <h1>Add new Medicine record</h1>
    <form method="post" action="" name="frmme
dicine" onSubmit="return validateform()">
    <table width="418" border="3">
      <tbody>
      <tr>
          <td width="34%">Medicine id</td>

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 109

          <td width="66%"><input type="text" 
name="medicineid" id="medicineid" value="<?
php echo $rsedit[medicineid]; ?>" /></td>
        </tr>
        <tr>
          <td width="34%">Medicine Name</td>
          <td width="66%"><input type="text" 
name="medicinename" id="medicinename" value="
<?php echo $rsedit[medicinename]; ?>" /></td>
        </tr>
        <tr>
          <td width="34%">Medicine cost</td>
          <td width="66%"><input type="text" 
name="medicinecost" id="medicinecost" value="
<?php echo $rsedit[medicinecost]; ?>" /></td>
        </tr>
        <tr>
          <td>Description</td>
          <td><textarea name="description" id
="description" cols="45" rows="5"><?php echo 
$rsedit[description] ; ?></textarea></td>
        </tr>
        <tr>
          <td>Status</td>
          <td> <select name="status" id="stat
us">

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 110

            <option value="">Select</option>
            <?php
      $arr = array("Active","Inactive");
      foreach($arr as $val)
      {
        if($val == $rsedit[status])
        {
        echo "<option value='$val' selected>$
val</option>";
        }
        else
        {
          echo "<option value='$val'>$val</
option>";        
        }
      }
      ?>
            </select></td>
        </tr>
        <tr>
          <td colspan="2" align="center"><inp
ut type="submit" name="submit" id="submit" va
lue="Submit" /></td>
        </tr>
      </tbody>
    </table>

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 111

    </form>
    <p>&nbsp;</p>
  </div>
</div>
</div>
 <div class="clear"></div>
  </div>
</div>
<?php
include("footers.php");
?>
<script type="application/javascript">

var alphaExp = /^[a-zA-Z]+$/; //Variable to v
alidate only alphabets
var alphaspaceExp = /^[a-zA-Z\s]+$/; //
Variable to validate only alphabets and space
var numericExpression = /^[0-9]+$/; //
Variable to validate only numbers
var alphanumericExp = /^[0-9a-zA-Z]+$/; //
Variable to validate numbers and alphabets
var emailExp = /^[\w\-\.\+]+\@[a-zA-Z0-9\.\-]
+\.[a-zA-z0-9]{2,4}$/; //Variable to validate 
Email ID 

function validateform()

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 112

{
  if(document.frmmedicine.departmentname.valu
e == "")
  {
    alert("Department name should not be empt
y..");
    document.frmdept.departmentname.focus();
    return false;
  }
  else if(!
document.frmmedicine.departmentname.value.mat
ch(alphaExp))
  {
    alert("Department name not valid..");
    document.frmdept.departmentname.focus();
    return false;
  }
  else if(document.frmmedicine.select.value =
= "" )
  {
    alert("Kindly select the status..");
    document.frmdept.select.focus();
    return false;
  }
  
  else

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 113

  {
    return true;
  }
}

</script>

VIEW ADMIN

<?php
session_start();
include("headers.php");
include("dbconnection.php");
if(isset($_GET[delid]))
{
  $sql ="DELETE FROM admin WHERE adminid='$_G
ET[delid]'";
  $qsql=mysqli_query($con,$sql);
  if(mysqli_affected_rows($con) == 1)
  {
    echo "<script>alert('admin record deleted 
successfully..');</script>";
  }
}
?>

<div class="wrapper col2">

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 114

  <div id="breadcrumb">View Adminstrator Reco
rd</div>
</div>
<div class="wrapper col4">
  <div id="container">
  
  <section class="container">
<h2>Search Admin - <input type="search" class
="light-table-filter" data-table="order-
table" placeholder="Filtrer" /></h2>
    <table class="order-table">
      <thead>
        <tr>
        <td width="12%" height="40">Admin ID<
/td>
          <td width="12%" height="40">Admin N
ame</td>
          <td width="11%">Login ID</td>
          <td width="11%">Password</td>
          <td width="11%">confirmpassword</
td>
          <td width="12%">Status</td>
          <td width="34%">Action</td>
        </tr>
        </thead>
       <tbody>

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 115

       <?php
    $sql ="SELECT * FROM admin";
    $qsql = mysqli_query($con,$sql);
    while($rs = mysqli_fetch_array($qsql))
    {
        echo "<tr>
        <td>&nbsp;$rs[adminid]</td>
          <td>&nbsp;$rs[adminname]</td>
          <td>&nbsp;$rs[loginid]</td>
          <td>&nbsp;$rs[password]</td>
          <td>&nbsp;$rs[confirmpassword]</td>
          <td>&nbsp;$rs[status]</td>
          <td>&nbsp;
      <a href='admin.php?
editid=$rs[adminid]'>Edit</a>| <a href='viewa
dmin.php?delid=$rs[adminid]'>Delete</a> </td>
        </tr>";
    }
    ?>
      </tbody>
    </table>
    </section>
    <p>&nbsp;</p>
  </div>
</div>
</div>

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 116

 <div class="clear"></div>
  </div>
</div>
<?php
include("footers.php");
?>

VIEW APPOINTMENT

<?php
session_start();
include("headers.php");
include("dbconnection.php");
if(isset($_GET[delid]))
{
  $sql ="DELETE FROM appointment WHERE appoin
tmentid='$_GET[delid]'";
  $qsql=mysqli_query($con,$sql);
  if(mysqli_affected_rows($con) == 1)
  {
    echo "<script>alert('appointment record d
eleted successfully..');</script>";
  }
}
if(isset($_GET[approveid]))
{
  $sql ="UPDATE appointment SET status='Appro
ved' WHERE appointmentid='$_GET[approveid]'";
Bangalore Institute of Technology Department of MCA 2019-20
Alumni management system 117

  $qsql=mysqli_query($con,$sql);
  if(mysqli_affected_rows($con) == 1)
  {
    echo "<script>alert('Appointment record A
pproved successfully..');</script>";
  }
}
?>
<div class="wrapper col2">
  <div id="breadcrumb">
    <ul>
      <li class="first">View Appointment reco
rds</li></ul>
  </div>
</div>
<div class="wrapper col4">
  <div id="container">
   <section class="container">
   
<h2>Search Appointment - <input type="search" 
class="light-table-filter" data-table="order-
table" placeholder="Filtrer" /></h2>

    <table class="order-table">
      <thead>
        <tr>

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 118

          <th>Appointment Id </th>
          <th>Patient detail</th>
          <th> Type of application</th>
          <th>Department</th>
          <th>Appointment Date &  Time</th>
          <th>Doctor</th>
          <th>Reason</th>
          <th>Status</th>
          <th><div align="center">Action</
div></th>
        </tr>
        </thead>
        <tbody>
          <?php
    $sql ="SELECT * FROM appointment WHERE (s
tatus !='')";
    if(isset($_SESSION[patientid]))
    {
      $sql  = $sql . " AND patientid='$_SESSI
ON[patientid]'";
    }
    $qsql = mysqli_query($con,$sql);
    while($rs = mysqli_fetch_array($qsql))
    {
      $sqlpat = "SELECT * FROM patient WHERE 
patientid='$rs[patientid]'";

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 119

      $qsqlpat = mysqli_query($con,$sqlpat);
      $rspat = mysqli_fetch_array($qsqlpat);

      $sqlpat = "SELECT * FROM room WHERE roo
mid='$rs[roomid]'";
      $qsqlpat = mysqli_query($con,$sqlpat);
      $rspat = mysqli_fetch_array($qsqlpat);
      
      
      $sqldept = "SELECT * FROM department WH
ERE departmentid='$rs[departmentid]'";
      $qsqldept = mysqli_query($con,
$sqldept);
      $rsdept = mysqli_fetch_array($qsqldept)
;
    
      $sqldoc= "SELECT * FROM doctor WHERE do
ctorid='$rs[doctorid]'";
      $qsqldoc = mysqli_query($con,$sqldoc);
      $rsdoc = mysqli_fetch_array($qsqldoc);
        echo "<tr>
        <td>&nbsp;$rs[appointmentid]</td>
        <td>&nbsp;$rs[patientname]</td>
        <td>&nbsp;$rs[roomtype]</td>
        <td>&nbsp;$rsdept[departmentname]</
td>

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 120

        <td>&nbsp;" . date("d-M-
Y",strtotime($rs[appointmentdate])) . " &nbsp
; " . date("H:i A",strtotime($rs[appointmentt
ime])) . "</td> 
         <td>&nbsp;$rsdoc[doctorname]</td>
          <td>&nbsp;$rs[appreason]</td>
          <td>&nbsp;$rs[status]</td>
          <td><div align='center'>";
      if($rs[status] != "Approved")
      {
          if(!(isset($_SESSION[patientid])))
          {
              echo "<a href='appointmentappro
val.php?editid=$rs[appointmentid]'>Approve</
a><hr>";
          }
         echo "  <a href='viewappointment.php
?delid=$rs[appointmentid]'>Delete</a>";
      }
      else
      {
        echo "<a href='patientreport.php?
patientid=$rs[patientid]&appointmentid=$rs[ap
pointmentid]'>View Report</a>";
      }
     echo "</center></td></tr>";

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 121

    }
    ?>
      </tbody>
    </table>
    </section>
    <p>&nbsp;</p>
  </div>
</div>
</div>
 <div class="clear"></div>
  </div>
</div>
<?php
include("footers.php");
?>

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 122

VIEW DEPARTMENT

<?php
session_start();
include("headers.php");
include("dbconnection.php");
if(isset($_GET[delid]))
{
  $sql ="DELETE FROM department WHERE departm
entid='$_GET[delid]'";
  $qsql=mysqli_query($con,$sql);
  if(mysqli_affected_rows($con) == 1)
  {
    echo "<script>alert('department deleted s
uccessfully..');</script>";
  }
}
?>

<div class="wrapper col2">
  <div id="breadcrumb">
    <ul>
      <li class="first">View  treatment</
li></ul>
  </div>
</div>
<div class="wrapper col4">
  <div id="container">
Bangalore Institute of Technology Department of MCA 2019-20
Alumni management system 123

  
<section class="container">
<h2>Search Department - <input type="search" 
class="light-table-filter" data-table="order-
table" placeholder="Filtrer" /></h2>

  <table class="order-table">
      <thead>
        <tr>
          <th>department id</td>
          <th>departmentname</th>
          <th>description</th>
          <th>Status</th>
          <th>Action</th>
        </tr>
        </thead> 
        <tbody>
        
          <?php
    $sql ="SELECT * FROM department";
    $qsql = mysqli_query($con,$sql);
    while($rs = mysqli_fetch_array($qsql))
    {
        echo "<tr>
        <td>&nbsp;$rs[departmentid]</td>
          <td>&nbsp;$rs[departmentname]</td>
Bangalore Institute of Technology Department of MCA 2019-20
Alumni management system 124

          <td>&nbsp;$rs[description]</td>
       <td>&nbsp;$rs[status]</td>
       <td>&nbsp;
        <a href='department.php?
editid=$rs[departmentid]'>Edit</a> | <a href=
'viewdepartment.php?
delid=$rs[departmentid]'>Delete</a> </td>
        </tr>";
    }
    ?>
        <tr>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
        </tr>
      </tbody>
    </table>
    </section>
    <h1>&nbsp;</h1>
    <p>&nbsp;</p>
  </div>
</div>
</div>
 <div class="clear"></div>
  </div>

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 125

</div>
<?php
include("footers.php");
?>

VIEW PATIENT

<?php
session_start();
include("headers.php");
include("dbconnection.php");
if(isset($_GET[delid]))
{
  $sql ="DELETE FROM patient WHERE patientid=
'$_GET[delid]'";
  $qsql=mysqli_query($con,$sql);
  if(mysqli_affected_rows($con) == 1)
  {
    echo "<script>alert('patient record delet
ed successfully..');</script>";
  }
}
?>

<div class="wrapper col2">
  <div id="breadcrumb">
    <ul>

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 126

      <li class="first">View Patient records<
/li></ul>
  </div>
</div>
<div class="wrapper col4">
  <div id="container">

<section class="container">
<h2>Search Patient - <input type="search" cla
ss="light-table-filter" data-table="order-
table" placeholder="Filtrer" /></h2>

  <table class="order-table">
      <thead>
        <tr>
        <th width="15%" height="36"><div alig
n="center">Patient id</div></th>
          <th width="15%" height="36"><div al
ign="center">Patient Name</div></th>
          <th width="20%"><div align="center"
>Admission details</div></th>
          <th width="28%"><div align="center"
>Address</div></th>    
          <th width="20%"><div align="center"
>Patient Profile</div></th>

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 127

          <th width="17%"><div align="center"
>Action</div></th>
        </tr>
        </thead>
      <tbody>
   <?php
    $sql ="SELECT * FROM patient";
    $qsql = mysqli_query($con,$sql);
    while($rs = mysqli_fetch_array($qsql))
    {
        echo "<tr>
        <td>$rs[patientid]<br>
          <td>$rs[patientname]<br>
      <strong>Login ID :</strong> $r
s[loginid] </td>
          <td>
      <strong>Date</strong>: &nbsp;
$rs[admissiondate]<br>
     <strong>Time</strong>: &nbsp;
$rs[admissiontme]</td>
       <td>$rs[address]<br>$rs[city] -  &nbsp
;$rs[pincode]<br>
Mob No. - $rs[mobilenumber]</td>
          <td><strong>Blood group</strong> - 
$rs[bloodgroup]<br>

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 128

<strong>Gender</strong> - &nbsp;
$rs[gender]<br>
<strong>DOB</strong> - &nbsp;
$rs[dateofbirth]</td>
          <td align='center'>Status - $rs[sta
tus] <br>";
if(isset($_SESSION[adminid]))
{
      echo "<a href='patient.php?
editid=$rs[patientid]'>Edit</a> | <a href='vi
ewpatient.php?delid=$rs[patientid]'>Delete</
a> <hr>
<a href='patientreport.php?
patientid=$rs[patientid]'>View Report</a>";
}
      echo "</td></tr>";
    }
    ?>
      </tbody>
    </table>
</section>
    <p>&nbsp;</p>
  </div>
</div>
</div>
 <div class="clear"></div>

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 129

  </div>
</div>
<?php
include("footers.php");
?>

VIEW PAYMENT

<?php
include("header.php");
include("dbconnection.php");
if(isset($_GET[delid]))
{
  $sql ="DELETE FROM paymentid WHERE paymenti
d='$_GET[delid]'";
  $qsql=mysqli_query($con,$sql);
  if(mysqli_affected_rows($con) == 1)
  {
    echo "<script>alert('doctor record delete
d successfully..');</script>";
  }
}
?>

<div class="wrapper col2">
  <div id="breadcrumb">View  Payment</div>
</div>
<div class="wrapper col4">
Bangalore Institute of Technology Department of MCA 2019-20
Alumni management system 130

  <div id="container">
    <h1>View Payment Record</h1>
    <table width="558" border="3">
      <tbody>
        <tr>
          <td width="75">Payment ID</td>
          <td width="63">Patient ID</td>
          <td width="63">Appointment ID</td>
          <td width="90">Paid Date</td>
          <td width="116">Paid Time</td>
          <td width="99">Paid Amount</td>
          <td width="71">Status</td>
        </tr>
         <?php
    $sql ="SELECT * FROM payment";
    $qsql = mysqli_query($con,$sql);
    while($rs = mysqli_fetch_array($qsql))
    {
        echo "<tr>
          <td>&nbsp;$rs[paymentid]</td>
      <td>&nbsp;$rs[patientid]</td>
      <td>&nbsp;$rs[appointmentid]</td>
          <td>&nbsp;$rs[paiddate]</td>
      <td>&nbsp;$rs[paidtime]</td>
      <td>&nbsp;$rs[paidamount]</td>
      <td>&nbsp;$rs[status]</td>

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 131

        </tr>";
    }
    ?>
         
      </tbody>
    </table>
    <p>&nbsp;</p>
  </div>
</div>
</div>
 <div class="clear"></div>
  </div>
</div>
<?php
include("footer.php");
?>

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 132

TESTING

INTRODUCTION:

Testing is a process of executing a program with the intent of finding an error. Software testing
is the execution of program to find its faults. The testing process focuses on the logical internals
of the software, ensuring that all statements have been testing and on the functional externals,
that is conducting test to uncover and ensure that defined input will produce actual results with
required results.

TEST STRATEGIES:

Unit Testing:

Unit testing focuses verification effort on the smallest design, the module. The testing is done in
parallel to coding. A piece of code was compiled and tested before inspection. The objective of
this inspection is to detect the effects in design and code before they are carried away to the next
phase. The defects were then reworked and submitted again for inspection. Each module were
carefully inspected and proved defect free before going to next one. Each module was tested
independently using the test cases designed for unit testing.

Unit testing is the first level of testing. In this, different modules are tested against the
specifications produced during the design for the modules. Unit testing is essentially for
verification of the code produced during the coding phase. It is done by the programmer of the
module.

In this application ASP pages are executed successfully separately. All classes execute
successfully with their corresponding ASP pages. Each module satisfies the functional and non
functional requirements. Each part of the system is working fine separately.

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 133

TEST CASES:
Test Test User Input Expected Actual Test
Cases Cases Actio Data Results Results Status
ID Name n (PASS/
FAIL)
1.1 Login Correct Login Control Control
AsAn Login Name Transferred Transferred
Admin Name And To Page And To Admin
And Password Success Page PASS
Password Message
Displayed
1.2 Login As Incorrect Login Control Redirected
An Login Name Redirect Of To Login
Admin Name And Login Page With PASS
And Password Page Invalid
Password Msg
1.3 Search as
Admin PASS
1.4 Login as
Admin PASS
1.5 Register
as user PASS

Integration testing:

Integration tests are designed to test integrated software components to determine if they
actually run as one program. Testing is event driven and is more concerned with the basic outcome
of screens or fields. Integration tests demonstrate that although the components were individually
satisfaction, as shown by successfully unit testing, the combination of components is correct and
consistent. Integration testing is specifically aimed at exposing the problems that arise from the
combination of components.

Functional test:
Functional tests provide systematic demonstrations that functions tested are available as
specified by the business and technical requirements, system documentation, and user manuals.

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 134

Functional testing is centered on the following items:

Valid Input : identified classes of valid input must be accepted.

Invalid Input : identified classes of invalid input must be rejected.

Functions : identified functions must be exercised.

Output : identified classes of application outputs must be exercised.

Systems/Procedures: interfacing systems or procedures must be invoked.

Organization and preparation of functional tests is focused on requirements, key


functions, or special test cases. In addition, systematic coverage pertaining to identify
Business process flows; data fields, predefined processes, and successive processes
must be considered for testing. Before functional testing is complete, additional tests
are identified and the effective value of current tests is determined.

System Test:
System testing ensures that the entire integrated software system meets
requirements. It tests a configuration to ensure known and predictable results. An
example of system testing is the configuration oriented system integration test. System
testing is based on process descriptions and flows, emphasizing pre-driven process
links and integration points.

White Box Testing:


White Box Testing is a testing in which in which the software tester has
knowledge of the inner workings, structure and language of the software, or at least its
purpose. It is purpose. It is used to test areas that cannot be reached from a black box
level.

Black Box Testing:


Black Box Testing is testing the software without any knowledge of the inner
workings, structure or language of the module being tested. Black box tests, as most

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 135

other kinds of tests, must be written from a definitive source document, such as
specification or requirements document, such as specification or requirements
document. It is a testing in which the software under test is treated, as a black box .you
cannot “see” into it. The test provides inputs and responds to outputs without
considering how the software works.

Test objectives
 All field entries must work properly.
 Pages must be activated from the identified link.
 The entry screen, messages and responses must not be delayed.

Features to be tested
 Verify that the entries are of the correct format
 No duplicate entries should be allowed

 All links should take the user to the correct page.

Integration Testing:

Software integration testing is the incremental integration testing of two or more


integrated software components on a single platform to produce failures caused by
interface defects.

The task of the integration test is to check that components or software


applications, e.g. components in a software system or – one step up – software
applications at the company level – interact without error.

Test Results:

All the test cases mentioned above passed successfully. No defects encountered.

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 136

Acceptance Testing:
User Acceptance Testing is a critical phase of any project and requires significant

participation by the end user. It also ensures that the system meets the functional requirements .

Test Results:

All the test cases mentioned above passed successfully. No defects encountered .

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 137

CONCLUSION
The project has been completed successfully with the maximum satisfaction of the
organization. the contraints are meet and overcome successfully. It can be
observed that computer applications are very important in every field of human
endeavor. Since we are entering details of the patients electronically in the”
Hospital Management System”, data will be secured. Using this application we can
retrieve patient’s history with a single click. Thus processing information will be
faster. It guarantees accurate maintenance of Patient details. It easily reduces the
book keeping task and thus reduces the human effort and increases accuracy speed.

FUTURE ENHANCEMENT:

There are also few features which can be integrated with this system to make it
more flexible.

Below list shows the future points to be consider

.  Directly getting the images for CT Scan or X-Rays from connected device

 Mapped with Insurance Companies for claim processing

 Billing of patients

 Blood Bank Information Management

 Producing ECG using connected device

 Video Conferencing facility for remote areas for treatment

s  Hangout for different doctors and patients at different locations

Bangalore Institute of Technology Department of MCA 2019-20


Alumni management system 138

BIBLIOGRAPHY

1. PHP MySQL Website Programming: Problem - Design – Solution by Chris

Lea, Mike Buzzard, Dilip Thomas , Jessey White-Cinis


2. Beginning PHP5, Apache, and MySQL Web Development (Programmer to
Programmer) by Elizabeth Naramore
3. MySQL/PHP Database Applications, 2nd Edition by Brad Bulger

4. How to Do Everything with PHP and MySQL by Vikram Vaswani

Bangalore Institute of Technology Department of MCA 2019-20

You might also like