forked from Ramisha386/Lights-Camera-Action
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_nav.php
More file actions
168 lines (126 loc) · 7.75 KB
/
_nav.php
File metadata and controls
168 lines (126 loc) · 7.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
<header id="header">
<div class="menu-bar">
<ul>
<li class="active"><a href='http://localhost/302/homee.php'><i class="fa fa-home"></i> Home</a></li>
<li><a href='https://localhost/302/login_admin.php'><i class="fa fa-check" ></i> Admin</a></li>
<li><a href='#'><i class="fa fa-play-circle" ></i> Showtime</a>
<div class="sub-menu-1">
<ul>
<li><a href="http://localhost/302/movies2D.php"><i class="fa fa-check"></i> 2D</a></li>
<li><a href="http://localhost/302/movies3D.php"><i class="fa fa-check"></i> 3D</a></li>
</ul>
</div>
</li>
<li><a href='#'><i class="fa fa-shopping-cart"></i> Concession</a>
<div class="sub-menu-1">
<ul>
<li><a href="http://localhost/302/portfolio.php"><i class="fa fa-cutlery"></i> Refreshments</a></li>
<li><a href="http://localhost/302/merch.php"><i class="fa fa-coffee"></i> Merchandise</a></li>
</ul>
</div>
</li>
<li><a href='http://localhost/302/registration.php'><i class="fa fa-user-plus"></i> Sign Up</a></li>
<li><a href='http://localhost/302/contact%20us.php'><i class="fa fa-phone"></i> Contact Us</a></li>
<li>
<?php
$count=0;
if(isset($_SESSION['cart']))
{
$count=count($_SESSION['cart']);
}
?>
<a href="myCart.php"><i class="fa fa-shopping-cart"></i> My Cart (<?php echo $count; ?>)</a>
</li>
</ul>
</div >
</header>
<!-----------hhhhhhhhhhhhhhhhhhhhhhhhhhhhhh------------------->
<!--/#header-->
<section id="home-slider">
<div class="container">
<div class="row">
<div class="col-lg-6">
<div class="main-slider">
<div class="slide-text">
<h1>Become a Member Partner of STAR CINEPLEX</h1>
<p>STAR CINEPLEX Multi screen Theaters offers Membership schemes to its loyal customers who wish to pre-book their tickets and seats, get discounts for Movies, Free Refreshments, receive advance information of upcoming movies and get free invitations to special events.</p>
</div>
</div>
</div>
<div class="col-lg-6">
<div class="main-slider">
<div class="slide-text">
<div id=reg>
<h2>Register</h2>
<div class="signup-form">
<form action="registration.php" method="POST">
<p class="hint-text">Create your account. It's free and only takes a minute.</p>
<div class="form-group">
<div class="row">
<div class="col-xs-6"><input type="text" class="form-control" name="first_name" placeholder="First Name" required="required" values="0"></div>
<div class="col-xs-6"><input type="text" class="form-control" name="last_name" placeholder="Last Name" required="required"></div>
</div>
</div>
<div class="form-group">
<input type="email" class="form-control" name="email" placeholder="Email" required="required">
</div>
<div class="form-group">
<input type="password" class="form-control" name="password" placeholder="Password" required="required">
</div>
<div class="form-group">
<input type="password" class="form-control" name="confirm_password" placeholder="Confirm Password" required="required">
</div>
<div class="form-group">
<input type="tel" pattern="[0][1][0-9]{9}"class="form-control" name="phone_number" placeholder="phone number" required="required">
</div>
<div class="form-group">
<label class="checkbox-inline"><input type="checkbox" required="required"> I accept the <a href="#">Terms of Use</a> & <a href="#">Privacy Policy</a></label>
</div>
<div class="form-group">
<button type="submit" name="button1" value="button1" class="btn btn-success btn-lg btn-block">Register Now</button>
</div>
</form>
<?php
if (isset($_POST['button1'])){
$conn=oci_connect("dbms","dbms","localhost/XE");
//when you have to sign up you have to take all posted information.
$f_name=$_POST["first_name"];
$l_name=$_POST["last_name"];
$email=$_POST["email"];
$pass=$_POST["password"];
$c_pass=$_POST["confirm_password"];
$phone=$_POST["phone_number"];
$temp=true;
$binary=strcmp($pass,$c_pass);
if($binary!=0){
$temp=false;
}
if(!$conn)
{
echo "fail";
}
else
{//echo "<h2 text-align: center> </h2>";
if($temp==true){
echo "true";
$message = 'http://localhost/302/inbetween.php?firstname='.$f_name.'&lastname='.$l_name.'&email='.$email.'&phone='.$phone.'&pass='.$pass;
$message="<a href='".$message."'>Click here to verify account</a>";
$receiver=$email;
include 'sendmail.php';
}
else{
echo "<script>alert('Password and Confirm password dont match!');
window.location.href='registration.php';
</script>";}
}}?>
<br> <br> <br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>