PHP and MySQL Project On Clinic Appointment System
PHP and MySQL Project On Clinic Appointment System
Page - 1
Project Report of Clinic Appointment System
The "Clinic Appointment System" has been developed to override the problems
prevailing in the practicing manual system. This software is supported to eliminate and
in some cases reduce the hardships faced by this existing system. Moreover this
system is designed for the particular need of the company to carry out operations in a
smooth and effective manner.
The application is reduced as much as possible to avoid errors while entering the data.
It also provides error message while entering invalid data. No formal knowledge is
needed for the user to use this system. Thus by this all it proves it is user-friendly. Clinic
Appointment System , as described above, can lead to error free, secure, reliable and
fast management system. It can assist the user to concentrate on their other activities
rather to concentrate on the record keeping. Thus it will help organization in better
utilization of resources.
Every organization, whether big or small, has challenges to overcome and managing
the information of Doctor, Clinic, Booking, Medicine, Patient. Every Clinic Appointment
System has different Clinic needs, therefore we design exclusive employee
management systems that are adapted to your managerial requirements. This is
designed to assist in strategic planning, and will help you ensure that your organization
is equipped with the right level of information and details for your future goals. Also, for
those busy executive who are always on the go, our systems come with remote access
features, which will allow you to manage your workforce anytime, at all times. These
systems will ultimately allow you to better manage resources.
Page - 2
Project Report of Clinic Appointment System
Clinic Appointment System, as described above, can lead to error free, secure,
reliable and fast management system. It can assist the user to concentrate on their
other activities rather to concentrate on the record keeping. Thus it will help organization
in better utilization of resources. The organization can maintain computerized records
without redundant entries. That means that one need not be distracted by information
that is not relevant, while being able to reach the information.
The aim is to automate its existing manual system by the help of computerized
equipments and full-fledged computer software, fulfilling their requirements, so that their
valuable data/information can be stored for a longer period with easy accessing and
manipulation of the same. Basically the project describes how to manage for good
performance and better services for the clients.
Page - 3
Project Report of Clinic Appointment System
Page - 4
Project Report of Clinic Appointment System
It may help collecting perfect management in details. In a very short time, the
collection will be obvious, simple and sensible. It will help a person to know the
management of passed year perfectly and vividly. It also helps in current all works
relative to Clinic Appointment System. It will be also reduced the cost of collecting the
management & collection procedure will go on smoothly.
In computer system the person has to fill the various forms & number of copies of
the forms can be easily generated at a time.
In computer system, it is not necessary to create the manifest but we can directly
print it, which saves our time.
To assist the staff in capturing the effort spent on their respective working areas.
To utilize resources in an efficient manner by increasing their productivity through
automation.
The system generates types of information that can be used for various
purposes.
It satisfy the user requirement
Be easy to understand by the user and operator
Be easy to operate
Have a good user interface
Be expandable
Delivered on schedule within the budget.
Page - 5
Project Report of Clinic Appointment System
Page - 6
Project Report of Clinic Appointment System
All the fields such as Clinic, Appointment, Patient are validated and does not take
invalid values
Each form for Clinic, Doctor, Medicine can not accept blank value fields
Avoiding errors in data
Controlling amount of input
Integration of all the modules/forms in the system.
Preparation of the test cases.
Preparation of the possible test data with all the validation checks.
Actual testing done manually.
Recording of all the reproduced errors.
Modifications done for the errors found during testing.
Prepared the test result scripts after rectification of the errors.
Functionality of the entire module/forms.
Validations for user input.
Checking of the Coding standards to be maintained during coding.
Testing the module with all the possible test data.
Testing of the functionality involving all type of calculations etc.
Commenting standard in the source files.
The software quality plan we will use the following SQA Strategy:
In the first step, we will select the test factors and rank them. The selected test
factors such as reliability, maintainability, portability or etc, will be placed in the
matrix according to their ranks.
The second step is for identifying the phases of the development process. The
phase should be recorded in the matrix.
The third step is that identifying the business risks of the software deliverables.
The risks will be ranked into three ranks such as high, medium and low.
Page - 7
Project Report of Clinic Appointment System
Page - 8
Project Report of Clinic Appointment System
Page - 9
Project Report of Clinic Appointment System
Identification of need:
The old manual system was suffering from a series of drawbacks. Since whole of
the system was to be maintained with hands the process of keeping, maintaining and
retrieving the information was very tedious and lengthy. The records were never used to
be in a systematic order. there used to be lots of difficulties in associating any particular
transaction with a particular context. If any information was to be found it was required
to go through the different registers, documents there would never exist anything like
report generation. There would always be unnecessary consumption of time while
entering records and retrieving records. One more problem was that it was very difficult
to find errors while entering the records. Once the records were entered it was very
difficult to update these records.
The reason behind it is that there is lot of information to be maintained and have
to be kept in mind while running the business .For this reason we have provided
features Present system is partially automated (computerized), actually existing system
is quite laborious as one has to enter same information at three different places.
Documents and reports that must be provided by the new system: there can also
be few reports, which can help management in decision-making and cost
controlling, but since these reports do not get required attention, such kind of
reports and information were also identified and given required attention.
Details of the information needed for each document and report.
The required frequency and distribution for each document.
Probable sources of information for each document and report.
With the implementation of computerized system, the task of keeping records in
an organized manner will be solved. The greatest of all is the retrieval of
information, which will be at the click of the mouse. So the proposed system helps
in saving the time in different operations and making information flow easy giving
valuable reports.
Page - 10
Project Report of Clinic Appointment System
Feasibility Study:
After doing the project Clinic Appointment System, study and analyzing all the
existing or required functionalities of the system, the next task is to do the feasibility
study for the project. All projects are feasible - given unlimited resources and infinite
time.
Feasibility study includes consideration of all the possible ways to provide a solution to
the given problem. The proposed solution should satisfy all the user requirements and
should be flexible enough so that future changes can be easily done based on the
future upcoming requirements.
A. Economical Feasibility
This is a very important aspect to be considered while developing a project. We
decided the technology based on minimum possible cost factor.
All hardware and software cost has to be borne by the organization.
Overall we have estimated that the benefits the organization is going to receive
from the proposed system will surely overcome the initial costs and the later on
running cost for system.
B. Technical Feasibility
This included the study of function, performance and constraints that may affect
the ability to achieve an acceptable system. For this feasibility study, we studied
complete functionality to be provided in the system, as described in the System
Requirement Specification (SRS), and checked if everything was possible using
different type of frontend and backend plaformst.
C. Operational Feasibility
No doubt the proposed system is fully GUI based that is very user friendly and all
inputs to be taken all self-explanatory even to a layman. Besides, a proper training has
been conducted to let know the essence of the system to the users so that they feel
comfortable with new system. As far our study is concerned the clients are comfortable
and happy as the system has cut down their loads and doing.
Page - 11
Project Report of Clinic Appointment System
In this phase, a logical system is built which fulfils the given requirements. Design
phase of software development deals with transforming the clientss requirements into a
logically working system. Normally, design is performed in the following in the following
two steps:
The general tasks involved in the design process are the following:
Page - 12
Project Report of Clinic Appointment System
User Interface Design is concerned with the dialogue between a user and the
computer. It is concerned with everything from starting the system or logging into the
system to the eventually presentation of desired inputs and outputs. The overall flow of
The following steps are various guidelines for User Interface Design:
5. Default values for fields and answers to be entered by the user should be
specified.
7. The system user should never get an operating system message or fatal error.
Page - 13
Project Report of Clinic Appointment System
The first step in the system development life cycle is the preliminary investigation
to determine the feasibility of the system. The purpose of the preliminary investigation is
to evaluate project requests. It is not a design study nor does it include the collection of
details to describe the business system in all respect. Rather, it is the collecting of
information that helps committee members to evaluate the merits of the project request
and make an informed judgment about the feasibility of the proposed project.
Benefit to Organization
The initial cost of setting up the system will include the cost of hardware software
(OS, add-on software, utilities) & labour (setup & maintenance). The same has to bear
by the organization.
Page - 14
Project Report of Clinic Appointment System
Running Cost
Besides, the initial cost the long term cost will include the running cost for the
system including the AMC, stationary charges, cost for human resources, cost for
update/renewal of various related software.
The users along with the administrator need to be trained at the time of
implementation of the system for smooth running of the system. The client will provide
the training site.
We talked to the management people who were managing a the financial issues
of the center, the staff who were keeping the records in lots of registers and the
reporting manager regarding their existing system, their requirements and their
expectations from the new proposed system. Then, we did the system study of the
entire system based on their requirements and the additional features they wanted to
incorporate in this system.
Reliable, accurate and secure data was also considered to be a complex task
without this proposed system. Because there was no such record for keeping track of all
the activities, which was done by the Clinic Appointment System on the daily basis.
The new system proposed and then developed by me will ease the task of the
organization in consideration. It will be helpful in generating the required reports by the
staff, which will help them to track their progress and services.
Thus, it will ease the task of Management to a great extent as all the major
activities to be performed, are computerized through this system.
Page - 15
Project Report of Clinic Appointment System
Project Category
RDBMSs have become a predominant choice for the storage of information in new
databases used for financial records, manufacturing and logistical information,
personnel data, and much more since the 1980s. Relational databases have often
replaced legacy hierarchical databases and network databases because they are easier
to understand and use. However, relational databases have been challenged by object
databases, which were introduced in an attempt to address the object-relational
impedance mismatch in relational database, and XML databases.
Page - 16
Project Report of Clinic Appointment System
Implementation Methodology:
Model View Controller or MVC as it is popularly called, is a software design pattern for
developing web applications. A Model View Controller pattern is made up of the
following three parts:
Model - The lowest level of the pattern which is responsible for maintaining data.
View - This is responsible for displaying all or a portion of the data to the user.
Controller - Software Code that controls the interactions between the Model and
View.
MVC is popular as it isolates the application logic from the user interface layer and
supports separation of concerns. Here the Controller receives all requests for the
application and then works with the Model to prepare any data needed by the View. The
View then uses the data prepared by the Controller to generate a final presentable
response. The MVC abstraction can be graphically represented as follows.
MVC (Model View Controller Flow) Diagram
Page - 17
Project Report of Clinic Appointment System
Project Planning:
2) With respect to the customer: Weekly or timely meetings with the customer
with presentation on status reports. Customers feedback is also taken and further
modification and developments are done. Project milestones and deliverables
are also presented to the customer.
Select a project
o Testing techniques
o Documentation
Budget allocation
Project Estimates
o Cost
o Time
o Size of code
Page - 18
Project Report of Clinic Appointment System
o Duration
Resource Allocation
o Hardware
o Software
o Digital Library
Risk Management
o Risk avoidance
o Risk detection
Page - 19
Project Report of Clinic Appointment System
Project Scheduling:
An elementary Gantt chart or Timeline chart for the development plan is given below.
The plan explains the tasks versus the time (in weeks) they will take to complete.
Requirement
Gathering
Analysis
Design
Coding
Testing
Implement
W1 W2 W3 W4 W1 W2 W3 W4 W1 W2 W3 W4
Page - 20
Project Report of Clinic Appointment System
The main point that was considered during the cost estimation of project was its sizing.
In spite of complete software sizing, function point and approximate lines of code were
also used to "size" each element of the Software and their costing.
The cost estimation done by me for Project also depend upon the baseline metrics
collected from past projects and these were used in conjunction with estimation
variables to develop cost and effort projections.
1) Effort Estimation - This refers to the total man-hours required for the development
of the project. It even includes the time required for doing documentation and user
manual.
2) Hardware Required Estimation - This includes the cost of the PCs and the
hardware cost required for development of this project.
Page - 21
Project Report of Clinic Appointment System
Software Requirements:
Hardware Requirements:
Page - 22
Project Report of Clinic Appointment System
Project Profile
There has been continuous effort to develop tools, which can ease the process of
software development. But, with the evolving trend of different programming paradigms
todays software developers are really challenged to deal with the changing technology.
Among other issues, software re-engineering is being regarded as an important process
in the software development industry. One of the major tasks here is to understand
software systems that are already developed and to transform them to a different
software environment. Generally, this requires a lot of manual effort in going through a
program that might have been developed by another programmer. This project makes a
novel attempt to address the issued of program analysis and generation of diagrams,
which can depict the structure of a program in a better way. Today, UML is being
considered as an industrial standard for software engineering design process. It
essential provides several diagramming tools that can express different aspects/
characteristics of program such as
Use cases: Elicit requirement from users in meaningful chunks. Construction planning
is built around delivering some use cases n each interaction basis for system testing.
Class diagrams: shows static structure of concepts, types and class. Concepts how
users think about the world; type shows interfaces of software components; classes
shows implementation of software components.
Interaction diagrams: shows how several objects collaborate in single use case.
State diagram: show how single object behaves across many use cases.
Activity diagram: shows behavior with control structure. Can show many objects over
many uses, many object in single use case, or implementations methods encourage
parallel behavior, etc.
Page - 23
Project Report of Clinic Appointment System
The end-product of this project is a comprehensive tool that can parse any vb.net
program and extract most of the object oriented features inherent in the program such
as polymorphism, inheritance, encapsulation and abstraction.
What is UML?
UML stands for Unified Modeling Language is the successor to the wave of
Object Oriented Analysis and Design (OOA&D) methods that appeared in the late 80s.
It most directly unifies the methods of Booch, Rumbaugh (OMT) and Jacobson. The
UML is called a modeling language, not a method. Most methods consist at least in
principle, of both a modeling language and a process. The Modeling language is that
notation that methods used to express design.
The notation is the graphical stuff; it is the syntax of the modeling language. For
instance, class diagram notation defines how items are concepts such as class,
association, and multiplicity is represented. These are:
Class Diagram: The class diagram technique has become truly central within object-
oriented methods. Virtually every method has included some variation on this technique.
Class diagram is also subject to the greatest range of modeling concept. Although the
basic elements are needed by everyone, advanced concepts are used less often. A
class diagram describes the types of objects in the system and the various kinds of
static relationship that exist among them. There are two principal kinds of static
relationship:
Association
Subtype
Class diagram also show the attributes and operations of a class and the constraints
that apply to the way objects are connected.
Page - 24
Project Report of Clinic Appointment System
Aggregation: aggregation is the part of relationship. It is like saying a car has engine
and wheels as its parts. This sounds good, but difficult thing is considering, what is the
difference is aggregation and association.
Interaction: interaction diagrams are models that describes how groups of objects
collaboration in some behavior.
Typically, an interaction diagram captures the behavior a single use cases. The
diagram shows a number of example objects and the messages that are passed
between these objects in use cases. These are following approaches with simple use
case that exhibits the following behavior.
Objects can send a message to another. Each message is checks with given
stock item. There are two diagrams: Sequence and Collaboration diagram.
Package Diagram: One of the oldest questions in software methods is: how do you
break down a large system into smaller systems? It becomes difficult to understand and
the changes we make to them.
Page - 25
Project Report of Clinic Appointment System
objects. In UML, this grouping mechanism is package. The term package diagram for a
diagram that shows packages of classes and the dependencies among them.
State diagram: State diagram are a familiar technique to describe the behavior of a
system. They describe all the possible states a particular object can get into and how
the objects state changes as a result of events that reach the objects. In most OO
technique, state diagrams are drawn for a single class to show the lifetime behavior of a
singe object. There are many form of state diagram, each with slightly different
semantics. The most popular one used in OO technique is based on David Harels state
chart.
Page - 26
Project Report of Clinic Appointment System
PERT chart is organized for events, activities or tasks. It is a scheduling device that
shows graphically the order of the tasks to be performed. It enables the calculation of
the critical path. The time and cost associated along a path is calculated and the path
requires the greatest amount of elapsed time in critical path.
Design Code
Database database
Part Part Integrate
and Test
Implementation
Write User
Manual
Page - 27
Project Report of Clinic Appointment System
GANTT CHART
It is also known as Bar chart is used exclusively for scheduling purpose. It is a project
controlling technique. It is used for scheduling. Budgeting and resourcing planning. A
Gantt is a bar chart with each bar representing activity. The bars are drawn against a
time line. The length of time planned for the activity. The Gantt chart in the figure shows
the Gray parts is slack time that is the latest by which a task has been finished.
1-19 MAY 10 20-3 JUNE 10 6-25 JUNE 10 26-15 JULY 10 JULY 16 AUG 31
Specification
Part
CODE DATABASE
PART
PART
INTEGRATE AND TEST
IMPLEMENTATION
Page - 28
Project Report of Clinic Appointment System
The use case model for any system consists of use cases. Use cases represent
different ways in which the system can be used by the user. A simple way to find all the
use case of a system is to ask the questions What the user can do using the system?
The use cases partition the system behavior into transactions such that each
transaction performs some useful action from the users point of view.
The purpose of the use case to define a piece of coherent behavior without
reveling the internal structure of the system. An use case typically represents a
sequence of interaction between the user and the system. These interactions consists
of one main line sequence is represent the normal interaction between the user and the
system. The use case model is an important analysis and design artifact (task).Use
cases can be represented by drawing a use case diagram and writing an accompany
text elaborating the drawing.
In the use case diagram each use case is represented by an ellipse with the
name of use case written inside the ellipse. All the ellipses of the system are enclosed
with in a rectangle which represents the system boundary. The name of the system
being moduled appears inside the rectangle. The different users of the system are
represented by using stick person icon. The stick person icon is normally referred to as
an Actor. The line connecting the actor and the use cases is called the communication
relationship. When a stick person icon represents an external system it is annotated by
the stereo type<<external system>>.
Page - 29
Project Report of Clinic Appointment System
Dataflow Diagram:
Data flow diagram is the starting point of the design phase that functionally
decomposes the requirements specification. A DFD consists of a series of bubbles
joined by lines. The bubbles represent data transformation and the lines represent
data flows in the system. A DFD describes what data flow rather than how they are
processed, so it does not hardware, software and data structure.
The data flow diagram is a graphical description of a systems data and how to
Unlike details flow chart, DFDs dont supply detail descriptions of modules that
graphically describe a systems data and how the data interact with the system. Data
flow diagram number of symbols and the following symbols are of by DeMarco.
process
Data store
Source/sink
Data Flow
DeMarco &
Yourdon Gane & Sarson
symbols symbols
Page - 30
Project Report of Clinic Appointment System
This basic DFD can be then disintegrated to a lower level diagram demonstrating
smaller steps exhibiting details of the system that is being modeled.
On a DFD, data items flow from an external data source or an internal data store to an
internal data store or an external data sink, via an internal process. It is common
practice to draw a context-level data flow diagram first, which shows the interaction
between the system and external agents, which act as data sources and data sinks. On
the context diagram (also known as the Level 0 DFD), the system's interactions with the
outside world are modeled purely in terms of data flows across the system boundary.
The context diagram shows the entire system as a single process, and gives no clues
as to its internal organization.
This context-level DFD is next "exploded", to produce a Level 1 DFD that shows some
of the detail of the system being modeled. The Level 1 DFD shows how the system is
divided into sub-systems (processes), each of which deals with one or more of the
data flows to or from an external agent, and which together provide all of the
functionality of the system as a whole. The level 1 DFD is further spreaded and split
into more descriptive and detailed description about the project as level 2 DFD.The
level 2 DFD can be a number of data flows which will finally show the entire
description of the software project.
Page - 31
Project Report of Clinic Appointment System
About ER Diagram:
E-R Model is a popular high level conceptual data model. This model and its variations
are frequently used for the conceptual design of database application and many
database design tools employ its concept.
Attributes
Relations
o Many-to-many
o Many-to-one
o One-to-many
o One-to-one
Weak entities
The entities and their relationshops between them are shown using the following
conventions.
Page - 33
Project Report of Clinic Appointment System
Testing is vital for the success of any software. no system design is ever perfect. Testing is also
carried in two phases. first phase is during the software engineering that is during the module
creation. second phase is after the completion of software. this is system testing which verifies
that the whole set of programs hanged together.
In this technique, the close examination of the logical parts through the software are tested by
cases that exercise species sets of conditions or loops. all logical parts of the software checked
once. errors that can be corrected using this technique are typographical errors, logical
expressions which should be executed once may be getting executed more than once and error
resulting by using wrong controls and loops. When the box testing tests all the independent part
within a module a logical decisions on their true and the false side are exercised , all loops and
bounds within their operational bounds were exercised and internal data structure to ensure
their validity were exercised once.
This method enables the software engineer to device sets of input techniques that fully exercise
all functional requirements for a program. black box testing tests the input, the output and the
external data. it checks whether the input data is correct and whether we are getting the desired
output.
Alpha Testing:
Acceptance testing is also sometimes called alpha testing. Be spoke systems are developed for
a single customer. The alpha testing proceeds until the system developer and the customer
agree that the provided system is an acceptable implementation of the system requirements.
Beta Testing:
On the other hand, when a system isto be marked as a software product, another process
called beta testing is often conducted. During beta testing, a system is delivered among a
number of potential users who agree to use it. The customers then report problems to the
Page - 34
Project Report of Clinic Appointment System
developers. This provides the product for real use and detects errors which may not have been
anticipated by the system developers.
Unit Testing:
Integration Testing:
Integration testing aims at constructing the program structure while at the same constructing
tests to uncover errors associated with interfacing the modules. modules are integrated by using
the top down approach.
Validation Testing:
Validation testing was performed to ensure that all the functional and performance requirements
are met.
System Testing:
It is executing programs to check logical changes made in it with intention of finding errors. a
system is tested for online response, volume of transaction, recovery from failure etc. System
testing is done to ensure that the system satisfies all the user requirements.
Page - 35
Project Report of Clinic Appointment System
This phase of the systems development life cycle refines hardware and software specifications,
establishes programming plans, trains users and implements extensive testing procedures, to
evaluate design and operating specifications and/or provide the basis for further modification.
Technical Design
This activity builds upon specifications produced during new system design, adding detailed
technical specifications and documentation.
This activity prepares detailed test specifications for individual modules and programs, job
streams, subsystems, and for the system as a whole.
This activity encompasses actual development, writing, and testing of program units or modules.
User Training
This activity encompasses writing user procedure manuals, preparation of user training
materials, conducting training programs, and testing procedures.
Acceptance Test
A final procedural review to demonstrate a system and secure user approval before a system
becomes operational.
Installation Phase
In this phase the new Computerized system is installed, the conversion to new procedures is
fully implemented, and the potential of the new system is explored.
Page - 36
Project Report of Clinic Appointment System
System Installation
The process of starting the actual use of a system and training user personnel in its operation.
Review Phase
This phase evaluates the successes and failures during a systems development project, and to
measure the results of a new Computerized Transystem in terms of benefits and savings
projected at the start of the project.
Development Recap
A review of a project immediately after completion to find successes and potential problems in
future work.
Post-Implementation Review
A review, conducted after a new system has been in operation for some time, to evaluate actual
system performance against original expectations and projections for cost-benefit
improvements. Also identifies maintenance projects to enhance or improve the system.
The unit testing done included the testing of the following items:
Page - 37
Project Report of Clinic Appointment System
After completing the Unit testing of all the modules, the whole system is integrated with all its
dependencies in that module. While System Integration, We integrated the modules one by one
and tested the system at each step. This helped in reduction of errors at the time of the system
testing.
The System Testing done included the testing of the following items:
After the completion of system testing, the next following phase was the Acceptance Testing.
Clients at their end did this and accepted the system with appreciation. Thus, we reached the
final phase of the project delivery.
There are other six tests, which fall under special category. They are described below:
Peak Load Test: It determines whether the system will handle the volume of activities that
occur when the system is at the peak of its processing demand. For example, test the
system by activating all terminals at the same time.
Page - 38
Project Report of Clinic Appointment System
Storage Testing: It determines the capacity of the system to store transaction data on a disk
or in other files.
Performance Time Testing: it determines the length of time system used by the system to
process transaction data. This test is conducted prior to implementation to determine how
long it takes to get a response to an inquiry, make a backup copy of a file, or send a
transmission and get a response.
Recovery Testing: This testing determines the ability of user to recover data or re-start
system after failure. For example, load backup copy of data and resume processing without
data or integrity loss.
Procedure Testing: It determines the clarity of documentation on operation and uses of
system by having users do exactly what manuals request. For example, powering down
system at the end of week or responding to paper-out light on printer.
Human Factors Testing: It determines how users will use the system when processing data
or preparing reports.
Page - 39
Project Report of Clinic Appointment System
System Analysis:
Page - 40
Project Report of Clinic Appointment System
Page - 41
Project Report of Clinic Appointment System
Data Dictionary:
This is normally represented as the data about data. It is also termed as metadata
some times which gives the data about the data stored in the database. It defines each
data term encountered during the analysis and design of a new system. Data elements
can describe files or the processes.
= equivalent to
+ and
[] either/ or
() Optional entry
Following are some rules, which defines the construction of data dictionary
entries:
1. Words should be defined to understand for what they need and not the
variable need by which they may be described in the program .
2. Each word must be unique. We cannot have two definition of the same
client.
3. Aliases or synonyms are allowed when two or more enters shows the same
meaning. For example a vendor number may also be called as customer
number.
4. A self-defining word should not be decomposed. It means that the reduction
of any information in to subpart should be done only if it is really required
that is it is not easy to understand directly.
Data dictionary includes information such as the number of records in file, the
frequency a process will run, security factor like pass word which user must enter
to get excess to the information.
Page - 42
Project Report of Clinic Appointment System
Page - 43
Project Report of Clinic Appointment System
Page - 44
Project Report of Clinic Appointment System
Page - 45
Project Report of Clinic Appointment System
Page - 46
Project Report of Clinic Appointment System
Page - 47
Project Report of Clinic Appointment System
Page - 48
Project Report of Clinic Appointment System
Page - 49
Project Report of Clinic Appointment System
Page - 50
Project Report of Clinic Appointment System
Page - 51
Project Report of Clinic Appointment System
Page - 52
Project Report of Clinic Appointment System
Page - 53
Project Report of Clinic Appointment System
Page - 54
Project Report of Clinic Appointment System
Page - 55
Project Report of Clinic Appointment System
Page - 56
Project Report of Clinic Appointment System
Page - 57
Project Report of Clinic Appointment System
Page - 58
Project Report of Clinic Appointment System
Page - 59
Project Report of Clinic Appointment System
Page - 60
Project Report of Clinic Appointment System
Page - 61
Project Report of Clinic Appointment System
Page - 62
Project Report of Clinic Appointment System
Page - 63
Project Report of Clinic Appointment System
Page - 64
Project Report of Clinic Appointment System
Page - 65
Project Report of Clinic Appointment System
Page - 66
Project Report of Clinic Appointment System
Page - 67
Project Report of Clinic Appointment System
Page - 68
Project Report of Clinic Appointment System
Page - 69
Project Report of Clinic Appointment System
Page - 70
Project Report of Clinic Appointment System
Page - 71
Project Report of Clinic Appointment System
Page - 72
Project Report of Clinic Appointment System
Page - 73
Project Report of Clinic Appointment System
Page - 74
Project Report of Clinic Appointment System
Page - 75
Project Report of Clinic Appointment System
Page - 76
Project Report of Clinic Appointment System
Page - 77
Project Report of Clinic Appointment System
Page - 78
Project Report of Clinic Appointment System
Page - 79
Project Report of Clinic Appointment System
Page - 80
Project Report of Clinic Appointment System
Page - 81
Project Report of Clinic Appointment System
Page - 82
Project Report of Clinic Appointment System
Page - 83
Project Report of Clinic Appointment System
Page - 84
Project Report of Clinic Appointment System
Page - 85
Project Report of Clinic Appointment System
Page - 86
Project Report of Clinic Appointment System
Page - 87
Project Report of Clinic Appointment System
Page - 88
Project Report of Clinic Appointment System
<?php
/**
* @file
*/
/**
* Implements hook_node_info().
*/
function blog_node_info() {
return array(
'description' => t('Use for multi-user blogs. Every user gets a personal blog.'),
);
/**
* Implements hook_user_view().
*/
Page - 89
Project Report of Clinic Appointment System
function blog_user_view($account) {
$account->content['summary']['blog'] = array(
'#markup' => l(t('View recent blog entries'), "blog/$account->uid", array('attributes' => array('title' =>
t("Read !username's latest blog entries.", array('!username' => format_username($account)))))),
);
/**
* Implements hook_help().
*/
switch ($path) {
case 'admin/help#blog':
$output .= '<p>' . t("The Blog module allows registered users to maintain an online journal, or
<em>blog</em>. Blogs are made up of individual <em>blog entries</em>. By default, the blog entries
are displayed by creation time in descending order, with comments enabled, and are promoted to the
site's front page. For more information, see the online handbook entry for <a href='@blog'>Blog
module</a>.", array('@blog' => 'http://drupal.org/documentation/modules/blog/')) . '</p>';
$output .= '<dl>';
Page - 90
Project Report of Clinic Appointment System
$output .= '<dd>' . t("Each user's blog entries are automatically displayed with a link to the user's
main blog page. You can create as many single-user blogs as you have site users with permission to
create blog content.") . '</dd>';
$output .= '<dd>' . t("Blog entries from each single-user blog are also aggregated into one central
multi-user blog, which displays the blog content of all users in a single listing.") . '</dd>';
$output .= '<dd>' . t("There is an optional <em>Blogs</em> menu item added to the Navigation
menu, which displays all blogs available on your site, and a <em>My blog</em> item displaying the
current user's blog entries.") . '</dd>';
$output .= '<dd>' . t('The Blog module also creates a default <em>Recent blog posts</em> block that
may be enabled at the <a href="@blocks">blocks administration page</a>.', array('@blocks' =>
url('admin/structure/block'))) . '</dd>';
$output .= '</dl>';
return $output;
/**
* Implements hook_form().
*/
/**
Page - 91
Project Report of Clinic Appointment System
* Implements hook_view().
*/
return $node;
/**
* Implements hook_node_view().
*/
if ($view_mode != 'rss') {
// This goes to l(), which escapes !username in both title and attributes.
$links['blog_usernames_blog'] = array(
'attributes' => array('title' => t("Read !username's latest blog entries.", array('!username' =>
format_username($node)))),
);
$node->content['links']['blog'] = array(
Page - 92
Project Report of Clinic Appointment System
);
/**
* Implements hook_menu().
*/
function blog_menu() {
$items['blog'] = array(
);
$items['blog/%user_uid_optional'] = array(
Page - 93
Project Report of Clinic Appointment System
);
$items['blog/%user/feed'] = array(
);
$items['blog/feed'] = array(
);
return $items;
/**
* Implements hook_menu_local_tasks_alter().
*/
Page - 94
Project Report of Clinic Appointment System
global $user;
if ($root_path == 'blog') {
$item = menu_get_item('node/add/blog');
if ($item['access']) {
$data['actions']['output'][] = array(
);
$data['actions']['output']['blog'] = array(
);
$data['actions']['output']['blog']['#link']['href'] = 'node/add/blog';
else {
Page - 95
Project Report of Clinic Appointment System
/**
*/
function blog_page_user_access($account) {
/**
*/
function _blog_post_exists($account) {
->fields('n', array('nid'))
->condition('type', 'blog')
->condition('uid', $account->uid)
->condition('status', 1)
->range(0, 1)
->addTag('node_access')
->execute()
Page - 96
Project Report of Clinic Appointment System
->fetchField();
/**
* Implements hook_block_info().
*/
function blog_block_info() {
$block['recent']['properties']['administrative'] = TRUE;
return $block;
/**
* Implements hook_block_configure().
*/
if ($delta == 'recent') {
$form['blog_block_count'] = array(
'#options' => drupal_map_assoc(array(2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20,
25, 30)),
);
return $form;
Page - 97
Project Report of Clinic Appointment System
/**
* Implements hook_block_save().
*/
if ($delta == 'recent') {
variable_set('blog_block_count', $edit['blog_block_count']);
/**
* Implements hook_block_view().
*/
global $user;
if (user_access('access content')) {
->condition('type', 'blog')
->condition('status', 1)
->orderBy('created', 'DESC')
Page - 98
Project Report of Clinic Appointment System
->addTag('node_access')
->execute();
if ($node_title_list = node_title_list($result)) {
$block['content']['blog_list'] = $node_title_list;
$block['content']['blog_more'] = array(
);
return $block;
/**
* Implements hook_rdf_mapping().
*/
function blog_rdf_mapping() {
return array(
array(
Page - 99
Project Report of Clinic Appointment System
),
),
);
Page - 100
Project Report of Clinic Appointment System
<?php
/**
* @file
*/
/**
* Implements hook_help().
*/
switch ($path) {
case 'admin/help#book':
$output .= '<p>' . t('The Book module is used for creating structured, multi-page content, such as site
resource guides, manuals, and wikis. It allows you to create content that has chapters, sections,
subsections, or any similarly-tiered structure. For more information, see the online handbook entry for
<a href="@book">Book module</a>.', array('@book' =>
'http://drupal.org/documentation/modules/book/')) . '</p>';
$output .= '<dl>';
Page - 101
Project Report of Clinic Appointment System
$output .= '<dd>' . t("Book pages have a default book-specific navigation block. This navigation block
contains links that lead to the previous and next pages in the book, and to the level above the current
page in the book's structure. This block can be enabled on the <a href='@admin-block'>Blocks
administration page</a>. For book pages to show up in the book navigation, they must be added to a
book outline.", array('@admin-block' => url('admin/structure/block'))) . '</dd>';
$output .= '<dd>' . t('Books can be created collaboratively, as they allow users with appropriate
permissions to add pages into existing books, and add those pages to a custom table of contents menu.')
. '</dd>';
$output .= '<dd>' . t("Users with the <em>View printer-friendly books</em> permission can select
the <em>printer-friendly version</em> link visible at the bottom of a book page's content to generate a
printer-friendly display of the page and all of its subsections.") . '</dd>';
$output .= '</dl>';
return $output;
case 'admin/content/book':
return '<p>' . t('The book module offers a means to organize a collection of related content pages,
collectively known as a book. When viewed, this content automatically displays links to adjacent book
pages, providing a simple navigation system for creating and reviewing structured content.') . '</p>';
case 'node/%/outline':
return '<p>' . t('The outline feature allows you to include pages in the <a href="@book">Book
hierarchy</a>, as well as move them within the hierarchy or to <a href="@book-admin">reorder an
entire book</a>.', array('@book' => url('book'), '@book-admin' => url('admin/content/book'))) . '</p>';
/**
* Implements hook_theme().
*/
Page - 102
Project Report of Clinic Appointment System
function book_theme() {
return array(
),
'variables' => array('title' => NULL, 'contents' => NULL, 'depth' => NULL),
),
),
),
),
),
);
Page - 103
Project Report of Clinic Appointment System
/**
* Implements hook_permission().
*/
function book_permission() {
return array(
),
),
),
'description' => t('View a book page and all of its sub-pages as a single document for ease of printing.
Can be performance heavy.'),
),
);
/**
Page - 104
Project Report of Clinic Appointment System
* @param $node
* @param $view_mode
*/
$links = array();
if (isset($node->book['depth'])) {
$links['book_add_child'] = array(
);
$links['book_printer'] = array(
Page - 105
Project Report of Clinic Appointment System
'attributes' => array('title' => t('Show a printer-friendly version of this book page and its sub-
pages.'))
);
if (!empty($links)) {
$node->content['links']['book'] = array(
);
/**
* Implements hook_menu().
*/
function book_menu() {
$items['admin/content/book'] = array(
Page - 106
Project Report of Clinic Appointment System
);
$items['admin/content/book/list'] = array(
);
$items['admin/content/book/settings'] = array(
'weight' => 8,
);
$items['admin/content/book/%node'] = array(
);
$items['book'] = array(
Page - 107
Project Report of Clinic Appointment System
);
$items['book/export/%/%'] = array(
);
$items['node/%node/outline'] = array(
'weight' => 2,
);
$items['node/%node/outline/remove'] = array(
Page - 108
Project Report of Clinic Appointment System
);
return $items;
/**
* @param $node
*/
function _book_outline_access($node) {
/**
* Access callback: Determines if the user can remove nodes from the outline.
* @param $node
Page - 109
Project Report of Clinic Appointment System
* @see book_menu()
*/
function _book_outline_remove_access($node) {
/**
* @param $node
*/
function _book_node_is_removable($node) {
/**
* Implements hook_admin_paths().
*/
function book_admin_paths() {
if (variable_get('node_admin_theme')) {
Page - 110
Project Report of Clinic Appointment System
$paths = array(
);
return $paths;
/**
* Implements hook_entity_info_alter().
*/
function book_entity_info_alter(&$info) {
),
);
/**
* Implements hook_block_info().
*/
function book_block_info() {
Page - 111
Project Report of Clinic Appointment System
$block = array();
return $block;
/**
* Implements hook_block_view().
* Displays the book table of contents in a block when the current page is a
*/
$block = array();
$current_bid = 0;
if ($node = menu_get_object()) {
$book_menus = array();
Page - 112
Project Report of Clinic Appointment System
if ($book['bid'] == $current_bid) {
// needs to be retrieved.
$book_menus[$book_id] = menu_tree_output(menu_tree_all_data($node->book['menu_name'],
$node->book));
else {
// Since we know we will only display a link to the top node, there
$book['in_active_trail'] = FALSE;
$book_node = node_load($book['nid']);
$pseudo_tree[0]['link'] = $book;
$book_menus[$book_id] = menu_tree_output($pseudo_tree);
$book_menus['#theme'] = 'book_all_books_block';
$block['content'] = $book_menus;
elseif ($current_bid) {
->fields('n', array('title'))
->condition('n.nid', $node->book['bid'])
->addTag('node_access');
Page - 113
Project Report of Clinic Appointment System
$title = $select->execute()->fetchField();
// Only show the block if the user has view access for the top-level node.
if ($title) {
$data = array_shift($tree);
return $block;
/**
* Implements hook_block_configure().
*/
$block = array();
$options = array(
);
$form['book_block_mode'] = array(
Page - 114
Project Report of Clinic Appointment System
'#description' => t("If <em>Show block on all pages</em> is selected, the block will contain the
automatically generated menus for all of the site's books. If <em>Show block only on book pages</em>
is selected, the block will contain only the one menu corresponding to the current page's book. In this
case, if the current page is not in a book, no block will be displayed. The <em>Page specific visibility
settings</em> or other visibility settings can be used in addition to selectively display this block."),
);
return $form;
/**
* Implements hook_block_save().
*/
$block = array();
variable_set('book_block_mode', $edit['book_block_mode']);
/**
* Returns HTML for a link to a book title when used as a block title.
* @param $variables
* - link: An array containing title, href and options for the link.
Page - 115
Project Report of Clinic Appointment System
* @ingroup themeable
*/
function theme_book_title_link($variables) {
$link = $variables['link'];
$link['options']['attributes']['class'] = array('book-title');
/**
* This list may be used for generating a list of all the books, or for building
* @return
*/
function book_get_books() {
$all_books = &drupal_static(__FUNCTION__);
if (!isset($all_books)) {
$all_books = array();
Page - 116
Project Report of Clinic Appointment System
if ($nids) {
$query->fields('b');
$query->fields('ml');
$query->condition('n.status', 1);
$query->orderBy('ml.weight');
$query->orderBy('ml.link_title');
$query->addTag('node_access');
$result2 = $query->execute();
$link['href'] = $link['link_path'];
$link['options'] = unserialize($link['options']);
$all_books[$link['bid']] = $link;
return $all_books;
Page - 117
Project Report of Clinic Appointment System
/**
* @see book_pick_book_nojs_submit()
*/
$node = $form['#node'];
if (!$access) {
$access = TRUE;
if ($access) {
$form['book']['pick-book'] = array(
Page - 118
Project Report of Clinic Appointment System
);
/**
* rebuild so that the "Parent item" options are changed to reflect the newly
* selected book. When JavaScript is enabled, the submit button that triggers
* this handler is hidden, and the "Book" dropdown directly triggers the
* @see book_form_update()
* @see book_form_node_form_alter()
*/
$form_state['node']->book = $form_state['values']['book'];
$form_state['rebuild'] = TRUE;
Page - 119
Project Report of Clinic Appointment System
/**
* Builds the parent selection form element for the node form or outline tab.
* This function is also called when generating a new set of options during the
* @param $book_link
* @return
*/
function _book_parent_select($book_link) {
if (variable_get('menu_override_parent_selector', FALSE)) {
return array();
$form = array(
);
Page - 120
Project Report of Clinic Appointment System
else {
$form['#prefix'] .= '<em>' . t('This will be the top-level page in this book.') . '</em>';
elseif (!$book_link['bid']) {
else {
$form = array(
'#description' => t('The parent page in the book. The maximum depth for a book and all child pages is
!maxdepth. Some pages in the selected book may not be available as parents if selecting them would
exceed this limit.', array('!maxdepth' => MENU_MAX_DEPTH)),
);
Page - 121
Project Report of Clinic Appointment System
return $form;
/**
* Builds the common elements of the book form for the node and outline forms.
* @param $node
*/
// If the form is being processed during the Ajax callback of our book bid
// dropdown, then $form_state will hold the value that was selected.
if (isset($form_state['values']['book'])) {
$node->book = $form_state['values']['book'];
$form['book'] = array(
Page - 122
Project Report of Clinic Appointment System
),
),
);
$form['book'][$key] = array(
);
$form['book']['plid'] = _book_parent_select($node->book);
$form['book']['weight'] = array(
'#weight' => 5,
'#description' => t('Pages at a given level are ordered first by weight and then by title.'),
);
Page - 123
Project Report of Clinic Appointment System
$options = array();
// This is the top level node in a maximum depth book and thus cannot be moved.
$options[$node->nid] = $node->title;
else {
$options[$book['nid']] = $book['title'];
if (!$node->book['mlid']) {
$form['book']['bid'] = array(
Page - 124
Project Report of Clinic Appointment System
),
);
/**
* Renders a new parent page select element when the book selection changes.
* This function is called via Ajax when the selected book is changed on a node
* @return
*/
Page - 125
Project Report of Clinic Appointment System
return $form['book']['plid'];
/**
* This common helper function performs all additions and updates to the book
* outline through node addition, node editing, node deletion, or the outline
* tab.
* @param $node
* @return
*/
function _book_update_outline($node) {
if (empty($node->book['bid'])) {
return FALSE;
$new = empty($node->book['mlid']);
$node->book['link_title'] = $node->title;
Page - 126
Project Report of Clinic Appointment System
if ($node->book['bid'] == $node->nid) {
$node->book['plid'] = 0;
$node->book['menu_name'] = book_menu_name($node->nid);
else {
// Check in case the parent is not is this book; the book takes precedence.
if (!empty($node->book['plid'])) {
))->fetchAssoc();
))->fetchField();
if (menu_link_save($node->book)) {
if ($new) {
// Insert new.
db_insert('book')
Page - 127
Project Report of Clinic Appointment System
->fields(array(
))
->execute();
drupal_static_reset('book_get_books');
else {
))->fetchField()) {
book_update_bid($node->book);
drupal_static_reset('book_get_books');
return TRUE;
return FALSE;
Page - 128
Project Report of Clinic Appointment System
/**
* Updates the book ID of a page and its children when it moves to a new book.
* @param $book_link
*/
function book_update_bid($book_link) {
$query = db_select('menu_links');
$query->addField('menu_links', 'mlid');
$query->condition("p$i", $book_link["p$i"]);
$mlids = $query->execute()->fetchCol();
if ($mlids) {
db_update('book')
->execute();
/**
Page - 129
Project Report of Clinic Appointment System
* Gets the book menu tree for a page and returns it as a linear array.
* @param $book_link
* @return
* A linear array of menu links in the order that the links are shown in the
* menu, so the previous and next pages are the elements before and after the
* element corresponding to the current node. The children of the current node
* (if any) will come immediately after it in the array, and links will only
*/
function book_get_flat_menu($book_link) {
if (!isset($flat[$book_link['mlid']])) {
$flat[$book_link['mlid']] = array();
_book_flatten_menu($tree, $flat[$book_link['mlid']]);
return $flat[$book_link['mlid']];
Page - 130
Project Report of Clinic Appointment System
/**
* @param $tree
* @param $flat
* @see book_get_flat_menu().
*/
if (!$data['link']['hidden']) {
$flat[$data['link']['mlid']] = $data['link'];
if ($data['below']) {
_book_flatten_menu($data['below'], $flat);
/**
* Fetches the menu link for the previous page of the book.
* @param $book_link
Page - 131
Project Report of Clinic Appointment System
* @return
* A fully loaded menu link for the page before the one represented in
* $book_link.
*/
function book_prev($book_link) {
if ($book_link['plid'] == 0) {
return NULL;
$flat = book_get_flat_menu($book_link);
// Assigning the array to $flat resets the array pointer for use with each().
$curr = NULL;
do {
$prev = $curr;
if ($key == $book_link['mlid']) {
// The previous page in the book may be a child of the previous visible link.
// The subtree will have only one link at the top level - get its data.
$tree = book_menu_subtree_data($prev);
$data = array_shift($tree);
Page - 132
Project Report of Clinic Appointment System
// The link of interest is the last child - iterate to find the deepest one.
while ($data['below']) {
$data = end($data['below']);
return $data['link'];
else {
return $prev;
/**
* Fetches the menu link for the next page of the book.
* @param $book_link
* @return
* A fully loaded menu link for the page after the one represented in
* $book_link.
*/
function book_next($book_link) {
$flat = book_get_flat_menu($book_link);
Page - 133
Project Report of Clinic Appointment System
// Assigning the array to $flat resets the array pointer for use with each().
do {
if ($key == $book_link['mlid']) {
return current($flat);
/**
* Formats the menu links for the child pages of the current page.
* @param $book_link
* @return
* HTML for the links to the child pages of the current page.
*/
function book_children($book_link) {
$flat = book_get_flat_menu($book_link);
$children = array();
Page - 134
Project Report of Clinic Appointment System
if ($book_link['has_children']) {
do {
$link = array_shift($flat);
// Continue though the array and collect the links whose parent is this page.
$data['link'] = $link;
$data['below'] = '';
$children[] = $data;
if ($children) {
$elements = menu_tree_output($children);
return drupal_render($elements);
return '';
/**
* @param $bid
Page - 135
Project Report of Clinic Appointment System
* @return
*/
function book_menu_name($bid) {
/**
* Implements hook_node_load().
*/
$result = db_query("SELECT * FROM {book} b INNER JOIN {menu_links} ml ON b.mlid = ml.mlid WHERE
b.nid IN (:nids)", array(':nids' => array_keys($nodes)), array('fetch' => PDO::FETCH_ASSOC));
$nodes[$record['nid']]->book = $record;
$nodes[$record['nid']]->book['href'] = $record['link_path'];
$nodes[$record['nid']]->book['title'] = $record['link_title'];
$nodes[$record['nid']]->book['options'] = unserialize($record['options']);
/**
* Implements hook_node_view().
*/
Page - 136
Project Report of Clinic Appointment System
if ($view_mode == 'full') {
$node->content['book_navigation'] = array(
);
if ($view_mode != 'rss') {
book_node_view_link($node, $view_mode);
/**
* Implements hook_page_alter().
* Adds the book menu to the list of menus used to build the active trail when
*/
function book_page_alter(&$page) {
$active_menus = menu_get_active_menu_names();
$active_menus[] = $node->book['menu_name'];
Page - 137
Project Report of Clinic Appointment System
menu_set_active_menu_names($active_menus);
/**
* Implements hook_node_presave().
*/
function book_node_presave($node) {
$node->revision = 1;
if (!isset($node->log)) {
$node->log = '';
if (empty($node->nid)) {
$node->book['mlid'] = NULL;
/**
* Implements hook_node_insert().
*/
Page - 138
Project Report of Clinic Appointment System
function book_node_insert($node) {
if (!empty($node->book['bid'])) {
if ($node->book['bid'] == 'new') {
$node->book['bid'] = $node->nid;
$node->book['nid'] = $node->nid;
$node->book['menu_name'] = book_menu_name($node->book['bid']);
_book_update_outline($node);
/**
* Implements hook_node_update().
*/
function book_node_update($node) {
if (!empty($node->book['bid'])) {
if ($node->book['bid'] == 'new') {
$node->book['bid'] = $node->nid;
$node->book['nid'] = $node->nid;
$node->book['menu_name'] = book_menu_name($node->book['bid']);
_book_update_outline($node);
Page - 139
Project Report of Clinic Appointment System
/**
* Implements hook_node_delete().
*/
function book_node_delete($node) {
if (!empty($node->book['bid'])) {
if ($node->nid == $node->book['bid']) {
$result = db_query("SELECT b.nid FROM {menu_links} ml INNER JOIN {book} b on b.mlid = ml.mlid
WHERE ml.plid = :plid", array(
));
$child_node = node_load($child->nid);
$child_node->book['bid'] = $child_node->nid;
_book_update_outline($child_node);
menu_link_delete($node->book['mlid']);
db_delete('book')
->condition('mlid', $node->book['mlid'])
->execute();
drupal_static_reset('book_get_books');
Page - 140
Project Report of Clinic Appointment System
/**
* Implements hook_node_prepare().
*/
function book_node_prepare($node) {
$node->book = array();
$parent = book_link_load($_GET['parent']);
$node->book['bid'] = $parent['bid'];
$node->book['plid'] = $parent['mlid'];
$node->book['menu_name'] = $parent['menu_name'];
// Set defaults.
else {
$node->book['original_bid'] = $node->book['bid'];
Page - 141
Project Report of Clinic Appointment System
$node->book['parent_depth_limit'] = _book_parent_depth_limit($node->book);
/**
* @param $book_link
* @return
*/
function _book_parent_depth_limit($book_link) {
/**
Page - 142
Project Report of Clinic Appointment System
* @see node_delete_confirm()
*/
$node = node_load($form['nid']['#value']);
$form['book_warning'] = array(
'#markup' => '<p>' . t('%title is part of a book outline, and has associated child pages. If you proceed
with deletion, the child pages will be relocated automatically.', array('%title' => $node->title)) . '</p>',
);
/**
* Returns an array with default values for a book page's menu link.
* @param $nid
* @return
*/
function _book_link_defaults($nid) {
Page - 143
Project Report of Clinic Appointment System
return array('original_bid' => 0, 'menu_name' => '', 'nid' => $nid, 'bid' => 0, 'router_path' => 'node/%',
'plid' => 0, 'mlid' => 0, 'has_children' => 0, 'weight' => 0, 'module' => 'book', 'options' => array());
/**
* All non-renderable elements are removed so that the template has full access
* to the structured data but can also simply iterate over all elements and
* @param $variables
* - book_menus
* @see book-all-books-block.tpl.php
*/
function template_preprocess_book_all_books_block(&$variables) {
$elements = $variables['book_menus'];
$variables['book_menus'] = array();
$variables['book_menus'][$index] = $elements[$index];
Page - 144
Project Report of Clinic Appointment System
/**
* @param $variables
* - book_link
* @see book-navigation.tpl.php
*/
function template_preprocess_book_navigation(&$variables) {
$book_link = $variables['book_link'];
$variables['book_id'] = $book_link['bid'];
$variables['book_title'] = check_plain($book_link['link_title']);
$variables['current_depth'] = $book_link['depth'];
$variables['tree'] = '';
if ($book_link['mlid']) {
$variables['tree'] = book_children($book_link);
if ($prev = book_prev($book_link)) {
$prev_href = url($prev['href']);
Page - 145
Project Report of Clinic Appointment System
$variables['prev_url'] = $prev_href;
$variables['prev_title'] = check_plain($prev['title']);
$parent_href = url($parent['href']);
$variables['parent_url'] = $parent_href;
$variables['parent_title'] = check_plain($parent['title']);
if ($next = book_next($book_link)) {
$next_href = url($next['href']);
$variables['next_url'] = $next_href;
$variables['next_title'] = check_plain($next['title']);
$variables['has_links'] = FALSE;
// Link variables to filter for values and set state of the flag variable.
if (isset($variables[$link])) {
Page - 146
Project Report of Clinic Appointment System
$variables['has_links'] = TRUE;
else {
$variables[$link] = '';
/**
* This helper function recursively modifies the table of contents array for
* each item in the menu tree, ignoring items in the exclude array or at a depth
* greater than the limit. Truncates titles over thirty characters and appends
* @param $tree
* The data structure of the book's menu tree. Includes hidden links.
* @param $indent
* A string appended to each menu item title. Increments by '--' per depth
* level.
* @param $toc
Page - 147
Project Report of Clinic Appointment System
* @param $exclude
* (optional) An array of menu link ID values. Any link whose menu link ID is
* empty array.
* @param $depth_limit
* Any link deeper than this value will be excluded (along with its children).
*/
break;
if (!in_array($data['link']['mlid'], $exclude)) {
if ($data['below']) {
/**
Page - 148
Project Report of Clinic Appointment System
* @param $bid
* @param $depth_limit
* Any link deeper than this value will be excluded (along with its children).
* @param $exclude
* Optional array of menu link ID values. Any link whose menu link ID is in
* @return
* An array of (menu link ID, title) pairs for use as options for selecting a
* book page.
*/
$tree = menu_tree_all_data(book_menu_name($bid));
$toc = array();
return $toc;
/**
* @param $variables
Page - 149
Project Report of Clinic Appointment System
* - title
* - contents
* - depth
* @see book-export-html.tpl.php
*/
function template_preprocess_book_export_html(&$variables) {
$variables['title'] = check_plain($variables['title']);
$variables['base_url'] = $base_url;
$variables['language'] = $language;
$variables['head'] = drupal_get_html_head();
/**
* During the traversal, the $visit_func() callback is applied to each node and
* is called recursively for each child of the node (in weight, title order).
* @param $tree
Page - 150
Project Report of Clinic Appointment System
* @param $visit_func
* @return
*/
$output = '';
$children = '';
if ($data['below']) {
if (function_exists($visit_func)) {
else {
Page - 151
Project Report of Clinic Appointment System
return $output;
/**
* @param $node
* @param $children
* (optional) All the rendered child nodes within the current node. Defaults
* to an empty string.
* @return
* @see book_export_traverse()
*/
unset($build['#theme']);
Page - 152
Project Report of Clinic Appointment System
$node->rendered = drupal_render($build);
/**
* @param $variables
* - node
* - children
* @see book-node-export-html.tpl.php
*/
function template_preprocess_book_node_export_html(&$variables) {
$variables['depth'] = $variables['node']->book['depth'];
$variables['title'] = check_plain($variables['node']->title);
$variables['content'] = $variables['node']->rendered;
/**
* Determine if a given node type is in the list of types allowed for books.
* @param $type
Page - 153
Project Report of Clinic Appointment System
* A node type.
* @return
* A Boolean TRUE if the node type can be included in books; otherwise, FALSE.
*/
function book_type_is_allowed($type) {
/**
* Implements hook_node_type_update().
*/
function book_node_type_update($type) {
// Update the list of node types that are allowed to be added to books.
unset($allowed_types[$key]);
variable_set('book_allowed_types', $allowed_types);
Page - 154
Project Report of Clinic Appointment System
variable_set('book_child_type', $type->type);
/**
* Like menu_link_load(), but adds additional data from the {book} table.
* Do not call when loading a node, since this function may call node_load().
* @param $mlid
* @return
* A menu link, with the link translated for rendering and data added from the
*/
function book_link_load($mlid) {
if ($item = db_query("SELECT * FROM {menu_links} ml INNER JOIN {book} b ON b.mlid = ml.mlid LEFT
JOIN {menu_router} m ON m.path = ml.router_path WHERE ml.mlid = :mlid", array(
Page - 155
Project Report of Clinic Appointment System
))->fetchAssoc()) {
_menu_link_translate($item);
return $item;
return FALSE;
/**
* The root of the subtree will be the link passed as a parameter, so the
* returned tree will contain this item and all its descendents in the menu
* tree.
* @param $link
* @return
*/
function book_menu_subtree_data($link) {
Page - 156
Project Report of Clinic Appointment System
if (!isset($tree[$cid])) {
// If the cache entry exists, it will just be the cid for the actual data.
$data = $cache->data;
// If the subtree data was not in the cache, $data will be NULL.
if (!isset($data)) {
$query->fields('b');
$query->fields('ml');
$query->condition('menu_name', $link['menu_name']);
Page - 157
Project Report of Clinic Appointment System
$query->condition("p$i", $link["p$i"]);
$query->orderBy("p$i");
$links = array();
$links[] = $item;
$data['node_links'] = array();
menu_tree_collect_node_links($data['tree'], $data['node_links']);
if (!cache_get($tree_cid, 'cache_menu')) {
// Cache the cid of the (shared) data using the menu and item-specific cid.
// Check access for the current user to each item in the tree.
menu_tree_check_access($data['tree'], $data['node_links']);
Page - 158
Project Report of Clinic Appointment System
$tree[$cid] = $data['tree'];
return $tree[$cid];
Page - 159
Project Report of Clinic Appointment System
<?php
/**
* @file
*/
/**
* Implements hook_help().
*/
switch ($path) {
case 'admin/help#dashboard':
$output = '';
$output .= '<dl>';
$output .= '<dd>' . t("By enabling blocks such as <em>Who's online</em> and <em>Who's
new</em>, site users can track who is logged in and new user signups at a centralized location.") .
'</dd>';
Page - 160
Project Report of Clinic Appointment System
$output .= '<dd>' . t('By enabling blocks such as <em>Recent blog posts</em>, <em>New forum
topics</em> and <em>Recent comments</em>, site users can view newly added site content at a
glance.') . '</dd>';
$output .= '</dl>';
return $output;
case 'admin/dashboard/configure':
// @todo This assumes the current page is being displayed using the same
return $output;
/**
* Implements hook_menu().
*/
function dashboard_menu() {
$items['admin/dashboard'] = array(
Page - 161
Project Report of Clinic Appointment System
);
$items['admin/dashboard/configure'] = array(
);
$items['admin/dashboard/customize'] = array(
);
$items['admin/dashboard/drawer'] = array(
);
Page - 162
Project Report of Clinic Appointment System
$items['admin/dashboard/block-content/%/%'] = array(
);
$items['admin/dashboard/update'] = array(
);
return $items;
/**
* Implements hook_permission().
*/
function dashboard_permission() {
return array(
// a separate t() call, to make sure it gets the same translation as when
// it's in block_permission().
Page - 163
Project Report of Clinic Appointment System
'description' => t('Customizing the dashboard requires the !permission-name permission.', array(
)),
),
);
/**
* Implements hook_block_info_alter().
*/
$admin_theme = variable_get('admin_theme');
$block['status'] = 1;
$block['region'] = 'dashboard_inactive';
Page - 164
Project Report of Clinic Appointment System
/**
* Implements hook_block_list_alter().
* Skip rendering dashboard blocks when not on the dashboard page itself. This
*/
function dashboard_block_list_alter(&$blocks) {
if (!dashboard_is_visible()) {
if (in_array($block->region, dashboard_regions())) {
unset($blocks[$key]);
/**
* Implements hook_page_build().
*/
function dashboard_page_build(&$page) {
Page - 165
Project Report of Clinic Appointment System
global $theme_key;
if (dashboard_is_visible()) {
$block_info = array();
// Create a wrapper for the dashboard itself, then insert each dashboard
if ($region == 'dashboard_inactive') {
continue;
// Insert regions even when they are empty, so that they will be
$page['content']['dashboard'][$region]['#dashboard_region'] = $region;
unset($page[$region]);
$blocks_found = array();
Page - 166
Project Report of Clinic Appointment System
if (empty($item['#block']->subject)) {
// Locally cache info data for the object for all blocks, in case
if (!isset($block_info[$item['#block']->module])) {
$item['#block']->subject = $block_info[$item['#block']->module][$item['#block']->delta]['info'];
// Find blocks which were not yet displayed on the page (were empty), and
$block_list = db_select('block')
->condition('theme', $theme_key)
->condition('status', 1)
->condition('region', $region)
->fields('block')
->execute();
if (!isset($block_info[$block->module])) {
Page - 167
Project Report of Clinic Appointment System
$build = _block_get_renderable_array($block_render);
$page['content']['dashboard'][$block->region][] = $build;
/**
* Implements hook_system_info_alter().
*/
if ($type == 'theme') {
// Add the dashboard regions (the "inactive" region should always appear
$dashboard_regions = dashboard_region_descriptions();
if (isset($dashboard_regions['dashboard_inactive'])) {
$inactive_region = $dashboard_regions['dashboard_inactive'];
unset($dashboard_regions['dashboard_inactive']);
Page - 168
Project Report of Clinic Appointment System
$dashboard_regions['dashboard_inactive'] = $inactive_region;
$info['regions'] += $dashboard_regions;
// any module that might need to use it, not just the core Overlay module.
/**
* Implements hook_theme().
*/
function dashboard_theme() {
return array(
),
),
),
Page - 169
Project Report of Clinic Appointment System
),
),
// When building the form for configuring dashboard blocks, reuse the
),
);
/**
* Implements hook_forms().
*/
function dashboard_forms() {
$forms['dashboard_admin_display_form'] = array(
);
Page - 170
Project Report of Clinic Appointment System
return $forms;
/**
* @param $launch_customize
*/
$js_settings = array(
),
);
$build = array(
Page - 171
Project Report of Clinic Appointment System
'#message' => t('To customize the dashboard page, move blocks to the dashboard regions on the <a
href="@dashboard">Dashboard administration page</a>, or enable JavaScript on this page to use the
drag-and-drop interface.', array('@dashboard' => url('admin/dashboard/configure'))),
),
),
);
return $build;
/**
* This page reuses the Block module's administration form but limits editing
* @see block_admin_display()
* @see block_admin_display_form()
* @see dashboard_form_dashboard_admin_display_form_alter()
* @see template_preprocess_dashboard_admin_display_form()
Page - 172
Project Report of Clinic Appointment System
*/
function dashboard_admin_blocks() {
global $theme_key;
drupal_theme_initialize();
// Prepare the blocks for the current theme, and remove those that are
// @todo This assumes the current page is being displayed using the same
$blocks = block_admin_display_prepare_blocks($theme_key);
$dashboard_regions = dashboard_region_descriptions();
if (isset($regions_to_remove[$block['region']])) {
unset($blocks[$id]);
// Pass in the above blocks and dashboard regions to the form, so that only
Page - 173
Project Report of Clinic Appointment System
/**
* Implements hook_form_FORM_ID_alter().
*/
// Hide dashboard regions (and any blocks placed within them) from the block
// administration form and from the options list on that form. This
// function is called for both the dashboard block configuration form and the
// standard block configuration form so that both forms can share the same
if ($form_id != 'dashboard_admin_display_form') {
$dashboard_regions = dashboard_region_descriptions();
$form['block_regions']['#value'] = array_diff_key($form['block_regions']['#value'],
$dashboard_regions);
$block = &$form['blocks'][$i];
if (isset($block['region']['#default_value']) &&
isset($dashboard_regions[$block['region']['#default_value']]) && $block['region']['#default_value'] !=
'dashboard_inactive') {
$block['#access'] = FALSE;
elseif (isset($block['region']['#options'])) {
// regions of the theme. Note that when the form is submitted, any such
// blocks which still remain disabled will immediately be put back in the
Page - 174
Project Report of Clinic Appointment System
// called when the blocks are rehashed. Fortunately, this is the exact
// behavior we want.
if ($block['region']['#default_value'] == 'dashboard_inactive') {
$block['region']['#default_value'] = NULL;
/**
* Implements hook_form_FORM_ID_alter().
*/
// Redirect the 'configure' and 'delete' links on each block back to the
if (isset($block['configure']['#href'])) {
$block['configure']['#options']['query']['destination'] = 'admin/dashboard/configure';
if (isset($block['delete']['#href'])) {
$block['delete']['#options']['query']['destination'] = 'admin/dashboard/configure';
Page - 175
Project Report of Clinic Appointment System
/**
* Implements hook_form_FORM_ID_alter().
*/
global $theme_key;
drupal_theme_initialize();
// Hide the dashboard regions from the region select list on the block
// configuration form, for all themes except the current theme (since the
// @todo This assumes the current page is being displayed using the same
$dashboard_regions = dashboard_region_descriptions();
$region = &$form['regions'][$region_name];
/**
* Implements hook_form_FORM_ID_alter().
*/
Page - 176
Project Report of Clinic Appointment System
dashboard_form_block_admin_configure_alter($form, $form_state);
/**
*/
function template_preprocess_dashboard_admin_display_form(&$variables) {
template_preprocess_block_admin_display_form($variables);
if (isset($variables['block_regions'][BLOCK_REGION_NONE])) {
/**
* This function checks if the user is currently viewing the dashboard and has
* current user.
* Although the menu system normally handles the above tasks, it only does so
* for the main page content. However, the dashboard is not part of the main
* page content, but rather is displayed in special regions of the page (so it
Page - 177
Project Report of Clinic Appointment System
* can interface with the Block module's method of managing page regions). We
* therefore need to maintain this separate function to check the menu item for
* us.
* @return
* otherwise.
* @see dashboard_block_list_alter()
* @see dashboard_page_build()
*/
function dashboard_is_visible() {
static $is_visible;
if (!isset($is_visible)) {
// If the current menu item represents the page on which we want to display
// the dashboard, and if the current user has access to see it, return
// TRUE.
$menu_item = menu_get_item();
return $is_visible;
/**
Page - 178
Project Report of Clinic Appointment System
*/
function dashboard_region_descriptions() {
$regions = module_invoke_all('dashboard_regions');
drupal_alter('dashboard_regions', $regions);
return $regions;
/**
*/
function dashboard_regions() {
$regions = &drupal_static(__FUNCTION__);
if (!isset($regions)) {
$regions = array_keys(dashboard_region_descriptions());
return $regions;
/**
* Implements hook_dashboard_regions().
*/
function dashboard_dashboard_regions() {
return array(
Page - 179
Project Report of Clinic Appointment System
);
/**
*/
function dashboard_show_disabled() {
global $theme_key;
$blocks = _block_rehash();
// Limit the list to blocks that are marked as disabled for the dashboard.
unset($blocks[$key]);
drupal_exit();
Page - 180
Project Report of Clinic Appointment System
/**
* @param $module
* @param $delta
*/
drupal_theme_initialize();
global $theme_key;
$blocks = array();
$block_object = db_query("SELECT * FROM {block} WHERE theme = :theme AND module = :module
AND delta = :delta", array(
))
->fetchObject();
$block_content = _block_render_blocks($blocks);
$build = _block_get_renderable_array($block_content);
$rendered_block = drupal_render($build);
print $rendered_block;
Page - 181
Project Report of Clinic Appointment System
drupal_exit();
/**
* Sets the new weight of each region according to the drag-and-drop order.
*/
function dashboard_update() {
drupal_theme_initialize();
global $theme_key;
parse_str($_REQUEST['regions'], $regions);
if ($region_name == 'disabled_blocks') {
$region_name = 'dashboard_inactive';
// Parse the query string to determine the block's module and delta.
$block->module = $matches[1];
$block->delta = $matches[2];
$block->region = $region_name;
$block->weight = $weight;
Page - 182
Project Report of Clinic Appointment System
$block->status = 1;
db_merge('block')
->key(array(
))
->fields(array(
))
->execute();
drupal_exit();
/**
Page - 183
Project Report of Clinic Appointment System
* @param $variables
* @ingroup themeable
*/
function theme_dashboard($variables) {
extract($variables);
/**
* @param $variables
* @ingroup themeable
*/
function theme_dashboard_admin($variables) {
// We only return a simple help message, since the actual content of the page
Page - 184
Project Report of Clinic Appointment System
/**
* @param $variables
* @ingroup themeable
*/
function theme_dashboard_region($variables) {
extract($variables);
$output .= $element['#children'];
// Closing div.region
$output .= '</div>';
// Closing div.dashboard-region
$output .= '</div>';
return $output;
Page - 185
Project Report of Clinic Appointment System
/**
* Returns HTML for disabled blocks, for use in dashboard customization mode.
* @param $variables
* @ingroup themeable
*/
function theme_dashboard_disabled_blocks($variables) {
extract($variables);
$output = '<div class="canvas-content"><p>' . t('Drag and drop these blocks to the columns below.
Changes are automatically saved. More options are available on the <a href="@dashboard-
url">configuration page</a>.', array('@dashboard-url' => url('admin/dashboard/configure'))) . '</p>';
$output .= '</div></div></div>';
return $output;
/**
* Returns HTML for disabled blocks, for use in dashboard customization mode.
Page - 186
Project Report of Clinic Appointment System
* @param $variables
* @ingroup themeable
*/
function theme_dashboard_disabled_block($variables) {
extract($variables);
$output = "";
if (isset($block)) {
. '<div class="content"></div>'
. '</div>';
return $output;
Page - 187
Project Report of Clinic Appointment System
Our project is only a humble venture to satisfy the needs to manage their project
work. Several user friendly coding have also adopted. This package shall prove to be a
powerful package in satisfying all the requirements of the school. The objective of
software planning is to provide a frame work that enables the manger to make
reasonable estimates made within a limited time frame at the beginning of the software
project and should be updated regularly as the project progresses.
A description of the background and context of the project and its relation to work
already done in the area.
Made statement of the aims and objectives of the project.
The description of Purpose, Scope, and applicability.
We define the problem on which we are working in the project.
We describe the requirement Specifications of the system and the actions that
can be done on these things.
We understand the problem domain and produce a model of the system, which
describes operations that can be performed on the system.
We included features and operations in detail, including screen layouts.
We designed user interface and security issues related to system.
Finally the system is implemented and tested according to test cases.
Page - 188
Project Report of Clinic Appointment System
In a nutshell, it can be summarized that the future scope of the project circles
around maintaining information regarding:
The above mentioned points are the enhancements which can be done to increase
the applicability and usage of this project. Here we can maintain the records of Clinic
and Doctor. Also, as it can be seen that now-a-days the players are versatile, i.e. so
there is a scope for introducing a method to maintain the Clinic Appointment System.
Enhancements can be done to maintain all the Clinic, Doctor, Appointment, Booking,
Patient.
We have left all the options open so that if there is any other future requirement
in the system by the user for the enhancement of the system then it is possible to
implement them.In the last we would like to thanks all the persons involved in the
development of the system directly or indirectly. We hope that the project will serve its
purpose for which it is develop there by underlining success of process.
Page - 189
Project Report of Clinic Appointment System
Although I have put my best efforts to make the software flexible, easy to operate
but limitations cannot be ruled out even by me. Though the software presents a broad
range of options to its users some intricate options could not be covered into it; partly
because of logistic and partly due to lack of sophistication. Paucity of time was also
major constraint, thus it was not possible to make the software foolproof and dynamic.
Lack of time also compelled me to ignore some part such as storing old result of the
candidate etc.
Considerable efforts have made the software easy to operate even for the people
not related to the field of computers but it is acknowledged that a layman may find it a
bit problematic at the first instance. The user is provided help at each step for his
convenience in working with the software.
Excel export has not been developed for Clinic, Doctor due to some criticality.
The transactions are executed in off-line mode, hence on-line data for Appointment,
Booking capture and modification is not possible.
Off-line reports of Clinic, Patient, Appointment cannot be generated due to batch
mode execution.
Page - 190
Project Report of Clinic Appointment System
Page - 191