You are on page 1of 44

Appointment Scheduling

PROJECT REPORT
ON

Appointment
Scheduling System
Submitted by
Name Roll Registration
ARNAB BAG 14512051013 145101211013

UNDER THE GUIDENCE OF


Miss. Tapalina Bhattashali
Lecturer, Techno India Institute of Technology

Dept. of Bachelor of Computer Application


Techno India Institute of Technology,
Affiliated to West Bengal University of
Technology

1
Appointment Scheduling

Acknowledgement
I have successfully done my project “Appointment Scheduling System”
taking a lot of valuable tips and suggestions from a no. of individuals. I
would like to pay my sincerest gratitude to that particular person.
I am highly obliged to Miss. Tapalina Bhattashali. (Lecturer of Techno
India Institute of Technology), for her guidance as well as her special care
to ourselves. She was along with us throughout the whole project to solve
critical problems whenever we faced. I am highly grateful to her.
I also express my guidance to Techno India Institute of Technology and
the faculty members of Techno India Institute of Technology who have
provide us with the foundation on which we could dare to explore the
future.

--------------------------------
Arnab Bag

2
Appointment Scheduling

Preface
The Appointment Scheduling system will help both the user of
the company and the appointee who acts as a client. Here after
filling in the appointment form the appointee has to submit it and
then immediately he will receive a confirmation or rejection note
of the appointment. The clerk on the server side does this job of
confirming or rejecting. By this web-based software the
appointments are scheduled automatically in the available time
slots according to the submission time of the forms. If the time
slot for a certain request is not available then that appointment
will be rejected and given at a later time automatically.
The whole process of website is well encapsulated
by some linked Web pages giving details involved in the process
and presents the end user with a simple, easy to use and
effective front-end. There is also the provision for sending the
appointment note via e-mail. That note can also be printed from
the website.

3
Appointment Scheduling

Table Of Content
Chapter 1: Introduction…………………………………………. 6-8
1.1 The Concept of Appointment Scheduling System
1.2 Features of Appointment Scheduling System

Chapter 2: Software Requirement Specification………………. 9-14


2.1Introduction
2.1.1 Purpose
2.1.2 Document Convention
2.1.3 Intended Audience and reading suggestions
2.1.4 Scope of development project
2.1.5 Definition, Acronyms, Abbreviations
2.1.6 Overview of document
2.2Overall description
2.2.1 Product perspective
2.2.2 Product functions
2.2.3 User classes and characteristics
2.3External interface requirements
2.3.1 User interfaces
2.3.2 Software interfaces
2.4Other non-functional requirements
2.4.1 Performance requirements
2.4.2 Safety requirements
2.4.3 Security requirements
2.4.4 Software quality attributes
2.4.4.1 Portability
2.4.4.2 Reliability
2.4.4.3 Testability
2.5 Special user requirements
2.5.1 Backup and recovery
2.5.2 Data migration
2.5.3 Data retention
2.5.4 User training
2.5.5 Installation

Chapter 3: Software Design Specifications……………………… 15-23

4
Appointment Scheduling

3.1Introduction
3.1.1 Purpose of this document
3.1.2 Scope of development project
3.1.3 Definition, Acronyms, Abbreviations
3.1.4 References
3.1.5 Overview of document
3.2System architecture description
3.2.1 Overview of modules/components
3.2.2 Structure and relationships
3.2.2.1 System Overview
3.3Schematic Diagram
3.3.1 Appointment
3.3.2 Appo_condition
3.3.3 Corporate
3.4Design Goals
3.5E-R Diagram
3.6Data Flow Diagram

Chapter 4: Program Coding & Output…………………………. 24-42


4.1 Source Code
4.1.1 Index
4.1.2 Default
4.1.3 Schedule
4.1.4 Schedule Submit
4.1.5 View
4.1.6 Make PDF
4.1.7 Ticket
4.1.8 Print
4.1.9 Print Ticket
4.1.10 Members login
4.1.11 Contact
4.1.12 Connection
4.2 Output
4.2.1 Index
4.2.2 Schedule
4.2.3 Ticket
4.2.4 Login

Chapter 5: Bibliography…………………………………………. 43-44

5
Appointment Scheduling

Chapter 1

Introduction

6
Appointment Scheduling

1.1 The Concept of Appointment


Scheduling System

“Appointment Scheduling” system is a web based


software tool through which any person can make an
appointment through any website. It is an Online
Appointment system. By using this tool the appointee can
get his/her appointment according to his/her desired date
and time if those are available. The appointee will have to
fill in a form and submit it and he/she will automatically
receive an appointment note. It is very easy and user-
friendly.

7
Appointment Scheduling

1.2 Features of Appointment Scheduling


System

 It makes much easier for the clients to make an appointment.

 It has the facility to automatically schedule all the


appointments.

 It has the provision of alert of appointment through e-mail.

 It has the provision for confirmation or rejection of


appointment.

 It has the provision for downloading & printing the


appointment letter from Internet.

 It is easy to understand.

 It is easy to handle.

 This system is very useful in the corporate world.

 Multiple users can make appointment at the same time.

 It is compatible with almost all systems.

 There is room for further development.

8
Appointment Scheduling

Chapter 2

Software
Requirement
Specification

9
Appointment Scheduling

2.1 Introduction
2.1.1 Purpose
This architecture and design documentation specifies the requirements of the
Appointment Scheduling system which will be used by the clients who can be anybody,
from various company executives to anyone else. This document will be used by the
designer to ensure all specifications are correct and verified by the software engineer to
design the system.

2.1.2. Document convention


Main Section Title: Font: Times New Roman: Bold: Size: 12: Capitals.
Sub Section Title: Font: Times New Roman: Bold: Size: 12: Sentence case.
Other Text matter: Font: Times New Roman: Size: 12: Sentence case.

2.1.3 Intended audience and reading suggestions


The users of this system should have a general knowledge of browsing the web.

2.1.4 Scope of development project


The purpose of this system is to simplify the process of arranging appointment and
making it easy for the client.

2.1.5 Definition, Acronyms, Abbreviations


1. A Web Site is a system of interlinked static and dynamic web pages designed with
web technologies like HTML, PHP, My SQL etc.
2. A web server is a system which hosts web pages.
4. PHP is a Server Side Scripting language

2.1.6 Overview of document


The first section of the document gives a brief idea about why there is need to optimize
the administration process. Along with this background information it also provides the
reference information for further study, design and implementation.
The second section throws light on overall description of application, functions, and
perspective, operating environment, design and implementation constraints.
The third section gives description of external interfaces such as user interface, hardware
interface, communication interface and software interface.
The fourth section includes system features in detail. The subsections describe the
features in much more detail.
The fifth section gives details of non-functional requirements such as security
requirements, safety requirements etc.

10
Appointment Scheduling

2.2 Overall description


2.2.1 Product Perspective
The Appointment Scheduling system will help both the user of the company and the
appointee who acts as a client. Here after filling in the appointment form the appointee
has to submit it and then immediately he will receive a confirmation or rejection note of
the appointment. By this web-based software the appointments are scheduled
automatically in the available time slots according to the submission time of the forms.
If the time slot for a certain request is not available then that appointment will be
rejected and given at a later time automatically.
The whole process of website is well encapsulated by some linked Web
pages giving details involved in the process and presents the end user with a simple,
easy to use and effective front-end. There is also the provision for sending the
appointment note via e-mail.

2.2.2 Product Functions


In this project a possible solution to the above problem has been devised.
1. Automatic scheduling of appointments.
2. Provision for confirmation and rejection.
3. Confirmation through email.
4. Appointment note printing provision.

2.2.3 User Classes and Characteristics


End Users
The Appointment Scheduling system has a direct interface with the end user
(browser) & the end user avail the services of the system through intranet.
Super User
• Super user is the person who can only change or modify the html
pages.
• Single handed SECURITY of the website.
General User
• Who can access the pages but can’t modify or change the pages.

11
Appointment Scheduling

Operating Environment:
Operating Systems: PLATFORM FREE
Processor: Pentium III and above with minimum 128MB of RAM
Browser: Availability of java enabled browser
Product Constraints
The end product is going to be a first and easy to understand the appointment
procedure. Some pitfalls such as security faults might creep in which will be taken
care of in the future versions.

Design Implementation constraints:


The system does not contain the actual data in both amount and facts due to the
sheer volume of data and the need for privacy of the system as this is an unofficial
effort on part of the developers.
1. User Documentation
The end users who will use the system as there requirement will be well
informed with the proper user manuals
2. Assumptions and Dependencies
Assumptions: The connection speed is decent of the order of 56kbps.

2.3. External interface requirements


2.3.1 User Interfaces
This system will contain a home page and the other pages as required. The user interface
will be easy to handle and will understood.

2.3.2 Software Interfaces


This system is a multi user; multi-tasking interface designed using PHP on the server
side, ‘MySQL’ as database and ‘Apache’ as web server and HTML pages as front end.

2.4 Other non- functional requirements


2.4.1 Performance Requirements
Automated the appointment scheduling.

12
Appointment Scheduling

2.4.2 Safety Requirements


a) The server of this system should be kept safe and the system must guarantee that the
data is safe.

b) Keep backups of all data files in a separate directory/drive.

c) Frequently auto-save information, in the case of a lost network connection, the


browser or the system crashing, etc.

2.4.3 Security Requirements


Data of the server storage should be secured from the external entities.

2.4.4 Software Quality Attributes


The source code of the product is going to be user friendly. It will be considered for
further modifications and improvements. As per the website quality it consists:
adaptability, availability, correctness, flexibility, interoperability, maintainability,
portability, reliability, reusability, robustness, testability, and usability.

2.4.3.1 Portability
• The website must have a simple, user-friendly interface so browsers can
save time and confusion.
• The user interface must support a simple query interface that the operator
can use to look up generic information on a relevant topic of interest.
• The system should create all necessary directories, files, and other data
needs for the browsers.

2.4.4.2 Reliability
The reliability of the website is important to the company administration. The retrieval
of the data must be in accordance with the request for the same and any failure in the
retrieval must be correctly reported.
Reject invalid user input without crashing.
Should not break down easily when used incorrectly; the site will guarantee this by
checking for errors at every stage of user input.

13
Appointment Scheduling

2.4.4.3 Testability
The requirements of this SRS will be verified through the exercising of test cases as
described by the requirement in the following. Each requirement of this SRS will be
tested by thoroughly running the system with all forms of input. We will also
endeavor to have people intentionally misuse the product to test all possibilities.
System should be closely monitored during and after user testing to ensure that any
fault is quickly fixed.

2.5 Special user requirements


2.5.1 Backup and Recovery
The system should enable the system administrator to back up the administrative data of
the company periodically.

2.5.2 Data Migration


The concept of data migration is important to ensure that the administrative data can be
retrieved and viewed after many years (usually 5-7) after they have been acquired.
Usually the information is digitally stored in CDs, DVD’s and other electronic media

2.5.3 Data Retention


Maintaining a log file for each transaction from which the desired data can be obtained
on the basis of inherent classification. (Date of registration etc).

2.5.4 User Training


The users should be given a hands-on training demonstrating how to use the system for
carrying out their administrative responsibilities.

2.5.5 Installation
Installation is required on the server side. The PHP technology and the MySQL scripting
language must be installed before installing the system.

14
Appointment Scheduling

Chapter 3

Software Design
Specification

15
Appointment Scheduling

3.1 Introduction
3.1.1 Purpose of this Document
This Software Design Specification (SDS) document contains a statement of the
design of the Appointment Scheduling system. In an SDS, the designers are
supposed to provide an unambiguous design of the product. The design then serves
as a guide to the developers who write the code and actually create the product. The
SDS discusses how the program is separated into modules, how the modules interact
with each other, and how users see the program. The SDS also looks into several
design considerations, including design tradeoffs and code reusability.

3.1.2 Scope of the Development Project


Appointment Scheduling system is a software project that enables the user to
automatically schedule the appointments. Any company form the corporate world can
buy this software tool as it is very easy to use and makes the process of arranging
appointments automatic.

3.1.3 Definitions, Acronyms, and Abbreviations


• Software: Software developed for customized needs of a client for a customized
task.
• Html: Stands for Hyper Text Markup Language. Hyper Text is ordinary text that
has been dressed up with extra features such as formatting images, multimedia and
links to other documents.
• Http: A new internet protocol emerged called HTTP (Hyper Text Transfer Protocol)
and the World Wide Web was born. The WWW is a vast network for HTTP servers
sending files across the internet.
• URL: Is a Uniform Resource locator. Simply speaking it is an address for a web
page or any other file on the internet
• Host: An autonomous computer system attached to other computer systems to form
a computer network.
• PHP: Hypertext Processor technology provides a simplified, fast way to create web
pages that display dynamically generated content.
• My SQL: Is a scripting language which is useful to perform web page validation and
verification.
• CSS: Cascading Style Shits provides a provision to design well organized and
properly designed web pages.

16
Appointment Scheduling

3.1.4 References
A) PHP Manual
B) www.tizag.com

3.1.5 Overview of Document


Section 2 of the SDS describes the overall design of the Appointment Scheduling
system and shows how the various modules interact with each other. Section 3 looks
at each of these modules in greater detail. Section 4 discusses the design goal of the
product and section 5 contains the page entity-relationship diagram for the product.

3.2 System architecture description


3.2.1 Overview of modules / components

Module / Component Brief Explanation


User Authentication Checks the user validation
Appointment Scheduling form For the appointment of a new appointee.
Error Page Displays an error message when the appointment
is cancelled.
Success Page Displays a success message when the
appointment is successfully done.

3.2.2 Structure and relationships


3.2.2.1 System Overview
The main page contains the standard topics links and provision for user login and
link for appointment form also. Standard topics contain some basic fundamental
knowledge about the Appointment Scheduling system. Premium pages contain the
full and advanced topics about the related subjects. Appointment form fill up page
allows the user to fill in the ‘Client details form’ in the website to get appointment
note.

17
Appointment Scheduling

3.3 Schematic Diagram


3.3.1 Appointment
Field Name Data type
App_id Integer
Name Character
Company_Name Character
Designation Character
Contact_per_id Integer
E-mail Character, Integer
Phone_No Integer
Purpose Character
Date Date

Time Time

3.3.2 Appo_Condition
Field Name Data type

Cond_id Integer
App_id Integer

Dispatched Character

Cancelled Character

Dispatch/Cancel Time Time

18
Appointment Scheduling

3.3.3 Corporate
Field Name Data type
Contact_per_id Integer
Contact_per_Name Character
Designation Character

3.4 Design Goals


This system is designed for making appointment scheduling automatic for those
company who are interested in using this. This software is mainly for corporate world.

19
Appointment Scheduling

3.5 E-R Diagram


Contact_per_id
Company_Nam
e
Date
Name Purpos
e
E-
App_id
mail
Tim
Designatio e
n.
Phone_N
1 to o.
Man
y Appointment
Cond_id
Contact
_per_id App_id
Designatio Cancelled
n 1 to
1
Dispatched
Corporate

Contact_per_
Name Dispatch/Cancel
Appo_Condition
Time

E-R Diagram of Appointment Scheduling System

20
Appointment Scheduling

21
Appointment Scheduling

3.6 Data Flow Diagram

Enterprise Personnel

Appointment Clerk
Visitor Scheduling
System

Context Diagram
Level 0 DFD

22
Appointment Scheduling

Enterprise Personnel
User Appointmen
t Viewing

Dispatc
h

Appointmen Modificatio Clerk


t Scheduling Database n

Level 1 DFD

23
Appointment Scheduling

Chapter 4

Progra
m
Coding &
Output
24
Appointment Scheduling

4.1 Source Code


4.1.1 Index
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<link href="style.css" rel="stylesheet" type="text/css" />

</head>

<body topmargin="0" style="border:none" bgcolor="#000033" marginheight="0"


marginwidth="0" >
<table width="780" height="922" border="0" align="center" cellpadding="0"
cellspacing="0" vspace="0">
<tr>
<td height="228" background="pictures/head.jpg" valign="bottom">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr align="center">
<td width="22%" height="40">&nbsp;</td>
<td width="11%" height="40">
<span class="style1"><a href="index.php"
class="style3">Home</a></span></td>
<td width="15%" height="40">
<span class="style3"><a href="index.php?op=1"
class="style3">Schedule</a></span></td>
<td width="21%" height="40"><span class="style3"> <a href="index.php?
op=2" class="style3">View</a></span></td>
<td width="19%" height="40"><span class="style3"><a href="index.php?
op=3" class="style3">Member's Login</a></span> </td>
<td width="12%" height="40"><span class="style3"><a href="index.php?
op=5" class="style3">Contact Us</a></span></td>
</tr>
</table> </td>
</tr>
<tr>
<td valign="top" height="666" background="pictures/back.jpg">
<?PHP
$req=$_REQUEST['op'];
switch($req)
{

25
Appointment Scheduling

case 1:
include("schedule.php");
break;
case 2:
include("view.php");
break;
case 3:
include("login.php");
break;
case 5:
include("contact.php");
break;
case 101:
include("ticket.php");
break;
case 102:
$path="print_ticket.php";
include($path);
break;
default:
include("default.php");
break;
}
?> </td>
</tr>
<tr height="25">
<td align="center" background="pictures/fut.jpg" class="style8">Copyright &copy;
2008 Arnab Bag. All right Resurved</td>
</tr>
</table>

</body>
</html>

4.1.2 Default
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>

26
Appointment Scheduling

<body>
<table align="center" width="80%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td><p class="style3">Welcome to appointment scheduling system. Here you can
schedule all your necessary appointments. To schedule an appointment please follow the
following steps:-</p>
<p class="style3">1. Click the schedule link and schedule the appointment<br />
2. Print the ticket<br />
3. Bring the ticket to the destination </p> </td>
</tr>
</table>

</body>
</html>

4.1.3 Schedule
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<link href="style.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" src="datetimepicker.js">

</script>
</head>

<body onload="StartClock()" onunload="KillClock()">


<form name="theClock" action="schedule_submit.php">

<table vspace="0" align="center" width="80%" border="0" cellspacing="0"


cellpadding="0">
<tr>
<td colspan="4" class="style10">&nbsp;</td>
</tr>
<tr>
<td colspan="4" class="style10"><div align="center">Please schedule your
Appointment here </div></td>
</tr>
<tr>
<td colspan="4" class="style10">&nbsp;</td>
</tr>

<tr>
<td colspan="4" class="style10">Personal Information </td>
</tr>

27
Appointment Scheduling

<tr>
<td width="20%">&nbsp;</td>
<td colspan="3">&nbsp;</td>
</tr>
<tr>
<td class="style8">Name</td>
<td colspan="3"><input name="name" type="text" size="50" maxlength="50" /></td>
</tr>
<tr>
<td class="style8">Contact Address </td>
<td colspan="3"><input name="address" type="text" size="80" maxlength="100"
/></td>
</tr>
<tr>
<td class="style8">Email</td>
<td colspan="3"><input name="email" type="text" size="80" maxlength="80" /></td>
</tr>
<tr>
<td class="style8">Contact No. </td>
<td colspan="3"><input name="contact" type="text" size="20" maxlength="10"
/></td>
</tr>
<tr>
<td>&nbsp;</td>
<td colspan="3">&nbsp;</td>
</tr>
<tr>
<td colspan="4" class="style10">Professional Information </td>
</tr>
<tr>
<td>&nbsp;</td>
<td colspan="3">&nbsp;</td>
</tr>
<tr>
<td class="style8">Company Name </td>
<td colspan="3"><input name="c_name" type="text" size="50" maxlength="50"
/></td>
</tr>
<tr>
<td class="style8">Designation</td>
<td colspan="3"><input name="designation" type="text" size="20" maxlength="20"
/></td>
</tr>
<tr>
<td>&nbsp;</td>
<td colspan="3">&nbsp;</td>
</tr>
<tr>
<td colspan="4" class="style10">Appointment details </td>
</tr>
<tr>
<td>&nbsp;</td>
<td colspan="3">&nbsp;</td>
</tr>
<tr>
<td class="style8">Contact Person </td>
<td colspan="3"><input name="c_person" type="text" maxlength="50" size="50"
/></td>

28
Appointment Scheduling

</tr>
<tr>
<td class="style8">Purpose</td>
<td colspan="3"><textarea name="purpose" cols="47" rows="10"></textarea></td>
</tr>
<tr>
<td class="style8">Appointment Date</td>
<td width="43%"> <input type="text" name="app_date" id="demo1" size="10"
readonly="true" size="25" /> <a href="javascript:NewCal('demo1','ddmmyyyy')"><img
src="pictures/cal.gif" width="16" height="16" border="0" alt="Pick a date"></a></td>
<td width="18%" class="style8">Current Date</td>
<td width="19%"><input name="date" type="text" size="10" maxlength="10"
value="<?PHP echo date("d/m/y"); ?>" readonly="true" /></td>
</tr>
<tr>
<td class="style8">&nbsp;</td>
<td></td>
<td class="style8">Current Time </td>
<td><input name="theTime" size="10" readonly="true" type="text"
maxlength="10" /></td>
</tr>
<tr>
<td class="style8">&nbsp;</td>
<td colspan="3">&nbsp;</td>
</tr>
<tr>
<td colspan="4" class="style8" align="center"><input name="Submit" type="submit"
value="Submit" /></td>
</tr>
</table>
</form>
</body>
</html>

4.1.4 Schedule Submit


<?PHP
ob_start();
require("Connection.php");
$name=$_REQUEST['name'];
$address=$_REQUEST['address'];
$email=$_REQUEST['email'];
$contact=$_REQUEST['contact'];
$c_name=$_REQUEST['c_name'];
$designation=$_REQUEST['designation'];
$c_person=$_REQUEST['c_person'];
$purpose=$_REQUEST['purpose'];
$app_date=$_REQUEST['app_date'];
$cur_date=$_REQUEST['date'];
$cur_time=$_REQUEST['theTime'];

29
Appointment Scheduling

$query="insert into schedule (name, address, email, contact, c_name, designation,


c_person, purpose, app_date, cur_date, cur_time) values ('$name', '$address',
'$email', '$contact', '$c_name', '$designation', '$c_person', '$purpose', '$app_date',
'$cur_date', '$cur_time')";
if(mysql_query($query,$conn)or die(mysql_error()))
{
header("location:index.php?op=101");
}
echo $name." ".$address." ".$email." ".$contact." ".$c_name." ".$designation." ".
$c_person." ".$purpose." ".$app_date." ".$cur_date." ".$cur_time;
?>

4.1.5 View
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>

<body>
<form action="print.php" method="post" name="frm1">
<table align="center" width="50%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center" colspan="3" class="style10">&nbsp;</td>
</tr>
<tr>
<td align="center" colspan="3" class="style10">&nbsp;</td>
</tr>
<tr>
<td align="center" colspan="3" class="style10"><div align="center">Please
Enter your ticket number </div></td>
</tr>
<tr>
<td colspan="3" class="style8">&nbsp;</td>
</tr>
<tr>
<td width="30%" class="style8"><div align="right">Ticket
number&nbsp;&nbsp;</div></td>
<td width="35%"><input name="t_no" type="text" size="20"
maxlength="20" /></td>

30
Appointment Scheduling

<td width="35%"><input name="Submit" type="submit" value="Submit"


/></td>
</tr>
</table>
</form>
</body>
</html>

4.1.6 Make PDF


<?PHP
ob_start();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>

<body>
<?PHP
require("Connection.php");
$t_id=$_REQUEST['t_id'];
$query="select * from schedule where id='$t_id'";
$result=mysql_query($query,$conn)or die(mysql_error());
$array=mysql_fetch_array($result)
?>
<table align="center" width="60%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="2" align="center" class="style10">&nbsp;</td>
</tr>
<tr>
<td colspan="2" align="center" class="style10">&nbsp;</td>
</tr>
<tr>
<td colspan="2" align="center" class="style10">Your ticket for appointment
</td>
</tr>
<tr>
<td colspan="2"> </td>

31
Appointment Scheduling

</tr>
<tr>
<td colspan="2">&nbsp;</td>
</tr>
<tr>
<td colspan="2" style=" border-left-style:solid; border-right-style:solid; border-
top-style:solid; border-bottom-style:solid; border:thin; border-color:#CCCCCC">
<table align="center" width="91%" border="0" cellspacing="0"
cellpadding="0">
<tr>
<td width="46%">&nbsp;</td>
<td width="54%">&nbsp;</td>
</tr>
<tr>
<td class="style8">Seekers Name: </td>
<td class="style8"><?PHP echo $array['name']; ?></td>
</tr>
<tr>
<td class="style8">&nbsp;</td>
<td class="style8">&nbsp;</td>
</tr>
<tr>
<td class="style8">Company Name: </td>
<td class="style8"><?PHP echo $array['c_name']; ?></td>
</tr>
<tr>
<td class="style8">&nbsp;</td>
<td class="style8">&nbsp;</td>
</tr>
<tr>
<td class="style8">Designation:</td>
<td class="style8"><?PHP echo $array['designation']; ?></td>
</tr>
<tr>
<td class="style8">&nbsp;</td>
<td class="style8">&nbsp;</td>
</tr>
<tr>
<td class="style8">Contact Person: </td>
<td class="style8"><?PHP echo $array['c_person']; ?></td>
</tr>
<tr>

32
Appointment Scheduling

<td class="style8">&nbsp;</td>
<td class="style8">&nbsp;</td>
</tr>
<tr>
<td valign="top" class="style8">Purpose:</td>
<td class="style8"><textarea readonly="readonly" cols="35" rows="10"><?PHP
echo $array['purpose']; ?></textarea></td>
</tr>
<tr>
<td class="style8">&nbsp;</td>
<td class="style8">&nbsp;</td>
</tr>
<tr>
<td class="style8">Appointment Date: </td>
<td class="style8"><?PHP echo $array['app_date']; ?></td>
</tr>
<tr>
<td class="style8">&nbsp;</td>
<td class="style8">&nbsp;</td>
</tr>
<tr>
<td class="style8">Confirmed:</td>
<td class="style8"><?PHP echo $array['approved']; ?></td>
</tr>
<tr>
<td class="style8">&nbsp;</td>
<td class="style8">&nbsp;</td>
</tr>
</table> </td>
</tr>
<tr>
<td width="44%">&nbsp;</td>
<td width="56%">&nbsp;</td>
</tr>
<tr>
<td align="center" class="style8"><a href="make_pdf.php">Save</a></td>
<td>&nbsp;</td>
</tr>
</table>
<?php
// create handle for new PDF document

33
Appointment Scheduling

$pdf = pdf_new();

// open a file
pdf_open_file($pdf, "ticket.pdf");

// start a new page (A4)


pdf_begin_page($pdf, 595, 842);

// get and use a font object


$arial = pdf_findfont($pdf, "Arial", "host", 1);
pdf_setfont($pdf, $arial, 14);

// print text
pdf_show_xy($pdf, "Appointment Ticket,", 50, 750);
pdf_setfont($pdf, $arial, 10);
pdf_show_xy($pdf, "than are dreamt of in your philosophy", 50, 730);

// end page
pdf_end_page($pdf);

// close and save file


pdf_close($pdf);
$location="Location:index.php?op=102&t_id=".$t_id;
header($location);
?>

</body>
</html>

4.1.7 Ticket
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>

<body>
<?php
require("Connection.php");
$query="select * from schedule";

34
Appointment Scheduling

$result=mysql_query($query,$conn)or die(mysql_error());
while($array=mysql_fetch_array($result))
$id=$array['id'];
?>
<table align="center" width="40%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="style10">&nbsp;</td>
</tr>
<tr>
<td class="style10">&nbsp;</td>
</tr>
<tr>
<td class="style10">Schedule Successfully Submitted </td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td class="style15">Your Ticket number is: <?PHP echo $id; ?></td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td><div align="justify" class="style8">Please Don't lost your ticket number.
This tickket number can be used to obtain your ticket from this site. </div></td>
</tr>
</table>

</body>
</html>

4.1.8 Print
<?PHP
ob_start();
$t_id=$_REQUEST['t_no'];
$location="Location:index.php?op=102&t_id=".$t_id;
header($location);
?>

35
Appointment Scheduling

4.1.9 Print Ticket


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>

<body>
<?PHP
require("Connection.php");
$t_id=$_REQUEST['t_id'];
$query="select * from schedule where id='$t_id'";
$result=mysql_query($query,$conn)or die(mysql_error());
$array=mysql_fetch_array($result)
?>
<table align="center" width="60%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="2" align="center" class="style10">&nbsp;</td>
</tr>
<tr>
<td colspan="2" align="center" class="style10">&nbsp;</td>
</tr>
<tr>
<td colspan="2" align="center" class="style10">Your ticket for appointment
</td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td colspan="2">&nbsp;</td>
</tr>
<tr>
<td colspan="2" style=" border-left-style:solid; border-right-style:solid; border-
top-style:solid; border-bottom-style:solid; border:thin; border-color:#CCCCCC">
<table align="center" width="91%" border="0" cellspacing="0"
cellpadding="0">
<tr>
<td width="46%">&nbsp;</td>

36
Appointment Scheduling

<td width="54%">&nbsp;</td>
</tr>
<tr>
<td class="style8">Seekers Name: </td>
<td class="style8"><?PHP echo $array['name']; ?></td>
</tr>
<tr>
<td class="style8">&nbsp;</td>
<td class="style8">&nbsp;</td>
</tr>
<tr>
<td class="style8">Company Name: </td>
<td class="style8"><?PHP echo $array['c_name']; ?></td>
</tr>
<tr>
<td class="style8">&nbsp;</td>
<td class="style8">&nbsp;</td>
</tr>
<tr>
<td class="style8">Designation:</td>
<td class="style8"><?PHP echo $array['designation']; ?></td>
</tr>
<tr>
<td class="style8">&nbsp;</td>
<td class="style8">&nbsp;</td>
</tr>
<tr>
<td class="style8">Contact Person: </td>
<td class="style8"><?PHP echo $array['c_person']; ?></td>
</tr>
<tr>
<td class="style8">&nbsp;</td>
<td class="style8">&nbsp;</td>
</tr>
<tr>
<td valign="top" class="style8">Purpose:</td>
<td class="style8"><textarea style="background:#99CCFF" readonly="readonly"
cols="35" rows="10"><?PHP echo $array['purpose']; ?></textarea></td>
</tr>
<tr>
<td class="style8">&nbsp;</td>

37
Appointment Scheduling

<td class="style8">&nbsp;</td>
</tr>
<tr>
<td class="style8">Appointment Date: </td>
<td class="style8"><?PHP echo $array['app_date']; ?></td>
</tr>
<tr>
<td class="style8">&nbsp;</td>
<td class="style8">&nbsp;</td>
</tr>
<tr>
<td class="style8">Confirmed:</td>
<td class="style8"><?PHP echo $array['approved']; ?></td>
</tr>
<tr>
<td class="style8">&nbsp;</td>
<td class="style8">&nbsp;</td>
</tr>
</table> </td>
</tr>
<tr>
<td width="44%">&nbsp;</td>
<td width="56%">&nbsp;</td>
</tr>
<tr>
<td align="center" class="style8"><a href="make_pdf.php?t_id=<?PHP echo
$t_id ?>">Save</a></td>
<td>&nbsp;</td>
</tr>
</table>

<blockquote>&nbsp;</blockquote>
</body>
</html>

4.1.10 Members Login


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>

38
Appointment Scheduling

<link href="style.css" rel="stylesheet" type="text/css" />


</head>

<body>
<table align="center" width="40%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td colspan="2" align="center" class="style10">Members Area. Please login Here
</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td class="style8">Username</td>
<td><input name="user" type="text" size="20" maxlength="20" /></td>
</tr>
<tr>
<td class="style8">Password</td>
<td><input name="password" type="password" size="20" maxlength="20"
/></td>
</tr>
<tr>
<td colspan="2" align="center">&nbsp;</td>
</tr>
<tr>
<td colspan="2" align="center"><input name="Submit" type="submit"
value="Login" /></td>
</tr>
</table>

</body>
</html>

4.1.11 Contact
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

39
Appointment Scheduling

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />


<title>Untitled Document</title>
<link href="style.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
.style17 {color: #FFFF66}
-->
</style>
</head>

<body>
<table align="center" width="80%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td>
<p align="center" class="style10"><u>Software developed by</u> </p>
<p class="style9">Arnab Bag </p>
<p class="style9">BCA 5th Sem</p>
<p class="style9">Techno India Institute of Technology</p>
<p class="style9">Email: sainik86@gmail.com </p>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
</table>
</body>
</html>

4.1.12 Connection
<?PHP
$conn=mysql_connect("localhost","root","");
mysql_select_db("appointment",$conn);
?>

40
Appointment Scheduling

4.2 Output
4.2.1 Index

4.2.2 Schedule

41
Appointment Scheduling

4.2.3 Ticket

4.2.4 Login

42
Appointment Scheduling

Chapter 5

Bibliography

43
Appointment Scheduling

♦ http://www.tizag.com
♦ http://www.w3schools.com
♦ Beginning PHP5, Wrox
♦ PHP Manual

--The End--

44

You might also like