-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathchangelogo.php
70 lines (67 loc) · 1.93 KB
/
changelogo.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
<?php
include("header.php");
include("connection.php");
$dt = date("Y-m-d");
if(isset($_POST[publish]))
{
$sql="INSERT INTO updates(title,descr, date,time,type)
VALUES
('$_POST[title]','$_POST[description]','$_POST[date]','$_POST[time]','$_POST[type]')";
if (!mysqli_query($con,$sql,$con))
{
die('Error: ' . mysqli_error($con));
}
$publish = $_POST[type] . " Published successfully...";
}
?>
<div id="main">
<div id="content" class="left">
<div class="highlight">
<h3>Admin profile</h3>
<strong><a href="viewnews.php">View News</a></strong>
<form action="" method="post" enctype="multipart/form-data" name="form1" id="form1">
<p> <?php echo $publish ; ?></p>
<table width="450" border="0">
<tr>
<td width="186">Update Logo</td>
<td width="254"><label for="fileField"></label>
<input type="file" name="fileField" id="fileField" /></td>
</tr>
<tr>
<td><label for="institutetype3">Update Contact Details</label></td>
<td><select name="type" id="type">
</select></td>
</tr>
<tr>
<td colspan="2"><textarea name="description" id="description" cols="45" rows="5"></textarea></td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td colspan="2"><input type="submit" name="Update" id="Update" value="Update" /></td>
</tr>
</table>
</form>
<p> </p>
</div>
<div class="projects">
<div class="item"></div>
<div class="item">
<div class="cl"> </div>
</div>
</div>
</div>
<?php
include("sidebar.php");
?>
<div class="cl"> </div>
</div>
<div class="shadow-l"></div>
<div class="shadow-r"></div>
<div class="shadow-b"></div>
</div>
<?php
include("footer.php");
?>