OMS Report

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 84

1.

INTRODUCTION

Orphanage Management System is a web based technology which manages orphan Childs and
adoption request database and provides rights to update the their details. In this web application
user must be registered. This web application provides a way to effectively control record &
track the adoption request details and child details.

Orphanage Management System is software which is helpful for users as well as the
orphanage authority. In the current system all the activities are done manually. It is very
time consuming and costly. Our Orphanage Management System deals with the various activities
related to the orphanage group.

In this project we use PHP and MySQL database and it has two module i.e. Admin and Users

Advantages:

 It helps the admin to handle and manage child data and request data.
 Reduce time consumption.
 Reduce error scope.
 All system managements are automated.
 Centralized database management.
 Easy operations for operator of the system.
 No paper work requirement.

Disadvantages:

 The system can only handle single admin.

1
Feasibility Study :

Whenever we design a new system, normally the management will ask for a feasibility report of
the new system. The management wants to know the technicalities and cost involved in creation
of new system.

- Technical feasibility
- Economic feasibility
- Physical feasibility

Technical feasibility:

Technical feasibility involves study to establish the technical capability of the system being
created to accomplish all requirements to the Student. The system should be capable of handling
the proposed volume of data and provide Students and operating environment to increase their
efficiency.
For example, system should be capable of handling the proposed volume of data and provide
Students.

Economic feasibility:

Economic feasibility involves study to establish the cost benefit analysis. Money spent on the
system must be recorded in the form of benefit from the system. The benefits are of two types:

Tangible benefits:
- Saving man labor to do tedious tasks saves time.
-
Intangible benefits:
- Improves the quality of organization.

2
Physical feasibility:

It involves study to establish the time responses of the new system being created. For e.g., if the
new system takes more than one day to prepare crucial finance statement for the management,
wherever it was required in an hour, the system fails to provide the same.

It should be clearly establish that the new system requirements in the form of time responses
would be completely met with. It may call for increase in cost. If the required cost is sacrificed
then the purpose of the new system may not be achieved even if it was found to be technically
feasible.

3
2. SCOPE OF THE PROJECT

Motive of our paper is to eliminate the drawback of previous application and to help orphans to
the full extend.
The system works and fulfills all the functionalities as per the proposed system.

It will provide reduced response time against the queries made by different user(foster).

All possible features such as verification, validation, security, child friendliness etc have been
considered.

In this project there is two module i.e. Admin and Users(foster)

2.1 Admin:

This module provides administrator-related functionalities. The administrator manages the entire
application.

1. Dashboard: In this section, admin can view total orphan child’s, total users(foster), total
news, total new adoption request, total accepted adoption request and total rejected
adoption request.
2. Child: In this section, admin can manage child’s(Add/Delete/Update).
3. Manage Users (Foster): In this section, admin can manage users (Update).
4. Adoption Request: In this section, admin can view the adoption request which is sent by
users (foster) and they have right to accept and reject that request.
5. News: In this section, admin can add and delete news details which is added by
administrator.
6. Reports: In this section, admin can generate between date and search report.
7. Website Setting: In this section, admin can handle website details.

Admin can also update his/her change the password.

4
2.2 Users (Foster):

This module provides, users(foster)- related functionalities. In this users must be registered.

1. Home: This is the welcome page for any users(fosters).


2. About: In this section, users can view the about us details of website.
3. Our Children’s: In this section, users can view the children’s details of orphanage.
4. My Accounts: In this section, users can his/her password, view and update his/her
profile, view request history and log out from their accounts.
5. Contact: In this section, users can view contact details.

5
3. SOFTWARE AND HARDWARE REQUIREMENTS

 Any Version of browser after Mozilla Firefox 4.0, Internet Explorer 6.0,chrome

Hardware requirements:

 Any processor after Pentium 4.


 Any version of Windows XP or later.
 Processor speed: 2.0 GHz
 RAM : 1GB
 Hard disk: 40GB to 80 GB

Software requirements:

 Database : MySQL
 Server : Apache
 Frontend : HTML
 Scripting Language : JavaScript
 IDE : Sublime
 Technology : PHP

6
4. SYSTEM DESIGN

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

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

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

Design is the place where quality is fostered in development. Software design is a process
through which requirements are translated into a representation of software. Software design is
conducted in two steps. Preliminary design is concerned with the transformation of requirements
into data

7
5. PROJECT DESIGNING

 The unified modelling language allows the software engineer to express an analysis
model using the modelling notation that is governed by a set of syntactic semantic and
pragmatic rules.

 A UML system is represented using five different views that describe the system from
distinctly different perspective. Each view is defined by a set of diagram, which is as
follows.

Student Model View:

i. This view represents the system from the students perspective.

ii. The analysis representation describes a usage scenario from the students perspective.
Structural model view:

 In this model the data and functionality are arrived from inside the system.

 This model view models the static structures.

Behavioural Model View:

 It represents the dynamic of behavioural as parts of the system, depicting the


interactions of collection between various structural elements described in the Student
model and structural model view.

Implementation Model View:

 In this the structural and behavioural as parts of the system are represented as they are
to be built.

8
Environmental Model View:

In this the structural and behavioural aspects of the environment in which the system is to be
implemented are represented.

UML is specifically constructed through two different domains they are

 UML Analysis modelling, which focuses on the Student model and structural
model views of the system?

 UML design modelling, which focuses on the behavioural modelling,


implementation modelling and environmental model views.

9
5.1 Use Case Diagrams Admin:

Sign in

Dashboard

Manage Child (Add/Update/Del)

Manage Users(Add/Update/Del)

Manage Adoption Request

Manage News (Add/Del)

Generate Report

Manage Website

Change Password

Update Profile
10
Use Case Diagrams Users (Foster)

Signup/Sign in

Dashboard

View Childs Details

Sent Request

View About Us Page

View Contact Us Page

Views News

Change Password

Update Profile

11
5.2 Entity-Relationship Diagrams

E-R (Entity-Relationship) Diagram is used to represents the relationship between entities in the
table.

The symbols used in E-R diagrams are:

SYMBOL PURPOSE

Represents Entity sets.

Represent attributes.

Represent Relationship Sets.

Line represents flow

Structured analysis is a set of tools and techniques that the analyst.

To develop a new kind of a system:

The traditional approach focuses on the cost benefit and feasibility analysis, Project
management, and hardware and software selection a personal considerations.

12
13
5.3 Class diagram

The class diagram shows a set of classes, interfaces, collaborations and their relationships.

14
5.4 Data Flow Diagrams:

A Data Flow Diagram (DFD) is a traditional visual representation of the information flows
within a system. A neat and clear DFD can depict the right amount of the system requirement
graphically. It can be manual, automated, or a combination of both.

It shows how data enters and leaves the system, what changes the information, and where data is
stored.

The objective of a DFD is to show the scope and boundaries of a system as a whole. It may be
used as a communication tool between a system analyst and any person who plays a part in the
order that acts as a starting point for redesigning a system. The DFD is also called as a data flow
graph or bubble chart.

The following observations about DFDs are essential:

1. All names should be unique. This makes it easier to refer to elements in the DFD.
2. Remember that DFD is not a flow chart. Arrows is a flow chart that represents the order
of events; arrows in DFD represents flowing data. A DFD does not involve any order of
events.
3. Suppress logical decisions. If we ever have the urge to draw a diamond-shaped box in a
DFD, suppress that urge! A diamond-shaped box is used in flow charts to represents
decision points with multiple exists paths of which the only one is taken. This implies an
ordering of events, which makes no sense in a DFD.
4. Do not become bogged down with details. Defer error conditions and error handling until
the end of the analysis.

Standard symbols for DFDs are derived from the electric circuit diagram analysis and are shown
in fig:

15
Circle: A circle (bubble) shows a process that transforms data inputs into data outputs.

Data Flow: A curved line shows the flow of data into or out of a process or data store.

Data Store: A set of parallel lines shows a place for the collection of data items. A data store
indicates that the data is stored which can be used at a later stage or by the other processes in a
different order. The data store can have an element or group of elements.

Source or Sink: Source or Sink is an external entity and acts as a source of system inputs or sink
of system outputs.

16
17
18
19
20
5.5 Database Design:

The data in the system has to be stored and retrieved from database. Designing the database is
part of system design. Data elements and data structures to be stored have been identified at
analysis stage. They are structured and put together to design the data storage and retrieval
system.

A database is a collection of interrelated data stored with minimum redundancy to serve many
Students quickly and efficiently. The general objective is to make database access easy, quick,
inexpensive and flexible for the Student. Relationships are established between the data items and
unnecessary data items are removed. Normalization is done to get an internal consistency of data
and to have minimum redundancy and maximum stability. This ensures minimizing data storage
required, minimizing chances of data inconsistencies and optimizing for updates. The MySQL
database has been chosen for developing the relevant databases.

21
Orphanage Management System (OMS) contains 7 MySQL tables)

Admin: This table store the detail of admin.

22
tbladoption: This table store the details of adoption request.

23
tblchild: This table store the details of orphan childs.

24
tblgenralsettings: This table store the details of website..

25
tblnews: This table store the details of news.

26
tblpages: This table store the details of about us of website.

27
tblusers: This table store the details of users(foster).

28
5.6 Database Schema:

29
6.SYSTEM TESTING

6.1 Software Testing Techniques:

Software testing is a critical element of software quality assurance and represents the ultimate
review of specification, designing and coding.

TESTING OBJECTIVES:

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

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

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

These above objectives imply a dramatic change in view port.

Testing cannot show the absence of defects, it can only show that software errors are present.

There are three types of testing strategies

1. Unit test
2. Integration test
3. Performance test

30
6.2 Unit Testing:

Unit testing focuses verification efforts on the smallest unit of software design module. The unit
test is always white box oriented. The tests that occur as part of unit testing are testing the
module interface, examining the local data structures, testing the boundary conditions, execution
all the independent paths and testing error-handling paths.

Integration Testing:

Integration testing is a systematic technique or construction the program structure while at the
same time conducting tests to uncover errors associated with interfacing. Scope of testing
summarizes the specific functional, performance, and internal design characteristics that are to be
tested. It employs top-down testing and bottom-up testing methods for this case.

Performance Testing:

Timing for both read and update transactions should be gathered to determine whether system
functions are being performed in an acceptable timeframe.

31
7. APENDIX

7.1 PROJECT SCREEN SHOTS

Home Page:

Welcome to our orphanage management system! We are dedicated to providing a nurturing and
supportive environment for children in need. Our platform streamlines the management of the
orphanage, ensuring efficient operations and maximizing the well-being of every child under our
care.

32
About Us Page:

At our orphanage management system, we are driven by a deep commitment to serving


vulnerable children with compassion and integrity.

33
Contact Us Page:

We're here to help! Whether you have questions, feedback, or are interested in supporting our
cause, please don't hesitate to reach out.

34
Children’s Details:

35
User Profile:

In our orphanage management system, user profiles serve as personalized hubs for caregivers,
administrators, and donors.

36
Change Password:

In our orphanage management system, ensuring the security of user accounts is


paramount.

37
Adoption Request History:

In our orphanage management system, we maintain a comprehensive adoption request


history to ensure transparency and accountability throughout the adoption process.

38
View Adoption Request History:

In our orphanage management system, the "View Adoption History" feature provides
users with a concise overview of all adoption-related activities and milestones.

39
Admin Panel:

Login Page:

Welcome to the Admin Panel login page of our orphanage management system! Here,
administrators can securely access the system to oversee and manage various aspects of
orphanage operations. With a user-friendly interface and robust security measures in place,
administrators can log in with confidence, knowing that sensitive information is protected.

40
Forgot Password:

Forgot your password? No worries! In our orphanage management system, we've got you
covered. Simply click on the "Forgot Password" link on the login page, and follow the prompts
to reset your password securely. We'll guide you through the process, ensuring that you regain
access to your account swiftly and with ease. Your security and convenience are our priorities, so
you can rest assured that your account is in good hands.

41
Dashboard:

The Orphanage Management System dashboard provides a comprehensive overview of key


metrics and operations within the orphanage facility. It enables administrators to efficiently
manage resources, track children's well-being, and streamline communication with staff and
stakeholders

42
Admin Profile:

The Orphanage Management System's admin profile empowers administrators with the tools
needed to oversee and coordinate all aspects of orphanage operations. With access to
comprehensive features, admins can efficiently manage staff, track resources, and ensure the
well-being of every child under their care.

43
Change Password:

The Orphanage Management System's "Change Password" feature allows users to securely
update their login credentials. By accessing their profile settings, users can easily change their
password to enhance account security and confidentiality.

44
Add Child:

The "Add Child" feature in the Orphanage Management System facilitates the seamless inclusion
of new children into the system's database. Administrators or authorized staff can input essential
details such as the child's name, age, gender, and any pertinent medical or personal information.

45
Manage Child:

The "Manage Child" feature in the Orphanage Management System offers a comprehensive
platform for overseeing and attending to the needs of each child under care. Administrators can
access and update vital information such as medical records, educational progress, and personal
details.

46
Update Child:

The orphanage management system's update to the child form incorporates enhanced features for
comprehensive child profile management. It streamlines the process, ensuring accuracy and
efficiency in data entry and updates.

47
Change Image:

The orphanage management system's update to the image form introduces a more dynamic and
user-friendly interface for uploading and managing images of children. With enhanced
functionality, staff can now easily upload, organize, and update images, ensuring accurate visual
documentation of each child's progress and activities.

48
Manage Users:

The "Manage Users" feature in the orphanage management system empowers administrators to
efficiently oversee user access and permissions. Through this functionality, administrators can
easily add, remove, or modify user accounts, ensuring that the right individuals have appropriate
access levels to the system.

49
Update Users Details:

The "Update Users Details" function within the orphanage management system enables
administrators to swiftly modify user information as needed. This feature provides a convenient
way to keep user profiles accurate and up to date, ensuring that staff information remains current
and relevant.

50
New Adoption Request:

The "New Adoption Request" feature in the orphanage management system streamlines the
process for submitting and managing adoption requests. Prospective adoptive parents can easily
initiate a request through the system, providing essential information and documentation.

51
View New Adoption Request:

The "View New Adoption Request" feature in the orphanage management system allows staff to
access and review incoming adoption requests with ease. Through this functionality, staff can
quickly assess essential details provided by prospective adoptive parents, such as personal
information and reasons for adoption.

52
Accepted Adoption Request:

The "Accepted Adoption Request" feature within the orphanage management system enables
staff to efficiently manage and confirm adoption requests that meet the necessary criteria. This
functionality streamlines the process of approving adoption applications, ensuring prompt
communication with prospective adoptive parents.

53
View Accepted Adoption Request:

The "View Accepted Adoption Request" feature in the Orphanage Management System allows
administrators to review and manage adoption requests that have been accepted. Through this
feature, administrators can access a list of accepted adoption requests, including details such as
the prospective adoptive parents' information

54
Rejected Adoption Request :

The "Rejected Adoption Request" feature in the Orphanage Management System enables
administrators to manage adoption requests that have been declined. Through this functionality,
administrators can access a list of rejected adoption requests, along with the reasons for the
rejection.

55
View Rejected Adoption Request:

The "View Rejected Adoption Request" feature in the Orphanage Management System provides
administrators with access to a list of adoption requests that have been declined. This feature
includes details such as the reasons for rejection and relevant information about the prospective
adoptive parents and the child involved.

56
Add News:

The "Add News" feature in the Orphanage Management System allows administrators to share
important updates, announcements, and events with staff, volunteers, and stakeholders.
Administrators can easily create and publish news articles or notifications, including details such
as event schedules, fundraising initiatives, or success stories about the children under care

57
Manage News:

The "Manage News" feature in the Orphanage Management System empowers administrators to
oversee and update news articles and announcements within the system. Administrators can edit
or delete existing news items, ensuring accuracy and relevance of information shared with staff,
volunteers, and stakeholders.

58
Between Dates Report of Adoption Request:

The "Between Dates Report of Adoption Requests" feature in the Orphanage Management
System allows administrators to generate a comprehensive report of adoption requests received
within a specified date range.

59
Search Report of Adoption Request:

The "Search Report of Adoption Requests" feature in the Orphanage Management System
empowers administrators to swiftly access specific adoption requests based on various criteria.
This feature enables users to search for adoption requests by entering keywords, such as
applicant names, child names, or dates.

60
About Us Page:

The "About Us" page in the Orphanage Management System offers a brief overview of the
orphanage's mission, values, and objectives. It provides insight into the orphanage's history,
highlighting its journey, milestones, and achievements in providing care and support to orphaned
children.

61
General Setting:

He "General Settings" feature in the Orphanage Management System provides administrators


with tools to configure and customize various system-wide preferences and parameters. This
includes options to set default language, time zone, currency, and other general settings tailored
to the specific needs of the orphanage.

62
7.2 PROJECT SOURCE CODE:

Index page:

<?php
session_start();
include('includes/config.php');
if(isset($_POST['login']))
{

// getting post values


$username=$_POST['username'];
$password=md5($_POST['password']);
// Sql Query for checking login details
$sql ="SELECT id,UserName,Password FROM admin WHERE UserName=:username and
Password=:password";
$query= $dbh -> prepare($sql);
// binding post values
$query-> bindParam(':username', $username, PDO::PARAM_STR);
$query-> bindParam(':password', $password, PDO::PARAM_STR);
$query-> execute();
$results=$query->fetchAll(PDO::FETCH_OBJ);
//if login details verified
if($query->rowCount() > 0)
{
// fetching id for session
foreach($results as $result)

63
{
$_SESSION['adminsession']=$result->id;

}
echo "<script type='text/javascript'> document.location ='dashboard.php'; </script>";
} else{
// For invalid details
echo "<script>alert('Invalid Details');</script>";
}
}

?>

<!DOCTYPE html>
<html lang="en">
<head>
<title>Orphanage Management System | Admin login </title>
<link href="vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="vendor/metisMenu/metisMenu.min.css" rel="stylesheet">
<link href="dist/css/sb-admin-2.css" rel="stylesheet">
<link href="vendor/font-awesome/css/font-awesome.min.css" rel="stylesheet"
type="text/css">
</head>
<body>

<div class="container">
<div class="row">

64
<div class="col-md-12" align="center">
<h3>OMS | Admin Panel</h3>
</div>

</div>
<div class="row">
<div class="col-md-4 col-md-offset-4">
<div class="login-panel panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Please Sign In</h3>
</div>
<div class="panel-body">
<form role="form" method="post">

<fieldset>
<!--Username -->
<div class="form-group">
<input class="form-control" placeholder="User name" name="username" type="text" autofocus
required="true">
</div>

<!--Password -->
<div class="form-group">
<input class="form-control" placeholder="Password" name="password" type="password"
required="true" autofocus>
</div>

65
<a class="link-effect text-muted mr-10 mb-5 d-inline-block" href="forgot-password.php">
<i class="fa fa-warning mr-5"></i> Forgot Password
</a>
<hr>
<!--Submit Button -->
<input type="submit" name="login" class="btn btn-lg btn-success btn-block" value="submit">
</fieldset>
</form>
<hr />
<div align="center">
<a href="../index.php" class="btn btn-primary">Back to Home Page</a>
</div>

</div>
</div>
</div>
</div>
</div>

<!-- jQuery -->


<script src="vendor/jquery/jquery.min.js"></script>
<script src="vendor/bootstrap/js/bootstrap.min.js"></script>
<script src="vendor/metisMenu/metisMenu.min.js"></script>
<script src="dist/js/sb-admin-2.js"></script>
</body>
</html>

66
Admin page

<?php
session_start();
error_reporting(0);
include('includes/config.php');
if(strlen($_SESSION['adminsession'])==0)
{
header('location:logout.php');
}
else{
if(isset($_POST['update']))
{
$fname=$_POST['fullname'];
$admemail=$_POST['adminemail'];
$aid=$_SESSION['adminsession'];

$con="update admin set FullName=:fname,AdminEmail=:admemail where id=:aid";


$query = $dbh->prepare($con);
$query-> bindParam(':aid', $aid, PDO::PARAM_STR);
$query-> bindParam(':fname', $fname, PDO::PARAM_STR);
$query-> bindParam(':admemail', $admemail, PDO::PARAM_STR);
$query->execute();
$msg="Your profile updated.";
}

?>
<!DOCTYPE html>
67
<html lang="en">

<head>

<title>EMS | Admin Profile</title>

<!-- Bootstrap Core CSS -->


<link href="vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="vendor/metisMenu/metisMenu.min.css" rel="stylesheet">
<link href="dist/css/sb-admin-2.css" rel="stylesheet">
<link href="vendor/font-awesome/css/font-awesome.min.css" rel="stylesheet"
type="text/css">
<style>
.errorWrap {
padding: 10px;
margin: 0 0 20px 0;
background: #fff;
border-left: 4px solid #dd3d36;
-webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);
box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);
}
.succWrap{
padding: 10px;
margin: 0 0 20px 0;
background: #fff;
border-left: 4px solid #5cb85c;
-webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);

68
box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);
}
</style>
</head>
<body>
<div id="wrapper">
<!-- Navigation -->
<nav class="navbar navbar-default navbar-static-top" role="navigation" style="margin-bottom:
0">
<!-- / Header -->
<?php include_once('includes/header.php');?>
<!-- / Leftbar -->
<?php include_once('includes/leftbar.php');?>
</nav>

<div id="page-wrapper">
<div class="row">
<div class="col-lg-12">
<h1 class="page-header">Admin Profile</h1>
</div>
<!-- /.col-lg-12 -->
</div>
<!-- /.row -->
<div class="row">
<div class="col-lg-12">
<div class="panel panel-default">
<div class="panel-heading">

69
Admin Profile
</div>
<div class="panel-body">
<div class="row">
<div class="col-lg-6">
<form role="form" method="post" onSubmit="return valid();" name="chngpwd">
<!-- Success Message -->
<?php if($msg){?><div class="succWrap"><strong>SUCCESS</strong> : <?php echo
htmlentities($msg); ?> </div><?php }?>

<?php
$aid=$_SESSION['adminsession'];
$sql ="SELECT FullName,AdminEmail,UserName,updationDate FROM admin where id=:aid";
$query= $dbh -> prepare($sql);
$query-> bindParam(':aid', $aid, PDO::PARAM_STR);
$query-> execute();
$results = $query -> fetchAll(PDO::FETCH_OBJ);
if($query -> rowCount() > 0)
{
foreach ($results as $row) {
?>

<!--Current Pasword -->


<div class="form-group">
<label>Full Name </label>
<input class="form-control" type="text" value="<?php echo htmlentities($row->FullName);?>"
name="fullname" autocomplete="off" required autofocus>

70
</div>
<!--New Pasword -->
<div class="form-group">
<label>Admin Email-Id</label>
<input class="form-control" type="email" value="<?php echo htmlentities($row-
>AdminEmail);?>" name="adminemail" autocomplete="off" required autofocus />
</div>
<!--Confirm Pasword -->
<div class="form-group">
<label>UserName</label>
<input class="form-control" value="<?php echo htmlentities($row->UserName);?>"
type="text" name="username" autocomplete="off" readonly />
</div>

<?php }} ?>
<!--Button -->
<button type="submit" class="btn btn-default" name="update">Update</button>
</form>
</div>

</div>
<!-- /.row (nested) -->
</div>
<!-- /.panel-body -->
</div>
<!-- /.panel -->
</div>

71
<!-- /.col-lg-12 -->
</div>
<!-- /.row -->
</div>
<!-- /#page-wrapper -->

</div>
<!-- /#wrapper -->

<!-- jQuery -->


<script src="vendor/jquery/jquery.min.js"></script>
<script src="vendor/bootstrap/js/bootstrap.min.js"></script>
<script src="vendor/metisMenu/metisMenu.min.js"></script>
<script src="dist/js/sb-admin-2.js"></script>
</body>
</html>
<?php } ?>

72
Logut page

<?php
session_start();
unset($_SESSION['adminsession']);
session_destroy(); // destroy session
header("location:index.php");
?>

73
Profile page

<?php
session_start();
//datbase connection file
include('includes/config.php');
error_reporting(0);
if(strlen($_SESSION['usrid'])==0)
{
header('location:logout.php');
}
else{
// update Process
if(isset($_POST['update']))
{

//Getting User id
$uid=$_SESSION['usrid'];
// Getting Post values
$fname=$_POST['name'];
$emailid=$_POST['email'];
$pnumber=$_POST['phonenumber'];
$gender=$_POST['gender'];
// query for data updation
$sql="update tblusers set
FullName=:fname,Emailid=:emailid,PhoneNumber=:pnumber,UserGender=:gender where
Userid=:uid ";
//preparing the query
$query = $dbh->prepare($sql);
//Binding the values
$query->bindParam(':fname',$fname,PDO::PARAM_STR);
$query->bindParam(':emailid',$emailid,PDO::PARAM_STR);

74
$query->bindParam(':pnumber',$pnumber,PDO::PARAM_STR);
$query->bindParam(':gender',$gender,PDO::PARAM_STR);
$query->bindParam(':uid',$uid,PDO::PARAM_STR);
$query->execute();

echo "<script>alert('Success : Profile updated Successfully.');</script>";


echo "<script>window.location.href='profile.php'</script>";

?>

<!doctype html>
<html class="no-js" lang="zxx">

<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>OMS || Users Profile</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">

<!-- <link rel="manifest" href="site.webmanifest"> -->


<link rel="shortcut icon" type="image/x-icon" href="img/favicon.png">
<!-- Place favicon.ico in the root directory -->

<!-- CSS here -->


<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/owl.carousel.min.css">
<link rel="stylesheet" href="css/magnific-popup.css">
<link rel="stylesheet" href="css/font-awesome.min.css">

75
<link rel="stylesheet" href="css/themify-icons.css">
<link rel="stylesheet" href="css/nice-select.css">
<link rel="stylesheet" href="css/flaticon.css">
<link rel="stylesheet" href="css/gijgo.css">
<link rel="stylesheet" href="css/animate.css">
<link rel="stylesheet" href="css/slicknav.css">
<link rel="stylesheet" href="css/style.css">
<!-- <link rel="stylesheet" href="css/responsive.css"> -->
</head>

<body>
<!--[if lte IE 9]>
<p class="browserupgrade">You are using an <strong>outdated</strong> browser.
Please <a href="https://browsehappy.com/">upgrade your browser</a> to improve your
experience and security.</p>
<![endif]-->

<!-- header-start -->


<?php include_once('includes/header.php');?>
<!-- header-end -->

<!-- bradcam_area_start -->


<div class="bradcam_area breadcam_bg overlay d-flex align-items-center justify-content-
center">
<div class="container">
<div class="row">
<div class="col-xl-12">
<div class="bradcam_text text-center">
<h3>Profile</h3>
</div>
</div>
76
</div>
</div>
</div>
<!-- bradcam_area_end -->

<!-- ================ contact section start ================= -->


<section class="contact-section">
<div class="container">

<div class="row">
<div class="col-12">
<h2 class="contact-title">Profile Details</h2>
</div>
<div class="col-lg-8">
<?php
$uid=$_SESSION['usrid'];
$sql = "SELECT * from tblusers where Userid=:uid";
$query = $dbh -> prepare($sql);
$query -> bindParam(':uid',$uid, PDO::PARAM_STR);
$query->execute();
$results=$query->fetchAll(PDO::FETCH_OBJ);
$cnt=1;
if($query->rowCount() > 0)
{
foreach($results as $result)
{ ?>
<form class="form-contact contact_form" method="post"
novalidate="novalidate">
<div class="row">

77
<div class="col-sm-12">
<div class="form-group">
<label>Full Name</label>
<input type="text" class="form-control" name="name" value="<?php
echo htmlentities($result->FullName);?>" required="true">
</div>
</div>
<div class="col-sm-12">
<div class="form-group">
<label>Username <small style="color:red;">(Can't be
change)</small></label>
<input type="text" class="form-control" name="username"
id="username" value="<?php echo htmlentities($result->UserName);?>" readonly="true" >
</div>
</div>
<div class="col-sm-12">
<div class="form-group">
<label>Email</label>
<input type="email" class="form-control" name="email"
required="true" value="<?php echo htmlentities($result->Emailid);?>">
</div>
</div>
<div class="col-sm-12">
<div class="form-group">
<label>Phone Number</label>
<input type="tel" pattern="[0-9]{10}" title="10 numeric characters
only" class="form-control" name="phonenumber" maxlength="10" required="true" value="<?
php echo htmlentities($result->PhoneNumber);?>">
</div>

78
</div>
<div class="col-sm-12">
<div class="form-group">
<label>Gender</label>
<select class="form-control" name="gender" required="true">
<option value="<?php echo htmlentities($result->UserGender);?>"><?php echo
htmlentities($result->UserGender);?></option>
<option value="Male">Male</option>
<option value="Female">Female</option>
<option value="Transgender">Transgender</option>
</select>
</div>
</div>
</div><?php }} ?>
<div class="form-group mt-3">
<button type="submit" class="genric-btn primary e-large" id="update"
name="update">Update</button>
</div>
</form>

</div>

</div>
</div>
</section>
<!-- ================ contact section end ================= -->

<!-- footer_start -->


<?php include_once('includes/footer.php');?>
<!-- footer_end -->

79
<!-- JS here -->
<script src="js/vendor/modernizr-3.5.0.min.js"></script>
<script src="js/vendor/jquery-1.12.4.min.js"></script>
<script src="js/popper.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/owl.carousel.min.js"></script>
<script src="js/isotope.pkgd.min.js"></script>
<script src="js/ajax-form.js"></script>
<script src="js/waypoints.min.js"></script>
<script src="js/jquery.counterup.min.js"></script>
<script src="js/imagesloaded.pkgd.min.js"></script>
<script src="js/scrollIt.js"></script>
<script src="js/jquery.scrollUp.min.js"></script>
<script src="js/wow.min.js"></script>
<script src="js/nice-select.min.js"></script>
<script src="js/jquery.slicknav.min.js"></script>
<script src="js/jquery.magnific-popup.min.js"></script>
<script src="js/plugins.js"></script>
<script src="js/gijgo.min.js"></script>

<!--contact js-->
<script src="js/contact.js"></script>
<script src="js/jquery.ajaxchimp.min.js"></script>
<script src="js/jquery.form.js"></script>
<script src="js/jquery.validate.min.js"></script>
<script src="js/mail-script.js"></script>

<script src="js/main.js"></script>
<script>
$('#datepicker').datepicker({

80
iconsLibrary: 'fontawesome',
icons: {
rightIcon: '<span class="fa fa-caret-down"></span>'
}
});
$('#datepicker2').datepicker({
iconsLibrary: 'fontawesome',
icons: {
rightIcon: '<span class="fa fa-caret-down"></span>'
}

});
</script>
</body>

</html><?php } ?>

81
8. CONSCLUSION

The project titled as Orphanage Management System was deeply studied and analyzed to
design the code and implement. It was done under the guidance of the experienced project guide.
All the current requirements and possibilities have been taken care during the project time.

Computer has got clear advantage over the manual system. The computerized system is more
reliable, efficient and fast at the end of the project, I can say that computer play a very crucial
role in the development of firm. All the daily reports generated by the system are to be checked
by the concerned official so as to ensure that all the transactions have been put through in
appropriate accounts and this is tallied with the new vouchers. Computer does maximum work
with in minimum time. Because it is used in every field so that it provides comfort and suitability
to everyone. Providing maximum facilities and comfort to customers to customers is main goal
of the firm. To achieve this goal, other modern facilities relating to computer should have to be
provided.

82
9. BIBLIOGRAPHY

For PHP

 https://www.w3schools.com/php/default.asp

 https://www.sitepoint.com/php/

 https://www.php.net/

For MySQL

 https://www.mysql.com/
 http://www.mysqltutorial.org

For XAMPP

 https://www.apachefriends.org/download.html

83
10. FUTURE ENHANCEMENT

Enhancing an Orphanage Management System involves incorporating features that improve


efficiency, communication, and overall effectiveness in managing the orphanage's operations and
the well-being of its residents. Here are some potential future enhancements:

1. Online Portal for Donations and Sponsorships: Develop a secure online platform where
individuals and organizations can easily donate funds, sponsor a child's education or healthcare,
or contribute specific items needed by the orphanage. Integration with payment gateways can
streamline the donation process.

2. Child Progress Tracking: Implement a system to track the academic, physical, and
emotional progress of each child in the orphanage. This could include recording grades, health
check-ups, extracurricular activities, and any special needs or milestones achieved. Data
analytics could provide insights into trends or areas needing additional support.

3. Volunteer Management System: Create a module to manage volunteers, including their


schedules, skills, background checks, and tasks assigned. An automated system could match
volunteer availability and skills with specific needs within the orphanage, improving resource
allocation and coordination.

4. Parent/Guardian Portal: If applicable, develop a secure online portal where parents or


guardians of the children can access information about their child's well-being, academic
progress, and activities. This promotes transparency and communication between the orphanage
and the child's family.

5. Inventory Management: Enhance inventory management capabilities to track donations,


supplies, and resources within the orphanage. Barcode scanning or RFID technology could
streamline inventory tracking and reduce manual errors.

84

You might also like