-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathPrototype Code 4.html
More file actions
297 lines (283 loc) · 14.1 KB
/
Copy pathPrototype Code 4.html
File metadata and controls
297 lines (283 loc) · 14.1 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
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
<!DOCTYPE html>
<html lang="en">
<head>
<title>Helpdesk Prototype Team 11</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script>
function loadProblem(n){
document.getElementById("probListTab").className = "unset";
document.getElementById("viewProbTab").className += " active";
document.getElementById("problemList").className = "tab-pane";
document.getElementById("loadProblem").className = "tab-pane active";
document.getElementById("caller1").focus();
document.activeElement.value = n;
}
function hideOption()
{
if(document.getElementById("hardware/software").selectedIndex == 1)
{
document.getElementById("softwareLicence").style.display = "unset";
document.getElementById("softwareLicenceLabel").style.display = "unset";
document.getElementById("softwareSupport").style.display = "unset";
document.getElementById("softwareSupportLabel").style.display = "unset";
document.getElementById("softwareLabel").style.display = "unset";
document.getElementById("software").style.display = "unset";
document.getElementById("softwareIdLabel").style.display = "unset";
document.getElementById("softwareId").style.display = "unset";
document.getElementById("hardware").style.display = "none";
document.getElementById("hardwareLabel").style.display = "none";
document.getElementById("hardwareSerial").style.display = "none";
document.getElementById("hardwareSerialLabel").style.display = "none";
}
if(document.getElementById("hardware/software").selectedIndex == 0)
{
document.getElementById("hardwareSerial").style.display = "unset";
document.getElementById("hardwareSerialLabel").style.display = "unset";
document.getElementById("hardwareLabel").style.display = "unset";
document.getElementById("hardware").style.display = "unset";
document.getElementById("software").style.display = "none";
document.getElementById("softwareLabel").style.display = "none";
document.getElementById("softwareId").style.display = "none";
document.getElementById("softwareIdLabel").style.display = "none";
document.getElementById("softwareLicence").style.display = "none";
document.getElementById("softwareLicenceLabel").style.display = "none";
document.getElementById("softwareSupport").style.display = "none";
document.getElementById("softwareSupportLabel").style.display = "none";
}
}
</script>
<style>
.container-fluid{
display:flex;
margin: 0 -15px;
}
.nav.nav-pill.nav-stacked{
width:15%
}
#main-content{
width:85%;
padding:0 15px;
}
.spacer{
height: 25px;
}
</style>
</head>
<body>
<!-- First layer of tabs -->
<div class="container-fluid" id="container">
<ul class="nav nav-pills nav-stacked" id="navigation-bar">
<li class="active"><a data-toggle="pill" href="#home">Home</a></li>
<li ><a data-toggle="pill" href="#add">New Problem</a></li>
<li><a data-toggle="pill" href="#problems">Problems List</a></li>
<li><a data-toggle="pill" href="#specialists">Specialists List</a></li>
<li><a data-toggle="pill" href="#equipment">Hardware/Software List</a></li>
</ul>
<!-- First layer of tabs content -->
<div class="tab-content">
<!-- Add Project Tab -->
<div if="home" class="tab-pane fade in active">
<h3>Home</h3>
Welcome to The Heldesk Prototype.
</div>
<div id="add" class="tab-pane fade">
<!-- Second layer of tabs- horizontal ones inside the add project tab -->
<ul class="nav nav-tabs">
<li class="active"><a href="#required" data-toggle="tab">Required Information</a></li>
<li><a href="#additional" data-toggle="tab">Additional Information</a></li>
<li><a href="#description" data-toggle="tab">Problem Description</a></li>
</ul>
<!-- Second layer of tabs content -->
<div class="tab-content" id="main-content">
<div id="required" class="tab-pane active">
<!--Form with mandatory text boxes for entry -->
<form>
<div class="form-group">
<label for="caller">Caller Name</label>
<input type="text" class="form-control" id="caller" placeholder="Joe Bloggs">
<label for="operator">Helpdesk Operator Name</label>
<input type="text" class="form-control" id="operator" placeholder="Alice Smith">
<label for="time">Call Time/Date</label>
<input type="text" class="form-control" id="time" placeholder="06/11/2017 18:50">
<label for="serial">Reason for Call</label>
<input type="text" class="form-control" id="reason" placeholder="Printer is not Working...">
<label for="hardware/software">Hardware/Software</label>
<select class="form-control" id="hardware/software" placeholder="Hardware or Software problem" onchange="hideOption()">
<option>Hardware</option>
<option>Software</option>
</select>
<label for="hardware" id="hardwareLabel">Hardware Affected</label>
<input type="text" class="form-control" id="hardware" placeholder="Kodak Printer">
<label for="software" id="softwareLabel" style="display:none">Software Affected</label>
<input type="text" class="form-control" id="software" placeholder="Photoshop" style="display:none">
<label for="reason">Operating System</label>
<input type="text" class="form-control" id="os" placeholder="Windows/Mac OS/Linux">
<label for="type">Problem Type</label>
<input type="text" class="form-control" id="type" placeholder="Please select most appropriate">
<div class="spacer"></div>
<button id="firstPageSubmit" type="submit" class="btn btn-default">Submit</button>
</div>
</form>
</div>
<!--Form with non-mandatory text boxes for entry, fillable later in editing -->
<div id="additional" class="tab-pane">
<form>
<div class="form-group">
<label for="callerId">Caller ID</label>
<input type="text" class="form-control" id="callerId" placeholder="Joe Bloggs">
<label for="callerJob">Caller Job</label>
<input type="text" class="form-control" id="callerJob" placeholder="Programmer">
<label for="callerDept">Caller Department</label>
<input type="text" class="form-control" id="callerDept" placeholder="Sales">
<label for="CallerTelNum">Caller Telephone Number</label>
<input type="text" class="form-control" id="callerTelNum" placeholder="07829473628">
<label for="hardwareSerial" id="hardwareSerialLabel">Hardware Serial Number</label>
<input type="text" class="form-control" id="hardwareSerial" placeholder="C-40392-B">
<label for="softwareId" id="softwareIdLabel" style="display:none">Software ID</label>
<input type="text" class="form-control" id="softwareId" placeholder="Photoshop" style="display:none">
<label for="softwareLicence" id="softwareLicenceLabel" style="display:none">Software Licenced?</label>
<select class="form-control" id="softwareLicence" placeholder="Select an option" style="display:none">
<option>Yes</option>
<option>No</option>
</select>
<label for="softwareSupport" id="softwareSupportLabel" style="display:none">Software Supported?</label>
<select class="form-control" id="softwareSupport" placeholder="Select an option" style="display:none">
<option>Yes</option>
<option>No</option>
</select>
<label for="specialistId" id="specialistIdLabel">Assigned Specialist ID</label>
<input type="text" class="form-control" id="specialistId" placeholder="S10987">
<label for="specialistName" id="specialistNameLabel">Assigned Specialist Name</label>
<input type="text" class="form-control" id="specialistName" placeholder="John Peters">
<div class="spacer"></div>
<button id="secondPageSubmit" type="submit" class="btn btn-default">Submit</button>
</div>
</form>
</div>
<!-- Final New Problem Tab for entering description, available on selecting problem from list -->
<div id="description" class="tab-pane">
<form>
<div class="form-group">
<label for="problemDesc" id="problemDescLabel">Problem Description</label>
<input type="textarea" rows="1000" cols="1000" class="form-control" id="problemDesc" placeholder="Please enter a description of the problem">
<div class="spacer"></div>
<button id="thirdPageSubmit" type="submit" class="btn btn-default">Submit</button>
</div>
</form>
</div>
</div>
<!-- The other vertical tabs -->
</div>
<div id="problems" class="tab-pane fade">
<ul class="nav nav-tabs">
<li class="active" id="probListTab"><a href="#problemList" data-toggle="tab">Problems List</a></li>
<li id="viewProbTab"><a href="#loadProblem" data-toggle="tab">View Problem</a></li>
</ul>
<!-- Second layer of tabs content -->
<div class="tab-content" id="main-content">
<div id="problemList" class="tab-pane active">
<!--Form with mandatory text boxes for entry -->
<h3>Problems List</h3>
<p>Table/List of Problems with Problem ID, Caller Name/ID, Helpdesk Name/ID, Call Time, Status (Unassigned, Pending, Solved) When clicked on opens window with all information from forms not listed including completion time if completed</p>
<table class="table table-hover">
<thead>
<tr>
<th>Problem ID</th>
<th>Date/Time opened</th>
<th>Name/ID of initial caller</th>
<th>Name/ID of helpdesk operator</th>
<th>Hardware/Software</th>
<th>Problem Type</th>
<th>Specialist Assigned</th>
<th>Date/Time of Solution</th>
<th>Name of Solver</th>
<th>Status</th>
</tr>
</thead>
<tbody>
<tr onclick="loadProblem('Sean Murphy');" class="success">
<td class="problemID" id="123">123</td>
<td>5/11/17 8.55am</td>
<td>Sean Murphy</td>
<td>Alice</td>
<td>Hardware</td>
<td>Printing</td>
<td>Dean Fume</td>
<td>5/11/17 9.37am</td>
<td>Dean Fume</td>
<td>Solved</td>
</tr>
<tr onclick="loadProblem('Billy Squier')" class="danger">
<td class="problemID" id="124">124</td>
<td>5/11/17 9.20am</td>
<td>Billy Squier</td>
<td>Alice</td>
<td>Hardware</td>
<td>Printing Jam</td>
<td>Ray Parker Jr.</td>
<td>N/A</td>
<td>N/A</td>
<td>Pending</td>
</tr>
</tbody>
</table>
</div>
<!--Form with non-mandatory text boxes for entry, fillable later in editing -->
<div id="loadProblem" class="tab-pane">
<p></p>
<form>
<div class="form-group">
<label for="caller">Caller Name</label>
<input type="text" class="form-control" id="caller1" placeholder="Joe Bloggs">
<label for="operator">Helpdesk Operator Name</label>
<input type="text" class="form-control" id="operator1" placeholder="Alice Smith">
<label for="time">Call Time/Date</label>
<input type="text" class="form-control" id="time1" placeholder="06/11/2017 18:50">
<label for="serial">Reason for Call</label>
<input type="text" class="form-control" id="reason1" placeholder="Printer is not Working...">
<label for="hardware/software">Hardware/Software</label>
<select class="form-control" id="hardware/software1" placeholder="Hardware or Software problem" onchange="hideOption()">
<option>Hardware</option>
<option>Software</option>
</select>
<label for="hardware" id="hardwareLabel1">Hardware Affected</label>
<input type="text" class="form-control" id="hardware1" placeholder="Kodak Printer">
<label for="software" id="softwareLabel1" style="display:none">Software Affected</label>
<input type="text" class="form-control" id="software1" placeholder="Photoshop" style="display:none">
<label for="reason">Operating System</label>
<input type="text" class="form-control" id="os1" placeholder="Windows/Mac OS/Linux">
<label for="type">Problem Type</label>
<input type="text" class="form-control" id="type1" placeholder="Please select most appropriate">
<div class="spacer"></div>
<button id="firstPageSubmit1" type="submit" class="btn btn-default">Submit</button>
</div>
</form>
</div>
</div>
</div>
<div id="specialists" class="tab-pane fade">
<h3>Specialists</h3>
<p>Table/List of Specialists with Specialist ID, Specialism, No. Current Problems, No. Completed Problems, Personnel ID</p>
</div>
<div id="equipment" class="tab-pane fade">
<!-- Hardware and Software tabs -->
<ul class="nav nav-tabs">
<li class="active"><a href="#hardwareTab" data-toggle="tab">Hardware</a></li>
<li><a href="#softwareTab" data-toggle="tab">Software</a></li>
</ul>
<!-- Hardware and Software tab content -->
<div class="tab-content" id="main-content">
<div id="hardwareTab" class="tab-pane active">
Table/list of hardware with Hardware ID, Hardware Type, Make, Serial No., Personnel ID
</div>
<div id="softwareTab" class="tab-pane active">
Table/List of software with Software ID, Software Type, Licenced, Supported, Personnel ID
</div>
</div>
</div>
</div>
</div>
</body>
</html>