-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcreate_post.php
More file actions
105 lines (80 loc) · 2.93 KB
/
Copy pathcreate_post.php
File metadata and controls
105 lines (80 loc) · 2.93 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
94
95
96
97
98
99
100
101
102
103
104
105
<?php
//page title
$page_title = "Incedent Report";
//include libraries
include_once('lib/database.class.php');
include_once('lib/report.class.php');
$db = new database();
$report = new report($db->getConn());
?>
<?php include('_header.php'); ?>
<body>
<div class="container">
<h1><i class="fa fa-file-text-o" aria-hidden="true"></i> <?php echo $page_title; ?></h1>
<form id="new_incident" action="submit_post.php" method="POST" onkeypress="return event.keyCode != 13;">
<table class="table table-bordered table-hover">
<thead>
<tr>
<td colspan="4">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.</td>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">Title</th>
<td colspan="3"><input type='text' value='' class='form-control' name="title" id="example-text-input" /></td>
</tr>
<tr>
<th scope="row">Details</th>
<td><input type="text" class="form-control mbot-5" name="incidentdate" id="datetimepicker7" placeholder="02/04/88"> </td>
<!-- category -->
<td>
<select name="status" id="status" class="selectpicker form-control" data-style="btn-success" data-hide-disabled="true" data-live-search="true">
<optgroup disabled="disabled" label="disabled">
<option>Hidden</option>
</optgroup>
<optgroup label="status">
<?php
foreach($report->getStatus() as $row) {
$StatusID = $row['StatusID'];
$StatusName = $row['StatusName'];
?>
<option value="<?php echo $StatusID; ?>"> <?php echo $StatusName; ?> </option>
<?php } ?>
</optgroup>
</select>
</td>
<!-- severity -->
<td>
<select name="severity" id="severity" class="selectpicker " data-style="btn-info" >
<?php
foreach($report->getSeverity() as $row) {
$SeverityID = $row['SeverityID'];
$SeverityName = $row['SeverityName'];
?>
<option value="<?php echo $SeverityID; ?>"><?php echo $SeverityName; ?></option>
<?php } ?>
</select>
</td>
</tr>
<tr>
<th scope="row">Affected Devices / Services</th>
<td colspan="4">
<input type="text" id="tags" name="tags" value="Switch,Router,database" data-role="tagsinput">
</td>
</tr>
<tr>
<td colspan="4"><textarea id="textarea" name="textarea" id="textarea">Hello, World!</textarea></td>
</tr>
<tr>
<td colspan="3">
<button type="submit" class="mtop-5 btn btn-primary btn-lg btn-block">Submit</button>
</td>
<td colspan="3">
<button type="submit" class="mtop-5 btn btn-warning btn-lg btn-block">Clear</button>
</td>
</tr>
</table>
</form>
</div>
<!-- boot 3 for the 'bootstrap tags and dropdown' dependency -->
<?php include('_footer_boot3.php'); ?>