-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgpa.php
More file actions
84 lines (80 loc) · 3.53 KB
/
gpa.php
File metadata and controls
84 lines (80 loc) · 3.53 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
<?php include("includes/gradeOptions.php"); ?>
<?php include("includes/creditOptions.php"); ?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name = "viewport" content = "width=device-width">
<title>GPA Calculator</title>
<link rel="stylesheet" href="css/main.css">
</head>
<body>
<div class="page">
<h1 align="center">GPA Calculator</h1>
<div class="container">
<h4 class="subtitle " align="center">How many classes?</h4>
<div class="numClassSelect">
<select class="" id="numClass" onchange="displayClasses()">
<option value="1.0">1</option>
<option value="2.0">2</option>
<option value="3.0">3</option>
<option selected="selected" value="4.0">4</option>
<option value="5.0">5</option>
<option value="6.0">6</option>
</select>
</div>
<h4 class="subtitle" align="center">Enter your grades and credits</h4>
<div class="gradeOps" id="grades">
<select class="op" id="grade1" style="display: inline">
<?php echo $gradeOps; ?>
</select>
<select class="op" id="grade2" style="display: inline">
<?php echo $gradeOps; ?>
</select>
<select class="op" id="grade3" style="display: inline">
<?php echo $gradeOps; ?>
</select>
<select class="op" id="grade4" style="display: inline">
<?php echo $gradeOps; ?>
</select>
<select class="op" id="grade5" style="display: none">
<?php echo $gradeOps; ?>
</select>
<select class="op" id="grade6" style="display: none">
<?php echo $gradeOps; ?>
</select>
</div>
<div class="creditOps" id="credits">
<select class="op" id="credit1" style="display: inline">
<?php echo $creditOps; ?>
</select>
<select class="op" id="credit2" style="display: inline">
<?php echo $creditOps; ?>
</select>
<select class="op" id="credit3" style="display: inline">
<?php echo $creditOps; ?>
</select>
<select class="op" id="credit4" style="display: inline">
<?php echo $creditOps; ?>
</select>
<select class="op" id="credit5" style="display: none">
<?php echo $creditOps; ?>
</select>
<select class="op" id="credit6" style="display: none">
<?php echo $creditOps; ?>
</select>
</div>
<div class="calcButton">
<button class="but" onclick="calc()">Calculate GPA</button>
</div>
<div class="gpaDisplay">
<p id="GPA"></p>
</div>
</div>
<div class="footer">
<p class="foot">Clemann Developments</p>
</div>
</div>
<script src="js/main.js"></script>
</body>
</html>