Online Movie Ticketing
-
Upload
diana-sampath -
Category
Documents
-
view
3.275 -
download
19
Transcript of Online Movie Ticketing
ONLINE MOVIE TICKETING
AIM:
To create a e-ticketing project for online movie ticket booking system and UML Diagrams using Rational Rose tool.
PROBLEM STATEMENT:
As a group of CSE students we are tasked to build a new system that enables internet
customers to buy tickets online. This system adopts a comprehensive approach to
minimize the manual work and schedule resources, time in a cogent manner. E-ticket
is a brand new ticketing method that allows us to print tickets at home using your
local printer connected to the computer. Internet customers will be presented with a
custom ordering program that allows them to book tickets from a list of movies in the
website. Before they can order they have to provide their name and the mailing
address. Each ticket will be displayed with its movie name, show timings, price and
the seat numbers. The customers can book any number of tickets at a time. The
system computes the total price including the tax. The internet customer has to enter
the a valid credit card information to confirm their booking. After all the necessary
criteria has been met, the original information is added to the database and the ticket
is confirmed for printing. The ticket will be provided with the bar code for the
security purposes. The staffs check the barcode on the ticket before the entry.
SOFTWARE REQUIREMENT SPECIFICATION:
INTRODUCTION:
Online movie ticketing is an interface between the Applicant and the Authority
responsible for booking movie tickets online. It aims at improving the efficiency and
reduces the complexities involved in it to the maximum possible extent.
PURPOSE:
The main purpose of the online ticket booking system is to provide another way for
the customer to buy cinema ticket. The online E-Ticket System (ETS) is a web-based
system that is automatically updated from data in the database. There are similar
systems on the Internet, but there is no refund method found in these existing systems.
The goals of the system are:
To provide a service for the customer anytime any place
To provide refund which is not available in the existing systems
To minimize the number of staff at the ticket box
To promote the film on the Internet
To increase the profit of the cinema
To obtain statistic information from the booking record.
SCOPE:
Customer
The customers can buy ticket online and cancel the seats at a suitable time (2
days before the show to 1hour before the show). To enhance the refund function, all
the customers have to register and become a member before buying tickets.
Customers canceling tickets will not be given money back; instead the amount of
money will be recorded in the customer account for further use. To make the system
more user-friendly, the customer need not enter lots of data. And a step by step
guideline should be given to the customer to complete the buy process. The buying
steps are:
Customer will first choose the film, time and venue
Customer will login to the system
Customer will choose the seats positions.
Customers need a credit card to complete a buying transaction.
Confirm and show the transaction number to the customer.
In addition to creating a member account, the customer can modify his/her
own data.
Staff
One of the main purposes of the system is to reduce the number of staff in the
ticket box. So, most of the jobs are done by the system automatically. Staff only needs
to insert new film data and deal with statistical information. Before the staff performs
any operation, he/she must login to the system first. Staff can use the system to insert,
modify and delete data (e.g. add new movie, change movie description, modify time
table) which will update the system web pages (web pages are dynamic pages,
changing according to the data in the database). Also, staff can check the statistics
information of booking from the system.
General Public
Finally, the system web pages can be viewed by all people to check the films details.
REFERENCES:
IEEE Software Requirement Specification format.
TECHNOLOGIES AND TOOLS TO BE USED:
Apache Tomcat
MS Access
Rational rose (for developing UML Patterns)
OVERVIEW:
SRS includes two sections overall description and specific requirements – Overall
Description will describe major role of the system components and inter-connections.
Specific Requirements will describe roles & functions of the actors.
OVERALL DESCRIPTION:
PRODUCT PERSPECTIVE:
The online movie ticketing acts as an interface between the 'applicant' and the
'administrator'. This System tries to make the interface as simple as possible. This
minimizes the time duration.
SOFTWARE INTERFACE:
• Front End Client - The applicant and Administrator online interface is built using
HTML.
• Back End – Microsoft Access.
HARDWARE INTERFACE:
The server is directly connected to the client systems. The client systems have Access
to the database in the server.
SYSTEM FUNCTIONS:
• Secure Registration of information by the Applicants.
• SMS and Mail updates to the applicants by the administrator.
• Administrator can generate reports from the information and is the only authorized
Personnel to add the eligible application information to the database.
USER CHARACTERISTICS:
• Applicant - They are the person who desires to book the ticket and submit
the information to the database.
• Administrator - He has the certain privileges to add the movie status and to
approve the issue of ticket. He may contain a group of persons under him to
verify the information and confirm their tickets.
CONSTRAINTS:
• The applicants require a computer to submit their information.
• Although the security is given high importance, there is always a chance of
Intrusion in the web world which requires constant monitoring.
• The user has to be careful while submitting the credit card information. Much care
is required.
ASSUMPTIONS AND DEPENDENCIES:
• The Applicants and Administrator must have basic knowledge of computers and
English Language.
• The applicants may be required to take the print of ticket.
ANALYSIS:
Identifying the Actors:
Administrator
Applicant
Identifying the Use Cases:
Maintain Applicant Information
registeration form
Give relevant details
Done Registration
Process application
Check for availability of tickets
Confirm the ticket
ONLINE MOVIE TICKETING UML DIAGRAMS
USE CASE DIAGRAM:
CLASS DIAGRAM:
SEQUENCE DIAGRAM :
ACTIVITY DIAGRAM :
customer Reservation Movie Details Seatdetails
Check moviedetails
{ From eticketa...
Reservetickets
{ From eticketa...
MakePayments
{ From eticketactivi...
Show moviedetails
{ From eticketactivity }
RequestPayment
{ From eticketa...
IssueTicket
{ From eticket...
Check seatavailability
{ From eticketa...
COLLABORATION DIAGRAMS:
: movie_Details : Reservation
: movie_SeatDetails
: payments
: customer
public long getmno()
public long getSeatno()
public void paymentcalc()
public void reservatio()
SNAPSHOTS:
HOME PAGE:
LOGIN:
REGISTER:
SCHEDULE:
ABOUT US:
CONTACT US:
MOVIES:
LOGOUT:
SOURCE CODE: HOME PAGE:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html><head><title>Dream World Cinemas</title><link href="themes/default/dream.css" rel="stylesheet" type="text/css"/><script type="text/javascript" src="validate.js"></script><script type="text/JavaScript" src="ajax.js"></script><script type="text/JavaScript" src="navigation.js"></script><script type="text/JavaScript" src="process.js"></script><script type="text/JavaScript" src="swfobject.js"></script><script type="text/javascript">
var title="Dream world Cinemas";</script></head><body><script>setInterval('autorefreshmsg()',10000);setInterval('showTime()',1000);setInterval('handleNavigation()',300);</script><img src="media/icon.png" alt="Dream World Cinemas" border="0" style="position:absolute; left: 35%;top:0px; "/><table width="100%">
<tr><td><img src="media/header.jpg" width="100%" height="100"/></td>
</tr><tr><td id="messagebar">
<table width=100%><tr><td width="200px" align="left" id="messageleft"></td><td width="250px" align="center" id="messagecenter"></td><td id="messageright" align="left" ></td></tr></table>
</td></tr><tr><td>
<table><tr><td valign="top"><table id="navigation" width="170px">
<tr><td><a href="#login" onclick="navtologin()">Log in</a></td></tr>
<tr><td><a href="#register" onclick="navtoregister()">Register</a></td></tr>
<tr><td><a href="#schedule" onclick="navtoschedule()">Schedules</a></td></tr>
<tr><td><a href="#aboutus" onclick="navtoaboutus()">About us</a></td></tr>
<tr><td><a href="#contactus" onclick="navtocontactus()">Contact us</a></td></tr>
<tr><td><a href="#movies" onclick="navtomovies()">Movies</a></td></tr>
<tr><td><a href="#" onclick="logout()">Log Out</a></td></tr>
</table></td><td width=20px></td><td id="databar">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="608" height="450">
<param name="movie" value="media/dreamworld.jpg"/><param name="quality" value="low"/><embed src="media/dreamworld.jpg" width="608" height="450"
quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" />
</object></td></tr>
</table></td></tr></table><table id="footer" width="100%" ><tr>
<td><a href="#" onclick="navtohome()">Home</a> |<a href="#schedule" onclick="navtoschedule()">Schedule</a> |<a href="#privacy" onclick="navtoprivacy()">Privacy Policy</a> |<a href="#contactus" onclick="navtocontactus()">Contact us</a> |<a href="#disclaimer" onclick="navtodisclaimer()">Disclaimer</a> |<a href="#aboutus" onclick="navtoaboutus()">About us</a>
</td></tr></table>
<a name="#schedule"></a><a name="#login"></a><a name="#register"></a></body></html>
ADMIN://ADMIN.HTML<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html><head><title>Dream World Cinemas only for admin</title><link href="themes/default/dream.css" rel="stylesheet" type="text/css"/><script type="text/javascript" src="validate.js"></script><script type="text/JavaScript" src="ajax.js"></script><script type="text/JavaScript" src="navigation.js"></script><script type="text/JavaScript" src="process.js"></script><script type="text/JavaScript" src="swfobject.js"></script><script type="text/javascript" src="admin.js" ></script><script type="text/javascript">
var title="Dream World Cinemas -Admin";function displayError(errMessage,errUrl,lineno){
var msg="Message:"+errMessage+"\n";msg+="Document:"+errUrl+"\n";msg+="Line no:";+lineno+"\n"alert(msg);
}window.onerror=displayError;
</script></head><body><script type="text/javascript">
setInterval('autorefreshmsg()',10000);setInterval('showTime()',1000)
</script><img src="media/icon.png" alt="Dream World Cinemas" border="0" style="position:absolute; left: 35%;top:0px; "/><table width="100%">
<tr><td><img src="media/header.jpg" width="100%" height="100"/></td>
</tr><tr><td id="messagebar">
<table width=100%><tr><td width="200" align="left" id="messageleft"></td><td width="250" align="center" id="messagecenter"></td><td id="messageright" align="left" ></td></tr></table>
</td></tr><tr><td>
<table><tr><td valign="top"><table id="navigation" width="170">
<tr><td><a href="javascript:navtologin()">Log in</a></td></tr>
<tr><td><a href="javascript:viewCustomer()">Customers</a></td></tr>
<tr><td><a href="javascript:viewCinema()">Cinemas</a></td></tr>
<tr><td><a href="javascript:viewMovie()">Movies</a></td></tr>
<tr><td><a href="javascript:viewSchedule()">Schedule</a></td></tr>
<tr><td><a href="javascript:viewTimeslot()">Time Slot</a></td></tr>
<tr><td><a href="javascript:viewTicket()">Ticket</a></td></tr>
<tr><td><a href="javascript:logout()">Log Out</a></td></tr>
</table></td><td width="20"></td><td id="databar">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="608" height="450">
<param name="movie" value="media/dreamworld.swf"/><param name="quality" value="low"/><embed src="media/dreamworld.swf" width="608" height="450"
quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" />
</object></td></tr>
</table></td></tr></table><table id="footer" width="100%" ><tr>
<td><a href="javascript:navtohome()">Home</a> |
<a href="javascript:navtoschedule()">Schedule</a> |<a href="javascript:navtoprivacy()">Privacy Policy</a> |<a href="javascript:navtocontactus()">Contact us</a> |<a href="javascript:navtodisclaimer()">Disclaimer</a> |<a href="javascript:navtoaboutus()">About us</a>
</td></tr></table></body></html>
//ADMIN.JSP<%@include file="connect.jsp"%><%String req=request.getParameter("do");String uid= (String)session.getAttribute("uid");if(uid!=null && req!=null && uid.equals("1")){%><form name="frmAdmin">
<table><tr><td height="20px"></td> </tr><tr><td id='datainfo' align="center" class="pageName"></td></tr><tr><td><table id='admintable'>
<% if(req.equals("viewcustomers")){rs=st.executeQuery("select * from viewcustomer");%><tr><th>ID</th><th>User
Name</th><th>Email-ID</th><th>Address</th><th>Phone</th><th>City</th><th>Credit card No.</th><th>Balance</th><th>Last Visited</th><th>No of Visits</th><th>Tickets Bought</th><th></th></tr>
<tr id='insert'></tr><% while(rs.next()){
String id=rs.getString(1);out.println("<tr id=c"+id+" class='adminRow'>");out.println("<td>"+id+"</td>");for(int i=2;i<=11;i++){
String data=rs.getString(i);if(data==null) data="";out.println("<td>"+data+"</td>");
}out.println("<td><a
href=\"javascript:editCustomer('c"+id+"')\">edit</a> <a href=\"javascript:deleteCustomer('c"+id+"')\">delete</a></td>");
out.println("</tr>");}%>
<% }else if(req.equals("viewcinema")){rs=st.executeQuery("select *from viewcinema");%><tr><th>ID</th><th>Name</th><th>Address</th><th>City</th><th>No of
Screens</th><th>Capacity</th><th>Established</th><th></th></tr><tr id='insert'></tr>
<% while(rs.next()){String id=rs.getString(1);out.println("<tr id=c"+id+" class='adminRow'>");out.println("<td>"+id+"</td>");for(int i=2;i<=7;i++){
String data=rs.getString(i);if(data==null) data="";
out.println("<td>"+data+"</td>");}out.println("<td><a
href=\"javascript:editCinema('c"+id+"')\">edit</a> <a href=\"javascript:deleteCinema('c"+id+"')\">delete</a></td>");
out.println("</tr>");}
}else if(req.equals("viewmovie")){rs=st.executeQuery("select * from viewmovie");%><tr><th>ID</th><th>Name</th><th>Story line</th><th>Image
File</th><th>Trailer File</th><th>Casting</th><th>Category</th><th></th></tr><tr id='insert'></tr>
<% while(rs.next()){String id=rs.getString(1);out.println("<tr id=m"+id+" class='adminRow'>");out.println("<td>"+id+"</td>");for(int i=2;i<=7;i++){
String data=rs.getString(i);if(data==null) data="";out.println("<td>"+data+"</td>");
}out.println("<td><a
href=\"javascript:editMovie('m"+id+"')\">edit</a> <a href=\"javascript:deleteMovie('m"+id+"')\">delete</a></td>");
out.println("</tr>");}
}else if(req.equals("viewschedule")){rs=st.executeQuery("SELECT * from viewschedule");%><tr><th>ID</th><th>Cinema</th><th>Screen No</th><th>Show
date</th><th>Movie</th><th></th></tr><tr id='insert'></tr>
<% while(rs.next()){String id=rs.getString(1);out.println("<tr id=s"+id+" class='adminRow'>");out.println("<td>"+id+"</td>");for(int i=2;i<=5;i++){
String data=rs.getString(i);if(data==null) data="";out.println("<td>"+data+"</td>");
}out.println("<td><a
href=\"javascript:editSchedule('s"+id+"')\">edit</a>");out.println("</tr>");
}}else if(req.equals("viewtimeslot")){
rs=st.executeQuery("SELECT ID,slotno from tTime where id=(select max(id) from tTime)");
rs.next();int maxid=rs.getInt(1),count=1;while(rs.next()) count++;if(count==4) maxid++;rs=st.executeQuery("SELECT ID,SlotNo,Format(Slot,'hh:nn AM/PM') from
tTime order by id,slotno");%><tr><th>ID</th><th>Slot No</th><th>Time</th><th></th></tr><tr id='insert'><td><%=maxid%></td></tr>
<% while(rs.next()){String id=rs.getString(1);String sno=rs.getString(2);out.println("<tr id='t"+id+"s"+sno+"' class='adminRow'>");out.println("<td>"+id+"</td>");out.println("<td>"+sno+"</td>");out.println("<td>"+rs.getString(3)+"</td>");out.println("<td><a
href=\"javascript:editTimeslot('t"+id+"s"+sno+"')\">edit</a>");out.println("</tr>");
}}else if(req.equals("viewticket")){
rs=st.executeQuery("SELECT * from viewticket");%><tr><th>ID</th><th>Customer</th><th>Cinema</th><th>Screen
No</th><th>Show Date</th><th>Show Time</th><th>Movie</th><th>Seats</th><th>Quantity</th><th>Amount</th><th>Sold Date</th></tr><% while(rs.next()){
out.println("<tr class='adminRow'>");for(int i=1;i<=11;i++){
String data=rs.getString(i);if(data==null) data="";out.println("<td>"+data+"</td>");
}out.println("</tr>");
}}
%></table></td></tr></table>
</form><%}else{%>
<div style="color:red;"><h2>You should be logged in as Administrator</h2></div><%}conn.close();%>
ABOUT US:<table>
<tr><td height="20px"></td>
</tr><tr>
<td align="center" class="pageName">About Us </td></tr><tr >
<td id="info"><h3>Our Mission</h3><p><strong>Move first, Move fast</strong><br />Dream World Cinema was founded with a simple belief - to create
world-class media product and services. Our mission stems from the belief that consumer experience is critical to our success.
<p><strong>Multiple ties</strong> <br />Team Dream World Cinema strives to create multiple relationships
with global Indian. To do that Dream World Cinema commanders and strategists wear multiple hats, think disruption, and reinvent themselves every week.<br />
<p><strong>Continuous innovation</strong> <br />
Being in a dramatically-changing business-the internet-amounts to: act granular, think big. Our customers are just joining the digital revolution. So, we must keep anticipating their preferences through meticulous work, continuous innovation, and consistency in quality.<br />
<p><strong>Where ideas live</strong> <br />At Dream World Cinema, ideas rarely die, because we vehemently
believe in the freedom to disagree.We believe in keeping the floodgates of ideation open all the time. We are not subsumed by it, we generously give every idea enough gestation-time even if it means forking out time from our daily work.<br />
<p><strong>Smart-sensing the future</strong> <br />Dream World Cinema seeks to be a media megamart that infotains
the customer, creates community value, delights the smart shopper, provides cutting-edge solutions to the advertiser, and believes in the magic of the idea.<br />
</td></tr><tr>
<td height="20px"></td></tr><tr>
<td id="info"><h3>Board of Directors</h3><strong>Vineet Jain (Chairman)</strong> <br />A hands-on leader, Vineet Jain, Chairman, DWC, Managing
Director, Dream World Cinema & Co. Ltd. (DWC), is among the pioneer-believers in the future of the digital media. Vineet’s optimism and faith in Team Dream World Cinema has helped motivate each member to give his very best. His attention to details combined with a creative verve converts ideas into powerful implantation tools. His personal passion has helped create a unique combination of enthusiasm with entrepreneurship. <br />
<br /><strong>A. P. Parigi (Director) </strong><br />A.P Parigi is the Managing Director and Chief Executive Officer of
Entertainment Network (India) Ltd (ENIL). Parigi’s role and responsibilities include spearheading the Dream World Cinema Group’s foray into internet video broadcasting, event management, out-of-home advertising and filmed entertainment. Parigi leads and manages businesses and brands like Dream World Online Radio , Dream World Entertainment Media. Parigi is also the Managing Director and CEO of Dream World Cinema Infotainment Media Limited, which is a subsidiary of DWC. <br />
<br />In the last three decades, he has held senior positions in various
industries, including telecom. Prior to joining the Dream World Cinema Group, Parigi was the CEO of BPL Mobile, Mumbai. He has been an active member of the Confederation of Indian Industry (CII) and Federation of Indian Chambers and Commerce Industry (FICCI). <br />
<br />He holds a Master’s degree in Business Administration from
the Faculty of Management Studies, University of Delhi and a Bachelor’s degree in Economics and a Masters degree in Sociology from the Delhi School of Economics. </td>
</tr><tr>
<td height="20px"></td></tr><tr>
<td id="info"><h3>Web Designers</h3><p><strong>Jay H Kapasi (Web Admin)</strong> <br />
Jay Kapasi , Web Admin, DWC, is among the pioneer-believers in the future of the digital media. Jay’s optimism and faith in Team has
helped motivate each member to give his very best. His attention to details combined with a creative verve converts ideas into powerful implantation tools. His personal passion has helped create a unique combination of enthusiasm with entrepreneurship.</p>
<p> For any queries about our site contact him at <a href="mailto:[email protected]">[email protected]</a> or at <a href="mailto:[email protected]">[email protected]</a></p>
</tr></table>
LOGIN://LOGIN.JSP<%@include file="connect.jsp"%>
<%String uname=request.getParameter("uname");String passw =request.getParameter("passw");String suid =(String)session.getAttribute("uid");Boolean isLogin=false;String last="";
rs=st.executeQuery("select uname ,passw,id,Format(lastvisit,'dd mmmm,yyyy hh:nn AM/PM'),crid from Customer where uname='"+uname +"'");if(rs.next()){
if(rs.getString(1).equals(uname) && rs.getString(2).equals(passw)){String uid=rs.getString(3);if(uid.equals(suid)){%>
<div style='color:cyan'>You Are Already Logged In</div><% }else{
session.setAttribute("uid",uid);last=rs.getString(4);session.setAttribute("crid",rs.getString(5));st.executeUpdate("update Customer set noofvisits=noofvisits+1
where id=" +uid);java.util.Date dt=new java.util.Date();st.executeUpdate("update Customer set lastvisit='"+
dt.toLocaleString() + "' where id=" +uid);rs=st.executeQuery("select fname,mname,lname from Customer
where id="+uid);if(rs.next()){
String name=rs.getString(1)+" "+rs.getString(2)+" "+rs.getString(3);
System.out.println(name);name="Welcome "+name;String messageright="<div>Last Visit : " + last +" |
<a href='javascript:editProfile()'>Edit Profile</a> | " ;messageright+="<a href='javascript:logout()'>Logout</a>";session.setAttribute("messagecenter",name);session.setAttribute("messageright",messageright);
}%><div style="color:cyan">You Have succesfully Logged in.<br>You
last visited on <%=last%></div><% }
}else{%><div style="color:red;">Username Or Password is Incorrect</div>
<% }
}else{%><div style="color:red;">Username Or Password is Incorrect</div>
<%}conn.close();%>
//LOGIN.HTML<form name=loginform action="javascript:login()">
<div id=logininfo></div><table id="login" >
<tr><td><u>U</u>ser Name</td><td><input type="text" name="uname" accesskey="u" /></td>
</tr><tr height="35px">
<td><u>P</u>assword</td><td><input type="password" name="passw" accesskey="p" value=""
/></td></tr ><tr height="35px" >
<td colspan="2" align="center"><table><tr>
<td><input type="submit" class="customButton" value="Login"></td>
<td width="20px"></td><td><input type="reset" class="customButton"
value="Cancel"></td></tr></table>
</td></tr>
</table>Don't Have an Account ? <a href="#register" onclick="navtoregister()">Register
Now</a></form>
REGISTER://REGISTER.JSP<%@include file="connect.jsp"%><%String fname=request.getParameter("fname");String mname=request.getParameter("mname");String lname=request.getParameter("lname");String uname=request.getParameter("uname");String passw=request.getParameter("passw");String email=request.getParameter("email");String phno=request.getParameter("phno");String address=request.getParameter("address");String city=request.getParameter("City");String crno=request.getParameter("crno");boolean valid=true;
st.executeUpdate("insert into credit(crno) values('"+crno+"')");rs=st.executeQuery("select id from credit where crno='"+ crno +"'");rs.next();
int crid=rs.getInt(1);String sql="insert into Customer(fname,mname,lname,uname,passw,email,phno,address,cityid,crid) values(";sql+="'"+fname+"','"+ mname+"','"+lname+"','"+uname+"','"+passw+"','"+email+"',"
+phno+",'"+address+"',"+city+","+crid+")";//out.println(sql);try{
st.executeUpdate(sql);%><h1>You Have registered successfully.Now you may login.</h1><%}catch(Exception e){
System.out.println(e);}conn.close();%>
//REGISTER.HTML<form name="regform" action="javascript:register()"><table id="register">
<tr><td align="right" valign="top" style="padding-top: 5px">Name*</td><td><table>
<tr><td><input type="text" name="fname" /></td><td><input name="mname" type="text" /></td><td><input name="lname" type="text" /></td>
</tr><tr>
<td align="center">(First name)*</td><td align="center">(Middle name)</td><td align="center">(Last name)*</td>
</tr></table></td>
</tr><tr>
<td align="right">User Name*</td><td><input name="uname" type="text"
onkeyup="javascript:checkname()" /><input type="button" style="width:120px;"
value="Check Availability" onclick="isAvailName()"/><label id="m_uname"></label></td>
</tr><tr>
<td align="right">Password*</td><td><input name="passw" type="password"
onkeyup="javascript:checkpassw()" /><label id="m_passw"></label></td>
</tr><tr>
<td align="right">Retype Password*</td><td><input name="passw2" type="password" /></td>
</tr><tr>
<td align="right">Email-Id*</td><td><input name="email" type="text"
onkeyup="javascript:checkemail()" /><label id="m_email"></label></td>
</tr><tr>
<td align="right">Phone No.</td><td><input name="phno" type="text"
onkeyup="javascript:checkphno()"/><label id="m_phno"></label></td>
</tr><tr>
<td align="right">Address*</td><td><textarea name="address"></textarea></td>
</tr><tr>
<td align="right">City</td><td id="citycombo"></td>
</tr><tr>
<td align="right">Credit Card No.*</td><td><input name="crno" type="text"
onkeyup="javascript:checkcrno()" /><label id="m_crno"></label></td>
</tr></table><div style="color: red">fields marked with * are required</div><div><input name="terms" type="radio" onclick="agree=true" style="width:20px;"/>
I agree to the terms of <a href="#privacy" target="_blank">Privacy Policy</a><br />
<input name="terms" type="radio" onclick="agree=false" checked style="width:20px;"/> I don't agree</div><table>
<tr align="center"><td width="105"><input type="submit" class="customButton"
value="Register"></td><td width="169"><input type="reset" class="customButton"
value="Cancel"></td></tr>
</table></form>
SCHEDULE://SCHEDULE.JSP<%@include file="connect.jsp" %><%String showby =request.getParameter("showby");String showvalue=request.getParameter("showvalue");String sql="select id, Name from "+showby+" ";String show ="";
if(showby.equals("Country")){show="State";
}else if(showvalue!=null){if(showby.equals("State")){
sql+=" where countryid="+showvalue;show="City";
}else if(showby.equals("City")){sql+=" where stateid="+showvalue;show="Cinema";
}else if(showby.equals("Cinema")){sql+=" where cityid="+showvalue;show="Film";
}else if(showby.equals("Film")){String subquery="(Select filmid FROM Schedule where showdate>=Date()
and screenid in(select id from screen where cinemaid ="+showvalue+"))";sql+="where id in"+ subquery+"";session.setAttribute("cinema",showvalue);show="Date";
}else if(showby.equals("Date")){sql="select id , Format(Showdate,'dd mmmm,yyyy') from schedule where
showdate>= Date() and filmid="+showvalue +"and screenid in (select id from screen where cinemaid="+session.getAttribute("cinema")+")";
show="Time";}else if(showby.equals("Time")){
sql="select SlotNo ,Format(Slot,'hh nn AM/PM') from ttime where id =(select timeid from screen where id=(select screenid from schedule where id="+showvalue+")) order by slot";
}}try{
System.out.println (sql);rs=st.executeQuery(sql);String eventhandler="";if(showby.equals("Time"))
eventhandler="onchange=\"loadseat()\"";else
eventhandler="onchange=\"loadschedule('"+ show +"',this.value)\"";System.out.println (eventhandler);
%><select name=<%=showby%> <%=eventhandler%> ><option value=0>Select A <%=showby%></option><%while(rs.next()){%><option value="<%=rs.getString(1)%>"><%=rs.getString(2)%></option>
<%}}catch(Exception e){
System.out.println(e);}conn.close();%></select>
//SCHEDULE.HTML<form name="schedule"><table><tr align="center"><td >Country</td><td>State</td><td>City</td><td>Area</td></tr><tr><td id="Country"></td><td id="State"></td><td id="City"></td><td id="Cinema"></td></tr><tr><td>Movies</td><td id="Film" colspan="3"></td></tr>
<tr><td id="Filmdesc" colspan="4"></td></tr><tr><td>Date</td><td id="Date" colspan="3"></td></tr><tr><td>Time Slot</td><td id="Time" colspan="3"></td></tr><tr><td>Select seats</td><td id="Seats" colspan="3"></td></tr><tr>
<td colspan="4" align="center"><input type="button" onclick="bookTicket();" class="customButton" value="Book ticket" /></td></tr></table></form>
CONTACT US:<table>
<tr><td height="20px"></td>
</tr><tr>
<td align="center" class="pageName">Contact Us </td></tr><tr >
<td id="info"><strong>Dream World Cinemas Ltd.,</strong><br />I World Tower, DLF City Phase V<br />(Opp DLF Golf Course)<br />Gurgaon, Haryana - 122002<br />Tel: 91- 124 - 418 7000 <br />Email:<a href="mailto:[email protected]"
>[email protected]</a> </td></tr>
</table>
LOGOUT:<%@include file="connect.jsp"%><%
String uid =(String)session.getAttribute("uid");if(uid!=null){
try {session.removeAttribute("uid");session.removeAttribute("messagecenter");session.removeAttribute("messageright");}catch (Exception ex){
System.out.println(ex);}
conn.close();%><div style="color:cyan;">You have logged Out Successfully</div><%}else{%><div style="color:red;">You are not logged in now.</div><% } %>
RESULT:
Thus the online movie ticketing project using MS Access and UML Diagrams using Rational Rose tool is done.