-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexceptions_main.php
More file actions
177 lines (93 loc) · 7.89 KB
/
exceptions_main.php
File metadata and controls
177 lines (93 loc) · 7.89 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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
?>
<br /><br /><div id="content">
<div class="row">
<div class="col-sm-3">
<!--XXXXXXXXXXXXXXXXXXX TABLE Exception flags XXXXXXXXXX -->
<div id="exceptions-tables-flags" class="admin-exceptions-other dynamic">
<input id='ex-flag' type="button" data-toggle="modal" data-target="#myModal-exception-flag" title="Add New" class="removeButton" value="+"/>
<table class="table table-striped_">
<caption><center><h3>Exception flags(<?php echo count($exceptionFlags); ?>)</h3></center></caption>
<thead>
<tr>
<th>Description</th>
<th>Active</th>
<th> </th>
</tr>
</thead>
<tbody>
<?php if(!$exceptionFlags){
echo "<tr><td colspan='2'><center>No Data Available</center></td></tr>";
}else{
foreach ($exceptionFlags as $row){ ?>
<tr>
<td><input size="10" maxlength="20" title="Click here to edit - Max 20 chars" readonly type="text" class="ex-flag-desc" id="<?php echo $row->exceptionflagid; ?>" value="<?php echo htmlentities($row->exceptionflagdescription); ?>"></td>
<td>
<select id="<?php echo $row->exceptionflagid;?>" class="ex-flag-yesno" >
<option value="0" <?php if($row->exceptionflagactive==0){echo "selected";}?> >No</option>
<option value="1" <?php if($row->exceptionflagactive==1){echo "selected";}?> >Yes</option>
</select>
</td>
<td title="Delete flag" id="<?php echo $row->exceptionflagid; ?>" class="ex-flag-delete glyph glyphicon glyphicon-trash"></td>
</tr>
<?php }};?>
</tbody>
</table>
</div>
<!--XXXXXXXXXXXXXXXXXXX TABLE Exception categories XXXXXXXXXX -->
<div id="exceptions-tables-categories" class="admin-exceptions-other dynamic">
<input id='ex-category' type="button" data-toggle="modal" data-target="#myModal-exception-cat" title="Add New" class="removeButton" value="+"/>
<table class="table table-striped_">
<caption><center><h3>Exception Categories(<?php echo count($exceptionCategories); ?>)</h3></center></caption>
<thead>
<tr>
<th>Category Description</th>
<th> </th>
<th> </th>
</tr>
</thead>
<tbody>
<?php if(!$exceptionCategories){
echo "<tr><td colspan='2'><center>No Data Available</center></td></tr>";
}else{
foreach ($exceptionCategories as $row){ ?>
<tr>
<td><input size="10" maxlength="20" readonly title="Click here to edit - Max 20 chars" type="text" class="ex-cat-desc" id="<?php echo $row->exceptioncategoryid; ?>" value="<?php echo htmlentities($row->exceptioncategorydescription); ?>"></td>
<td title="Delete Category" id="<?php echo $row->exceptioncategoryid; ?>" class="ex-cat-delete glyph glyphicon glyphicon-trash"></td>
</tr>
<?php }};?>
</tbody>
</table>
</div>
<div id="sev-switch" class="admin-exceptions-other-sev-switch dynamic">
Exception Severity:
<input type="radio" class="sev-switch-setting" name="sev-switch" id="1" <?php echo ($exceptionSeverity_value =='1' )? 'checked' : ''; ?> value="1"> On
<input type="radio" class="sev-switch-setting" name="sev-switch" id="0" <?php echo ($exceptionSeverity_value =='0')? 'checked' : ''; ?> value="0"> Off
</div>
<!--XXXXXXXXXXXXXXXXXXX TABLE Exception severity XXXXXXXXXX -->
<div id="exceptions-tables-severity" class="admin-exceptions-other dynamic">
<input id='ex-severity' type="button" data-toggle="modal" data-target="#myModal-exception-sev" title="Add New" class="removeButton" value="+"/>
<table class="table table-striped_">
<caption><center><h3>Exception Severity(<?php echo count($exceptionSeverity); ?>)</h3></center></caption>
<thead>
<tr>
<th>Severity Value</th>
<th> </th>
</tr>
</thead>
<tbody>
<?php if(!$exceptionSeverity){
echo "<tr><td colspan='1'><center>No Data Available</center></td></tr>";
}else{
foreach ($exceptionSeverity as $row){ ?>
<tr>
<td><input size="10" maxlength="20" readonly title="Click here to edit - Max 20 chars" type="text" class="ex-sev-desc" id="<?php echo $row->exceptionseverityid; ?>" value="<?php echo htmlentities($row->exceptionseverityvalue); ?>"></td>
<td title="Delete Severity" id="<?php echo $row->exceptionseverityid; ?>" class="ex-sev-delete glyph glyphicon glyphicon-trash"></td>
</tr>
<?php }};?>
</tbody>
</table>
</div>
</div>
<!-- CONTINUES WITH VIEW exceptions_main_global -->