-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpostnotice.php
63 lines (59 loc) · 2.44 KB
/
postnotice.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
<?php
session_start();
if(isset($_SESSION['chem_user']))
{
$id=$_SESSION['chem_user'];
include('db.php');
error_reporting(0);
?>
<?php include("header.php"); ?>
<script type="text/javascript" src="assets/js/ckeditor/ckeditor.js"></script>
<div class="well" align="center" style="width: 80%;margin-left: 10%;">
<form action="noticesent.php" method="POST" enctype="multipart/form-data">
<div class="form-group">
<label for="type">Notice Type</label><br>
<select style="width: 52%;height:30px;" name="notype" id="notype" class="form-control" required>
<option value="notice">General Notice</option>
<option value="cdpc">CDPC</option>
<option value="event">Event</option>
</select>
</div>
<div class="form-group">
<label for="title">Post Title</label>
<input type="text" class="form-control" placeholder="title" style="width: 52%;" id="title" name='title' required>
</div>
<div class="form-group">
<label> Your Descripion Here</label><br>
<textarea class="form-control" type="textarea" id="message" name="body" rows="7" cols="50" style="width: 52%;" placeholder="Type your Descripion here...." required></textarea>
</div>
<div class="form-group">
<label for="sentto">Send To</label><br>
<select style="width: 52%;height:30px;" name="sendto" class="form-control" required>
<option value="E2-CH-01">E2-CH-01</option>
<option value="E3-CH-01">E3-CH-01</option>
<option value="E3-CH-02">E3-CH-02</option>
<option value="E4-CH-01">E4-CH-01</option>
<option value="ALL">ALL</option>
</select>
</div>
<div class="form-group">
<label>File Upload:</label>
<input type="file" class="form-control" style="width: 52%" name='file' id="uploaded" />
</div>
<!--iv class="form-group">
<label> upload Attachment</label><br>
<input type="file" class="form-control" id="file" name="files" multiple="multiple" style="width: 52%;"></div>-->
<button type="submit" class="btn btn-info" name="submit">Submit</button>
</form></div>
<script>
// Replace the <textarea id="editor1"> with a CKEditor
// instance, using default configuration.
CKEDITOR.replace( 'message' );
</script>
<?php include("footer1.php"); ?>
<?php
}
else{
header("Location:index.php");
}
?>