St. Louis College of Bulanao: Bulanao, Tabuk City, Kalinga
St. Louis College of Bulanao: Bulanao, Tabuk City, Kalinga
Appendix A
GANTT CHART
.
April May June July Aug. Sept Oct. Nov. Dec. Jan Feb
No. Jan Feb
January January
14, 2018 21, 2018
January February
28, 2018 18, 2018
February February
19, 2018 23, 2018
February March
26, 2018 26, 2018
March August
28, 2018 13, 2018
August September
20, 2018 3, 2018
January February
28, 2019 11, 2019
iii
St. Louis College of Bulanao
Bulanao, Tabuk City, Kalinga
Appendix B
iv
St. Louis College of Bulanao
Bulanao, Tabuk City, Kalinga
<div class="row-fluid">
<div class="span12" id="content">
<div class="row-fluid">
<!-- block -->
<div class="block">
<div class="navbar navbar-inner
block-header">
<div id="" class="muted pull-
right"><a href="index.php"><i class="icon-arrow-left"></i>
Back</a></div>
</div>
<div class="block-content collapse
in">
<div class="span12">
<?php
$mission_query =
mysqli_query($conn,"select * from content where title =
'mission' ")or die(mysqli_error());
$mission_row =
mysqli_fetch_array($mission_query);
echo
$mission_row['content'];
?>
<hr>
<?php
$mission_query =
mysqli_query($conn,"select * from content where title = 'vision'
")or die(mysqli_error());
$mission_row =
mysqli_fetch_array($mission_query);
echo
$mission_row['content'];
?>
</div>
</div>
</div>
<!-- /block -->
</div>
</div>
</div>
<?php include('footer.php'); ?>
</div>
<?php include('script.php'); ?>
v
St. Louis College of Bulanao
Bulanao, Tabuk City, Kalinga
</body>
</html>
vi
St. Louis College of Bulanao
Bulanao, Tabuk City, Kalinga
<div class="control-
group">
<label>Subject:</label>
<div class="controls">
<select
name="subject_id" class="" required>
<option></option>
<?php
$query =
mysqli_query($conn,"select * from subject order by
subject_code");
while($row =
mysqli_fetch_array($query)){
?>
<option value="<?php
echo $row['subject_id']; ?>"><?php echo $row['subject_code']; ?
></option>
<?php } ?>
</select>
</div>
</div>
<div class="control-
group">
<label>School
Year:</label>
<div class="controls">
<?php
$query =
mysqli_query($conn,"select * from school_year order by
school_year DESC");
$row =
mysqli_fetch_array($query);
?>
<input id=""
class="input" readonly type="text" class="" name="school_year"
value="<?php echo $row['school_year']; ?>" >
</div>
</div>
vii
St. Louis College of Bulanao
Bulanao, Tabuk City, Kalinga
<div class="control-
group">
<label>School Year
Semester:</label>
<div class="controls">
<input id=""
class="input" readonly type="text" class="" name="Semester"
value="<?php echo $row['Semester']; ?>" >
</div>
</div>
<div class="control-
group">
<div class="controls">
<button
name="save" class="btn btn-success"><i class="icon-save"></i>
Save</button>
</div>
</div>
</form>
<script>
jQuery(document).ready(function($){
$("#add_class").submit(function(e){
e.preventDefault();
var _this = $(e.target);
var formData = $(this).serialize();
$.ajax({
type: "POST",
url: "add_class_action.php",
data: formData,
success: function(html){
if(html=="true")
{
$.jGrowl("Class Already Exist", { header:
'Add Class Failed' });
}else{
$.jGrowl("Classs Successfully
Added", { header: 'Class Added' });
var delay = 500;
setTimeout(function()
{ window.location = 'dasboard_teacher.php' }, delay);
}
viii
St. Louis College of Bulanao
Bulanao, Tabuk City, Kalinga
}
});
});
});
</script>
</div>
</div>
</div>
<!-- /block -->
ix
St. Louis College of Bulanao
Bulanao, Tabuk City, Kalinga
<button name="submit"
type="submit" class="btn btn-info"><i class="icon-
save"></i> Add Student</button>
<br>
<br>
<table cellpadding="0"
cellspacing="0" border="0" class="table" id="example">
<thead>
<tr>
<th>Photo</th>
<th>Name</th>
x
St. Louis College of Bulanao
Bulanao, Tabuk City, Kalinga
xi
St. Louis College of Bulanao
Bulanao, Tabuk City, Kalinga
<input type="hidden"
name="student_id<?php echo $a; ?>" value="<?php echo $id; ?>">
<input type="hidden"
name="class_id<?php echo $a; ?>" value="<?php echo $get_id; ?>">
<input type="hidden"
name="teacher_id<?php echo $a; ?>" value="<?php echo $session_id;
?>">
</td>
<?php } ?>
</tr>
</tbody>
</table>
</form>
<?php
if (isset($_POST['submit'])){
$test = $_POST['test'];
for($b = 1; $b <= $test; $b++)
{
$test1 = "student_id".$b;
$test2 = "class_id".$b;
$test3 = "teacher_id".$b;
$test4 = "add_student".$b;
$id = $_POST[$test1];
$class_id = $_POST[$test2];
$teacher_id = $_POST[$test3];
$Add = $_POST[$test4];
xii
St. Louis College of Bulanao
Bulanao, Tabuk City, Kalinga
?>
<script>
window.location = "my_students.php<?php echo '?id='.$get_id; ?
>";
</script>
<?php
}
xiii
St. Louis College of Bulanao
Bulanao, Tabuk City, Kalinga
}
?>
</tbody>
</table>
</div>
</div>
</div>
<!-- /block -->
</div>
</div>
</div>
<?php include('footer.php'); ?>
</div>
<?php include('script.php'); ?>
</body>
</html>
xiv
St. Louis College of Bulanao
Bulanao, Tabuk City, Kalinga
xv
St. Louis College of Bulanao
Bulanao, Tabuk City, Kalinga
<table cellpadding="0"
cellspacing="0" border="0" class="table" id="">
<?php
include('modal_delete_class_quiz.php'); ?>
<thead>
<tr>
<th>Quiz
title</th>
<th>Description</th>
<th>QUIZ TIME (IN
MINUTES)</th>
<th>Date
Added</th>
<th>Questions</th>
<th></th>
</tr>
</thead>
<tbody>
<?php
$query =
mysqli_query($conn,"select * FROM class_quiz
LEFT JOIN quiz ON
quiz.quiz_id = class_quiz.quiz_id
where teacher_class_id =
'$get_id'
order by date_added DESC
")or die(mysqli_error());
while($row =
mysqli_fetch_array($query)){
$quizid =
$row['quiz_id'];
$id =
$row['class_quiz_id'];
?>
xvi
St. Louis College of Bulanao
Bulanao, Tabuk City, Kalinga
<td width="30">
<form method="post"
action="view_quiz_result.php<?php echo '?id='.$get_id ?>&<?php
echo 'class_quiz_id='.$id ?>">
<button data-
placement="bottom" title="View quiz result" id="<?php echo $id; ?
>view" class="btn btn-primary"><i class="icon-folder-open-alt
icon-large"></i></button>
</form>
<a
href="edit_quiz.php<?php echo '?id='.$quizid; ?>&classid=<?php
echo $_GET['id']; ?>" class="btn btn-success"><i class="icon-
pencil"></i></a></td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
</div>
</div>
<!-- /block -->
</div>
xvii
St. Louis College of Bulanao
Bulanao, Tabuk City, Kalinga
</div>
</div>
<?php include('footer.php'); ?>
</div>
<?php include('script.php'); ?>
</body>
</html>
xviii
St. Louis College of Bulanao
Bulanao, Tabuk City, Kalinga
var formData =
jQuery(this).serialize();
$.ajax({
type: "POST",
url: "login.php",
data: formData,
success: function(html){
if(html=='true')
{
$.jGrowl("Loading File Please
Wait......", { sticky: true });
$.jGrowl("Welcome to CHMSC
Learning Management System", { header: 'Access Granted' });
var delay = 1000;
setTimeout(function()
{ window.location = 'dasboard_teacher.php' }, delay);
}else if (html ==
'true_student'){
$.jGrowl("Welcome to
CHMSC Learning Management System", { header: 'Access Granted' });
var delay = 1000;
setTimeout(function()
{ window.location = 'student_notification.php' }, delay);
}else
{
$.jGrowl("Please Check your
username and Password", { header: 'Login Failed' });
}
}
});
return false;
});
});
</script>
<div id="button_form" class="form-signin" >
New to SLCB LMS
<hr>
<h3 class="form-signin-heading"><i class="icon-
edit"></i> Sign up</h3>
<button data-placement="top" title="Sign In as
Student" id="signin_student"
onclick="window.location='signup_student.php'" id="btn_student"
xix
St. Louis College of Bulanao
Bulanao, Tabuk City, Kalinga
xx
St. Louis College of Bulanao
Bulanao, Tabuk City, Kalinga
<?php $class_query =
mysqli_query($conn,"select * from teacher_class
LEFT JOIN class ON
class.class_id = teacher_class.class_id
LEFT JOIN subject ON
subject.subject_id = teacher_class.subject_id
where teacher_class_id =
'$get_id'")or die(mysqli_error());
$class_row =
mysqli_fetch_array($class_query);
?>
<ul class="breadcrumb">
<li><a href="#"><?php echo
$class_row['class_name']; ?></a> <span
class="divider">/</span></li>
<li><a href="#"><?php echo
$class_row['subject_code']; ?></a> <span
class="divider">/</span></li>
<li><a
href="#"><b>Announcements</b></a></li>
</ul>
<!-- end breadcrumb -->
<!-- block -->
<div id="block_bg" class="block">
<div class="navbar navbar-inner
block-header">
<div id="" class="muted pull-
left"></div>
</div>
<div class="block-content collapse
in">
<div class="span12">
<form method="post">
<textarea name="content"
id="ckeditor_full"></textarea>
<br>
<button name="post" class="btn
btn-info"><i class="icon-check icon-large"></i> Post</button>
</form>
</div>
xxi
St. Louis College of Bulanao
Bulanao, Tabuk City, Kalinga
<?php
if (isset($_POST['post'])){
$content = $_POST['content'];
mysqli_query($conn,"insert
into teacher_class_announcements
(teacher_class_id,teacher_id,content,date)
values('$get_id','$session_id','$content',NOW())")or
die(mysqli_error());
mysqli_query($conn,"insert
into notification
(teacher_class_id,notification,date_of_notification,link)
value('$get_id','Add
Annoucements',NOW(),'announcements_student.php')")or
die(mysqli_error());
?>
<script>
window.location =
'announcements.php<?php echo '?id='.$get_id; ?>';
</script>
<?php
}
?>
</div>
</div>
<!-- /block -->
</div>
</div>
<div class="span4 row-fluid">
<!-- block -->
<div id="block_bg" class="block">
<div class="navbar navbar-inner
block-header">
<div id="" class="muted pull-
left"></div>
</div>
<div class="block-content collapse
in">
<div class="span12">
<?php
xxii
St. Louis College of Bulanao
Bulanao, Tabuk City, Kalinga
$query_announcement =
mysqli_query($conn,"select * from teacher_class_announcements
where teacher_id = '$session_id' and teacher_class_id =
'$get_id' order by date DESC
")or die(mysqli_error());
while($row =
mysqli_fetch_array($query_announcement)){
$id =
$row['teacher_class_announcements_id'];
?>
<div class="post"
id="del<?php echo $id; ?>">
<?php echo
$row['content']; ?>
<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
method="post" action="edit_post.php<?php echo '?id='.$get_id; ?
>">
<input
type="hidden" name="id" value="<?php echo $id; ?>">
<button
class="btn btn-link" name="edit"><i class="icon-pencil"></i>
</button>
</form>
</div>
xxiii
St. Louis College of Bulanao
Bulanao, Tabuk City, Kalinga
</div>
<?php
include("remove_sent_message_modal.php"); ?>
<?php } ?>
</div>
</div>
</div>
<!-- /block -->
</div>
<script type="text/javascript">
$(document).ready( function() {
$('.remove').click( function() {
var id = $(this).attr("id");
$.ajax({
type: "POST",
url: "remove_announcements.php",
data: ({id: id}),
cache: false,
success: function(html){
$("#del"+id).fadeOut('slow', function(){ $
(this).remove();});
$('#'+id).modal('hide');
$.jGrowl("Your Post is Successfully Deleted",
{ header: 'Data Delete' });
}
});
return false;
});
});
</script>
</div>
</div>
xxiv
St. Louis College of Bulanao
Bulanao, Tabuk City, Kalinga
Appendix C
Login Page
xxv
St. Louis College of Bulanao
Bulanao, Tabuk City, Kalinga
Registration Page
xxvi
St. Louis College of Bulanao
Bulanao, Tabuk City, Kalinga
xxvii
St. Louis College of Bulanao
Bulanao, Tabuk City, Kalinga
xxviii
St. Louis College of Bulanao
Bulanao, Tabuk City, Kalinga
Teacher Dashboard
xxix
St. Louis College of Bulanao
Bulanao, Tabuk City, Kalinga
xxx
St. Louis College of Bulanao
Bulanao, Tabuk City, Kalinga
In this page the teacher will add or enroll his student to their
subject.
In this page the teacher will add or upload his module to their
subject.
xxxi
St. Louis College of Bulanao
Bulanao, Tabuk City, Kalinga
their subject.
In this page the teacher will give grade the Assignment to their
subject.
xxxii
St. Louis College of Bulanao
Bulanao, Tabuk City, Kalinga
In this page the teacher will add and manage the quiz and exam
to their subject.
xxxiii
St. Louis College of Bulanao
Bulanao, Tabuk City, Kalinga
xxxiv