-
Notifications
You must be signed in to change notification settings - Fork 0
/
analysis.html
112 lines (106 loc) · 7.2 KB
/
analysis.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>TTAssist</title>
<link rel="icon" type="image/x-icon" href="images/TTAssistLogo.png"/>
<link rel="stylesheet" href="CSS/Style.css">
<link rel="apple-touch-icon" sizes="57x57" href="images/Icon-57.png">
<link rel="apple-touch-icon" sizes="60x60" href="images/Icon-60.png">
<link rel="apple-touch-icon" sizes="72x72" href="images/Icon-72.png">
<link rel="apple-touch-icon" sizes="76x76" href="images/Icon-76.png">
<link rel="apple-touch-icon" sizes="114x114" href="images/Icon-114.png">
<link rel="apple-touch-icon" sizes="120x120" href="images/Icon-120.png">
<link rel="apple-touch-icon" sizes="144x144" href="images/Icon-144.png">
<link rel="apple-touch-icon" sizes="152x152" href="images/Icon-152.png">
<link rel="apple-touch-icon" sizes="180x180" href="images/Icon-180.png">
<script src="JS/libraries/p5.min.js"></script>
<script src="JS/Script.js"></script>
<script src="JS/subjects.js"></script>
<script src="JS/teachers.js"></script>
<script src="JS/classes.js"></script>
<script src="JS/analysis.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="TTAssist is a timetabling assistive tool." />
</head>
<body id="top" onload="analysisStart()">
<nav class="nav" id="nav">
<ul>
<li>
<a href='timetable.html'>Timetable</a>
</li>
<li>
<a href='subjects.html'>Subjects</a>
</li>
<li>
<a href='teachers.html'>Teachers</a>
</li>
<li>
<a href='classes.html'>Classes</a>
</li>
<li id="navActive">
<a href='analysis.html'>Analysis</a>
</li>
</ul>
</nav>
<div class="analysisPage mainPage">
<form>
<label for="subFile">Upload Subjects File. Don't forget to press the "Add Subjects" button once you have selected your file. : </label>
<input type="file" id="subFile" name="uploadSub" accept=".csv">
<button type="button" id="checkItSub" name="uploadSub" value="uploadSub">Add Subjects</button>
<br>
<br>
<label for="teacherFile">Upload Teacher File. Don't forget to press the "Add Teachers" button once you have selected your file. : </label>
<input type="file" id="teacherFile" name="uploadTeacher" accept=".csv">
<button type="button" id="checkItTeacher" name="uploadTeacher" value="uploadTeacher">Add Teachers</button>
<br>
<br>
<label for="classesFile">Upload Classes File. Don't forget to press the "Add Classes" button once you have selected your file. : </label>
<input type="file" id="classesFile" name="uploadClasses" accept=".csv">
<button type="button" id="checkItClasses" name="uploadClasses" value="uploadClasses">Add Classes</button>
<br>
<p class="hide invalidFile" id="invalidFile">Sorry this is an invalid file type, please upload a valid csv file from this software.</p>
<p class="hide invalidHeaders" id="invalidHeaders">Sorry, this doesn't seem to the the right file, please ensure you are using a file based upon the templates provided.</p>
<p class="hide invalidContents" id="invalidContents">Sorry, it seems that one or more of your data rows is incomplete. Please either try to upload another file, or check the values below against expected outcomes, correct and save file again.</p>
<p class="hide invalidRow" id="invalidRow">Sorry, it seems that one or more of your data rows has produced an error. Please check the error messages below the user input for more information, try to upload another file, or check the values below against expected outcomes, correct and save file again.</p>
<p class="hide periodsDontMatch" id="periodsDontMatch">Sorry, it seems your file has blocks with bands that have different numbers of periods in the bands. Please check that all classes within bands within a block add up to the same number of periods and try again. Check the table below for the problem block(s).</p>
<br>
<p class="hide shortInput" id="shortInput">Sorry, you don't appear to have completed all required fields for some rows, please check this file in the appropriate page of this software, resolve the issue(s), resave the file and try again.</p>
<p class="hide notAlphaNum" id="notAlphaNum">Sorry, one or more of your codes is invalid, please check this file in the appropriate page of this software, resolve the issue(s), resave the file and try again.</p>
<p class="hide alreadyAdded" id="alreadyAdded">Sorry, one or more rows in this file has a duplicated value, please check this file in the appropriate page of this software, resolve the issue(s), resave the file and try again.</p>
<br>
<br>
<br>
<p>Once you have uploaded all above files. Check if you have enough specialist staffing for the classes you plan. White row subjects are under-staffed, navy row subjects are over staffed.</p>
<p>Initial analysis :</p>
<button type="button" id="mainSubjects" name="mainSubjects" value="mainSubjects" class="mainSubjects">Main Subjects</button>
<p class="hide noSubjects" id="noSubjects">Sorry, it seems you haven't uploaded a valid Subjects file. Please upload a valid Subjects csv file from this software in the area above, click the "Add Subjects" button, then try again.</p>
<p class="hide noTeachers" id="noTeachers">Sorry, it seems you haven't uploaded a valid Teachers file. Please upload a valid Subjects csv file from this software in the area above, click the "Add Teachers" button, then try again.</p>
<p class="hide noClasses" id="noClasses">Sorry, it seems you haven't uploaded a valid Classes file. Please upload a valid Subjects csv file from this software in the area above, click the "Add Classes" button, then try again.</p>
<br>
<br>
<table id="mainTable" ></table>
<br>
<br>
<p class="secondarySubjects hide">Once you have uploaded all above files. Check if you have enough specialist staffing for the classes you plan. Secondary analysis :</p>
<button type="button" id="secondarySubjects" name="secondarySubjects" value="secondarySubjects" class="secondarySubjects hide">Secondary Subjects</button>
<br class="secondarySubjects hide">
<p class="secondarySubjects hide" id="noInitial">Sorry, you don't seem to have run the initial analysis. Please run the initial analysis above and try again.</p>
<br class="secondarySubjects hide">
<br class="secondarySubjects hide">
<table id="secondaryTable" class="secondarySubjects hide"></table>
<br class="secondarySubjects hide">
<br class="secondarySubjects hide">
<p class="secondarySubjects hide">Teacher Swaps. Note, this is not necessarily the only way to staff the timetable, just a guide as to how it could be done. :</p>
<br class="secondarySubjects hide">
<table id="teacherSwaps" class="secondarySubjects hide"></table>
<br class="secondarySubjects hide">
<br class="secondarySubjects hide">
<label class="secondarySubjects hide" for="save">To save these swaps : </label>
<button type="button" id="save" name="save" value="Save" class="secondarySubjects hide">Save</button>
<br class="secondarySubjects hide">
<p class="secondarySubjects hide">If this is not as expected, please amend one or more of your input files and try again.</p>
</form>
</div>
</body>
</html>