-
Notifications
You must be signed in to change notification settings - Fork 0
/
lan.php
176 lines (133 loc) · 5.52 KB
/
lan.php
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
169
170
171
172
173
174
175
176
<?php
session_start();
if(isset($_SESSION['fname'])&&isset($_SESSION['reg_id']))
{
$name=$_SESSION['fname'];
$phone=$_SESSION['phone'];
$id=$_SESSION['reg_id'];
require('connect.php');
date_default_timezone_set('Asia/Kolkata');
$date=date("Y-M-d");
$time = date('h:i:s a', time());
$task="Attempt for LAN Gaming Registration";
$log="Insert into log values('$id','$task','$date','$time')";
$log_query=$conn->query($log);
}
else
{
session_destroy();
header('location:login.php');
}
?>
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>LAN Gaming</title>
<link rel="icon" href="img/favicon.png">
<link rel="stylesheet" href="css/components.css">
<link rel="stylesheet" href="css/icons.css">
<link rel="stylesheet" href="css/responsee.css">
<link rel="stylesheet" href="owl-carousel/owl.carousel.css">
<link rel="stylesheet" href="owl-carousel/owl.theme.css">
<link rel="stylesheet" href="css/lightcase.css">
<!-- CUSTOM STYLE -->
<link rel="stylesheet" href="css/template-style.css">
<link href="https://fonts.googleapis.com/css?family=Poppins:100,200,300,400,700,900&subset=latin-ext" rel="stylesheet">
<script type="text/javascript" src="js/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="js/jquery-ui.min.js"></script>
<script type="text/javascript">
function check(){
if(document.getElementById("game").value==0)
{
alert("Select Game");
document.getElementById("game").focus();
return false;
}
return true;
}
</script>
</head>
<body class="size-1280">
<!-- PREMIUM FEATURES BUTTON -->
<a target="_blank" class="hide-s" href="../template/virtua-premium-responsive-business-template/" style="position:fixed;top:120px;right:-14px;z-index:10;"><img src="img/premium-features.png" alt=""></a>
<!-- HEADER -->
<?php
include('header_logged.php');
?>
<!-- MAIN -->
<main role="main">
<article>
<!-- Header -->
<header class="section background-image text-center" style="background-image:url(img/img-05.jpg)">
<h1 class="animated-element slow text-extra-thin text-white text-s-size-30 text-m-size-40 text-size-50 text-line-height-1 margin-bottom-30 margin-top-130">
LAN Gaming Registration <br>
PUBG & NFS
</h1>
<!-- white full width arrow object -->
<img class="arrow-object" src="img/arrow-object-white.svg" alt="">
</header>
<!-- Section 1 -->
<section class="section-small-padding background-white text-center">
<div class="line">
<h2 class="text-dark text-size-50 text-m-size-40"><i class="icon-pen text-primary text-size-40 text-line-height-1"></i> Please fill the form Carefully</h2>
</div>
</section>
<!-- Section 3 -->
<section class="section background-dark">
<div class="s-12 m-12 l-4 center">
<h3 class="text-size-30 margin-bottom-40 text-center"><b>Registration Form</b><p style="color:white;">Fee Rs 100/- Per Person<br>PUBG & NFS</p></h3>
<form class="customform text-white" method="post" onsubmit="return check();" action="event_reg.php" enctype="multipart/form-data">
<div class="line"><div class="margin"><div class="s-12">
<select name="game" id="game" required>
<option value="0" selected disabled>Select Game</option>
<option>PUBG</option>
<option>NFS</option>
</select>
</div>
</div>
</div>
<div class="line">
<div class="margin">
<div class="s-12 m-12 l-6">
<input type="text" value="<?php echo $name; ?>" disabled required />
</div>
<div class="s-12 m-12 l-6">
<input value="<?php echo $phone; ?>" type="number" name="phone" disabled required />
<input type="text" value="LAN" name="category" hidden>
</div>
</div>
</div>
<?php
$event="LAN Gaming";
$check = "select * from event_reg where reg_id='$id' && event='$event'";
$res=$conn->query($check);
$conn->close();
if($res->num_rows>0)
{
echo '<p style=" text-align:center; background-color:green;">Registered</p>';
}
else
echo '<div class="line"><div class="margin"><div class="s-12"><button class="button border-radius background-primary" name="pay" type="submit">Pay Now</button></div></div></div>';
?>
</div>
</form>
</div>
</section>
</article>
</main>
<script>
$(document).bind("contextmenu",function(e){
e.preventDefault();
});
$(document).keydown(function(e){
if(e.which===123)
{
return false;
}
});
</script>
<?php
include('footer_logged.php');
?>