-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
209 lines (173 loc) · 7.7 KB
/
index.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
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
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"></script>
<script>
$('#myTab a').click(function(e) {
e.preventDefault();
$(this).tab('show');
});
// store the currently selected tab in the hash value
$("ul.nav-tabs > li > a").on("shown.bs.tab", function(e) {
var id = $(e.target).attr("href").substr(1);
window.location.hash = id;
});
// on load of the page: switch to the currently selected tab
var hash = window.location.hash;
$('#myTab a[href="' + hash + '"]').tab('show');
</script>
<style>
.bg-1 {
background-color: #1abc9c; /* Green */
color: #ffffff;
}
.bg-2 {
background-color: #F6F6F6; /* Dark Blue */
color: #000000;
}
</style>
</head>
<body>
<div class="container-fluid bg-1 text-center">
<h3>CPSC 332 Spring 2019 Team Project</h3>
<img src="profile.jpg" class="img-circle" alt="Bird" width="250" height="250">
<h3>Alex Ho & Marco Chavez & Caesar Mier</h3>
</div>
<div class="container-fluid bg-2 text-left">
<ul class="nav nav-pills">
<li class="active"><a data-toggle="pill" href="#home">Home</a></li>
<li><a data-toggle="pill" href="#professors">Professor</a></li>
<li><a data-toggle="pill" href="#students">Student</a></li>
</ul>
<div class="tab-content">
<div id="home" class="tab-pane fade in active">
<h3>Team Blog</h3>
<div class="panel panel-info"></div>
<div class="media">
<div class="media-left media-top">
<img src="img_avatar1.png" class="media-object" style="width:60px">
</div>
<div class="media-body">
<h4 class="media-heading">Database and Filesystems</h4>
<p>Wellcome to Team Project For CPSC 332 with Dr. Wang.</p>
<p>This project implement University Database.</p>
</div>
</div>
</div>
<div id="professors" class="tab-pane fade">
<div class="panel panel-info"></div>
<div class="container">
<form class="form-group" action="professor.php" method="post">
<!-- Search by professor ssn -->
<div class="row">
<label for="professor_ssn">SSN:</label>
<input type="text" id="professor_ssn" name="professor_ssn"
placeholder="Professor ssn.." >
<button type="submit" class="btn btn-primary"><span class="glyphicon glyphicon-search"></span> Search</button>
</div>
</form>
<form class="form-group" action="count_student_grade.php" method="POST">
<!-- Search by course number and section number -->
<div class="row">
<label for="course_num">Course Number:</label>
<input type="text" id="course_num" name="course_num"
placeholder="Course number.." >
<label for="section_num"> Section Number:</label>
<input type="text" id="section_num" name="section_num"
placeholder="Section number.." >
<button type="submit" class="btn btn-primary"> <span class="glyphicon glyphicon-search"></span> Search</button>
</div>
</form>
</div>
<button type="button" class="btn btn-info" data-toggle="collapse" data-target="#demo">For Professor</button>
<div id="demo" class="collapse">
Professors will be able to search the database by inputting their Social Security Number.
Doing so will list the titles, classrooms, meeting days and time of his/her classes.
Also, by inputting a course number and a section number the database will output how many students got a distinct grade, i.e. ‘A+,’ ‘A,’ ‘A-,‘ ‘B+,’ ‘B,’ ‘B-,‘ etc.
These features will help professors stay organized during what can be a hectic school year.
</div>
</div>
<div id="students" class="tab-pane fade">
<div class="panel panel-info"></div>
<div class="container">
<form class="form-group" action="course.php" method="POST">
<!-- Search by professor ssn -->
<div class="row">
<label for="stu_course_num">Course Number:</label>
<input type="text" id="stu_course_num" name="stu_course_num"
placeholder="Course number..">
<button type="submit" class="btn btn-primary"><span class="glyphicon glyphicon-search"></span> Search</button>
</div>
</form>
<form class="form-group" action="student.php" method="POST">
<!-- Search by course number and section number -->
<div class="row">
<label for="student_cwid">CWID:</label>
<input type="text" id="student_cwid" name="student_cwid"
placeholder="CWID..">
<button type="submit" class="btn btn-primary"><span class="glyphicon glyphicon-search"></span> Search</button>
</div>
</form>
</div>
<button type="button" class="btn btn-info" data-toggle="collapse" data-target="#demo2">For Student</button>
<div id="demo2" class="collapse">
Students will be able to search the database by inputting their course number.
Doing so will list the sections of the course, including the classrooms, the meeting days and time, and the number of students enrolled in each section.
Also, by inputting their campus-wide ID, a list of all courses the student has attempted and the grades. These features will help students find new courses to take as well as staying on top of grades.
</div>
</div>
</div>
</div>
<!-- Container (Contact Section) -->
<div id="contact" class="container-fluid bg-grey text-center">
<h3>CONTACT</h3>
<div class="row">
<p>Contact team project and we'll get back to you within 24 hours.</p>
<p><span class="glyphicon glyphicon-map-marker"></span> Fullerton, US</p>
<p><span class="glyphicon glyphicon-envelope"></span><a href="mailto:hho114@csu.fullerton.edu">
hho114@csu.fullerton.edu</a></p>
</div>
</div>
<!-- Click arrow to roll up to the top gage -->
<footer class="container-fluid text-center">
<a href="#myPage" title="To Top">
<span class="glyphicon glyphicon-chevron-up"></span>
</a>
<p>Bootstrap Theme Made By <a href="https://www.w3schools.com" title="Visit w3schools">www.w3schools.com</a></p>
</footer>
<script>
$(document).ready(function(){
// Add smooth scrolling to all links in navbar + footer link
$(".navbar a, footer a[href='#myPage']").on('click', function(event) {
// Make sure this.hash has a value before overriding default behavior
if (this.hash !== "") {
// Prevent default anchor click behavior
event.preventDefault();
// Store hash
var hash = this.hash;
// Using jQuery's animate() method to add smooth page scroll
// The optional number (900) specifies the number of milliseconds it takes to scroll to the specified area
$('html, body').animate({
scrollTop: $(hash).offset().top
}, 900, function(){
// Add hash (#) to URL when done scrolling (default click behavior)
window.location.hash = hash;
});
} // End if
});
$(window).scroll(function() {
$(".slideanim").each(function(){
var pos = $(this).offset().top;
var winTop = $(window).scrollTop();
if (pos < winTop + 600) {
$(this).addClass("slide");
}
});
});
})
</script>
</body>
</html>