-
Notifications
You must be signed in to change notification settings - Fork 0
/
add_venue.php
127 lines (111 loc) · 3.66 KB
/
add_venue.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
<html>
<head>
<title>Add Venue</title>
<link rel="stylesheet" type="text/css" href="styles/style2.css" />
<link rel="stylesheet" href="styles/form_style.css" />
</head>
<body>
<div id="page">
<div id="header">
<div id="section">
<div><a href="teacher.php"><img src="images/logo.png" alt="" height="100px" width="350px"/></a></div>
<h1>
<span>DEPARTMENT OF CIVIL ENGINEERING
<h3 style="font-size:18px; text-align:center; color:white;">
<i>Schedule Information</i>
</h3>
</span>
</h1>
</div>
</div>
<ul id="menu">
<li style="margin-left:290px"><a href="index.html">Home</a></li>
<li><a href="#">Faculty</a>
<ul>
<li><a href="add_faculty.php">Add Faculty</a></li>
<li><a href="delete_faculty.php">Delete Faculty</a></li>
</ul>
</li>
<li><a href="#">Course</a>
<ul>
<li><a href="add_course.html">Add Course</a></li>
<li><a href="delete_course.html">Delete Course</a></li>
</ul>
</li>
<li><a href="#">Subject</a>
<ul>
<li><a href="add_subject.html">Add Subject</a></li>
<li><a href="delete_subject.html">Delete Subject</a></li>
</ul>
</li>
<li><a href="#">Venue</a>
<ul>
<li><a href="add_venue.html">Add Venue</a></li>
<li><a href="delete_venue.html">Delete Venue</a></li>
</ul>
</li>
<li><a href="#">Master Database</a>
<ul>
<li><a href="#">Set Session</a></li>
<li><a href="#">Create Master Database</a></li>
<li><a href="#">Delete Master Database</a></li>
<li><a href="#">Update Master Database</a></li>
</ul>
</li>
<li><a href="#">My Profile</a>
</li>
<li><a href="#">LogOut</a>
</li>
</ul>
<!-- _______________________Start of content Area_____________________________-->
<div id="content" style=" height:480px">
<form class="register" method="post">
Venue Name<sup>*</sup>
<input type="text" name="formvname" class="register-input" required > <br>
<input type="submit" value="Add Venue" name="add" class="register-button" style="margin-left: 160px">
</form>
</div>
<!-- _______________________End of Content Area_____________________________-->
<div id="footer">
<div>
<div id="connect"> <a href="#"><img src="images/icon-facebook.gif" alt="" /></a> <a href="#"><img src="images/icon-twitter.gif" alt="" /></a> <a href="#"><img src="images/icon-youtube.gif" alt="" /></a>
</div>
<div class="section">
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="about.html">About Us</a></li>
<li><a href="signup.html">Sign Up</a></li>
<li><a href="btech.html">B.Tech</a></li>
<li><a href="mtech.html">M.Tech</a></li>
<li class="last"><a href="contact_us.html">Contact us</a></li>
</ul>
<p>Copyright © <a href="mnnit.ac.in">MNNIT</a> - All Rights Reserved<br>
Developed & Maintained By : Chandan ,Man Singh, Nidhi & Sanu (MCA Team)
</p>
</div>
</div>
</div>
</div>
</body>
</html>
<?php
include("connection.php");
if( isset($_POST['add']) )
{
$vname = $_POST['formvname'];
$query = "insert into venue values ('$vname')";
if( !mysqli_query($conn,$query) )
{
echo "<script>";
echo "alert('Error during add Venue.')";
echo "</script>";
}
else
{
echo "<script>";
echo "alert('Venue inserted successfully.')";
echo "</script>";
}
}
?>