-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCreateEvent.php
More file actions
81 lines (62 loc) · 2.39 KB
/
CreateEvent.php
File metadata and controls
81 lines (62 loc) · 2.39 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
<?php session_start(); ?>
<!DOCTYPE html>
<html lang="en">
<head >
<style>
body {
background-image: url("images/operared3.jpg");
background-repeat: no-repeat ;
background-size: 100% 100%;
}
</style>
<?php include("head.php") ?>
<title>Create New Event</title>
</head>
<body >
<?php include("navbar.php"); ?>
<!-- FORM!!!! -->
<br>
<h1 class=" " style="color :white ;padding-left:1%"></h1>
<br>
<div>
<form action="CreateEventphp.php" method="post" enctype="multipart/form-data" style="border: 2px solid white;border-radius: 8px;padding-top: 1%; padding-left:1% ;padding-right:1% ;width:460px; margin-right:auto; margin-left:auto; ;background-color:#FFFFFF;background-size: 100%">
<div class="form-group">
<label for="exampleInputEmail1">Event Name</label>
<input required type="text" name="EventName" style="" class="form-control" id="exampleInputEmail1" aria-describedby="emailHelp" placeholder="Enter event name">
</div>
<div class="form-group">
<label for="exampleTextarea">Description</label>
<textarea required class="form-control" name="Description" style="" id="exampleTextarea" rows="3" placeholder="Enter event's full description and details"></textarea>
</div>
<div class="form-group">
<label for="exampleSelect1">Select Hall</label>
<select class="form-control" name="SelectHall" style="" id="exampleSelect1">
<?php
$con=mysql_connect("localhost","root","");
mysql_select_db("Opera",$con);
$sql = mysql_query("SELECT hname from hall",$con);
while ($row = mysql_fetch_array($sql)){
echo "<option value=\"". $row['hname'] ."\">" . $row['hname'] . "</option>";
}
?>
</select>
</div>
<div class="form-group">
<label for="example-datetime-local-input" class=" col-form-label">Date and time</label>
<div >
<input required class="form-control" type="datetime-local" name="Date" style="" value="2016-12-31T19:00:00" id="example-datetime-local-input">
</div>
<br>
<div class="form-group">
<label for="exampleInputFile">Upload Event Poster</label>
<input required type="file" name="EventPoster" class="form-control-file" id="exampleInputFile" aria-describedby="fileHelp">
</div>
<br>
<button type="submit" name="Submit" class="btn btn-primary">Add Event</button>
</div>
</form>
<hr>
<!-- FOOTER -->
<?php include("footer.php"); ?>
</body>
</html>