Alumni Project Poornima
Alumni Project Poornima
Alumni Project Poornima
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.
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.
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
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
CO-PO Mapping:
CO
3 3 3 3
1
CO
3 3 3
2
CO
2 2
3
CO
2 2
4
CO
3 3
5
CONTENTS
Sl Programs Pg
no no
1 Abstract 7
2 Introduction 8
3 Requirement Specification 9
5 Design 22-32
6 Snapshots 33-59
7 Coding 60-
126
8 Testing 127-
131
9 Conclusion 132-
11 Bibliography 133
ABSTRACT
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.
RESEARCH PROBLEM
INTRODUCTION
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.
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.
They system will also have a chat feature which will enable alumni to chat
without revealing their mobile number or personal e – mail ID.
REQUIREMENT SPECIFICATION
SOFTWARE REQUIREMENTS:
HARDWARE REQUIREMENTS:
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 .
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.
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.
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
INITIALIZATION
REQUIREMENTS
PLANNING
DESIGN
EVALUATION
IMPLEMENTATION
VERIFICATION
DEPLOYMENT
UML Approach
UML Diagram
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)
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.
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.
Collaboration diagram:
Deployement diagram:
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
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.
ACTIVITY diagram
• Login
• view Feedback
• Chang password
• Add college
• Then logout
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.
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.
Example
x = document.getElementById("demo"); //Find the HTML element with id="demo"
x.innerHTML = "Hello JavaScript"; //Change the content of the HTML element
JAVASCRIPT STATEMENTS:
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:
Properties can usually be changed, added, and deleted, but some are read only.
BOOTSTRAP
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.
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
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.
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.
PHP:
WHAT IS PHP?
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"
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?
What is XAMPP?
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
Many other components are also part of this collection of software and are explained
below.
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.
STEP 2- Click on the "Start" button corresponding to Apache and MySQL modules. Once it starts working, the user
can see the following screen:
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-
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.
SNAPSHOTS
HOME PAGE
ADMIN DASHBOARD
ABOUT US
ADD PATIENT
REGISTRATION
CONTACT
DOCTOR ADMINI
ADD ROOM
VIEW ROOM
TREATMENT
VIEW TREATMENT
ADD DOCTOR
View DOCTOR
ADD DEPARTMENT
VIEW DEPARTMENT
ADD MEDICINE
VIEW MEDICINE
ORDERS
VIEW ORDER
BILLING AMOUNT
VIEW PAYMENT
SERVICE TYPE
BACKEND PHP
ADMIN DATABASE
APPOINTMENT DATABASE
PATIENT DATABASE
PAYMENT DATABASE
ORDERS
MEDICINE
DOCTOR
DOCTOR TIMINGS
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);
}
?>
<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>
<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)
{
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> </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()
{
if(document.frmadmin.adminname.value == "")
{
alert("Admin name should not be empty..")
;
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;
}
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 == "
" )
{
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]'";
}
$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);
?>
</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>
<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
{
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>
<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> </p>
</div>
</div>
</div>
<div class="clear"></div>
</div>
</div>
<?php
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)
{
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>
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>
<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> </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
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;
}
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>
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>";
}
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>
<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]))
{
?>
<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>
<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>
<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>";
}
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
{
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> </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
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 ==
"")
{
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 == "")
{
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();
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;
}
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
== "")
{
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 =
= "")
{
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;
}
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]))
{
$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>
<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">
<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>
</form>
<p> </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()
{
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
{
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">
<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>
<?php
$sql ="SELECT * FROM admin";
$qsql = mysqli_query($con,$sql);
while($rs = mysqli_fetch_array($qsql))
{
echo "<tr>
<td> $rs[adminid]</td>
<td> $rs[adminname]</td>
<td> $rs[loginid]</td>
<td> $rs[password]</td>
<td> $rs[confirmpassword]</td>
<td> $rs[status]</td>
<td>
<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> </p>
</div>
</div>
</div>
<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>
<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]'";
$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> $rs[appointmentid]</td>
<td> $rs[patientname]</td>
<td> $rs[roomtype]</td>
<td> $rsdept[departmentname]</
td>
<td> " . date("d-M-
Y",strtotime($rs[appointmentdate])) . "  
; " . date("H:i A",strtotime($rs[appointmentt
ime])) . "</td>
<td> $rsdoc[doctorname]</td>
<td> $rs[appreason]</td>
<td> $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>";
}
?>
</tbody>
</table>
</section>
<p> </p>
</div>
</div>
</div>
<div class="clear"></div>
</div>
</div>
<?php
include("footers.php");
?>
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> $rs[departmentid]</td>
<td> $rs[departmentname]</td>
Bangalore Institute of Technology Department of MCA 2019-20
Alumni management system 124
<td> $rs[description]</td>
<td> $rs[status]</td>
<td>
<a href='department.php?
editid=$rs[departmentid]'>Edit</a> | <a href=
'viewdepartment.php?
delid=$rs[departmentid]'>Delete</a> </td>
</tr>";
}
?>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
</tbody>
</table>
</section>
<h1> </h1>
<p> </p>
</div>
</div>
</div>
<div class="clear"></div>
</div>
</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>
<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>
<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>:
$rs[admissiondate]<br>
<strong>Time</strong>:
$rs[admissiontme]</td>
<td>$rs[address]<br>$rs[city] -  
;$rs[pincode]<br>
Mob No. - $rs[mobilenumber]</td>
<td><strong>Blood group</strong> -
$rs[bloodgroup]<br>
<strong>Gender</strong> -
$rs[gender]<br>
<strong>DOB</strong> -
$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> </p>
</div>
</div>
</div>
<div class="clear"></div>
</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> $rs[paymentid]</td>
<td> $rs[patientid]</td>
<td> $rs[appointmentid]</td>
<td> $rs[paiddate]</td>
<td> $rs[paidtime]</td>
<td> $rs[paidamount]</td>
<td> $rs[status]</td>
</tr>";
}
?>
</tbody>
</table>
<p> </p>
</div>
</div>
</div>
<div class="clear"></div>
</div>
</div>
<?php
include("footer.php");
?>
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.
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.
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.
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
Integration Testing:
Test Results:
All the test cases mentioned above passed successfully. No defects encountered.
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 .
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.
. Directly getting the images for CT Scan or X-Rays from connected device
Billing of patients
BIBLIOGRAPHY