Professional Documents
Culture Documents
USER LOGIN
ADMIN LOGIN
CLASS
SUBJECT
ADD SUBJECT
DEPARTMENT
STUDENTS
TEACHER
SCHOOL YEAR
STAFF LOGIN
MYCLASS
ADD TOPIC
QUIZ
ADD QUIZ
ADD QUIZ CLASS
USER LOGIN
MY CLASS
TOPICS
QUIZ
CHOICE
TRUE OR FALSE
NOTIFICATION
STUDENT REGISTER
TEACHER REGISTER
CODING
ADD TOPIC
<body id="class_div">
<div class="container-fluid">
<div class="row-fluid">
<div class="row-fluid">
<ul class="breadcrumb">
<?php
$school_year_query_row = mysqli_fetch_array($school_year_query);
$school_year = $school_year_query_row['school_year'];
?>
</ul>
</div>
</div>
<div class="span8">
<div class="control-group">
<div class="controls">
</div>
</div>
<script>
jQuery(document).ready(function($){
$("#add_downloadble").submit(function(e){
e.preventDefault();
type: "POST",
url: "add_announcement_save.php",
data: formData,
success: function(html){
window.location = 'add_announcement.php';
});
});
});
</script>
</div>
<div class="span4">
<div class="alert alert-info">Check The Class you want to put this file.</div>
<div class="pull-left">
<script>
$("#checkAll").click(function () {
$('input:checkbox').not(this).prop('checked', this.checked);
});
</script>
</div>
<thead>
<tr>
<th></th>
<th>Class Name</th>
<th>Subject Code</th>
</tr>
</thead>
<tbody>
$count = mysqli_num_rows($query);
while($row = mysqli_fetch_array($query)){
$id = $row['teacher_class_id'];
?>
<td width="30">
</td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
<div class="span10">
<hr>
<center>
<div class="control-group">
<div class="controls">
</div>
</center>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>
ADD CLASS
<div class="block">
<div class="navbar navbar-inner block-header">
</div>
<div class="span12">
<div class="control-group">
<label>Class Name:</label>
<div class="controls">
<option></option>
<?php
while($row = mysqli_fetch_array($query)){
?>
<?php } ?>
</select>
</div>
</div>
<div class="control-group">
<label>Subject:</label>
<div class="controls">
<option></option>
<?php
while($row = mysqli_fetch_array($query)){
?>
<?php } ?>
</select>
</div>
</div>
<div class="control-group">
<label>School Year:</label>
<div class="controls">
<?php
$row = mysqli_fetch_array($query);
?>
</div>
</div>
<div class="control-group">
<div class="controls">
</div>
</div>
</form>
<script>
jQuery(document).ready(function($){
$("#add_class").submit(function(e){
e.preventDefault();
$.ajax({
type: "POST",
url: "add_class_action.php",
data: formData,
success: function(html){
if(html=="true")
}else{
});
});
});
</script>
</div>
</div>
</div>
ADD QUIZ
<body>
<div class="container-fluid">
<div class="row-fluid">
<div class="row-fluid">
<ul class="breadcrumb">
<?php
$school_year_query = mysqli_query($conn,"select * from school_year order by school_year
DESC")or die(mysqli_error());
$school_year_query_row = mysqli_fetch_array($school_year_query);
$school_year = $school_year_query_row['school_year'];
?>
<li><a href="#"><b>Quiz</b></a></li>
</ul>
</div>
<div class="span12">
<div class="pull-right">
</div>
<div class="control-group">
<div class="controls">
<input type="text" name="quiz_title" id="inputEmail" placeholder="Quiz Title">
</div>
</div>
<div class="control-group">
<div class="controls">
</div>
</div>
<div class="control-group">
<div class="controls">
</div>
</div>
</form>
<?php
if (isset($_POST['save'])){
$quiz_title = $_POST['quiz_title'];
$description = $_POST['description'];
?>
<script>
window.location = 'teacher_quiz.php';
</script>
<?php
?>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>
TOPIC
<body>
<div class="container-fluid">
<div class="row-fluid">
<div class="row-fluid">
$class_row = mysqli_fetch_array($class_query);
?>
<ul class="breadcrumb">
<li><a href="#"><b>Announcements</b></a></li>
</ul>
</div>
<form method="post">
<br>
</form>
</div>
<?php
if (isset($_POST['post'])){
$content = $_POST['content'];
?>
<script>
</script>
<?php
?>
</div>
</div>
</div>
</div>
<div class="span12">
<?php
")or die(mysqli_error());
while($row = mysqli_fetch_array($query_announcement)){
$id = $row['teacher_class_announcements_id'];
?>
<hr>
<strong><i class="icon-calendar"></i> <?php echo $row['date']; ?></strong>
<div class="pull-right">
<a class="btn btn-link" href="#<?php echo $id; ?>" data-toggle="modal" ><i class="icon-
remove"></i> </a>
</div>
<div class="pull-right">
</form>
</div>
</div>
<?php } ?>
</div>
</div>
</div>
</div>
<script type="text/javascript">
$(document).ready( function() {
$('.remove').click( function() {
var id = $(this).attr("id");
$.ajax({
type: "POST",
url: "remove_announcements.php",
cache: false,
success: function(html){
$('#'+id).modal('hide');
});
return false;
});
});
</script>
</div>
</div>
</div>
</body>
</html>
CLASS QUIZ
<body>
<div class="container-fluid">
<div class="row-fluid">
<div class="row-fluid">
$class_row = mysqli_fetch_array($class_query);
?>
<ul class="breadcrumb">
</ul>
</div>
<div class="span12">
<form action="delete_class_quiz.php<?php echo '?id='.$get_id; ?>" method="post">
<thead>
<tr>
<th></th>
<th>Quiz title</th>
<th>Description</th>
<th>Quiz Type</th>
</tr>
</thead>
<tbody>
<?php
while($row = mysqli_fetch_array($query)){
$id = $row['class_quiz_id'];
?>
</td>
</tr>
<?php } ?>
</tbody>
</table>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>
INDEX
<style>
body#login::before {
content: "";
background: #00000036;
position: absolute;
top: 0;
/* z-index: 1; */
left: 0;
width: 100%;
height: 100%;
</style>
<body id="login">
</div>
<div class="row-fluid">
</div>
</div>
</body>
</html>
LOGIN
<?php
include('admin/dbcon.php');
session_start();
$username = $_POST['username'];
$password = $_POST['password'];
/* student */
$row = mysqli_fetch_array($result);
$num_row = mysqli_num_rows($result);
/* teacher */
$num_row_teacher = mysqli_num_rows($query_teacher);
$row_teahcer = mysqli_fetch_array($query_teacher);
$_SESSION['id']=$row['student_id'];
echo 'true_student';
$_SESSION['id']=$row_teahcer['teacher_id'];
echo 'true';
}else{
echo 'false';
?>
STUDENT SIGNUP
<?php
include('admin/dbcon.php');
session_start();
$username = $_POST['username'];
$password = $_POST['password'];
$firstname = $_POST['firstname'];
$lastname = $_POST['lastname'];
$class_id = $_POST['class_id'];
$row = mysqli_fetch_array($query);
$id = $row['student_id'];
$count = mysqli_num_rows($query);
$_SESSION['id']=$id;
echo 'true';
}else{
echo 'false';
?>