-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathteam_reg.php
More file actions
executable file
·95 lines (68 loc) · 2.28 KB
/
Copy pathteam_reg.php
File metadata and controls
executable file
·95 lines (68 loc) · 2.28 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
<?php
//require_once("chkcat.php");
require_once("dbconn.php");
require_once("include.php");
require_once 'ckeckcat.php';
$cat_id= $_SESSION['cat_id'];
$cat_name= $_SESSION['cat_name'];
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Revels 2012 | Event Registration</title>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<?php linker();?>
</head>
<body>
<div id="body_free">
<div id="body_cover_free">
<?php include_header();?>
<?php include_bar();?>
<div id="body_rest_free">
<?php
if(isset($_GET['team_members']))
{ extract($_POST);
$team_members=$_GET['team_members'];
if($team_members>100)
{
echo "<br/><center><b>Can't Add More than 100 team members</b></center><br/>";
}
else
{
$quer="SELECT * FROM `tblEvents` where cat_id ='$cat_id'";
$resul = mysqli_query($conn,$quer) or die("Unable to get maximum participants");
while($rows = mysqli_fetch_assoc($resul))
{
extract($rows);
}
echo '<br/><div id="mam_login">
<div class="mam_login_container">
<span class="mam_login_top">'.$cat_name.'</span>
<form action="submit.php" method="POST">';
echo "<br/><center><b>No of Team Members = ".$team_members."</b></center><br/>";
echo "<br/>";
$n=$team_members;
for($i=0;$i<$n;$i++)
{
echo '<span class="login_field">Delegate Card No. Of Member '.($i+1).' </span><input type="text" name="del_card_no[]" autocomplete="off" required></input>';
}
echo '<br/><button type="submit" class="loginbutton">Submit</button></form></div><br/>
</div>';
}
}
else {
echo '<br/><div class="revels_teamreg_r"><form action="team_reg.php" method="GET">';
$query="SELECT * FROM revels.`tblEvents` where cat_id ='$cat_id'";
$res = mysqli_query($conn,$query) or die("Unable to get event list");
echo '<br/><center><b>Enter Number Of Participants:</b></center><br/><center><input type="text" id = "team_members"name="team_members" autocomplete="off" required></input></center><br/>';
echo '</center><br/><center><button type="submit">Go</button></center>
</form></div>';
}
?>
</div>
<?php footer();?>
</div>
</div>
</body>
</html>