0% found this document useful (0 votes)
19 views32 pages

St. Louis College of Bulanao: Bulanao, Tabuk City, Kalinga

The document contains source code from various PHP files related to a school website. It includes code for the index, about, and add class pages. The code handles including header/footer files, querying the database to retrieve content and lists of classes/subjects, and a form to add a new class with validation to check if it already exists.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views32 pages

St. Louis College of Bulanao: Bulanao, Tabuk City, Kalinga

The document contains source code from various PHP files related to a school website. It includes code for the index, about, and add class pages. The code handles including header/footer files, querying the database to retrieve content and lists of classes/subjects, and a form to add a new class with validation to check if it already exists.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 32

St.

Louis College of Bulanao


Bulanao, Tabuk City, Kalinga

Appendix A

GANTT CHART
.

TASKNAME START FINISH DURATION


March

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

July 23, November


2018 21, 2018

January February
28, 2019 11, 2019

iii
St. Louis College of Bulanao
Bulanao, Tabuk City, Kalinga

Appendix B

RELEVANT SOURCE CODE

File Name: index.php

<?php include('header.php'); ?>


<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 class="container" style="position: relative">
        <div class="row-fluid">
            <div class="span6"><div class="title_index"><?php
include('title_index.php'); ?></div></div>
            <div class="span6"><div class="pull-right"><?php
include('login_form.php'); ?></div></div>
        </div>
        <div class="row-fluid">
            <div class="span12"><div class="index-footer"><?php
include('link.php'); ?></div></div>
        </div>
            <?php include('footer.php'); ?>
    </div>
<?php include('script.php'); ?>
</body>
</html>

File Name: about.php

<?php include('header_dashboard.php'); ?>


    <body id="class_div">
        <?php include('navbar_about.php'); ?>
        <div class="container-fluid">

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>

File Name: addclass.php

                        <!-- block -->


                        <div class="block">
                            <div class="navbar navbar-inner
block-header">
                                <div id="" class="muted pull-
left"><h4><i class="icon-plus-sign"></i> Add class</h4></div>
                            </div>
                            <div class="block-content collapse
in">
                                <div class="span12">
                                <form method="post"
id="add_class">
                                        <div class="control-
group">
                                            <label>Class
Name:</label>
                                          <div class="controls">
                                            <input type="hidden"
name="session_id" value="<?php echo $session_id; ?>">
                                            <select
name="class_id"  class="" required>
                                                <option></option>
                                            <?php
                                            $query =
mysqli_query($conn,"select * from class order by class_name");
                                            while($row =
mysqli_fetch_array($query)){
                                           
                                            ?>
                                            <option value="<?php
echo $row['class_id']; ?>"><?php echo $row['class_name']; ?
></option>
                                            <?php } ?>
                                            </select>
                                          </div>
                                        </div>
                                       

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 -->
                       

File Name : addStudnet.php

<?php include('header_dashboard.php'); ?>


<?php include('session.php'); ?>
<?php $get_id = $_GET['id']; ?>
    <body>
        <?php include('navbar_teacher.php'); ?>
        <div class="container-fluid">
            <div class="row-fluid">
                <?php include('class_sidebar.php'); ?>
                <div class="span9" id="content">
                     <div class="row-fluid">
                         <!-- breadcrumb -->
                <div class="pull-right">
                            <a href="my_students.php<?php echo '?
id='.$get_id; ?>" class="btn btn-info"><i class="icon-arrow-
left"></i> Back</a>
                        </div>
                                        <?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">

ix
St. Louis College of Bulanao
Bulanao, Tabuk City, Kalinga

                            <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="#">My Students</a><span
class="divider">/</span></li>
                            <li><a href="#"><b>Add
Student</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"
action="">

                           
                                        <button name="submit"
type="submit" class="btn btn-info"><i class="icon-
save"></i>&nbsp;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

                                    <th>Course Year and


Section</th>
                 
                                    <th></th>
                                </tr>
                            </thead>
                            <tbody>
                   
                                         <?php
                           
                           
                                        $a = 0 ;
                                        $query =
mysqli_query($conn,"select * from student LEFT JOIN class on
class.class_id = student.class_id
                                               
                                        ") or
die(mysqli_error());
                                        while ($row =
mysqli_fetch_array($query)) {
                                        $id = $row['student_id'];
                                        $a++;
                                   
                                        ?>
                               
                                        <tr>
                                        <input type="hidden"
name="test" value="<?php echo $a; ?>">
                                        <td width="70"><img
class="img-rounded" src="admin/<?php echo $row['location']; ?>"
height="50" width="40"></td>
                                        <td><?php echo
$row['firstname'] . " " . $row['lastname']; ?></td>
                                        <td><?php echo
$row['class_name']; ?></td>
                               
                                        <td width="80">
                                        <select
name="add_student<?php echo $a; ?>" class="span12">
                                        <option></option>
                                        <option>Add</option>
                                        </select>
                                       

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

    $query = mysqli_query($conn,"select * from


teacher_class_student where student_id = '$id' and
teacher_class_id = '$class_id' ")or die(mysqli_error());
    $count = mysqli_num_rows($query);
   
    if ($count > 0){ ?>
    <script>
     alert('Student Already in the class');
    </script>
    <script>
    window.location = "add_student.php<?php echo '?id='.
$get_id; ?>";
    </script>
   
    <?php
    }else  
    if($Add == 'Add'){
   
   
    mysqli_query($conn,"insert into teacher_class_student
(student_id,teacher_class_id,teacher_id)
values('$id','$class_id','$teacher_id') ")or die(mysqli_error());
   
   
    }else{
   
   
   
    }
   

   
?>
<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>

File Name: class_quiz.php

<?php include('header_dashboard.php'); ?>


<?php include('session.php'); ?>
<?php $get_id = $_GET['id']; ?>
    <body>
        <?php include('navbar_teacher.php'); ?>
        <div class="container-fluid">
            <div class="row-fluid">
                <?php include('quiz_link.php'); ?>
                <div class="span9" id="content">
                     <div class="row-fluid">
                       <!-- breadcrumb -->
                                        <?php $class_query =
mysqli_query($conn,"select * from teacher_class

xiv
St. Louis College of Bulanao
Bulanao, Tabuk City, Kalinga

                                        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="#">School Year: <?php
echo $class_row['school_year']; ?></a> <span
class="divider">/</span></li>
                            <li><a href="#"><b>Practice
Quiz</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">
                                    <div class="pull-right">
                                    <a href="add_quiz.php?id=<?
php echo $_GET['id'];?>" class="btn btn-info"><i class="icon-
plus-sign"></i> Add Quiz</a>
                                    <!-- <td width="30"><a
href="add_quiz_to_class.php?id=<?php// echo $_GET['id'];?>"
class="btn btn-success"><i class="icon-plus-sign"></i> Add Quiz
to Class</a></td>   -->
                                    </div>
                           

xv
St. Louis College of Bulanao
Bulanao, Tabuk City, Kalinga

                                    <table cellpadding="0"
cellspacing="0" border="0" class="table" id="">
                               

                                    <!-- <a data-toggle="modal"


href="#backup_delete" id="delete"  class="btn btn-danger"
name=""><i class="icon-trash icon-large"></i></a> -->

                                    <?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

                                        <tr id="del<?php echo


$id; ?>">
                                       
                                         <td><?php echo
$row['quiz_title']; ?></td>
                                         <td><?php  echo
$row['quiz_description']; ?></td>
                                         <td><?php  echo
$row['quiz_time']; ?></td>
                                         <td><?php echo
$row['date_added']; ?></td>                                      
                                        <td>
                                       <a
href="quiz_question.php<?php echo '?id='.$_GET['id']; ?
>&quizid=<?php echo $quizid; ?>">Questions</a></td>

                                         <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>

File Name: Login.php

            <form id="login_form1" class="form-signin"


method="post">
                        <h3 class="form-signin-heading"><i
class="icon-lock"></i> Sign in</h3>
                        <input type="text" class="input-block-
level" id="username" name="username" placeholder="Username"
required>
                        <input type="password" class="input-
block-level" id="password" name="password" placeholder="Password"
required>
                        <button data-placement="right"
title="Click Here to Sign In" id="signin" name="login" class="btn
btn-info" type="submit"><i class="icon-signin icon-large"></i>
Sign in</button>
                                                        <script
type="text/javascript">
                                                        $
(document).ready(function(){
                                                            $
('#signin').tooltip('show');
                                                            $
('#signin').tooltip('hide');
                                                        });
                                                        </script>
            </form>
                        <script>
                        jQuery(document).ready(function(){
                        jQuery("#login_form1").submit(function(e)
{
                                e.preventDefault();

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

name="login" class="btn btn-info" type="submit">I`m a


Student</button>
                <div class="pull-right">
                    <button data-placement="top" title="Sign In
as Teacher" id="signin_teacher"
onclick="window.location='signup_teacher.php'" name="login"
class="btn btn-info" type="submit">I`m a Teacher</button>
                </div>
            </div>
                                                        <script
type="text/javascript">
                                                        $
(document).ready(function(){
                                                            $
('#signin_student').tooltip('show'); $
('#signin_student').tooltip('hide');
                                                        });
                                                        </script>
                                                        <script
type="text/javascript">
                                                        $
(document).ready(function(){
                                                            $
('#signin_teacher').tooltip('show'); $
('#signin_teacher').tooltip('hide');
                                                        });
                                                        </script>

File Name: announcement.php

<?php include('header_dashboard.php'); ?>


<?php include('session.php'); ?>
<?php $get_id = $_GET['id']; ?>
    <body>
        <?php include('navbar_teacher.php'); ?>
        <div class="container-fluid">
            <div class="row-fluid">
                <?php include('annoucement_link.php'); ?>
                <div class="span5" id="content">
                     <div class="row-fluid">
                      <!-- breadcrumb -->
               

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

        <?php include('footer.php'); ?>


        </div>
        <?php include('script.php'); ?>
    </body>
</html>

Appendix C

SCREEN SHOTS AND USERS GUIDE

Login Page

xxv
St. Louis College of Bulanao
Bulanao, Tabuk City, Kalinga

Registration Page

Admin Dashboard Panel

xxvi
St. Louis College of Bulanao
Bulanao, Tabuk City, Kalinga

Add Subject and list of subjects added

Add Class or Section page

xxvii
St. Louis College of Bulanao
Bulanao, Tabuk City, Kalinga

Add Student and List of Students

Add Teachers and List of Teachers added

xxviii
St. Louis College of Bulanao
Bulanao, Tabuk City, Kalinga

Update Active School Year

Teacher Dashboard

xxix
St. Louis College of Bulanao
Bulanao, Tabuk City, Kalinga

In this page will teacher manage their subjects.

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

In this page the teacher will add or upload the Assignment to

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 Post announce to their subject.

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

You might also like