Commit 12ded5f5 authored by Saikiran Srirangapalli's avatar Saikiran Srirangapalli

Merge branch 'master' of gitlab.com:asobhi/GAS-gui into response

parents e243a147 63346db3
function addClass() {
var newClass = document.getElementById("classes").value;
var classes = document.getElementById("classesTaken").value;
classes = classes.concat(newClass);
document.getElementById("classesTaken").value = classes + ",";
}
function degreeSelectHandler(degree) {
var yearList = document.getElementById('YearList');
var specializationList = document.getElementById('SpecializationOfDegree');
removeOptions(yearList);
removeOptions(specializationList);
if(degree.value == 'bio') {
addOption("2015","2015",yearList);
addOption("None","none",specializationList);
}
else if (degree.value=='cs') {
addOption("2014","2014",yearList);
addOption("2015","2015",yearList);
addOption("None","none",specializationList);
}
else if(degree.value == 'math') {
addOption("2015","2015",yearList);
addOption("None","none",specializationList);
addOption("Applied","applied",specializationList);
addOption("Mathematics","mathematics",specializationList);
addOption("Statistics","statistics",specializationList);
}
else if(degree.value == 'me') {
addOption("2015","2015",yearList);
addOption("None","none",specializationList);
}
else if(degree.value == 'se') {
addOption("2015","2015",yearList);
addOption("None","none",specializationList);
addOption("Artificial Intelligence and Cognitive Modeling","AICog",specializationList);
addOption("Computer Imaging","compImaging",specializationList);
addOption("Embedded Systems","embedded",specializationList);
addOption("Information Assurance","infoAssurance",specializationList);
addOption("Human-Computer Interaction","HumanCompInteraction",specializationList);
addOption("Networks","networks",specializationList);
}
}
function addOption(text,value,select) {
var option = document.createElement("option");
option.text=text;
option.value=value;
select.add(option);
}
function removeOptions(selectbox) {
var i;
for(i = selectbox.options.length - 1 ; i >= 0 ; i--)
{
selectbox.remove(i);
}
}
......@@ -4,6 +4,7 @@
<h1>Graduation Audit System (GAS)</h1>
<p>This is an automated degree audit system for various degree plans at The University of Texas at Dallas.<br> Note: Audits may take between five seconds to a minute depending on degree plan. </p>
<link rel="stylesheet" type="text/css" href="GAS.css">
<script src="GAS.js"></script>
<form action="/submit" method="post">
<div>
<label for="name">Name:</label>
......@@ -16,18 +17,9 @@
<input type="radio" name="degreeType" value="ba" /> BA
</div>
<br>
<div>
<label for="year">Year of Degree Plan</label>
<select name="YearList">
<option value="2014">2014</option>
<option value="2015">2015</option>
<option value="2016">2016</option>
</select>
</div>
<br>
<div>
<label for="Major">Major</label>
<select name="MajorList" required>
<select name="MajorList" onchange="degreeSelectHandler(this)" required>
<option value="">Please Select Your Major</option>
<option value="bio">Biology</option>
<option value="cs">Computer Science</option>
......@@ -37,10 +29,18 @@
</select>
</div>
<br>
<div>
<label for="year">Year of Degree Plan</label>
<select name="YearList" id="YearList">
<option value="2014">2014</option>
<option value="2015">2015</option>
</select>
</div>
<br>
<div>
<label for="SpecializationOfDegree">Specialization/Domain:</label>
<select name="SpecializationOfDegree"/>
<option value="none">Ignore this field if your major does not have one</option>
<select name="SpecializationOfDegree" id="SpecializationOfDegree"/>
<option value="none">None</option>
<option value="applied">Mathematics-Applied</option>
<option value="mathematics">Mathematics-Mathematics</option>
<option value="statistics">Mathematics-Statistics</option>
......@@ -2098,14 +2098,6 @@
<input type="button" onclick="addClass()">Add class</button>
</div>
<br>
<script>
function addClass() {
var newClass = document.getElementById("classes").value;
var classes = document.getElementById("classesTaken").value;
classes = classes.concat(newClass);
document.getElementById("classesTaken").value = classes + ", ";
}
</script>
<div>
<label for="showClasses">Classes Taken</label>
<textarea name="classesTaken" id="classesTaken"></textarea>
......
......@@ -18,4 +18,5 @@
{# ableToGraduate: boolean variable for whether or not a student can graduate #}
{# studentName: name of student as a string #}
{# requiredClasses: array of strings of classes needed to take #}
</body>
</html>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment