You are on page 1of 266

ONLINE ENROLLMENT SYSTEM FOR INSTITUTE FOR FOUNDATIONAL

LEARNING INC.

A Capstone Project Proposal


Presented to the Faculty of the
Information and Communications Technology Program
STI College Calamba

In Partial Fulfilment
of the Requirements for the Degree
Bachelor of Science in Information Technology

Venz Gerald B. Belchez


Kayne U. Mingo
Frances Ysabel M. Tenorio
Clyde Francis M. Tome

November 26, 2021

STI College Calamba


EXECUTIVE SUMMARY

An online-based, computerized system is a system in which the computer plays a


major role, and this kind of system is needed by every company and institution
nowadays. This is the best way of storing and retrieving data on a server or hard disk
rather than using papers and file cabinets. This will help the registrar and cashier of
Institute for Foundational Learning Inc. generate a quick and efficient data. 

Online Enrollment System provides a working system to school institutes to provide a


safer way to enroll in a school. 

The main objective of this study is to replace the physical enrollment process and develop
a web-based enrollment system for the students at Institute for Foundational Learning
Inc.  

STI College Calamba


APPROVAL SHEET

This capstone project proposal titled: Online Enrollment for Institute for Foundational
Learning Inc. prepared and submitted by Venz Gerald B. Belchez, Kayne U. Mingo,
Frances Ysabel M. Tenorio, and Clyde Francis M. Tome, in partial fulfillment of the
requirements for the degree of Bachelor of Science in Information Technology, has been
examined and is recommended for acceptance and approval.

Mc Well N. Bunao
Capstone Project Adviser

Accepted and approved by the Capstone Project Review Panel


in partial fulfillment of the requirements for the degree of
Bachelor of Science in Information Technology

Jester Emann E. Peñaranda, MIT Fe Dalangin Yedra, MAITE


Panel Member Panel Member

Dr. Ferdinand R. Bunag


Lead Panelist

Noted:

Jocelyn G. Llanderal Jester Emann E. Peñaranda, MIT


Capstone Project Coordinator Program Head

STI College Calamba


November 26, 2021

STI College Calamba


ACKNOWLEDGEMENT

The success and final outcome of this project necessitated a great deal of guidance and
assistance from many people, and we are extremely fortunate to have received this
throughout the completion of my project. All of our accomplishments are the result of
such supervision and assistance, for which we are grateful.

First of all, we would like to thank God for being the center of our process in making our
capstone project and we are able to complete this project with success.

We respect and thank Ms. Jocelyn Llanderal, our Capstone Coordinator, for all of her
help and guidance in completing the project on time. We are extremely grateful to her for
providing such wonderful support and guidance despite their hectic schedule.

We would like to express our gratitude to our advisor, Mr. Mc Well Bunao who guided
us throughout this capstone project.

We also want to give our deep gratitude to our capstone client, Institute for Foundational
Learning Inc. staff, Ms Azaleah Reyes, who took keen interest on our project work and
guided us all along, until the completion of our project work by providing all the
necessary information for developing a good system.

To our dear panelist, Dr. Ferdinand R. Bunag, Jester Emann E. Peñaranda,MIT, and Ms.
Fe Dalangin Yedra, MAITE thank you for guiding us and giving criticism to make our
project better. It is not just to make our project better but mentoring us to be a better
individual to make us improve and strive hard. To be paneled by you is such an honor for
us.

We would also like to thank our friends and classmates, especially Gary C. Gonzales who
we shared ideas with, and our family who supported us and offered deep understanding
related to the capstone.

STI College Calamba


TABLE OF CONTENTS

Page
Title Page i
Executive Summary ii
Approval Sheet iii
Acknowledgment iv
Table of Contents v
List of Figures vi
List of Tables vii
List of Notations viii
Introduction 1
Project Context 1
Statement of the Problem 3
Purpose and Description of the Project 4
Objectives of the Study 4
Scope and Limitations of the Study 5
Review of Related Literature/Systems 7
Review of Related Literature 7
Related Studies and/or Systems 7
Synthesis 11
Technical Background 12
Overview of Current Technologies Used in the Current System 12
Calendar of Activities 13
Resources 15
Methodology 20
Requirement Analysis 21
Requirement Documentation 22
Design of Software, System, Product, and/or Processes 29
Development and Testing 29
Conclusions and Recommendations 31
Appendix 32

STI College Calamba


References 32
Personal Technical Vitae 34

LIST OF FIGURES
Page
Figure Name
Figure 1 : Internal Memory (RAM) 15
Figure 2 : Hard Disk Drive 16
Figure 3 : Intel Pentium CPU 16
Figure 4 : Operating System 17
Figure 5 : MySQL 18
Figure 6 : Notepad++ 19
Figure 7 : XAMPP 19
Figure 8 : Modified Waterfall Model 20
Figure 9 : Admin, Registrar, Teacher, Guidance Login Page 22
Figure 10 : Homepage of Registrar 23
Figure 11 : Dashboard module 24
Figure 11.1 Dashboard module 24
Figure 12. Applicant List Module 24
Figure 13.: Student List Module 25
Figure 13.1: Student List Module 25
Figure 14: Section Module 26
Figure 14.1: Section Module 27
Figure 14.2 Section Module 27
Figure 14.3: Section Module 27
Figure 14.4: Section Module 28
Figure 15: Subject Module 28
Figure 15.1: Subject Module 29
Figure 16: Faculty Module 29
Figure 17: Room Module 30
Figure 18: School Year Module 30
Figure 19: Price for RAF Module 31

STI College Calamba


Figure 20: Audit trails Module 31
Figure 21: Settings Module 32
Figure 22: Homepage of admin 32
Figure 23: Price for RAF Module 33
Figure 23.1: Accounts 33
Figure 23.2: Accounts 34
Figure 24: Settings 34
Figure 24.1: Settings 35
Figure 24.2: Settings 35
Figure 24.3: Settings 36
Figure 25: List of students 36
Figure 26: Grades Upload 37
Figure 27: List of Schedule 37
Figure 28: Landing page 38
Figure 28.1: Landing page 38
Figure 29: Login for user 39
Figure 30: Sign up 39
Figure 31: email account verification 40
Figure 32: Login Homepage 40
Figure 32.1: Login Homepage 41
Figure 32.2: Login Homepage 41
Figure 33: Admission 42
Figure 33.1: Admission 42
Figure 33.2: Admission 43
Figure 34: Pre-Enrollment Regisration 43
Figure 34.1: Pre-Enrollment Regisration 44
Figure 34.2: Pre-Enrollment Regisration 44
Figure 34.3: Pre-Enrollment Regisration 45
Figure 35: Email for passing the examination,requirements and
45
payment
Figure 36: Student Information 46
Figure 36.1: Student Information 46

STI College Calamba


Figure 36.2: Student Information 47
Figure 37: Requiremnets 47
Figure 37.1: Requirements 48
Figure 38: RAF 48
Figure 38.1: RAF 49
Figure 38.2: RAF 49
Figure 39: Grades 49
Figure 40: User Flowchart (User Page) 51
Figure 41: Admin Flowchart (Admin Side) 51
Figure 42: Faculty Flowchart(Admin Side) 52
Figure 43: Registrar(Admin Side) 52

STI College Calamba


LIST OF TABLES
Page
Table Name
Table 1 : Bench Marking 10
Table 2 : Gantt Chart of Activities 14
Table 3 : Hardware Specification 15
Table 4 : Software Specification 17

STI College Calamba


INTRODUCTION

Project Context

Institute for Foundational Learning Inc. (IFL) is a Christian private institution that
offers pre-school, high school and Senior high school. The institute offers senior
high school strand that specialized in academic track Science, Technology,
Engineering, and Mathematics (STEM), Humanities and Social Sciences Strand
(HUMSS), and General Academic Strand (GAS). Also, strand that specialized in
Technical-Vocational-Livelihood track in Information Communication and
Technology (ICT).

Currently, the institute has a thirty-six (36) pre-school students, one hundred nine
(109) elementary students, seventy-five (75) junior high school students and
twenty-two (22) senior high school students, in a total of two hundred forty-two
(242) students. Also, they have twenty-seven (27) teachers in total, with different
specialization like, the adviser of nursery has a certificate of Basic Pastoral
Theology, the adviser of kinder graduated with a degree of Bachelor in Secondary
Education Major in English, the adviser of Grade 1 and Grade 9 has a degree of
Bachelor in Elementary Education, the adviser of Grade 2 has a degree of
Bachelor in Secondary Education Major in TLE, the adviser of grade 3 takes
Units in BS Industrial Engineering, the adviser of Grade 4 takes an Early
Childhood Training, the adviser of Grade 7 graduated with a degree of BS in
Education Major in Filipino, the adviser of Grade 8 takes Units in BSBA Major in
Marketing, the adviser of Grade 11 graduated with a degree of BS in Education
Major in English, and the adviser of Grade 12 graduated with a degree of BS in
Chemical Engineering.

The total number of rooms of the institute is twenty-one (22) rooms, including the
guidance room and administration room. There are three (3) lecture rooms for
pre-school, six (6) lecture rooms for elementary, four (4) lecture rooms for Junior

STI College Calamba 1


High school, three (3) lecture rooms for Senior High school, one (1) room each
for chemistry, biology, and computer laboratories, and one (1) room for library.
The school office is open from 8:00 a.m. to 5:00 p.m. The classes time is divided
into three. 8:00 a.m. – 12:00 p.m. for pre-school students, 8: 00 am to 1:00 pm for
elementary students, and 8:00 a.m. – 4:00 p.m. for junior and senior high school
students.

Transferees and the old students of the institute have the same process in
registering and enrolling, the only difference is the requirements that the students
need to be submitted to the institute. The school enrollment requirements for their
old students is the student’s clearance where there should be a sign of computer
laboratory administrator, homeroom adviser, registrar and cashier. As for the new
enrollees or transferees, for elementary to senior high school, listed below are the
needed requirements:
 Clearance from their previous school
 Registration form
 Birth certificate (NSO, PSA, and Civil Registry)
 Permanent report card
 Two copies of 1x1 picture
 Good moral
 Enrollment Form

As for the repeaters, the institute informs the Department of Education


(DepEd) the details about the repeater student, since, they are not accredited
by the DepEd to conduct a remedial summer class for the repeaters, students
will take their remedial summer classes to the school that DepEd gives an
authorization.

Summer classes for ages three (3) to five (5) years old are also being offered
by the institute. They are offering introduction to phonics, basic decoding,
singing and dancing, arts and crafts, online games for limited slots only. Every

STI College Calamba 2


ten session costs one thousand pesos (1000 Php). The institute is using Google
Forms for the registration for the summer class. Information needed to fill in
the form are name of the guardian, name of the student, student’s birthdate,
age, email address, and grade level.

As for the current system of the school, they are using Google forms to gather
information from the new or old students who are interested to study in the
said institute. Each registration will cost five hundred pesos (500 Php) and
mode of payments are thru Gcash transaction, though it may add a charge of
fifteen pesos (15 Php) for transactions, also they also have bank-to-bank and
online banking transfer. Registrants will be required to send the receipt
through e-mail as proof of payment. The school provides batches for pre-
school, elementary, high school, and senior high school for proper enrollment.

Statement of the Problem

General Problem

The main object of this study is to develop a web-based for online pre-assessment
and pre-enrollment system for Institute for Foundational Learning, Incorporated.

Specific Problem

1. Inefficient way of managing and gathering information resulting of repetitive


process of data collection.
- The student’s used Google form for pre-registration. The problem is once
the file downloaded the data are not aligned; the staffs need to transfer the
data of per grade level in another document.
2. Improper enrollment per grade level scheduling resulting to delay process of
enrollment.
- The enrollment is done at the school they give schedule per grade level.
The problem is parents with different grade level child or students enrolled
even it is not the schedule of their enrollment and the process of
enrollment takes longer.

STI College Calamba 3


3. Unprintable enrollment form and no way to insert a picture per student causing to
the student to submit their picture on site.
- Through online enrollment using google form the enrollment form are not
printable and the registrar need to encode the information of the student to
another form that adding to their process of enrollment.

Purpose and Description of the Project

The project will provide a functional system for applicants, students, teachers, and
admins that will help them to manage the pre-enrollment and enrollment process.
For the applicants and students, they can sign up to have their own account. Once
they have the account they can continue to pre-enrollment process, they can attach
files needed for the enrollment. As for the enrollment process the applicants and
student can enroll to the system. They can view the registration form and tuition
fee. The applicants and students can download the registration form. Also, they
can attach file for the receipt from payment to the system. As for the admin, they
can upload the grades and schedule. This will have the data analytics for
collecting raw data from the applicants and students who enroll and will be
processed to provide information to generate report.

Objectives of the Study

General Objective

The main object of this study is to develop an online enrollment system for
Institute for Foundational Learning, Incorporated.

Specific Objective
1. To develop a registration information module that will enhance managing and
gathering information.
-This will help the staff to process the data collection without repeating
and arranging the data collection of every grade level.

STI College Calamba 4


2. To develop an enrollees list module that process the enrollment of the
student’s.
-This will help the staffs to process the enrollment of the students’
contactless and lessen their work.
3. To develop enrollment information module for enrollment form that has the
availability to print and to import a picture.
-This will enhance the accuracy of processing the enrollment of the
student by registrar without encoding the student information.

Scope and Limitations of the Study

The purpose of this study is to design and develop a web-based pre-registration


and enrollment system. This system will help the applicants and students to
manage the pre-assessment and enrollment process.
The online enrollment system will provide the pre-enrollment module where the
applicant and student can sign up. After the registration process for sign up there
will be a notification that include the default password and the username will be
the email given by the student and applicant. In information module, this module
will ask for the school requirements of the applicant. The requirements needed
can attached on the system. The applicant can scan or take a picture of the
requirement and send it. Then after this process, there will be a notification of the
applicant that he can log-out and notification from registrar. The registrar will
evaluate the information that comes from the applicant. Once the requirements are
approved, there will be a notification. Also, the system will provide an applicant
number. The log-in can be done using the email student gave and the systems’s
provided default password. In the reservation module, this module will be
providing the information about the payment process. The payment method can
be Gcash or bank to bank. The payment receipt will be attached on the system.
The finance will notify through email if the applicant is reserved. In enrollment
process the applicant and student can view the registration form that include class
schedule, schedule of payment and tuition fee. The applicant can attached the

STI College Calamba 5


receipt of their payment on the system. The school finance will notify the
applicant if the applicant is officially enrolled. The students can print their own
registration form (original and certified true copies will be issued by the registrar).
This system will provide uploading grading module and schedule module for the
admin. The system will validate the conflicting schedule once the schedule is
uploading. If the pandemic will be gone or subsided there will be a face to face
module for walk-in applicants and students. This system will provide a backup
and restore that is cloud based for the informatin gathered. This will have the data
analytics for collecting raw data from the applicants and students who enroll and
will be processed to provide information to generate report.

This study will not include entrance examination since this is focusing on online

enrollment system. In summer class, the registrar can pass the student but it will

remark that the student taken the summer class. Also, the monitoring of the

progression of enrollment is not part of the system.

STI College Calamba 6


REVIEW OF RELATED LITERATURE/SYSTEMS

This chapter shows the related studies and literature of the system that may help
the researchers in developing the project. The purpose of this is to serve as
reference for the developers in terms of developing this online enrollment system.

Log-in
Log-in/Log-out Services, refers to one of the features of the proposed system that
will require authorized users to enter their user ID and password to be able to
access their user account in the administrator’s module, registrar’s module, and
enrolment/cashier module. (inettutor.com, 2019).
The new Online Enrollment System will have own login page for the student to
view their profile with their school assessment and also advertise the school. And
also the administrative login page to secure and manage the assessment form,
student profile and detailed reports. (capstoneguide, 2020).

Student record
Online Enrollment System is very essential in a school. In the case of Quirino
High School, it is composed of a manual system. Directress used manual system
in recording and retrieving student’s information. She also has information about
student’s payment. In fact, she does all the record keeping just by using ball pen
and columnar sheet. On the other hand, Registrar Department also used manual
system as a way of recording and retrieving student information. Another
department is Accounting Office that administers student’s payment manually.
(capstoneguide, 2020).
Automated enrollment system that will support the student enrollment,
admissionand registration process. It includes the maintenance of student
personal, academic andrelated fees. Database maintained by this system usually
contains the student’s personal, academic and its fee related information. It
focuses on storing and processing (insertion,updation) by using graphical user
interface. It generates student information in formattedtables, fees invoice,

STI College Calamba 7


subjects enrolled, student’s academic detail report, student’s personaldetail report,
student’s fee deposition status report, student’s all student’s currently deposited
their fees. And it stores merit list provided by College. Automate manual
paperwork done at the time of student’s enrollment. Eliminate paper work. And
efficiently manage the student academic, personal, fees and details. Enrolment
system is a term used frequently in higher education to describe well-planned
strategies and tactics to shape the enrolment of an institution and meet
establishedgoals. Plainly stated, enrolment system is an organizational concept
and a systematic set ofactivities designed to enable educational institutions to
exert more influence over theirstudent enrolments. (Luna, n.d.)

Enrollment System will provide the needed information in a faster, more


convenient way by storing files of the student enrollees in a computer system that
will lessen the effort of faculty and staff on storing files of every student. This
information here can be viewed quickly without worrying that a single file might
be lost. The idea behind an enrollment system is not a new concept. As student
enrollees increase every year, the enrollment procedure becomes more
challenging. This program will only serve to alleviate the problem facing
enrollment by providing an easier way to handle the enrollment process.
(inetutor.com, 2018).

School Record
Administrator’s Module. It llows the school administrator to manage sections,
year level, school year (set active school year – used in current enrollment),
subjects, faculty and staff.
Registrar’s Module. It allows the registrar office staff to manage students
credentials, view list of enrolled students, view student records and input grades.
(inettutor.com, 2019).
Enrollment/Cashier Module. It allows the cashier to view enrollment statistics,
enrolled student complete details, record payments, manage fees and student
ledger. (inettutor.com, 2019).

STI College Calamba 8


Database Maintenance. It refers to one of the features of the system wherein the
administrator can update students’ records, manage data and transaction log files,
and backup the system. (inettutor.com, 2019).

Online Based
The pandemic crisis brought a multitude of challenges in every higher educational
institution for the reason that the national government imposed different
restrictions and health protocols. Hence, this study aimed to determine the
predicaments, situations, and experiences of students specifically in terms of the
online enrollment process of Nueva Ecija University of Science and Technology
for the academic year 2020–2021. The researchers of this study used a descriptive
method of research to assess the feedback of 1,078 students in terms of the
system’s functionality, reliability, usability, efficiency, maintainability, and
portability. At the same time, this study was conducted to identify the level of
qualities the system can provide to the university’s stakeholders and to determine
the technical loopholes and attribute that requires updating to satisfy the
university’s clientele–the students. The results have shown that the students found
the system very good in terms of its functionality, reliability, usability, efficiency,
maintainability, and portability and only good concerning its efficiency. This
means that the system provides a high level of quality and requires minimal
rectifications for improvement. In that case, the researchers suggested improving
the system in terms of efficiency which is about the use of possible input to
produce a quality and highest possible amount of output. Finally, the researchers
suggested conducting future studies wherein the system will be assessed by
Technical Experts in terms of technical aspects of the system which is based on
ISO/IEC 25010:2011 or software quality standards. (Mina, Campos, Reyes,
Garcia, & Torres, 2021)

STI College Calamba 9


Automated Enrollment System Enrollment
Highschool System Complete
Online Enrollment
Introduction OnlineofEnrollment
Students’ Assessment
and Background the Syst
of Palompon Institute of
System Capstone
Capstone Documentation
Project Online Enrollment Institute
of the Study for Online System of for Foundati
Technology - Tabango Campus,DocumentIntegrated Enrollment System
Nueva Ecija UniversityLearning
of Inc.
Mrvnpc, Tabango, Leyte Science and Technology: An
Experienced Based
FEATURES

Log-in
✓ ✓ ✓
Student Record ✓ ✓ ✓ ✓
School Record ✓ ✓
Online Based ✓ ✓

Email Notification ✓

STI College Calamba 10


Synthesis

The studies and literatures that were discussed are important to the current system
that the researchers will implement. It will help the researchers to know what are
the features that are needed to update or to create to satisfy the client and the user.
Also, to increase the effectiveness in terms of speed, reliability and accuracy of
the process.

Table 1 : Bench Marking

STI College Calamba 11


TECHNICAL BACKGROUND

Overview of Current Technologies Used in the Current System

The HyperText Markup Language, or HTML is the standard language for creating
simple web pages that can be displayed in a web browser. It can be assisted by
another technology such as Cascading Style Sheets or CSS, and scripting
languages such as JavaScript. These HTML documents are then received by web
browsers from a server or from a local storage and render the documents into
multimedia web pages. HTML describes the structure of a web page semantically
and originally included cues for the appearance of the document. In these modern
times, HTML is a significant part of web development. This is the foundation of
web pages.
Cascading Style Sheets is a language used for designing HTML. CSS is a
technology made for the World Wide Web, alongside HTML and JavaScript. CSS
is another significant part of HTML. Without CSS, any web pages would be
insignificant.
JavaScript is a programming language designed to add scripting capabilities to an
HTML document. All major web browsers have a dedicated JavaScript engine to
execute the code on the user's device. JavaScript is a multi-paradigm language
that supports event-driven, functional, and imperative programming styles. This
programming language are often partnered with HTML and CSS. Together, they
create websites that are multi-functional, perfectly designed, and user-friendly.
Another technology of the modern world is the Bootstrap. Bootstrap is a potent
front-end framework used to create modern websites and web apps. It's open-
source and free to use yet features numerous HTML and CSS templates for UI
interface elements such as buttons and forms. Bootstrap also supports JavaScript
extensions.
PHP is a server-side scripting language. that is used to develop Static websites or
Dynamic websites or Web applications. PHP stands for Hypertext Pre-processor,

STI College Calamba 12


that earlier stood for Personal Home Pages. PHP scripts can only be interpreted on
a server that has PHP installed.
And lastly, to handle data we have gathered, we will use SQL Server. SQL is a
special-purpose programming language designed to handle data in a relational
database management system. A database server is a computer program that
provides database services to other programs or computers, as defined by the
client-server model.

Calendar of Activities

The researchers used Gantt chart for their list of activities during the making of this
capstone project. The researchers used Waterfall methodology for marking the tasks
they have done and new tasks to begin. The blue mark represents the tasks that are
done and yellow for the on-going task. Researchers began their brainstorming of
possible titles on the third and fourth week of the month February. Data gathering on
third to fourth week of February until third week of March. Together with data
gathering, the project coordinator began with the title checking. In line with this, the
whole month of March was dedicated to making of chapter one. From the third week
of March up to first week of April, the researchers also did the chapter two.
Additionally, the selection of adviser happened on the fourth week of February up to
the second week of March. On the third week of April, the title approval happened.
After the approval, the researchers began to find a client on second to third week of
April for this study. After finding a client, they begin to do documentations on the
third week of April. After the documentation, the title defense will be held on 1st
week of May. Revisions of the chapter one to three and the start of system
development after the title defense. Researchers will start doing their chapter four and
five on their next semester next school year.

STI College Calamba 13


Gantt Chart of Activities

MONTH
FEBRUARY MARCH APRIL MAY JUNE JULY AUGUST SEPTEMBER OCTOBER NOVEMBER
ACTIVITY
 PLANNING
 *Title making
 *Data gathering
 *Title checking
 * Selection of adviser
  * Title approval
 * Finding Client
  DOCUMENTS
 *CHAPTER 1-3
 *CHAPTER 4-5
CONSULTATION
  TITLE DEFENSE
System Development
Final Defense
 REVISION
 *CHAPTER1-3
*CHAPTER4-5
Table 2: Gantt Chart of Activities

Legend :

- On going

- Completed

STI College Calamba 14


Resources

Hardware
Hardware Minimum Hardware Recommended Hardware
Requirements Requirements
Internal Memory (RAM) 2.00 GB 4.00 GB

Storage Capacity 120 GB 240 GB or Higher

Processor Intel Pentium 1.8 GHz Pentium® Dual Core


2.20GHz or Faster

Table 3: Hardware Specifications

Internal Memory (RAM) 2 GB. - Computer random access memory (RAM) is one
of the most important components in determining your system's performance. RAM
gives applications a place to store and access data on a short-term basis. It stores the
information your computer is actively using so that it can be accessed quickly.

Figure 1. Internal Memory (RAM)

Storage Hard Disk Drive 120 GB - Hard disk drives are commonly used as the
main storage device in a computer. HDDs often store operating system, software
programs and other files, and can be found in desktop computers, mobile devices,
consumer electronics and enterprise storage arrays in data centers.

STI College Calamba 15


Figure 2: Storage Capacity

Processor Intel Pentium 1.60 GHz - A central processing unit (CPU) is an important
part of every computer. The CPU sends signals to control the other parts of the
computer, almost like how.

Figure 3: Processor

STI College Calamba 16


Software
Software Software Minimum Software Recommended
System Requirements System Requirements
Operating System Windows 7 (With .NET Windows 10 (32-Bit or
Framework 4.5.2), 8.0, 64-Bit)
8.1

MySQL 1.8 Ghz 2.20 GHz or Higher


2 GB of RAM 4 GB of RAM or Higher

Notepad++ Intel Pentium III Intel Pentium IV or


Higher
2 GB of RAM 4 GB of RAM

XAMPP Intel Pentium III Intel Pentium IV or


1 GB of RAM Higher
2 GB of RAM or Higher

Table 4 : Software Specifications

Operating System - An operating system or OS is software installed on a


computer's hard drive that enables the computer hardware to communicate and operate
with the computer software. Without a computer operating system, a computer and
software programs would be useless. The picture shows Microsoft Windows XP in its
original packaging.With earlier computers, the user interacted with them using
a command line interface, which required memorization of commands. Today, almost
every computer uses a GUI (Graphical User Interface) operating system that's easy to
use and operate. (Computer Hope, 2021).

STI College Calamba 17


Figure 4: Operating System

MySQL - MySQL is an Oracle-backed open source relational database management


system (RDBMS) based on Structured Query Language (SQL). MySQL runs on
virtually all platforms, including Linux, UNIX and Windows. Although it can be used
in a wide range of applications, MySQL is most often associated with web
applications and online publishing. (Moore, 2018b)

Figure 5: MySQL

STI College Calamba 18


Notepad++ - is a text writing application with improved tools than a regular notepad.
This tool will help the developers in web development.

Figure 6: Notepad++

XAMPP- this tool is used to develop php web sites.

Figure 7 : XAMPP

STI College Calamba 19


METHODOLOGY, RESULTS AND DISCUSSION

This chapter described the methods and procedures for carrying out the capstone

project. It covers requirements analysis, requirement documentation, system design,

development and testing, a description of the prototype, an implementation plan,

and the results of the implementation.

Figure 8. Modified Waterfall Model

Figure 1 depicts the Modified Waterfall Model that will be used by the researchers
in developing the Online Enrollment System. The model progresses systematically
from one phase to the next in a statistical manner, just like a waterfall. It is divided
into several stages, the details of which are as follows:

Requirements Analysis. During this phase, the researchers will investigate how the
system operates, ascertain the user's wants, needs, and requirements, and

STI College Calamba 20


recommend a solution. It also entails developing estimates for the work to be done,
establishing the necessary commitments, and defining the work plan.

Requirements Documentation. This phase focused on creating a detailed


storyboard that depicts how the system will look once it has been designed.

System Design. During this phase, the system will be designed based on the
system's requirements. The programmer will compose the source code required to
build the system.

Development and testing. This phase focused on determining whether the


software's functions and features functioned as specified, to guarantee that the
produced system is complete and works efficiently, to assess whether the software
performs all activities after implementation with the existing operating
environment, and to assess the software's reliability and overall quality.

Implementation Plan. During this phase, the researchers will run the system
through its paces and check to see if the recommended functions and user
suggestions are met.

A. Requirements Analysis
This phase focuses on the procedures that will be used to build the desired
system. This includes how the system was constructed, specifically how the
researchers and client discussed the desired system that must be constructed.
The system was designed for the online enrollment system of the Institute for
Foundational Learning, Inc. Researchers were able to collect data from their
clients via recorded video calls and online messaging, such as how they
process enrollment, what common problems they were encountering while
using their current system, and what the requirements for registration and
enrollment are. According to the client, a platform that allows her to see the
student's details and mode of payment is a huge help in reducing her workload

STI College Calamba 21


as a registrar and a cashier, especially if there is an order reference number
(ORN) with the date already included. Following the client discussion, the
researchers begin to create a flowchart that will meet the client's request for
their system. We sent it to the client for review once it was completed.
Flowchart

B. Requirements Documentation

The presentend documentation are the agreement between the client and
researcher:
For Registrar-user side:
In this picture it show the Login Page can use by admin, registrar, teacher and
guidance where they can access the dashboard.

Figure 9. Admin, Registrar, Teacher, Guidance Login Page

In this homepage of the registrar they can access and view the dashboard,
student list, applicant list, Sections, Subject, Faculty, Room, School Year,
Price for RAF, Audit Trails, and Settings.

STI College Calamba 22


STI College Calamba 23
Figure 10. Homepage of Registar

In this Dashboard module the registrar can see the applicant ID where the
registrar can see the personal information about the student. Also, it can do
view for the registration receipt and the exam result. It can do an action for
scheduling exam, view exam result, accepting applicant, and enroll student.

STI College Calamba 24


Figure 11. Dashboard module

Figure 11.1 Dashboard module

In this Applicant List module the registrar can see the new applicants can
view the action. Also, it can search the specific applicant.

STI College Calamba 25


Figure 12. Applicant List Module

In this Student List module the registrar can see the list of student. The
registrar can see the applicant ID, personal information, status, and grade
level. It can view the profile of the applicant the Registration Assessment
Form will appear once the view button click. Also, it can search the specific
applicant.

Figure 13. Student List Module

Figure 13.1 Student List Module

STI College Calamba 26


In this Section module the registrar can create the section ID and grade level.

Figure 14. Section Module

Figure 14.1. Section Module

STI College Calamba 27


Figure 14.2. Section Module

Figure 14.3. Section Module

Figure 14.4. Section Module

In this Subject module the registrar can add the Subject ID and Subject Name
and the Grade level. It can do an action like edit and delete.

STI College Calamba 28


Figure 15. Subject Module

Figure 15.1. Subject Module

In this Faculty module the registrar can view the faculty name and designated
grade level. Also, the action that can registrar do are edit and delete.

STI College Calamba 29


Figure 16. Faculty Module

In this Room module the registrar can add the room name. also, it can do an
action like edit and delete.

Figure 17. Room Module


In this School Year module the registrar can add the school year. also, it can
do an action like edit, delete and activate the the present school year.

Figure 18. School Year Module

STI College Calamba 30


In this Price for RAF module the registrar edit and add the grade level, fee,
and price.

Figure 19. Price for RAF Module

In this Audit Trails module the registrar can view the logs and date created.

Figure 20. Audit trails Module

STI College Calamba 31


In this Settings module the registrar can edit the account.

Figure 21. Settings Module

For Admin-user side:


In this Homepage of admin can see the dashboard module, accounts module,
and settings module.

Figure 22. Homepage of admin

STI College Calamba 32


In this Accounts module of admin can add, edit, and delete the accounts.

Figure 23. Accounts

Figure 23.1 Accounts

STI College Calamba 33


Figure 23.2 Accounts

In this Settings module of admin can edit and delete the administrator
accounts. It can add administrator account. Also, it can edit the display
picture and videos on the front page of the user side. In addition, it can update
the link url.

Figure 24. Settings

Figure 24.1 Settings

STI College Calamba 34


Figure 24.2 Settings

Figure 24.3 Settings

For Faculty-user side:


In this List of students module where the teacher can select students and view
the grade upload module.

STI College Calamba 35


Figure 25. List of Students

In this Grades Upload module where you can select the specific class for
student grades. It can enter the grades the students.

Figure 26. Grades Upload

In this list of Schedule module the teacher can view the schedule like the
subject, level and section, days, time, room, and instructor.

STI College Calamba 36


Figure 27. List of Schedule

For user side:


This is the landing page of the user side. When the new applicant, old
students, and transferee students go to the website this page they will see. The
home, sign up for those haven’t account, and login for those who have
already an account.

Figure 28. Landing page

Figure 28.1 Landing page

STI College Calamba 37


When the user side click the Login button this will ask the user email and
password for them to access the page

Figure 29. Login for user

When the user side click the signup button this will ask the user first name,
middle name, last name, email, and contact number.

Figure 30. Sign up

When the user side already done in the registration for sign up, the admin will
send this on the email that the user given for them to access the site.

STI College Calamba 38


Figure 31. email account verification

When the user login in this will the homepage. The user can see the home,
admission, student information, requirements, RAF, and grades.

Figure 32. Login Homepage

STI College Calamba 39


Figure32.1 Login Homepage

Figure 32.2 Login Homepage

When the user go to the admission module the user can see the payment
instructions of school fee and balances. After reading the instruction, the user can
proceed to registration for pre-enrollment.

STI College Calamba 40


Figure 33. Admission

Figure 33.1. Admission

Figure 33.2 Admission

When the user click the Register Now button on the admission module this will
pre-enrollment registration form will appear. The user will input the information
needed to be able to have registered on pre-enrollment.

STI College Calamba 41


Figure 34 Pre-Enrollment Regisration

Figure 34.1 Pre- Enrollment


Regisration

STI College Calamba 42


Figure 34.2 Pre-Enrollment Regisration

Figure 34.3 Pre-Enrollment Regisration

When the user got passed the examination the applicant will receive the email for
the requirements and instructions on payment.

STI College Calamba 43


Figure 35. Email for passing the examination,requirements and payment

When the applicant go to the student information, the applicant can view the proof
of payment that attached, the examination result, personal information, and
grades.

Figure 36. Student Information

Figure 36.1. Student Information

STI College Calamba 44


Figure 36.2. Student Informations

When the applicant go to the Requirement, the applicant can attached the school
requirements.

Figure 37. Requirements

Figure 37.1 Requirements

STI College Calamba 45


When the applicant go to the Registration Assessment Form(RAF), the applicant
can view the schedule and tuition fee. Also, it can save it on excel and can print it.

Figure 38. RAF

Figure 38.1. RAF

STI College Calamba 46


Figure 38.2. RAF

The student can view their grades once the semester is done.

Figure 39. Grades

STI College Calamba 47


C. Design of Software, System, Product, and/or Processes

Figure 40. User Flowchart (User Page)

STI College Calamba 48


Figure 41. Admin Flowchart (Admin Side)

Figure 42. Faculty Flowchart (Admin Side)

STI College Calamba 49


Figure 43. Registrar Flowchart (Admin Side)
The overall procedure of the Institute for Foundational Learning, Inc.'s online
enrollment method is described in this phase. This system has two pages: the
admin page and the user page. The admin, registrar, and faculty are the only
people who can access the admin page. Only the administrator has the ability to
add or delete accounts. They're also in charge of updating the homepage's
photographs and videos. The only capabilities available to faculty are the ability
to upload grades and examine their schedules as well as lists of students with their
information. When in the registrar, they can accept and register applicants,
arrange an entrance exam, upload entrance exam results, enroll students, see
student details and prerequisites, assign timetables, room assignments, assign
topic and grade level instructors, and upload the Registration Assessment Form
(RAF). Meanwhile, on the user’s page, users can examine their information, RAF,
grades uploaded by their teachers, timetables, and prerequisites passed on the
user's website.

D. Development and Testing

During this phase, the researchers employ the Modified Waterall Model in the
development of an online enrollment system for Institute Foundational Learning
Inc. The software evolved as a result of information shared between the client and
the researchers. The researcher will conduct testing in every way possible. It
includes both preliminary and final testing of the new software. Prior to
deployment, the Online Enrollment System, including equipment and software,
should be tested to ensure that the system works as expected.

STI College Calamba 50


CONCLUSIONS AND RECOMMENDATIONS

In this chapter it indicates summary, conclusions, and recommendation of the


project based on the data gathered and information collected.

SUMMARY

To address the current state of the system, the researchers design and develop a
project Online Enrollment System Institute for Foundational Learning INC. The
goal of this project is to create a functional system that will assist applicants,
students, teachers, and administrators in managing the pre-enrollment and
enrollment processes.
CONCLUSION

To conclude, the researchers addressed the current state of the client's system by
developing project, Online Enrollment System For Institute Foundational
Learning INC.. The system developed to assist them in having a right and proper
processing of the data gathered and collected. It also saves students time by
allowing them to complete the requirements on-site rather than driving back and
forth to school. Furthermore, it benefits old, and transferee students by allowing
them to complete their pre-enrollment registration and enrollment on the website.

RECOMMENDATIONS

The researchers recommend that this system be implemented in the school so that
the enrollment system can be accessed online. The school can process pre-
enrollment registration and enrollment by implementing this system. It also aids
in the management and control of student records, viewing grades, and viewing
schedules. This system will make contactless enrollment possible for new, old,
and transferee students.

STI College Calamba 51


Appendix

The following pages contain the references, resource person(s), and curriculum vitae
of the researchers. Resource persons are those who contributed to the development of
your research.

REFERENCES

Capstoneguide (2020, August 28). Capstone Guide. Retrieved from


capstoneguide.com:
https://capstoneguide.com/highschool-online-enrollment-system-capstone-project-
document/?
fbclid=IwAR1ClkCu836UtGNTfAS6LEW2ghJ4SjhvOWZJAfa2eWBehThRGfIrHvme2So

inettutor.com (2019, March 28). inettutor.com. Retrieved from inettutor.com:


https://www.inettutor.com/source-code/enrollment-system-complete-capstone-
documentation/?
fbclid=IwAR2rWMDPPstoQkW2_4Enjwj8PPmoyYE9DLZcpvKmx4WjEvgNkx-vIOQxipI

inetutor.com (2018, November 3). inetutor.com. Retrieved from inetutor.com:


https://www.inettutor.com/source-code/introduction-and-background-of-the-
study-for-online-integrated-enrollment-system/?fbclid=IwAR2qltwtKECF-
kKcSlfGTsEhsTtWBVcbmIhKebkuNIp1CePJOKnJBathqiQ

Luna, N. P. (n.d.). Academia. Retrieved from academia.edu.

Mesias, J. A., Matienzo, V. S., Decena, H., & Augustin, L. F. (2019). Microsoft
Academic. Retrieved from academic.microsoft.com:
https://academic.microsoft.com/paper/2909405268/related/search?q=Online
%20Enrollment%20Reservation%20System%20with%20SMS%20Notification

STI College Calamba 52


%20Implementing%20Descriptive%20Analytics%20for%20Binan%20City%20Senior
%20High%20School&qe=Or(Id%253D3004458872%252CId%2
Mina, J. C., Campos, R. B., Reyes, E. J., Garcia, M. D., & Torres, R. A. (2021, January
1). IJISRT A DIGITAL LIBRARY. Retrieved from https://ijisrt.com/:
https://ijisrt.com/assets/upload/files/IJISRT21JAN487.pdf

Moore, L. (2018, July 31). MySQL. SearchOracle. Retrieved from:


https://searchoracle.techtarget.com/definition/MySQL

Computer Hope. (2021, April 12). What is OS (Operating System)? Retrieved from:
https://www.computerhope.com/jargon/o/os.htm

STI College Calamba 53


Resource Person

The data gathered and collected by the researchers from the client, Institute For
Foundational Learning INC. The researchers conducted an interview through
online platform to able to collect and gathered the needed data.The data about the
school, process of the pre-enrollment and enrollment, the number of students,
number of teachers, number of laboratory, number of rooms. The school offers
pre-school to Senior High School. In Senior High School the strand that they
offered are: specialized in academic track Science, Technology, Engineering, and
Mathematics (STEM), Humanities and Social Sciences Strand (HUMSS), and
General Academic Strand (GAS). Also, strand that specialized in Technical-
Vocational-Livelihood track in Information Communication and Technology
(ICT). The class time for the pre-school, elementary, Junior High School and
Senior High school. The opening hours of the school. also, the current state of
system. By gathering and collecting this data, the researcher use this as an
reference to developed the system.

STI College Calamba 54


Relevant Source Code

The source code shown below use to developing the Online Enrollment System
For Institute For Foundational Learning INC.

add_user
<?php

include "config.php";

if($_POST)
{
$name=$_POST['name'];
$email=$_POST['email'];
$password=$_POST['password'];
$number=$_POST['number'];
$address=$_POST['address'];

$sql="INSERT INTO `register`(`name`, `email`, `password`, `number`,


`address`) VALUES ('".$name."','".$email."','".$password."','".$number."','".
$address."')";

$query = mysqli_query($conn,$sql);
if($query)
{
session_start();
$_SESSION['name'] = $name;
header('Location: home.php');
}
else
{
echo "Something went wrong";

STI College Calamba 55


}

}
?>
Admin_account_settings
<section class="section">
<div class="row">
<div class="col-lg-12">
<div class="card">
<div class="card-body">
<h5 class="card-title">Settings</h5>
<p>Administrator Accounts</p>
<table class="table table-bordered">
<tr>
<th>Name</th>
<th>Username</th>
<th>Password</th>
<th>Action</th>
</tr>
<?php
$accreg = $link->query("SELECT * FROM admin ");
while($fetch = $accreg->fetch_array()){
?>
<form action="admin_accounts_process.php" method="post">
<tr>
<input type="hidden" name="id" value="<?php echo
$fetch['id'];?>">
<td><input class="form-control" type="text"
name="admin_name" value="<?php echo $fetch['name'];?>"></td>
<td><input class="form-control" type="text"
name="admin_user" value="<?php echo $fetch['user'];?>"></td>

STI College Calamba 56


<td><input class="form-control" type="text"
name="admin_pass" value="<?php echo $fetch['pass'];?>"></td>
<td><input class="btn btn-primary" type="submit"
name="admin_edit" value="Edit">
<input class="btn btn-danger" type="submit"
name="admin_delete" value="Delete"></td>
</tr>
</form>
<?php
}
?>
</table>
<div class="col-lg-4">
<form action="admin_accounts_process.php" method="post">
<p class="card-title">Add Administrator Account</p>
<p class="card-title">Set Name</p>
<input required class="form-control" type="text"
name="admin_name">
<p class="card-title">Set Username</p>
<input required class="form-control" type="text"
name="admin_user">
<p class="card-title">Set Password</p>
<input required class="form-control" type="password"
name="admin_pass"><br>
<input class="btn btn-primary" type="submit"
name="admin_addacc" value="Add">
</form>
</div>
<p class="card-title">Add Picture for Carousel on Home Page</p>
<div class="col-lg-4">

STI College Calamba 57


<form action="admin_carousel.php" method="post"
enctype="multipart/form-data">
<input required class="form-control" type="file"
name="file"><br>
<input class="btn btn-primary" type="submit" name="submit"
value="Submit">
</form>
</div>
<table class="table table-bordered table-strip">
<tr>
<th>File Name/Path</th>
<th>Action</th>
</tr>

<?php
$getfiles = $link->query("SELECT * FROM carousel");
if($getfiles){
while($fetch = $getfiles->fetch_array()){
?>
<tr>
<form action="admin_carousel.php" method="post">
<input type="hidden" name="id" value="<?php echo
$fetch['id'];?>">
<td><a href="<?php echo $fetch['file']?>"><?php echo
$fetch['file']?></a></td>
<td><input class="btn btn-danger" type="submit"
name="delete" value="Delete"></td>
</form>

</tr>
<?php

STI College Calamba 58


}
}
?>
</table>
<p class="card-title">Change link on the iframe of the Home
Page</p>
<table class="table table-bordered table-strip">
<tr>
<th>Link Url</th>
<th>Action</th>
</tr>

<?php
$getfiles = $link->query("SELECT * FROM iframe");
if($getfiles){
while($fetch = $getfiles->fetch_array()){
?>
<tr>
<form action="admin_carousel.php" method="post">
<input type="hidden" name="id" value="<?php echo
$fetch['id'];?>">
<td><input class="form-control" type="text" name="link"
value="<?php echo $fetch['link'];?>"></td>
<td><input class="btn btn-primary" type="submit"
name="update" value="Update"></td>
</form>

</tr>
<?php
}
}

STI College Calamba 59


?>
</table>
</div>
</div>
</div>
</div>
</section
Admin_account_settings
<section class="section">
<div class="row">
<div class="col-lg-12">
<div class="card">
<div class="card-body">
<h5 class="card-title">Accounts</h5>
<p>You can add/edit accounts here.</p>
<p class="card-title">Registrars</p>
<table class="table table-bordered">
<tr>
<th>Name</th>
<th>Username</th>
<th>Password</th>
<th>Action</th>
</tr>
<?php
$accreg = $link->query("SELECT * FROM account where
type=1");
while($fetch = $accreg->fetch_array()){
?>
<form action="admin_accounts_process.php" method="post">
<tr>

STI College Calamba 60


<input type="hidden" name="id" value="<?php echo
$fetch['id'];?>">
<td><input class="form-control" type="text"
name="name" value="<?php echo $fetch['name'];?>"></td>
<td><input class="form-control" type="text" name="user"
value="<?php echo $fetch['user'];?>"></td>
<td><input class="form-control" type="text" name="pass"
value="<?php echo $fetch['pass'];?>"></td>
<td><input class="btn btn-primary" type="submit"
name="edit" value="Edit">
<input class="btn btn-danger" type="submit"
name="delete" value="Delete"></td>
</tr>
</form>

<?php
}
?>
</table>
<p class="card-title">Faculty</p>
<table class="table table-bordered">
<tr>
<th>Name</th>
<th>Username</th>
<th>Password</th>
<th>Action</th>
</tr>
<?php
$accreg = $link->query("SELECT * FROM account where
type=2");
while($fetch = $accreg->fetch_array()){

STI College Calamba 61


?>
<form action="admin_accounts_process.php" method="post">
<tr>
<input type="hidden" name="id" value="<?php echo
$fetch['id'];?>">
<td><input class="form-control" type="text"
name="name" value="<?php echo $fetch['name'];?>"></td>
<td><input class="form-control" type="text" name="user"
value="<?php echo $fetch['user'];?>"></td>
<td><input class="form-control" type="text" name="pass"
value="<?php echo $fetch['pass'];?>"></td>
<td><input class="btn btn-primary" type="submit"
name="edit" value="Edit">
<input class="btn btn-danger" type="submit"
name="delete" value="Delete"></td>
</tr>
</form>
<?php
}
?>
</table>
<div class="col-lg-4">
<form action="admin_accounts_process.php" method="post">
<p class="card-title">Account Type</p>
<select required name="type" class="form-select">
<option selected disabled value="">-Select Account
Type-</option>
<option value="1">Registrar</option>
<option value="2">Faculty</option>
</select>
<p class="card-title">Full Name</p>

STI College Calamba 62


<input required class="form-control" type="text"
name="name">
<p class="card-title">Set User</p>
<input required class="form-control" type="text" name="user">
<p class="card-title">Set Password</p>
<input required class="form-control" type="password"
name="pass"><br>
<input class="btn btn-primary" type="submit" name="addacc"
value="Add">
</form>
</div>

</div>
</div>
</div>
</div>
</section
Admin_account_process
<?php
include('config.php');
if(isset($_POST['addacc'])){
$name = $_POST['name'];
$user = $_POST['user'];
$pass = $_POST['pass'];
$type = $_POST['type'];
$addacc = $link->query("INSERT INTO account(name, user, pass,
type)VALUES('$name','$user','$pass',$type)");
if($addacc){
$message1 = "Account added successfully!";
echo "<script type='text/javascript'>alert('$message1');</script>";
header("Refresh:0; url=admin_dashboard.php?account=true");

STI College Calamba 63


}
else{
echo "Error" . mysqli_error($link);
}
}
elseif(isset($_POST['edit'])){
$name = $_POST['name'];
$id = $_POST['id'];
$user = $_POST['user'];
$pass = $_POST['pass'];
$editacc = $link->query("UPDATE account SET name='$name', user='$user',
pass='$pass' WHERE id='$id'");
if($editacc){
$message1 = "Account edit success!";
echo "<script type='text/javascript'>alert('$message1');</script>";
header("Refresh:0; url=admin_dashboard.php?account=true");
}
else{
echo "Error" . mysqli_error($link);
}
}
elseif(isset($_POST['delete'])){
$id = $_POST['id'];
$deleteacc = $link->query("DELETE FROM account WHERE id='$id'");
if($deleteacc){
$message1 = "Account deleted!";
echo "<script type='text/javascript'>alert('$message1');</script>";
header("Refresh:0; url=admin_dashboard.php?account=true");
}
else{
echo "Error" . mysqli_error($link);

STI College Calamba 64


}
}
elseif(isset($_POST['admin_addacc'])){
$name = $_POST['admin_name'];
$user = $_POST['admin_user'];
$pass = $_POST['admin_pass'];
$admin_addacc = $link->query("INSERT INTO admin(name, user,
pass)VALUES('$name','$user','$pass')");
if($admin_addacc){
$message1 = "Admin account added successfully!";
echo "<script type='text/javascript'>alert('$message1');</script>";
header("Refresh:0; url=admin_dashboard.php?admin_settings=true");
}
else{
echo "Error" . mysqli_error($link);
}
}
elseif(isset($_POST['admin_edit'])){
$id = $_POST['id'];
$name = $_POST['admin_name'];
$user = $_POST['admin_user'];
$pass = $_POST['admin_pass'];
$editacc = $link->query("UPDATE admin SET name='$name', user='$user',
pass='$pass' WHERE id='$id'");
if($editacc){
$message1 = "Admin account edit success!";
echo "<script type='text/javascript'>alert('$message1');</script>";
header("Refresh:0; url=admin_dashboard.php?admin_settings=true");
}
else{
echo "Error" . mysqli_error($link);

STI College Calamba 65


}
}
elseif(isset($_POST['admin_delete'])){
$id = $_POST['id'];
$deleteacc = $link->query("DELETE FROM admin WHERE id='$id'");
if($deleteacc){
$message1 = "Account deleted!";
echo "<script type='text/javascript'>alert('$message1');</script>";
header("Refresh:0; url=admin_dashboard.php?admin_settings=true");
}
else{
echo "Error" . mysqli_error($link);
}
}
?>
Admin_applicant_view
<?php
$email = $_GET['e_mail'];
$level = $_GET['level'];
$app_id = $_GET['app_id'];
$fname = $_GET['f_name'];
$mname = $_GET['m_name'];
$lname = $_GET['l_name'];
?>
<section class="section">
<div class="row">
<div class="col-lg-12">
<div class="card">
<div class="card-body">
<h5 class="card-title"><?php echo $fname . " " . $mname . " " .
$lname;?></h5>

STI College Calamba 66


<p></p>
<table class="table">
<tr>
<th colspan="9" style="background-color:grey; color:
white;"><center>Applicant ID</th>
</tr>
<tr>
<th>Applicant ID</th>
<th>Full Name</th>
<th>Grade Level</th>
<th>Date of Birth</th>
<th>Age</th>
<th>Place of Birth</th>
<th>Religion</th>
<th>Address</th>
<th>Church</th>
</tr>
<?php
$sql = $link->query("SELECT * from applicant where
applicant_id=$app_id");
while($fetch = $sql->fetch_array()){
?>
<tr>
<td><?php echo $fetch['applicant_id'];?></td>
<td><?php echo $fetch['fname'];?> <?php echo
$fetch['mname'];?> <?php echo $fetch['lname'];?></td>
<td><?php echo $fetch['level'];?></td>
<td><?php echo $fetch['dob'];?></td>
<td><?php echo $fetch['age'];?></td>
<td><?php echo $fetch['pob'];?></td>
<td><?php echo $fetch['religion'];?></td>

STI College Calamba 67


<td><?php echo $fetch['house'];?> <?php echo
$fetch['barangay'];?> <?php echo $fetch['city'];?> <?php echo $fetch['province'];?
></td>
<td><?php echo $fetch['church'];?></td>
</tr>
<?php
}
?>
<tr>
<th colspan="2">Father's Full Name</th>
<th>Father's Occupation</th>
<th>Father's Contact</th>
<th colspan="2">Mother's Full Name</th>
<th>Mother's Occupation</th>
<th>Mother's Contact</th>
</tr>
<?php
$sql = $link->query("SELECT * from applicant where
applicant_id=$app_id");
while($fetch = $sql->fetch_array()){
?>
<tr>
<td colspan="2"><?php echo $fetch['dadfname'];?> <?php
echo $fetch['dadmname'];?> <?php echo $fetch['dadlname'];?></td>
<td><?php echo $fetch['dadocc'];?></td>
<td><?php echo $fetch['dadcontact'];?></td>
<td colspan="2"><?php echo $fetch['momfname'];?> <?php
echo $fetch['mommname'];?> <?php echo $fetch['momlname'];?></td>
<td><?php echo $fetch['momocc'];?></td>
<td><?php echo $fetch['momcontact'];?></td>
</tr>

STI College Calamba 68


<?php
}
?>
<tr>
<th colspan="2">Emergency Person's Full Name</th>
<th colspan="2">Emergency Person's Relation</th>
<th colspan="2">Emergency Person's Address</th>
<th colspan="2">Emergency Person's Contact Number</th>
</tr>
<?php
$sql = $link->query("SELECT * from applicant where
applicant_id=$app_id");
while($fetch = $sql->fetch_array()){
?>
<tr>
<td colspan="2"><?php echo $fetch['emergname'];?></td>
<td colspan="2"><?php echo $fetch['emergrelation'];?> <?
php echo $fetch['mname'];?> <?php echo $fetch['lname'];?></td>
<td colspan="2"><?php echo $fetch['emergaddress'];?></td>
<td colspan="2"><?php echo $fetch['emergcontact'];?></td>
</tr>
<?php
}
?>
<tr>
<th colspan="2">Distance Learning Person's Full Name</th>
<th colspan="2">Distance Learning Person's Contact</th>
</tr>
<?php
$sql = $link->query("SELECT * from applicant where
applicant_id=$app_id");

STI College Calamba 69


while($fetch = $sql->fetch_array()){
?>
<tr>
<td colspan="2"><?php echo $fetch['distname'];?></td>
<td colspan="2"><?php echo $fetch['distcontact'];?></td>
</tr>
<?php
}
?>
<tr>
<th colspan="5">Registration Fee Receipt</th>
<th colspan="4">Exam Result</th>
</tr>
<?php
$sql = $link->query("SELECT pay_rec, proof from applicant
where applicant_id=$app_id");
while($fetch = $sql->fetch_array()){
if($fetch['pay_rec'] == "" && $fetch['proof'] == ""){
?>
<td>None</td>
<td>None</td>
<?php
}
elseif(!empty(($fetch)['pay_rec']) && $fetch['proof'] == ""){
?>
<td colspan="5"><a href="<?php echo $fetch['pay_rec']?
>">Click to View</a></td>
<td>None</td>
<?php
}
elseif(!empty(($fetch)['proof']) && $fetch['pay_rec'] == ""){

STI College Calamba 70


?>
<td>None</td>
<td colspan="4"><a href="<?php echo $fetch['proof']?
>">Click to View</a></td>
<?php
}
else{
?>
<td colspan="5"><a href="<?php echo $fetch['pay_rec']?
>">Click to View</a></td>
<td colspan="4"><a href="<?php echo $fetch['proof']?
>">Click to View</a></td>
<?php
}
?>
<?php
}
?>
<tr>
<th colspan="9" style="background-color:grey; color:
white;"><center>Actions</th>
</tr>
<tr>
<th>Set Schedule for Exam</th>
<th>Exam Result</th>
</tr>
<tr>
<td>
<a id="exam"class="btn btn-
primary"href="admin_dashboard.php?sched=true&e_mail=<?php echo $email;?
>&level=<?php echo $level;?>&app_id=<?php echo $app_id;?>&f_name=<?php

STI College Calamba 71


echo $fname;?>&m_name=<?php echo $mname;?>&l_name=<?php echo
$lname;?>">Set Schedule</a><br><br>
<!--
<?php
$active = $link->query("SELECT * from exam_sched
WHERE applicant_id='$app_id'");
while($fetch = $active->fetch_array()){
if($fetch['active'] == 1){
?>
<input disabled class="btn btn-primary" type="submit"
name="" value="Set Schedule">
<?php
}
else{
?>
<a id="exam"class="btn btn-
primary"href="admin_dashboard.php?sched=true&e_mail=<?php echo $email;?
>&level=<?php echo $level;?>&app_id=<?php echo $app_id;?>&f_name=<?php
echo $fname;?>&m_name=<?php echo $mname;?>&l_name=<?php echo
$lname;?>">Set Schedule</a><br><br>
<?php
}
}
?>
-->
</td>
<td>
<?php
$active = $link->query("SELECT * from applicant WHERE
applicant_id='$app_id'");
while($fetch = $active->fetch_array()){

STI College Calamba 72


if(!empty($fetch['proof'])){
?>
<input disabled class="btn btn-primary" type="submit"
name="" value="View">

<?php
}
else{
?>
<a id="exam"class="btn btn-
primary"href="admin_dashboard.php?exam_result=true&e_mail=<?php echo
$email;?>&level=<?php echo $level;?>&app_id=<?php echo $app_id;?
>&f_name=<?php echo $fname;?>&m_name=<?php echo $mname;?
>&l_name=<?php echo $lname;?>">View</a><br><br>
<?php
}
}
?>
</td>
</tr>
<tr>
<th>Accept Applicant</th>
<th>Enroll Student</th>
</tr>
<tr>
<td>
<a id="pass"class="btn btn-primary"href="sendMessage.php?
downpayment=true&e_mail=<?php echo $email;?>&app_id=<?php echo
$app_id;?>&f_name=<?php echo $fname;?>&m_name=<?php echo $mname;?
>&l_name=<?php echo $lname;?>">Send Email</a><br><br>
</td>

STI College Calamba 73


<td>
<?php
$confirm = $link->query("SELECT * FROM applicant
WHERE applicant_id=$app_id");
while($fetch = $confirm->fetch_array()){
if($fetch['confirm'] == 0){
?>
<input disabled type="submit" class="btn btn-primary"
name="" value="Enroll">
<?php
}
else{
?>
<a class="btn btn-danger"href="admin_dashboard.php?
enroll_select=true&e_mail=<?php echo $email;?>&app_id=<?php echo
$app_id;?>&level=<?php echo $level;?>&f_name=<?php echo $fname;?
>&m_name=<?php echo $mname;?>&l_name=<?php echo $lname;?
>">Enroll</a><br>
<?php
}
}
?>

</td>
</tr>
</table>
</div>
</div>
</div>
</div>
</section

STI College Calamba 74


Admin_applicant_list
<section class="section">
<div class="row">
<div class="col-lg-12">

<div class="card">
<div class="card-body">
<h5 class="card-title">New Applicants</h5>
<p>You can enroll all new applicants here</p>
<?php
//$sql = "SELECT a.applicant_id, b.fname, b.mname, b.lname,
b.pic1x1, b.stud_sig, b.dad_sig, b.mom_sig, b.pay_rec FROM user as a inner join
applicant as b on a.applicant_id=b.applicant_id WHERE email='$sessionemail'";
//$sql = "SELECT * FROM user as a inner join applicant as b on
a.applicant_id=b.applicant_id";
$sql = "SELECT * FROM applicant as a inner join user as b on
a.applicant_id=b.applicant_id WHERE status='new' AND active='0'";
//$sql2 = "SELECT * from applicant WHERE email='$applicant'";
$result = mysqli_query($conn, $sql);
if(mysqli_num_rows($result) <= 0){
echo "<h2>Click Admission if you want to enroll</h2>";
}
else{
while($row=mysqli_fetch_assoc($result)){
$email = $row['email'];
$applicantid=$row['applicant_id'];
$firstname=$row['fname'];
$middlename=$row['mname'];
$lastname=$row['lname'];
$status=$row['status'];

STI College Calamba 75


$level=$row['level'];
$age=$row['age'];
$pob=$row['pob'];
$religion=$row['religion'];
$church=$row['church'];
$dadcontact=$row['dadcontact'];
$momcontact=$row['momcontact'];
$emergname=$row['emergname'];
$emergcontact=$row['emergcontact'];
$distname=$row['distname'];
$distcontact=$row['distcontact'];

$pic1x1=$row['pic1x1'];
$stud_sig=$row['birth_cert'];
$dad_sig=$row['good_moral'];
$mom_sig=$row['form_137'];
$pay_rec=$row['pay_rec'];
//$img = mysqli_query('SELECT
pic1x1stud_sigdad_sigmom_sigpay_rec')
?>
<!-- Table with stripped rows -->
<table class="table">
<tr>
<th scope="col">Applicant ID</th>
<th scope="col">Full Name</th>
<th scope="col">Email</th>
<th scope="col">Grade Level</th>
<th scope="col">Action</th>
<!--<th scope="col">Profile</th>

<th scope="col">Downpayment</th>

STI College Calamba 76


<th scope="col">Receipt</th>
<th scope="col">Enroll</th>-->
</tr>
<tr>
<div class="tooltip">Hover over me
<span class="tooltiptext">Tooltip text</span>
</div>
<td scope="row"><?php echo $row['applicant_id'];?></th>
<td><?php echo $row['lname'];?>, <?php echo
$row['fname'];?> <?php echo $row['mname'];?></td>
<td><?php echo $row['email'];?></td>
<td><?php echo $row['level'];?></td>
<td><a class="btn btn-primary" href="admin_dashboard.php?
view_app=true&e_mail=<?=$row['email']?>&level=<?= $row['level']?
>&app_id=<?= $row['applicant_id']?>&f_name=<?= $row['fname']?
>&m_name=<?= $row['mname']?>&l_name=<?=
$row['lname']?>">View</a></td>
</tr>
</table>

<?php
}
}
?>
<!-- End Table with stripped rows -->

</div>
</div>

</div>
</div>

STI College Calamba 77


</section>
Admin_audit
<section class="section">
<div class="row">
<div class="col-lg-12">
<div class="card">
<div class="card-body">
<h5 class="card-title">Audit Trails</h5>
<table class="table table-bordered table-striped">
<tr>
<th scope="col">Logs</th>
<th scope="col">Date Created</th>
</tr>
<?php
$audit = "SELECT * from audit";
$selectaudit = mysqli_query($link, $audit);
if(mysqli_num_rows($selectaudit) <= 0){
echo "<h3><center>No audit trails found.</center></h3>";
}
else {
while($row = mysqli_fetch_assoc($selectaudit)){
$log = $row['log'];
$date = $row['date_created'];
?>
<tr>
<td><?php echo $row['log'];?></td>
<td><?php echo $row['date_created'];?></td>
</tr>
<?php
}
}

STI College Calamba 78


?>
</table>
</div>
</div>
</div>
</div>
</section>
Admin_calendar
<section class="section">
<div class="row">
<div class="col-lg-12">
<div class="card">
<div class="card-body">
<h5 class="card-title">Example Card</h5>
<p>This is an examle page with no content. You can use it as a starter for
your custom pages.</p>
<table class="table table-bordered">
<tr>
<th scope="col">Day/Time</th>
<th>Monday</th>
<th>Tuesday</th>
<th>Wednesday</th>
<th>Thursday</th>
<th>Friday</th>
<th>Saturday</th>
</tr>
<tr>
<th>6:00 am</th>
<td id="m6" rowspan="3" style="background-color:darkgreen; color:
white;">CP101</td>
<td id="t6"></td>

STI College Calamba 79


<td id="w6"></td>
<td id="th6"></td>
<td id="f6"></td>
<td id="s6"></td>
</tr>
<tr>
<th>6:30 am</th>
<td id="m63" ></td>
<td id="t63" ></td>
<td id="w63" ></td>
<td id="th63" ></td>
<td id="f63" ></td>
<td id="s63" ></td>
</tr>
<tr>
<th>7:00 am</th>
<td id="m7" ></td>
<td id="t7" ></td>
<td id="w7" ></td>
<td id="th7" ></td>
<td id="f7" ></td>
<td id="s7" ></td>
</tr>
<tr>
<th>7:30 am</th>
<td id="m73" ></td>
<td id="t73" ></td>
<td id="w73" ></td>
<td id="th73" ></td>
<td id="f73" ></td>
<td id="s73" ></td>

STI College Calamba 80


</tr>
<tr>
<th>8:00 am</th>
<td id="m8" ></td>
<td id="t8" ></td>
<td id="w8" ></td>
<td id="th8" ></td>
<td id="f8" ></td>
<td id="s8" ></td>
</tr>
<tr>
<th>8:30 am</th>
<td id="m83" ></td>
<td id="t83" ></td>
<td id="w83" ></td>
<td id="th83" ></td>
<td id="f83" ></td>
<td id="s83" ></td>
</tr>
<tr>
<th>9:00 am</th>
<td id="m9" ></td>
<td id="t9" ></td>
<td id="w9" ></td>
<td id="th9" ></td>
<td id="f9" ></td>
<td id="s9" ></td>
</tr>

<tr>
<th>9:30 am</th>

STI College Calamba 81


<td id="m93" ></td>
<td id="t93" ></td>
<td id="w93" ></td>
<td id="th93" ></td>
<td id="f93" ></td>
<td id="s93" ></td>
</tr>
<tr>
<th>10:00 am</th>
<td id="m10" ></td>
<td id="t10" ></td>
<td id="w10" ></td>
<td id="th10" ></td>
<td id="f10" ></td>
<td id="s10" ></td>
</tr>
<tr>
<th>10:30 am</th>
<td id="m103" ></td>
<td id="t103" ></td>
<td id="w103" ></td>
<td id="th103" ></td>
<td id="f103" ></td>
<td id="s103" ></td>
</tr>
<tr>
<th>11:00 am</th>
<td id="m11" ></td>
<td id="t11" ></td>
<td id="w11" ></td>
<td id="th11" ></td>

STI College Calamba 82


<td id="f11" ></td>
<td id="s11" ></td>
</tr>
<tr>
<th>11:30 am</th>
<td id="m113" ></td>
<td id="t113" ></td>
<td id="w113" ></td>
<td id="th113" ></td>
<td id="f113" ></td>
<td id="s113" ></td>
</tr>
<tr>
<th>12:00 pm</th>
<td id="m12" ></td>
<td id="t12" ></td>
<td id="w12" ></td>
<td id="th12" ></td>
<td id="f12" ></td>
<td id="s12" ></td>
</tr>
<tr>
<th>12:30 pm</th>
<td id="m123" ></td>
<td id="t123" ></td>
<td id="w123" ></td>
<td id="th123" ></td>
<td id="f123" ></td>
<td id="s123" ></td>
</tr>
<tr>

STI College Calamba 83


<th>1:00 pm</th>
<td id="m1" ></td>
<td id="t1" ></td>
<td id="w1" ></td>
<td id="th1" ></td>
<td id="f1" ></td>
<td id="s1" ></td>
</tr>
<tr>
<th>1:30 pm</th>
<td id="m13" ></td>
<td id="t13" ></td>
<td id="w13" ></td>
<td id="th13" ></td>
<td id="f13" ></td>
<td id="s13" ></td>
</tr>
<tr>
<th>2:00 pm</th>
<td id="m2" ></td>
<td id="t2" ></td>
<td id="w2" ></td>
<td id="th2" ></td>
<td id="f2" ></td>
<td id="s2" ></td>
</tr>
<tr>
<th>2:30 pm</th>
<td id="m23" ></td>
<td id="t23" ></td>
<td id="w23" ></td>

STI College Calamba 84


<td id="th23" ></td>
<td id="f23" ></td>
<td id="s23" ></td>
</tr>
<tr>
<th>3:00 pm</th>
<td id="m3" ></td>
<td id="t3" ></td>
<td id="w3" ></td>
<td id="th3" ></td>
<td id="f3" ></td>
<td id="s3" ></td>
</tr>
<tr>
<th>3:30 pm</th>
<td id="m33" ></td>
<td id="t33" ></td>
<td id="w33" ></td>
<td id="th33" ></td>
<td id="f33" ></td>
<td id="s33" ></td>
</tr>
<tr>
<th>4:00 pm</th>
<td id="m4" ></td>
<td id="t4" ></td>
<td id="w4" ></td>
<td id="th4" ></td>
<td id="f4" ></td>
<td id="s4" ></td>
</tr>

STI College Calamba 85


<tr>
<th>4:30 pm</th>
<td id="m43" ></td>
<td id="t43" ></td>
<td id="w43" ></td>
<td id="th43" ></td>
<td id="f43" ></td>
<td id="s43" ></td>
</tr>
<tr>
<th>5:00 pm</th>
<td id="m5" ></td>
<td id="t5" ></td>
<td id="w5" ></td>
<td id="th5" ></td>
<td id="f5" ></td>
<td id="s5" ></td>
</tr>
<tr>
<th>5:30 pm</th>
<td id="m53" ></td>
<td id="t53" ></td>
<td id="w53" ></td>
<td id="th53" ></td>
<td id="f53" ></td>
<td id="s53" ></td>
</tr>
<tr>
<th>6:00 pm</th>
<td id="m6p" ></td>
<td id="t6p" ></td>

STI College Calamba 86


<td id="w6p" ></td>
<td id="th6p" ></td>
<td id="f6p" ></td>
<td id="s6p" ></td>
</tr>
<tr>
<th>6:30 pm</th>
<td id="m63p" ></td>
<td id="t63p" ></td>
<td id="w63p" ></td>
<td id="th63p" ></td>
<td id="f63p" ></td>
<td id="s63p" ></td>
</tr>
<tr>
<th>7:00 pm</th>
<td id="m7p" ></td>
<td id="t7p" ></td>
<td id="w7p" ></td>
<td id="th7p" ></td>
<td id="f7p" ></td>
<td id="s7p" ></td>
</tr>
</table>

</div>
</div>
</div>
</div>
</section>

STI College Calamba 87


Admin_carousel
<?php
include('config.php');
if(isset($_POST['submit'])){

$fileName = $_FILES["file"]['name'];
$fileTmpName = $_FILES["file"]['tmp_name'];
$fileSize = $_FILES["file"]['size'];
$fileError = $_FILES["file"]['error'];
$fileType = $_FILES["file"]['type'];

$fileExt = explode('.', $fileName);


$fileActualExt = strtolower(end($fileExt));
$select = $link->query("SELECT * FROM carousel");
$allowed = array('jpg', 'jpeg', 'png');
if(mysqli_num_rows($select) >= 4){
$error = "You cannot upload more than three pictures!";
echo "<script> alert('$error')</script>";
echo "<script>location.href = 'admin_dashboard.php?
admin_settings=true';</script>";
}
else{
if(in_array($fileActualExt, $allowed)){
if($fileError === 0){
if($fileSize < 5000000){
$fileNameNew = uniqid('', true).".".$fileActualExt;
$fileDestination = 'carousel/'.$fileNameNew;
$uploadDb = $link->query("INSERT INTO carousel(file)
VALUES('$fileDestination')");
if($uploadDb){
move_uploaded_file($fileTmpName, $fileDestination);

STI College Calamba 88


$msg = "Successfully uploaded!";
echo "<script> alert('$msg')</script>";
echo "<script>location.href = 'admin_dashboard.php?
admin_settings=true';</script>";
}
else{
echo "There was an error uploading your file to the database";
}
}
else{
echo "Your file is too big.";
}
}
else{
echo "There was an error uploading your file.";
}
}
else{
echo "You cannot upload this type of file.";
}
}

}
elseif(isset($_POST['delete'])){
$id = $_POST['id'];
$delete = $link->query("DELETE FROM carousel WHERE id='$id'");
if($delete){
$msg = "Successfully deleted!";
echo "<script> alert('$msg')</script>";
echo "<script>location.href = 'admin_dashboard.php?
admin_settings=true';</script>";

STI College Calamba 89


}
else{
echo "Error: " . mysqli_error($link);
}
}
elseif(isset($_POST['update'])){
$id = $_POST['id'];
$linkyt = $_POST['link'];
$insert = $link->query("UPDATE iframe set link='$linkyt' where id=$id");
if($insert){
$msg = "Successfully Updated!";
echo "<script> alert('$msg')</script>";
echo "<script>location.href = 'admin_dashboard.php?
admin_settings=true';</script>";
}
else{
echo "Error: " . mysqli_error($link);
}
}
?>

Admin_class
<section class="section">
<div class="row">
<div class="col-lg-12">
<div class="card">
<div class="card-body">
<h5 class="card-title"><?php echo $subject_id;?></h5>
<p>This is an examle page with no contrnt. You can use it as a starter
for your custom pages.</p>
<form>

STI College Calamba 90


<table class="table">
<tr>
<th scope="col">Applicant ID</th>
<th scope="col">Full Name</th>
<th scope="col">Grade Level</th>
<th scope="col">Subject</th>
<th scope="col">1st Quarter</th>
<th scope="col">2nd Quarter</th>
<th scope="col">3rd Quarter</th>
<th scope="col">4th Quarter</th>
<th scope="col">Edit Grade</th>
</tr>
<?php
$sql = $link->query("SELECT a.applicant_id, b.fname,
b.mname,b.lname, a.level, c.subject_name, a.subject_id,a.prelims,a.midterms,
a.prefinals, a.finals
FROM class as a
inner join applicant as b
inner join subject as c
on a.applicant_id=b.applicant_id AND a.subject_id=c.subject_id
WHERE a.subject_id='$subject_id'");
if($sql){
while($fetch = $sql->fetch_array()){
?>
<tr>
<form action="grades-upload.php" method="post">
<td><?php echo $fetch['applicant_id'];?></td>
<td><?php echo $fetch['lname'];?>, <?php echo
$fetch['fname'];?> <?php echo $fetch['mname'];?></td>
<td><?php echo $fetch['level'];?></td>
<td><?php echo $fetch['subject_id'];?></td>

STI College Calamba 91


<td><input type="text" name="prelims" class="form-
control" value="<?=$fetch['prelims'];?>"></input></td>
<td><input type="text" name="midterms"
class="form-control" value="<?=$fetch['midterms'];?>"></input></td>
<td><input type="text" name="prefinals"
class="form-control" value="<?=$fetch['prefinals'];?>"></input></td>
<td><input type="text" name="finals" class="form-
control" value="<?=$fetch['finals'];?>"></input></td>
<input type="hidden" name="applicant_id" value="<?
=$fetch['applicant_id']?>"></input>
<input type="hidden" name="subject_id" value="<?
=$fetch['subject_id']?>"></input>
<td><input name="submit" type="submit" class="btn
btn-secondary" value="Submit"></input></td>
</form>
</tr>
<?php
}
}
?>
</table>
</form>

</div>
</div>
</div>
</div>
</section

Admin_class_view

STI College Calamba 92


<section class="section">
<div class="row">
<div class="col-lg-12">
<div class="card">
<div class="card-body">
<h5 class="card-title">Select Class</h5>
<p>Select your class here to edit student grades.</p>
<div class="col-lg-4">
<form action="" method="post">
<select class="form-select" name="subject_id">
<?php
$select = $link->query("SELECT * FROM section_sched
WHERE faculty='$name'");
if($select){
while($fetch = $select->fetch_array()){
?>
<option value="<?php echo $fetch['subject_id']?>"><?
php echo $fetch['subject_id']?></option>
<?php
}
}
?>
</select><br>
<input class="btn btn-primary" type="submit" name="submit"
value="Select">
</form>
</div>
</div>
</div>
</div>
</div>

STI College Calamba 93


</section>
<?php
if(isset($_POST['submit'])){
$subject_id = $_POST['subject_id'];
include('grades.php');
}
?>

Admin_dashboard
<?php
session_start();
include('config.php');
include('connection.php');
if($_SESSION['login'] =! "true" || $_SESSION['username'] == "" ||
$_SESSION['name'] == ""){
session_destroy();
header('Location:admin_login.php');
}
$name = $_SESSION['name'];
$username = $_SESSION['username'];
$type = $_SESSION['type'];
echo $username . $type;
$login = $_SESSION['login'];
$sql="SELECT * FROM(SELECT * FROM chat ORDER BY ID DESC
LIMIT 5)g ORDER BY g.id";
$query = mysqli_query($conn,$sql);

$numofnotif = "SELECT * FROM chat WHERE applicant_id=0";


$resultnum = mysqli_query($conn, $numofnotif);
$numb = mysqli_num_rows($resultnum);

STI College Calamba 94


?>
<!DOCTYPE html>
<html lang="en">

<head>
<script src="search.js">
</script>
<script src="app.js">
</script>
<meta charset="utf-8">
<meta content="width=device-width, initial-scale=1.0" name="viewport">

<title>Dashboard - Admin</title>
<meta content="" name="description">
<meta content="" name="keywords">

<!-- Favicons -->


<link href="assets - admin/img/favicon.png" rel="icon">
<link href="assets - admin/img/apple-touch-icon.png" rel="apple-touch-icon">

<!-- Google Fonts -->


<link href="https://fonts.gstatic.com" rel="preconnect">
<link href="https://fonts.googleapis.com/css?
family=Open+Sans:300,300i,400,400i,600,600i,700,700i|
Nunito:300,300i,400,400i,600,600i,700,700i|
Poppins:300,300i,400,400i,500,500i,600,600i,700,700i" rel="stylesheet">

<!-- Vendor CSS Files -->


<link href="assets - admin/vendor/bootstrap/css/bootstrap.min.css"
rel="stylesheet">

STI College Calamba 95


<link href="assets - admin/vendor/bootstrap-icons/bootstrap-icons.css"
rel="stylesheet">
<link href="assets - admin/vendor/remixicon/remixicon.css" rel="stylesheet">
<link href="assets - admin/vendor/boxicons/css/boxicons.min.css"
rel="stylesheet">
<link href="assets - admin/vendor/quill/quill.snow.css" rel="stylesheet">
<link href="assets - admin/vendor/quill/quill.bubble.css" rel="stylesheet">
<link href="assets - admin/vendor/simple-datatables/style.css"
rel="stylesheet">

<!-- Template Main CSS File -->


<link href="assets - admin/css/style.css" rel="stylesheet">

<!--
=======================================================
* Template Name: NiceAdmin - v2.1.0
* Template URL: https://bootstrapmade.com/nice-admin-bootstrap-admin-html-
template/
* Author: BootstrapMade.com
* License: https://bootstrapmade.com/license/
======================================================== --
>
</head>
<body>
<!-- ======= Header ======= -->
<header id="header" class="header fixed-top d-flex align-items-center">
<div class="d-flex align-items-center justify-content-between">
<a href="admin_dashboard.php" class="logo d-flex align-items-center">
<img src="assets/img/logo.png" alt="">
<span class="d-none d-lg-block">IFL</span>
</a>

STI College Calamba 96


<!--<i class="bi bi-list toggle-sidebar-btn"></i>-->
</div>
<!-- End Logo -->

<div class="search-bar">
<form class="search-form d-flex align-items-center" method="POST"
action="#">
<input type="text" name="search" id="filter" placeholder="Search"
autocomplete="off" title="Enter search keyword">
<button type="submit" title="Search"><i class="bi
bi-search"></i></button>
</form>
</div>
<!-- End Search Bar -->
<nav class="header-nav ms-auto">
<ul class="d-flex align-items-center">

<li class="nav-item d-block d-lg-none">


<a class="nav-link nav-icon search-bar-toggle " href="#">
<i class="bi bi-search"></i>
</a>
</li>
<!-- End Search Icon-->
<li class="nav-item dropdown">

<a class="nav-link nav-icon" href="#" data-bs-toggle="dropdown">


<i class="bi bi-bell"></i>
<span class="badge bg-primary badge-number"><?php echo
$numb;?></span>
</a>
<!-- End Notification Icon -->

STI College Calamba 97


<ul class="dropdown-menu dropdown-menu-end dropdown-menu-
arrow notifications">
<li>
<div class="dropdown">
<button style="border: 0px; background-color:
transparent"class="nav-link">
<i class="ri-base-station-line" style="color: #ff5828;"></i>
</button>
<div class="dropdown-content" style="width:30rem;">
<div class="container">
<center>
<h2>Hello, <span style="color:#235949;"><?php
echo $name; ?> !</span></h2>
<label>The system will notify you here if anyone
applies or admits!</label>
</center>
</br>
<div class="display-chat">
<?php
if(mysqli_num_rows($query)>0) {
while($row= mysqli_fetch_assoc($query)) {
?>
<div class="message" style="background-
color:white; border-radius: 3px; padding-top: 10px; padding-bottom: 0px;">
<p>
<span><?php echo $row['name']; ?>
:</span>
<?php echo $row['message']; ?>
</p>
</div>
<?php

STI College Calamba 98


}
}
else {
?>
<div class="message">
<p>
No notifications.
</p>
</div>
<?php
}
?>

</div>
</div>
</div>
</div>
</li>
<li class="dropdown-header">
You have <?php echo $numb;?> new notifications
<a href="admin_dashboard.php?notif=true"><span
class="badge rounded-pill bg-primary p-2 ms-2">View All</span></a>
</li>
<li>
<hr class="dropdown-divider">
</li>
</ul>
<!-- End Notification Dropdown Items -->
</li>
<!-- End Messages Nav -->

STI College Calamba 99


<li class="nav-item dropdown pe-3">

<a class="nav-link nav-profile d-flex align-items-center pe-0"


href="#" data-bs-toggle="dropdown">
<!--<img src="assets/img/profile-img.jpg" alt="Profile"
class="rounded-circle">-->
<span class="d-none d-md-block dropdown-toggle ps-2"><?php
echo $name;?></span>
</a>
<!-- End Profile Iamge Icon -->

<ul class="dropdown-menu dropdown-menu-end dropdown-menu-


arrow profile">
<li class="dropdown-header">
<h6>Username: <?php echo $username?></h6>
</li>
<li>
<hr class="dropdown-divider">
</li>
<li>
<a class="dropdown-item d-flex align-items-center"
href="logout_admin.php">
<i class="bi bi-box-arrow-right"></i>
<span>Sign Out</span>
</a>
</li>

</ul>
<!-- End Profile Dropdown Items -->
</li>
<!-- End Profile Nav -->

STI College Calamba 100


</ul>
</nav>
<!-- End Icons Navigation -->

</header>
<!-- End Header -->

<!-- ======= Sidebar ======= -->


<aside id="sidebar" class="sidebar">

<ul class="sidebar-nav" id="sidebar-nav">


<?php
if($type == "0"){
?>
<li class="nav-item">
<a class="nav-link collapsed" href="admin_dashboard.php?
home=true&type=<?php echo$type;?>&username=<?php echo $username;?>">
<i class="bi bi-grid"></i>
<span>Dashboard</span>
</a>
</li>
<li class="nav-item">
<a class="nav-link collapsed" href="admin_dashboard.php?
account=true&type=<?php echo$type;?>&username=<?php echo $username;?
>">
<i class="bi bi-person-fill"></i>
<span>Accounts</span>
</a>
</li>
<li class="nav-item">

STI College Calamba 101


<a class="nav-link collapsed" href="admin_dashboard.php?
admin_settings=true&type=<?php echo$type;?>&username=<?php echo
$username;?>">
<i class="bi bi-gear"></i>
<span>Settings</span>
</a>
</li>
<?php
}
elseif($type == "1"){
?>
<li class="nav-item">
<a class="nav-link collapsed" href="admin_dashboard.php?
home=true">
<i class="bi bi-grid"></i>
<span>Dashboard</span>
</a>
</li>
<li class="nav-item">
<a class="nav-link collapsed" href="admin_dashboard.php?
student_list=true">
<i class="bi bi-person-check-fill"></i>
<span>Student List</span>
</a>
</li>
<li class="nav-item">
<a class="nav-link collapsed" href="admin_dashboard.php?
applicant_list=true">
<i class="bi bi-person-plus-fill"></i>
<span>Applicant List</span>
</a>

STI College Calamba 102


</li>
<li class="nav-item">
<a class="nav-link collapsed" href="admin_dashboard.php?
section=true">
<i class="bi bi-envelope"></i>
<span>Sections</span>
</a>
</li>
<li class="nav-item">
<a class="nav-link collapsed" href="admin_dashboard.php?
subjecting=true">
<i class="bi bi-file-earmark"></i>
<span>Subject</span>
</a>
</li>
<li class="nav-item">
<a class="nav-link collapsed" href="admin_dashboard.php?
faculty=true">
<i class="bi bi-file-earmark"></i>
<span>Faculty</span>
</a>
</li>
<li class="nav-item">
<a class="nav-link collapsed" href="admin_dashboard.php?
room=true">
<i class="bi bi-file-earmark"></i>
<span>Room</span>
</a>
</li>
<li class="nav-item">

STI College Calamba 103


<a class="nav-link collapsed" href="admin_dashboard.php?
sy=true">
<i class="bi bi-file-earmark"></i>
<span>School Year</span>
</a>
</li>
<li class="nav-item">
<a class="nav-link collapsed" href="admin_dashboard.php?
price=true">
<i class="bi bi-file-earmark"></i>
<span>Price for RAF</span>
</a>
</li>
<li class="nav-item">
<a class="nav-link collapsed" href="admin_dashboard.php?
report=true">
<i class="bi bi-file-earmark"></i>
<span>Reports</span>
</a>
</li>
<li class="nav-item">
<a class="nav-link collapsed" href="admin_dashboard.php?
audit=true">
<i class="bi bi-file-earmark"></i>
<span>Audit Trails</span>
</a>
</li>
<li class="nav-item">
<a class="nav-link collapsed" href="admin_dashboard.php?
admin_type=true&type=<?php echo$type;?>&username=<?php echo
$username;?>">

STI College Calamba 104


<i class="bi bi-gear"></i>
<span>Settings</span>
</a>
</li>
<?php
}
elseif($type == 2){
?>
<li class="nav-item">
<a class="nav-link collapsed" href="admin_dashboard.php?
student_view=true">
<i class="bi bi-card-list"></i>
<span>List of Students</span>
</a>
</li>
<li class="nav-item">
<a class="nav-link collapsed" href="admin_dashboard.php?
class=true">
<i class="bi bi-card-list"></i>
<span>Grades Upload</span>
</a>
</li>
<li class="nav-item">
<a class="nav-link collapsed" href="admin_dashboard.php?
listschedule=true">
<i class="bi bi-file-earmark"></i>
<span>List of Schedules</span>
</a>
</li>
<?php
}

STI College Calamba 105


?>
</ul>

</aside>
<!-- End Sidebar-->

<main id="main" class="main">


<?php
if(isset($_GET['profile'])) {
include('admin_student_view.php');
}
else if(isset($_GET['account'])) {
include('admin_accounts.php');
}
else if(isset($_GET['report'])) {
include('admin_reports.php');
}
else if(isset($_GET['exam_result'])) {
include('admin_exam_result.php');
}
else if(isset($_GET['admin_settings'])) {
include('admin_account_settings.php');
}
else if(isset($_GET['class'])) {
include('admin_class_view.php');
}
else if(isset($_GET['student_view'])) {
include('admin_view_students.php');
}
else if(isset($_GET['student'])) {
include('admin_student.php');

STI College Calamba 106


}
else if(isset($_GET['view_app'])) {
include('admin_applicant_view.php');
}
else if(isset($_GET['admin_type'])) {
include('admin_type_settings.php');
}
else if(isset($_GET['enroll_select'])) {
include('admin_enroll_select.php');
}
else if(isset($_GET['audit'])){
include('admin_audit.php');
}
else if(isset($_GET['admission'])){
include('f2f.php');
}
else if(isset($_GET['home'])){
include('admin_home.php');
}
else if(isset($_GET['student_list'])){
include('admin_studentlist.php');
}
else if(isset($_GET['applicant_list'])){
include('admin_applicantlist.php');
}
else if(isset($_GET['section'])){
include('section.php');
}
else if(isset($_GET['section_sched'])){
include('section_schedule.php');
}

STI College Calamba 107


else if(isset($_GET['enroll_new'])){
include('enroll_student.php');
}
else if(isset($_GET['grades'])){
include('grades.php');
}
else if(isset($_GET['subject'])){
include('subject.php');
}
else if(isset($_GET['sched'])){
include('schedule.php');
}
else if(isset($_GET['receipt'])){
include('receipt.php');
}
else if(isset($_GET['schedule_upload'])){
include('admin_schedule.php');
}
else if(isset($_GET['print'])){
include('admin_printID.php');
}
else if(isset($_GET['notif'])){
include('notif.php');
}
else if(isset($_GET['subjecting'])){
include('admin_subject.php');
}
else if(isset($_GET['schedule'])){
include('admin_scheduling.php');
}
else if(isset($_GET['faculty'])){

STI College Calamba 108


include('admin_faculty.php');
}
else if(isset($_GET['calendar'])){
include('admin_calendar.php');
}
else if(isset($_GET['room'])){
include('admin_room.php');
}
else if(isset($_GET['sy'])){
include('admin_schoolyear.php');
}
else if(isset($_GET['listschedule'])){
include('admin_scheduling_list.php');
}
else if(isset($_GET['price'])){
include('admin_price.php');
}
else{
include('admin_home.php');
}

?>
</main>
<!-- End #main -->

<!-- ======= Footer ======= -->


<footer id="footer" class="footer">
<div class="copyright">
&copy; Copyright <strong><span>Institute for Foundational Learning,
Inc.</span></strong>. All Rights Reserved
</div>

STI College Calamba 109


<div class="credits">
<!-- All the links in the footer should remain intact. -->
<!-- You can delete the links only if you purchased the pro version. -->
<!-- Licensing information: https://bootstrapmade.com/license/ -->
<!-- Purchase the pro version with working PHP/AJAX contact form:
https://bootstrapmade.com/nice-admin-bootstrap-admin-html-template/ -->
Designed by <a href="https://bootstrapmade.com/">BootstrapMade</a>
</div>
</footer>
<!-- End Footer -->

<a href="#" class="back-to-top d-flex align-items-center justify-content-


center"><i class="bi bi-arrow-up-short"></i></a>

<!-- Vendor JS Files -->


<script src="assets - admin/vendor/bootstrap/js/bootstrap.bundle.js"></script>
<script src="assets - admin/vendor/php-email-form/validate.js"></script>
<script src="assets - admin/vendor/quill/quill.min.js"></script>
<script src="assets - admin/vendor/tinymce/tinymce.min.js"></script>
<script src="assets -
admin/vendor/simple-datatables/simple-datatables.js"></script>
<script src="assets - admin/vendor/chart.js/chart.min.js"></script>
<script src="assets - admin/vendor/apexcharts/apexcharts.min.js"></script>
<script src="assets - admin/vendor/echarts/echarts.min.js"></script>

<!-- Template Main JS File -->


<script src="assets - admin/js/main.js"></script>

</body>

</html>

STI College Calamba 110


Admin_enroll_select
<?php
$app_id = $_GET['app_id'];
$level = $_GET['level'];
$e_mail = $_GET['e_mail'];
$f_name = $_GET['f_name'];
$m_name = $_GET['m_name'];
$l_name = $_GET['l_name'];
?>
<section class="section">
<div class="row">
<div class="col-lg-12">
<div class="card">
<div class="card-body">
<h5 class="card-title">Enroll to Section</h5>
<p></p>
<form action="enroll_student.php" method="post">
<div class="col-lg-4">
<select name="section_id" class="form-control">
<?php
$section = $link->query("SELECT * from section WHERE
level='$level'");
while($fetch = $section->fetch_array()){
?>
<option value="<?php echo $fetch['section_id'];?>"><?php
echo $fetch['section_id'];?></option>
<?php
}
?>
</select>

STI College Calamba 111


<input type="hidden" name="app_id" value="<?php echo
$app_id;?>">
<input type="hidden" name="level" value="<?php echo $level;?
>">
<input type="hidden" name="e_mail" value="<?php echo
$e_mail;?>">
<input type="hidden" name="f_name" value="<?php echo
$f_name;?>">
<input type="hidden" name="m_name" value="<?php echo
$m_name;?>">
<input type="hidden" name="l_name" value="<?php echo
$l_name;?>">
<input class="btn btn-primary"type="submit" name="submit"
value="Submit">
</div>
</form>
</div>
</div>
</div>
</div>
</section

Admin_exam_result
<?php
$email = $_GET['e_mail'];
$level = $_GET['level'];
$app_id = $_GET['app_id'];
$f_name = $_GET['f_name'];
$m_name = $_GET['m_name'];
$l_name = $_GET['l_name'];
?>

STI College Calamba 112


<section class="section">
<div class="row">
<div class="col-lg-12">
<div class="card">
<div class="card-body">
<h5 class="card-title">Exam Results</h5>
<p>Results for <?php echo $f_name;?> <?php echo $m_name;?> <?
php echo $l_name;?></p>
<table class="table table-bordered">
<tr>
<th>Exam</th>
</tr>
<tr>
<?php
$select = $link->query("SELECT * FROM applicant WHERE
applicant_id=$app_id");
while ($fetch = $select->fetch_array()) {
?>
<td><?php echo "<img src='{$fetch['proof']}'";?></td>
<?php
}
?>

</tr>
</table>
<p class="card-title">Upload Results Here</p>
<form action="admin_exam_result_upload.php" method="POST"
class="form-horizontal" enctype="multipart/form-data">
<div class="col-lg-4">
<input type="hidden" name="email" value="<?php echo
$email;?>">

STI College Calamba 113


<input type="hidden" name="level" value="<?php echo $level;?
>">
<input type="hidden" name="app_id" value="<?php echo
$app_id;?>">
<input type="hidden" name="f_name" value="<?php echo
$f_name;?>">
<input type="hidden" name="m_name" value="<?php echo
$m_name;?>">
<input type="hidden" name="l_name" value="<?php echo
$l_name;?>">
<input required class="form-control" type="file"
name="exam"></input><br>
<p class="card-title">Pass or Reject</p>
<select required class="form-select" name="pass">
<option disabled selected value="">-Select-</option>
<option value="0">Reject</option>
<option value="1">Accept</option>
</select><br>
<input class="btn btn-success" type="submit" name="submit"
value="Upload">
</div>
</form>
</div>
</div>
</div>
</div>
</section

Admin_exam_result_upload
<?php

STI College Calamba 114


include('config.php');
$email = $_POST['email'];
$level = $_POST['level'];
$app_id = $_POST['app_id'];
$f_name = $_POST['f_name'];
$m_name = $_POST['m_name'];
$l_name = $_POST['l_name'];
$pass = $_POST['pass'];
// REQUIREMENTS UPLOAD
==========================================================
============= //
$target_dir = "applicant/".$l_name."_".$f_name."/";
$proof = $target_dir . basename($_FILES["exam"]["name"]);
$uploadOk = 1;
$imageFileType = strtolower(pathinfo($proof,PATHINFO_EXTENSION));
// Check if image file is a actual image or fake image
if(isset($_POST["submit"])) {
$checkproof = getimagesize($_FILES["exam"]["tmp_name"]);
if($checkproof !== false) {
echo "File is an image - " . $checkproof["mime"] . ".";
$uploadOk = 1;
}
else {
$uploadOk = 0;
$message1 = "One of the files is not an image. Please try again.";
echo "<script type='text/javascript'>alert('$message1');</script>";
header("Refresh:0; url=admin_dashboard.php");
}
}
// Check if file already exists

STI College Calamba 115


// Check file size
if ($_FILES["exam"]["size"] > 5000000) {
$uploadOk = 0;
$message1 = "Sorry, your file is too large.";
echo "<script type='text/javascript'>alert('$message1');</script>";
header("Refresh:0; url=admin_dashboard.php");
}
// Allow certain file formats
if($imageFileType != "jpg" && $imageFileType != "png" && $imageFileType !
= "jpeg"
&& $imageFileType != "gif" ) {
$uploadOk = 0;
$message1 = "Sorry, only JPG, JPEG, PNG & GIF files are allowed.";
echo "<script type='text/javascript'>alert('$message1');</script>";
header("Refresh:0; url=admin_dashboard.php");
}
// Check if $uploadOk is set to 0 by an error
if ($uploadOk == 0) {
$message1 = "Sorry, your file was not uploaded due to an error. Please try
again.";
echo "<script type='text/javascript'>alert('$message1');</script>";
header("Refresh:0; url=admin_dashboard.php");
// if everything is ok, try to upload file
}
else{
$uploadproof = $link->query("UPDATE applicant SET proof='$proof',
exam=$pass WHERE applicant_id='$app_id'");
if($uploadproof){
$message = "You have successfully updated!";
echo "<script type='text/javascript'>alert('$message');</script>";

STI College Calamba 116


//header("Location:student_dashboard.php?
f_name=$firstname&m_name=$middlename&l_name=$lastname");
if(!file_exists($target_dir)) {
mkdir($target_dir, 0777, true);
if(move_uploaded_file($_FILES["exam"]["tmp_name"], $proof)){
$messagesuccess = "The files
".htmlspecialchars( basename( $_FILES["exam"]["name"])). " has been
uploaded.";
echo "<script type='text/javascript'>alert('$message
$messagesuccess');</script>";
echo "<script>location.href = 'admin_dashboard.php?
exam_result=true&e_mail=".$email."&level=".$level."&app_id=".
$app_id."&f_name=".$f_name."&m_name=".$m_name."&l_name=".
$l_name."';</script>";
}
else{
$message = "Sorry, there was an error uploading your file.";
echo "<script type='text/javascript'>alert('$message');</script>";
echo "<script>location.href = 'admin_dashboard.php?
exam_result=true&e_mail=".$email."&level=".$level."&app_id=".
$app_id."&f_name=".$f_name."&m_name=".$m_name."&l_name=".
$l_name."';</script>";
}
}
else{
if(move_uploaded_file($_FILES["exam"]["tmp_name"], $proof)){
$messagesuccess = "The files
".htmlspecialchars( basename( $_FILES["exam"]["name"])). " has been
uploaded.";
echo "<script type='text/javascript'>alert('$message
$messagesuccess');</script>";

STI College Calamba 117


echo "<script>location.href = 'admin_dashboard.php?
exam_result=true&e_mail=".$email."&level=".$level."&app_id=".
$app_id."&f_name=".$f_name."&m_name=".$m_name."&l_name=".
$l_name."';</script>";
}
else{
$message = "Sorry, there was an error uploading your file.";
echo "<script type='text/javascript'>alert('$message');</script>";
echo "<script>location.href = 'admin_dashboard.php?
exam_result=true&e_mail=".$email."&level=".$level."&app_id=".
$app_id."&f_name=".$f_name."&m_name=".$m_name."&l_name=".
$l_name."';</script>";
}
}
}
}
// END OF UPLOAD REQUIREMENTS START OF INSERT TO DB
==========================================================
===== //

//END OF INSERT TO DB
==========================================================
============== //
?>

Admin_faculty
<section class="section">

STI College Calamba 118


<div class="row">
<div class="col-lg-12">
<div class="card">
<div class="card-body">
<h5 class="card-title">Faculty</h5>
<p>You can configure faculty here.</p>

<table class="table">
<tr>
<th scope="col">Faculty Name</th>
<th scope="col">Designation</th>
</tr>
<!--
==========================================================
================= -->
<?php
$sql = "SELECT * FROM account where type=2";
$subject = mysqli_query($conn,$sql);
if(mysqli_num_rows($subject) > 0){
while($row=mysqli_fetch_assoc($subject)){
$id = $row['id'];
$subjectid=$row['name'];
//$subjectname=$row['level'];
?>

<tr>
<form action="admin_faculty_upload.php"
method="post">
<input type="hidden" name="id" value="<?php echo
$row['id'];?>"></input>

STI College Calamba 119


<td><input type="text" name="faculty_name"
class="form-control" value="<?php echo $row['name'];?>"></input></td>
<td><select name="level" class="form-control">
<option disabled selected value="<?php echo
$row['level'];?>"><?php echo $row['level'];?></option>
<option value="Nursery">Nursery</option>
<option value="Pre-Kinder">Pre-Kinder</option>
<option value="Kinder 1">Kinder 1</option>
<option value="Kinder 2">Kinder 2</option>
<option value="Grade 1">Grade 1</option>
<option value="Grade 2">Grade 2</option>
<option value="Grade 3">Grade 3</option>
<option value="Grade 4">Grade 4</option>
<option value="Grade 5">Grade 5</option>
<option value="Grade 6">Grade 6</option>
<option value="Grade 7">Grade 7</option>
<option value="Grade 8">Grade 8</option>
<option value="Grade 9">Grade 9</option>
<option value="Grade 10">Grade 10</option>
<option value="Grade 11">Grade 11</option>
<option value="Grade 12">Grade 12</option>
</select></td>
<td><input class="btn btn-primary" type="submit"
name="edit" value="Edit"></input>
<input class="btn btn-danger"type="submit"
name="delete" value="Delete"></td>
</form>
</tr>

<?php
}

STI College Calamba 120


}
else {
echo "<br><h4>No Faculty found.</h4>";
}
?>
</table>
</div>
</div>
</div>
</div>
</section>
Admin_faculty_upload
<?php
include('config.php');
if(isset($_POST['add'])){
$facultyname = $_POST['faculty_name'];
$level = $_POST['level'];
$faculty = "INSERT INTO faculty(faculty_name, level)
VALUES('$facultyname', '$level')";
$addfaculty = mysqli_query($link, $faculty);
if($addfaculty){
$success = "Added successfully";
echo "<script type='text/javascript'>alert('$success');</script>";
header("Refresh:0; url=admin_dashboard.php?faculty=true");
}
else{
echo "Error" . $faculty . " " . $link;
}
}
elseif(isset($_POST['edit'])){
$facultyname = $_POST['faculty_name'];

STI College Calamba 121


$level = $_POST['level'];
$id = $_POST['id'];
$faculty = "UPDATE account set name='$facultyname', level='$level'
WHERE id='$id'";
$addfaculty = mysqli_query($link, $faculty);
if($addfaculty){
$success = "Edited successfully";
echo "<script type='text/javascript'>alert('$success');</script>";
header("Refresh:0; url=admin_dashboard.php?faculty=true");
}
else{
echo "Error" . $faculty . " " . $link;
}
}
elseif(isset($_POST['delete'])){
$id = $_POST['id'];
$faculty = "DELETE FROM faculty WHERE id='$id'";
$deletefaculty = mysqli_query($link, $faculty);
if($deletefaculty){
$success = "Deleted. ";
echo "<script type='text/javascript'>alert('$success');</script>";
header("Refresh:0; url=admin_dashboard.php?faculty=true");
}
else{
echo "Error" . $faculty . " " . $link;
}
}
?>

Admin_grades
<section class="section">

STI College Calamba 122


<div class="row">
<div class="col-lg-12">
<div class="card">
<div class="card-body">
<h5 class="card-title">Grades</h5>
<p>This is an examle page with no contrnt. You can use it as a starter
for your custom pages.</p>
<div class="col-lg-6">
<form action="" method="post">
<select name="level" onchange="showFees(this.value)"
class="form-control">
<option value="Nursery">Nursery</option>
<option value="Pre-Kinder">Pre-Kinder</option>
<option value="Kinder 1">Kinder 1</option>
<option value="Kinder 2">Kinder 2</option>
<option value="Grade 1">Grade 1</option>
<option value="Grade 2">Grade 2</option>
<option value="Grade 3">Grade 3</option>
<option value="Grade 4">Grade 4</option>
<option value="Grade 5">Grade 5</option>
<option value="Grade 6">Grade 6</option>
<option value="Grade 7">Grade 7</option>
<option value="Grade 8">Grade 8</option>
<option value="Grade 9">Grade 9</option>
<option value="Grade 10">Grade 10</option>
<option value="Grade 11">Grade 11</option>
<option value="Grade 12">Grade 12</option>
</select><br>
</form>
</div>
<div class="col-lg-12" id="txtHint">

STI College Calamba 123


<b>No level selected yet.</b>
</div>
</div>
</div>
</div>
</div>
</section>
<script>
function showFees(str) {
if(str == ""){
document.getElementById("txtHint").innerHTML = "";
return;
}
else{
var xmlhttp = new XMLHttpRequest();
xmlhttp.onreadystatechange = function() {
if(this.readyState == 4 && this.status == 200){
document.getElementById("txtHint").innerHTML =
this.responseText;
}
};
xmlhttp.open("GET", "grades.php?level="+str,true);
xmlhttp.send();
}
}
</script>

Admin_grades_list
<script src="search.js"></script>
<script src="app.js"></script>

STI College Calamba 124


<?php
include('config.php');
$level = $_GET['level'];
//$subject =$_GET['subject_id'];
?>
<section class="section">
<div class="row">
<div class="col-lg-12">
<div class="card">
<div class="card-body">
<h5 class="card-title">Grades</h5>
<p>You can edit grades here</p>
<table class="table">
<tr>
<th scope="col">Applicant ID</th>
<th scope="col">Full Name</th>
<th scope="col">Grade Level</th>
<th scope="col">Subject</th>
<th scope="col">1st Quarter</th>
<th scope="col">2nd Quarter</th>
<th scope="col">3rd Quarter</th>
<th scope="col">4th Quarter</th>
<th scope="col">Edit Grade</th>
</tr>
<?php

$sql = "SELECT a.applicant_id, b.fname, b.mname,b.lname, a.level,


c.subject_name, a.subject_id,a.prelims,a.midterms, a.prefinals, a.finals
FROM class as a inner join applicant as b inner join subject as c
on a.applicant_id=b.applicant_id AND a.subject_id=c.subject_id
WHERE a.level='$level'";

STI College Calamba 125


$result = mysqli_query($link, $sql);
if(mysqli_num_rows($result) <= 0){
echo "<h3>No students enrolled yet.</h3>";
}
else{
while($row=mysqli_fetch_assoc($result)){
$applicantid=$row['applicant_id'];
$firstname=$row['fname'];
$middlename=$row['mname'];
$lastname=$row['lname'];
?>
<!-- Table with stripped rows -->

<tr>
<form action="grades-upload.php" method="post">
<td><?php echo $row['applicant_id'];?></td>
<td><?php echo $row['lname'];?>, <?php echo
$row['fname'];?> <?php echo $row['mname'];?></td>
<td><?php echo $row['level'];?></td>
<td><?php echo $row['subject_id'];?></td>
<td><input type="text" name="prelims" class="form-control"
value="<?=$row['prelims'];?>"></input></td>
<td><input type="text" name="midterms" class="form-
control" value="<?=$row['midterms'];?>"></input></td>
<td><input type="text" name="prefinals" class="form-
control" value="<?=$row['prefinals'];?>"></input></td>
<td><input type="text" name="finals" class="form-control"
value="<?=$row['finals'];?>"></input></td>
<!--<td><a href="grades-upload.php?app_id=<?
=$row['applicant_id'];?>&prel=<?=$row['prelims'];?>&mid=<?

STI College Calamba 126


=$row['midterms'];?>&pref=<?=$row['prefinals'];?>&fin=<?=$row['finals'];?
>">Update</a></td>
-->
<input type="hidden" name="applicant_id" value="<?
=$row['applicant_id']?>"></input>
<input type="hidden" name="subject_id" value="<?
=$row['subject_id']?>"></input>
<td><input name="submit" type="submit" class="btn btn-
secondary" value="Submit"></input></td>
</form>
</tr>
<?php
}
}
?>
</table>
</div>
</div>
</div>
</div>
</section>

Admin_home
<?php
$applicants = "SELECT * FROM applicant";
$resultapplicant = mysqli_query($conn, $applicants);

$applicantsleft = "SELECT * FROM applicant WHERE active=0";


$resultapplicantleft = mysqli_query($conn, $applicantsleft);

$students = "SELECT * FROM student";

STI College Calamba 127


$resultstudent = mysqli_query($conn, $students);
?>
<section class="section dashboard">
<div class="row">

<!-- Left side columns -->


<div class="col-lg-12">
<div class="row">

<!-- Sales Card -->


<div class="col-xxl-4 col-md-6">
<div class="card info-card sales-card">
<div class="card-body">
<h5 class="card-title">Applicants <span>|
Applied</span></h5>

<div class="d-flex align-items-center">


<div class="card-icon rounded-circle d-flex align-items-
center justify-content-center">
<i class="bi bi-people"></i>
</div>
<div class="ps-3">
<h6><?php echo
mysqli_num_rows($resultapplicant);?></h6>

</div>
</div>
</div>

</div>
</div>

STI College Calamba 128


<!-- End Sales Card -->

<!-- Revenue Card -->


<div class="col-xxl-4 col-md-6">
<div class="card info-card revenue-card">
<div class="card-body">
<h5 class="card-title">Students <span>|
Enrolled</span></h5>

<div class="d-flex align-items-center">


<div class="card-icon rounded-circle d-flex align-items-
center justify-content-center">
<i class="bi bi-people"></i>
</div>
<div class="ps-3">
<h6><?php echo mysqli_num_rows($resultstudent);?
></h6>

</div>
</div>
</div>

</div>
</div>
<!-- End Revenue Card -->

<!-- Sales Card -->


<div class="col-xxl-4 col-md-6">
<div class="card info-card sales-card">
<div class="card-body">

STI College Calamba 129


<h5 class="card-title">Applicants <span>|
Left</span></h5>

<div class="d-flex align-items-center">


<div class="card-icon rounded-circle d-flex align-items-
center justify-content-center">
<i class="bi bi-people"></i>
</div>
<div class="ps-3">
<h6><?php echo
mysqli_num_rows($resultapplicantleft);?></h6>

</div>
</div>
</div>

</div>
</div>
<!-- End Sales Card -->
</div>
</div>
<!-- End Left side columns -->

</div>
</section>

Admin_login
<?php
session_start();
if(isset($_SESSION['login']))

STI College Calamba 130


{
header('Location:'.$_SESSION['login'].".php");
}
elseif(isset($_SESSION['message']))
{
echo '<script type="text/javascript">alert("'.
$_SESSION['message'].'");</script>';
header('Refresh:0');
session_destroy();
}
elseif(isset($_SESSION['error']))
{
echo '<script type="text/javascript">alert("'.
$_SESSION['error'].'");</script>';
header('Refresh:0');
session_destroy();
}
elseif (isset($_SESSION['n_user'])) {
echo '<script type="text/javascript">alert("'.
$_SESSION['n_user'].'");</script>';
header('Refresh:0');
session_destroy();
}
?>
<!DOCTYPE html>
<html>
<head>
<title>IFL Admin Login</title>
<style type="text/css">
body{
background: #f1f1f1;

STI College Calamba 131


background: linear-gradient( rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5) ),
url('schoolbg.jpg');
background-size: cover;
background-position: top center;
background-repeat: no-repeat;
box-sizing: border-box;
max-width: auto;
height: 100vh;
justify-content: center;
align-items: center;
position: relative;
}
.input{
width: 373px;
margin-top: 10px;
height: 30px;
padding-left: 15px;
font-size: 18px;
}
.flex{
display: inline-flex;
}
/* Full-width inputs */
input[type=text], input[type=password] {
width: 20%;
padding: 12px 20px;
margin: 8px 0;
display: inline-block;
border: 1px solid #ccc;
box-sizing: border-box;
}

STI College Calamba 132


/* Set a style for all buttons */
button {
background-color: #04AA6D;
color: white;
padding: 14px 20px;
margin: 8px 0;
border: none;
cursor: pointer;
width: 20%;
}

/* Add a hover effect for buttons */


button:hover {
opacity: 0.8;
}

/* Extra style for the cancel button (red) */


.cancelbtn {
width: auto;
padding: 10px 18px;
background-color: #f44336;
}

/* Center the avatar image inside this container */


.imgcontainer {
text-align: center;
margin: 24px 0 12px 0;
}

/* Avatar image */

STI College Calamba 133


img.avatar {
width: 20%;
border-radius: 50%;
}

/* Add padding to containers */


.container {
padding: 16px;
}

/* The "Forgot password" text */


span.psw {
float: right;
padding-top: 16px;
}

/* Change styles for span and cancel button on extra small screens */
@media screen and (max-width: 300px) {
span.psw {
display: block;
float: none;
}
.cancelbtn {
width: 100%;
}
}
.login_type {
opacity: 0%;
}
</style>
</head>

STI College Calamba 134


<body>
<center>
<form action="admin_login_check.php" method="POST">
<div class="logincontainer">
<div class="imgcontainer">
<img src="IFL logo.png" alt="Avatar" class="avatar">
</div>
<div class="container">
<input type="text" placeholder="Enter Username" name="username"
required><br>
<input type="password" placeholder="Enter Password"
name="password" required><br>
<button type="submit" name="login"
value="login">Login</button><br>
</div>
</div>
<select style="margin: 5px;" name="login_type" class="login_type">
<option value="admin">Admin</option>
</select>
</form>
</body>
</html>

STI College Calamba 135


Admin_login_check

<?php
session_start();
include('config.php');
if(isset($_POST['login'])){
$username = $_POST['username'];
$password = $_POST['password'];
$check = $link->query("SELECT * FROM admin where user='$username'
AND pass='$password'");
$checkother = $link->query("SELECT * FROM account where
user='$username' AND pass='$password'");
if(mysqli_num_rows($check) <=0 && mysqli_num_rows($checkother)
<=0){
$message1 = "Account not found. Either incorrect username or
password.";
echo "<script type='text/javascript'>alert('$message1');</script>";
echo "<script>location.href = 'admin_login.php?';</script>";
}
elseif(mysqli_num_rows($check) > 0){
while($fetch = $check->fetch_array()){
$getname = $fetch['name'];
$_SESSION['login'] = "true";
$_SESSION['type'] = "0";
$_SESSION['username'] = $username;

STI College Calamba 136


$_SESSION['name'] = $getname;
header("Location:admin_dashboard.php?
home=true&type=0&username=$user");
}

}
elseif(mysqli_num_rows($checkother) > 0){
while($fetch = $checkother->fetch_array()){
$gettype = $fetch['type'];
$getname = $fetch['name'];
}
$_SESSION['login'] = "true";
$_SESSION['type'] = "$gettype";
$_SESSION['username'] = $username;
$_SESSION['name'] = $getname;
header("Location:admin_dashboard.php?
home=true&type=0&username=$user");
}
else{
$_SESSION['login'] = "true";
$_SESSION['type'] = "0";
$_SESSION['username'] = $username;
header("Location:admin_dashboard.php?
home=true&type=0&username=$user");
}
}
?>

Admin_price
<section class="section">
<div class="row">

STI College Calamba 137


<div class="col-lg-12">
<div class="card">
<div class="card-body">
<h5 class="card-title">Price settings for RAF</h5>
<p>Select grade level to edit</p>
<div class="col-lg-12">
<div class="col-lg-6">
<form action="" method="post">
<select name="level" onchange="showFees(this.value)"
class="form-control">
<option value="Nursery">Nursery</option>
<option value="Pre-Kinder">Pre-Kinder</option>
<option value="Kinder 1">Kinder 1</option>
<option value="Kinder 2">Kinder 2</option>
<option value="Grade 1">Grade 1</option>
<option value="Grade 2">Grade 2</option>
<option value="Grade 3">Grade 3</option>
<option value="Grade 4">Grade 4</option>
<option value="Grade 5">Grade 5</option>
<option value="Grade 6">Grade 6</option>
<option value="Grade 7">Grade 7</option>
<option value="Grade 8">Grade 8</option>
<option value="Grade 9">Grade 9</option>
<option value="Grade 10">Grade 10</option>
<option value="Grade 11">Grade 11</option>
<option value="Grade 12">Grade 12</option>
</select><br>
</form>
</div>
<div class="col-lg-12" id="txtHint">
<b>No Data entered yet.</b>

STI College Calamba 138


</div>
</div>
</div>
</div>
</div>
</div>
</section>
<script>
function showFees(str) {
if(str == ""){
document.getElementById("txtHint").innerHTML = "";
return;
}
else{
var xmlhttp = new XMLHttpRequest();
xmlhttp.onreadystatechange = function() {
if(this.readyState == 4 && this.status == 200){
document.getElementById("txtHint").innerHTML =
this.responseText;
}
};
xmlhttp.open("GET", "admin_price_list.php?level="+str,true);
xmlhttp.send();
}
}
</script>
Admin_price_add
<?php
include('config.php');
if(isset($_POST['submit'])){
$level = $_POST['level'];

STI College Calamba 139


$fee = $_POST['fee'];
$price = $_POST['price'];
$convertprice = "SELECT CAST($price AS int)";
$add = "INSERT INTO fees(level, fee_name, price)VALUES('$level','$fee',
$price)";
$queryadd = mysqli_query($link, $add);

if($queryadd){
?>
<form name="submit" id="submit" method="POST"
action="admin_dashboard.php?price=true">
<input type="hidden" name="test">
</form>
<script>
window.onload = function(){
document.forms['submit'].submit();
}
</script>
<?php
//header('Location:admin_dashboard.php?price=true');
}
else{
echo "Error in: " . $add . " " . mysqli_error($link);
header('Refresh: 0; url:admin_dashboard.php?price=true');
}
}
?>
Admin_price_list
<?php
include('config.php');
$level = $_GET['level'];

STI College Calamba 140


?>
<section class="section">
<div class="row">
<div class="col-lg-12">
<div class="card">
<div class="card-body">
<h5 class="card-title"><?php echo $level;?></h5>
<p>You can add/edit fees here for the Registration Assessment Form
of <?php echo $level;?></p>
<div class="col-lg-12">
<form action="admin_price_add.php" method="post">
<input type="hidden" name="level" value="<?php echo $level;?
>">
<div class="col-sm-12">
<p><b>Fee</p>
<input class="form-control" type="text" required name="fee"
placeholder="Add Fee..."><br>
</div>
<div class="col-sm-12">
<p>Price</b></p>
<input class="form-control" type="number" required
name="price" placeholder="Enter Price..."><br>
</div>
<input class="btn btn-primary" type="submit" name="submit">
</form>
</div>
<table class="table">
<tr>
<th>Charges</th>
<th>Fee</th>

STI College Calamba 141


</tr>
<?php
$sql = "SELECT * FROM fees WHERE level='$level'";
$query = mysqli_query($link, $sql);
if(mysqli_num_rows($query) <= 0){
echo "<br><h3>No Fees Entered</h3>";
}
else {
while($row = mysqli_fetch_assoc($query)){
$fee = $row['fee_name'];
$price = $row['price'];
$sum = "SELECT SUM(price) FROM fees WHERE
level='$level'";
$querysum = mysqli_query($link, $sum);
?>
<tr>
<td><?=$row['fee_name']?></td>
<td><?=$row['price']?></td>
</tr>
<?php
}
if($querysum){
while($row2 = mysqli_fetch_assoc($querysum)){
?>
<tr>
<th>Total</th>
<th><?php echo $row2['SUM(price)'];?></th>
</tr>
<?php
}
}

STI College Calamba 142


}
?>
</table>
</div>
</div>
</div>
</div>
</section>
Admin_profile
<section class="section profile">
<div class="row">
<div class="col-xl-4">
<div class="card">
<div class="card-body profile-card pt-4 d-flex flex-column align-
items-center">
<?php
require('config.php');
if(isset($_GET['app_id'])) {
$app_id = $_GET['app_id'];
$sql = "SELECT * FROM applicant WHERE
applicant_id=$app_id";
$result = mysqli_query($link, $sql);
if(mysqli_num_rows($result) <= 0){
echo "<h3>No students enrolled yet.</h3>";
}
else{
while($row=mysqli_fetch_assoc($result)){
?>
<!--
<table class="table datatable">
<tr>

STI College Calamba 143


<th scope="col">Applicant ID</th>
<th scope="col">First Name</th>
<th scope="col">Middle Name</th>
<th scope="col">Last Name</th>
<th scope="col">Status</th>
<th scope="col">Grade Level</th>
<th scope="col">View</th>
</tr>
<tr>
<td scope="row"><?php echo
$row['applicant_id'];?></th>
<td><?php echo $row['fname'];?></td>
<td><?php echo $row['mname'];?></td>
<td><?php echo $row['lname'];?></td>
<td><?php echo $row['status'];?></td>
<td><?php echo $row['level'];?></td>
<td><a href="">View</a></td>
</tr>
</table>
-->

<?php echo "<img src='{$row['pic1x1']}' class='rounded-


circle'>";?>
<!--<img src="assets - admin/img/profile-img.jpg" alt="Profile"
class="rounded-circle">-->
<h2><?php echo $row['fname'];?> <?php echo $row['lname'];?
></h2>
<h3><?php echo $row['level'];?></h3>
<div class="social-links mt-2">
<a href="#" class="twitter"><i class="bi bi-twitter"></i></a>

STI College Calamba 144


<a href="#" class="facebook"><i class="bi
bi-facebook"></i></a>
<a href="#" class="instagram"><i class="bi bi-
instagram"></i></a>
<a href="#" class="linkedin"><i class="bi
bi-linkedin"></i></a>
</div>
</div>
</div>

</div>

<div class="col-xl-8">

<div class="card">
<div class="card-body pt-3">
<!-- Bordered Tabs -->
<ul class="nav nav-tabs nav-tabs-bordered">

<li class="nav-item">
<button class="nav-link active" data-bs-toggle="tab" data-
bs-target="#profile-overview">Overview</button>
</li>

<li class="nav-item">
<button class="nav-link" data-bs-toggle="tab" data-bs-
target="#profile-edit">Edit Profile</button>
</li>

<li class="nav-item">

STI College Calamba 145


<button class="nav-link" data-bs-toggle="tab" data-bs-
target="#profile-settings">Settings</button>
</li>

<li class="nav-item">
<button class="nav-link" data-bs-toggle="tab" data-bs-
target="#profile-change-password">Change Password</button>
</li>

</ul>
<div class="tab-content pt-2">

<div class="tab-pane fade show active profile-overview"


id="profile-overview">
<h5 class="card-title">About</h5>
<p class="small fst-italic">Sunt est soluta temporibus
accusantium neque nam maiores cumque temporibus. Tempora libero non est
unde veniam est qui dolor. Ut sunt iure rerum quae quisquam autem eveniet
perspiciatis odit. Fuga sequi sed ea saepe
at unde.</p>

<h5 class="card-title">Profile Details</h5>

<div class="row">
<div class="col-lg-3 col-md-4 label ">Full Name</div>
<div class="col-lg-9 col-md-8"><?php echo
$row['lname'];?>, <?php echo $row['fname'];?> <?php echo
$row['mname'];?></div>
</div>

<div class="row">

STI College Calamba 146


<div class="col-lg-3 col-md-4 label">Grade Level</div>
<div class="col-lg-9 col-md-8"><?php echo
$row['level'];?></div>
</div>

<div class="row">
<div class="col-lg-3 col-md-4 label">Age</div>
<div class="col-lg-9 col-md-8"><?php echo
$row['age'];?></div>
</div>

<div class="row">
<div class="col-lg-3 col-md-4 label">Address</div>
<div class="col-lg-9 col-md-8"><?php echo
$row['address'];?></div>
</div>

<div class="row">
<div class="col-lg-3 col-md-4 label">Place of
Birth</div>
<div class="col-lg-9 col-md-8"><?php echo
$row['pob'];?></div>
</div>

<div class="row">
<div class="col-lg-3 col-md-4 label">Religion</div>
<div class="col-lg-9 col-md-8"><?php echo
$row['religion'];?></div>
</div>

<div class="row">

STI College Calamba 147


<div class="col-lg-3 col-md-4 label">Church
Attended</div>
<div class="col-lg-9 col-md-8"><?php echo
$row['church'];?></div>
</div>
<div class="row">
<div class="col-lg-3 col-md-4 label">Name of
Father</div>
<div class="col-lg-9 col-md-8"><?php echo
$row['dadname'];?></div>
</div>
<div class="row">
<div class="col-lg-3 col-md-4 label">Father's
Occupation Attended</div>
<div class="col-lg-9 col-md-8"><?php echo
$row['dadocc'];?></div>
</div>
<div class="row">
<div class="col-lg-3 col-md-4 label">Father's Contact
Number</div>
<div class="col-lg-9 col-md-8"><?php echo
$row['dadcontact'];?></div>
</div>
<div class="row">
<div class="col-lg-3 col-md-4 label">Name of
Mother</div>
<div class="col-lg-9 col-md-8"><?php echo
$row['momname'];?></div>
</div>
<div class="row">

STI College Calamba 148


<div class="col-lg-3 col-md-4 label">Mother's
Occupation</div>
<div class="col-lg-9 col-md-8"><?php echo
$row['momocc'];?></div>
</div>
<div class="row">
<div class="col-lg-3 col-md-4 label">Mother's Contact
Number</div>
<div class="col-lg-9 col-md-8"><?php echo
$row['momcontact'];?></div>
</div>
<div class="row">
<div class="col-lg-3 col-md-4 label">In case of
Emergency Contact Person</div>
<div class="col-lg-9 col-md-8"><?php echo
$row['emergname'];?></div>
</div>
<div class="row">
<div class="col-lg-3 col-md-4 label">Contact
Number</div>
<div class="col-lg-9 col-md-8"><?php echo
$row['emergcontact'];?></div>
</div>
<div class="row">
<div class="col-lg-3 col-md-4 label">Distance Learning
Person</div>
<div class="col-lg-9 col-md-8"><?php echo
$row['distname'];?></div>
</div>
<div class="row">

STI College Calamba 149


<div class="col-lg-3 col-md-4 label">Distance Person
Contact</div>
<div class="col-lg-9 col-md-8"><?php echo
$row['distcontact'];?></div>
</div>
<div class="row">
<div class="col-lg-3 col-md-4 label">Student's
Signature</div>
<div class="col-lg-9 col-md-8"><?php echo "<img
src='{$row['birth_cert']}' height=40% width=40%>";?></div>
</div>
<div class="row">
<div class="col-lg-3 col-md-4 label">Father's
Signature</div>
<div class="col-lg-9 col-md-8"><?php echo "<img
src='{$row['good_moral']}' height=40% width=40%>";?></div>
</div>
<div class="row">
<div class="col-lg-3 col-md-4 label">Mother's
Signature</div>
<div class="col-lg-9 col-md-8"><?php echo "<img
src='{$row['form_137']}' height=40% width=40%>";?></div>
</div>
<div class="row">
<div class="col-lg-3 col-md-4 label">Registration
Fee</div>
<div class="col-lg-9 col-md-8"><?php echo "<img
src='{$row['pay_rec']}' height=40% width=40%>";?></div>
</div>
<div class="row">

STI College Calamba 150


<div class="col-lg-3 col-md-4
label">Downpayment</div>
<div class="col-lg-9 col-md-8"><?php echo "<img
src='{$row['proof']}' height=40% width=40%>";?></div>
</div>
<div class="row">
<div class="col-lg-3 col-md-4 label">Receipt</div>
<div class="col-lg-9 col-md-8"><?php echo "<img
src='{$row['receipt']}' height=40% width=40%>";?></div>
</div>

</div>

<div class="tab-pane fade profile-edit pt-3" id="profile-edit">

<!-- Profile Edit Form -->


<form>
<div class="row mb-3">
<label for="profileImage" class="col-md-4 col-lg-3
col-form-label">Profile Image</label>
<div class="col-md-8 col-lg-9">
<?php echo "<img src='{$row['pic1x1']}'
height=40% width=40%>";?>
<img src="assets/img/profile-img.jpg"
alt="Profile">
<div class="pt-2">
<a href="#" class="btn btn-primary btn-sm"
title="Upload new profile image"><i class="bi bi-upload"></i></a>

STI College Calamba 151


<a href="#" class="btn btn-danger btn-sm"
title="Remove my profile image"><i class="bi bi-trash"></i></a>
</div>
</div>
</div>

<div class="row mb-3">


<label for="fullName" class="col-md-4 col-lg-3 col-
form-label">Full Name</label>
<div class="col-md-8 col-lg-9">
<input name="fullName" type="text" class="form-
control" id="fullName" value="Kevin Anderson">
</div>
</div>

<div class="row mb-3">


<label for="about" class="col-md-4 col-lg-3 col-form-
label">About</label>
<div class="col-md-8 col-lg-9">
<textarea name="about" class="form-control"
id="about" style="height: 100px">Sunt est soluta temporibus accusantium neque
nam maiores cumque temporibus. Tempora libero non est unde veniam est qui
dolor. Ut sunt iure rerum quae quisquam autem eveniet perspiciatis odit. Fuga
sequi sed ea saepe at unde.</textarea>
</div>
</div>

<div class="row mb-3">


<label for="company" class="col-md-4 col-lg-3 col-
form-label">Company</label>
<div class="col-md-8 col-lg-9">

STI College Calamba 152


<input name="company" type="text" class="form-
control" id="company" value="Lueilwitz, Wisoky and Leuschke">
</div>
</div>

<div class="row mb-3">


<label for="Job" class="col-md-4 col-lg-3 col-form-
label">Job</label>
<div class="col-md-8 col-lg-9">
<input name="job" type="text" class="form-
control" id="Job" value="Web Designer">
</div>
</div>

<div class="row mb-3">


<label for="Country" class="col-md-4 col-lg-3 col-
form-label">Country</label>
<div class="col-md-8 col-lg-9">
<input name="country" type="text" class="form-
control" id="Country" value="USA">
</div>
</div>

<div class="row mb-3">


<label for="Address" class="col-md-4 col-lg-3 col-
form-label">Address</label>
<div class="col-md-8 col-lg-9">
<input name="address" type="text" class="form-
control" id="Address" value="A108 Adam Street, New York, NY 535022">
</div>
</div>

STI College Calamba 153


<div class="row mb-3">
<label for="Phone" class="col-md-4 col-lg-3 col-
form-label">Phone</label>
<div class="col-md-8 col-lg-9">
<input name="phone" type="text" class="form-
control" id="Phone" value="(436) 486-3538 x29071">
</div>
</div>

<div class="row mb-3">


<label for="Email" class="col-md-4 col-lg-3 col-
form-label">Email</label>
<div class="col-md-8 col-lg-9">
<input name="email" type="email" class="form-
control" id="Email" value="k.anderson@example.com">
</div>
</div>

<div class="row mb-3">


<label for="Twitter" class="col-md-4 col-lg-3 col-
form-label">Twitter Profile</label>
<div class="col-md-8 col-lg-9">
<input name="twitter" type="text" class="form-
control" id="Twitter" value="https://twitter.com/#">
</div>
</div>

<div class="row mb-3">


<label for="Facebook" class="col-md-4 col-lg-3 col-
form-label">Facebook Profile</label>

STI College Calamba 154


<div class="col-md-8 col-lg-9">
<input name="facebook" type="text" class="form-
control" id="Facebook" value="https://facebook.com/#">
</div>
</div>

<div class="row mb-3">


<label for="Instagram" class="col-md-4 col-lg-3 col-
form-label">Instagram Profile</label>
<div class="col-md-8 col-lg-9">
<input name="instagram" type="text" class="form-
control" id="Instagram" value="https://instagram.com/#">
</div>
</div>

<div class="row mb-3">


<label for="Linkedin" class="col-md-4 col-lg-3 col-
form-label">Linkedin Profile</label>
<div class="col-md-8 col-lg-9">
<input name="linkedin" type="text" class="form-
control" id="Linkedin" value="https://linkedin.com/#">
</div>
</div>

<div class="text-center">
<button type="submit" class="btn btn-primary">Save
Changes</button>
</div>
</form>
<!-- End Profile Edit Form -->

STI College Calamba 155


</div>

<div class="tab-pane fade pt-3" id="profile-settings">

<!-- Settings Form -->


<form>

<div class="row mb-3">


<label for="fullName" class="col-md-4 col-lg-3 col-
form-label">Email Notifications</label>
<div class="col-md-8 col-lg-9">
<div class="form-check">
<input class="form-check-input"
type="checkbox" id="changesMade" checked>
<label class="form-check-label"
for="changesMade">
Changes made to your account
</label>
</div>
<div class="form-check">
<input class="form-check-input"
type="checkbox" id="newProducts" checked>
<label class="form-check-label"
for="newProducts">
Information on new products and services
</label>
</div>
<div class="form-check">
<input class="form-check-input"
type="checkbox" id="proOffers">

STI College Calamba 156


<label class="form-check-label"
for="proOffers">
Marketing and promo offers
</label>
</div>
<div class="form-check">
<input class="form-check-input"
type="checkbox" id="securityNotify" checked disabled>
<label class="form-check-label"
for="securityNotify">
Security alerts
</label>
</div>
</div>
</div>

<div class="text-center">
<button type="submit" class="btn btn-primary">Save
Changes</button>
</div>
</form>
<!-- End settings Form -->

</div>

<div class="tab-pane fade pt-3" id="profile-change-


password">
<!-- Change Password Form -->
<form>

<div class="row mb-3">

STI College Calamba 157


<label for="currentPassword" class="col-md-4 col-lg-
3 col-form-label">Current Password</label>
<div class="col-md-8 col-lg-9">
<input name="password" type="password"
class="form-control" id="currentPassword">
</div>
</div>

<div class="row mb-3">


<label for="newPassword" class="col-md-4 col-lg-3
col-form-label">New Password</label>
<div class="col-md-8 col-lg-9">
<input name="newpassword" type="password"
class="form-control" id="newPassword">
</div>
</div>

<div class="row mb-3">


<label for="renewPassword" class="col-md-4 col-lg-3
col-form-label">Re-enter New Password</label>
<div class="col-md-8 col-lg-9">
<input name="renewpassword" type="password"
class="form-control" id="renewPassword">
</div>
</div>

<div class="text-center">
<button type="submit" class="btn btn-
primary">Change Password</button>
</div>
</form>

STI College Calamba 158


<!-- End Change Password Form -->

</div>

</div>
<!-- End Bordered Tabs -->

</div>
</div>

</div>
</div>
</section>
<?php
}
}
}
?>
Admin_reports
<?php
if(isset($_POST['submit'])){
$app_id = $_POST['app_id'];
$LRN = $_POST['LRN'];
$remarks = $_POST['remarks'];
$update = $link->query("UPDATE applicant SET remarks='$remarks',
LRN=$LRN WHERE applicant_id=$app_id");
if($update){
$msg = "Successfully Updated!";
echo "<script> alert('$msg')</script>";
echo "<script>location.href = 'admin_dashboard.php?report=true';</script>";
}

STI College Calamba 159


else{
$msg = "Error updating";
echo "<script> alert('$msg')</script>";
echo "<script>location.href = 'admin_dashboard.php?report=true';</script>";
}
}
?>
<section class="section">
<div class="row">
<div class="col-lg-12">
<div class="card">
<div class="card-body" style="overflow:auto; white-space: nowrap;
display: inline-block;">
<h5 class="card-title">School Form 1</h5>
<p></p>
<table class="table" >
<tr>
<th scope="col">Learning Reference Number</th>
<th scope="col">Name (Last Name, First Name, Middle
Name)</th>
<th scope="col">Sex(M/F)</th>
<th scope="col">Age</th>
<th scope="col">MOTHER Tongue</th>
<th scope="col">IP (Ethnic Group)</th>
<th scope="col">Religion</th>
<th scope="col">House #/Street/Sitio/Purok</th>
<th scope="col">Barangay</th>
<th scope="col">Municipality/City</th>
<th scope="col">Province</th>
<th scope="col">Father's Name(Last Name, First Name,
Middle Name)</th>

STI College Calamba 160


<th scope="col">Mother's Maiden Name(Last Name, First
Name, Middle Name)</th>
<th scope="col">Guardian Name</th>
<th scope="col">Relation-ship</th>
<th scope="col">Contact Number of Parent/Guardian</th>
<th scope="col">Remarks</th>
<th scope="col">Update</th>
</tr>
<?php
$sql = "SELECT * FROM student as a
inner join applicant as b
on a.applicant_id=b.applicant_id
WHERE active='1'";
$result = mysqli_query($conn, $sql);
if(mysqli_num_rows($result) <= 0){
echo "<h3>No students enrolled yet.</h3>";
}
else{
while($row=mysqli_fetch_assoc($result)){
$app_id = $row['applicant_id'];
$f_name = $row['fname'];
$m_name = $row['mname'];
$l_name = $row['lname'];
$level = $row['level'];
$pic1x1=$row['pic1x1'];
$stud_sig=$row['birth_cert'];
$dad_sig=$row['good_moral'];
$mom_sig=$row['form_137'];
$pay_rec=$row['pay_rec'];
//$img = mysqli_query('SELECT
pic1x1stud_sigdad_sigmom_sigpay_rec')

STI College Calamba 161


?>
<!-- Table with stripped rows -->
<form method="POST" action="">
<tr>
<td scope="row"><input class="form-control"
type="number" name="LRN" value="<?php echo $row['LRN'];?>"></td>
<input type="hidden" name="app_id" value="<?php echo
$row['applicant_id'];?>">
<td><?php echo $row['lname'];?>, <?php echo
$row['fname'];?> <?php echo $row['mname'];?></td>
<td><?php echo $row['gender'];?></td>
<td><?php echo $row['age'];?></td>
<td><?php echo $row['tongue'];?></td>
<td><?php echo $row['ethnic'];?></td>
<td><?php echo $row['religion'];?></td>
<td><?php echo $row['house'];?></td>
<td><?php echo $row['barangay'];?></td>
<td><?php echo $row['city'];?></td>
<td><?php echo $row['province'];?></td>
<td><?php echo $row['dadlname'];?>, <?php echo
$row['dadfname'];?> <?php echo $row['dadmname'];?></td>
<td><?php echo $row['momlname'];?>, <?php echo
$row['momfname'];?> <?php echo $row['mommname'];?></td>
<td><?php echo $row['emergname'];?></td>
<td><?php echo $row['emergrelation'];?></td>
<td><?php echo $row['emergcontact'];?></td>
<td><input class="form-control" type="text"
name="remarks" value="<?php echo $row['remarks'];?>"></td>
<td><input class="btn btn-primary"type="submit"
name="submit" value="Submit"></td>
</tr>

STI College Calamba 162


</form>
<?php
}
}
?>
</table>

</div>
<b>List and Code of Indicators under REMARKS column</b>
<table class="table">
<tr>
<th>Indicator</th>
<th>Code</th>
<th>Required Information</th>
<th></th>
<th>Code</th>
<th>Required Information</th>
</tr>
<tr>
<td>Transferred Out</td>
<td>T/O</td>
<td>Name of Public(P)Private(PR)School & Effectivity
Date</td>
<td></td>
<td>CCT</td>
<td>CCT Control/Reference Number & Effectivity Date</td>
</tr>
<tr>
<td>Transferred In</td>
<td>T/I</td>

STI College Calamba 163


<td>Name of Public(P)Private(PR)School & Effectivity
Date</td>
<td></td>
<td>B/A</td>
<td>Name of school last attended & Year</td>
</tr>
<tr>
<td>Dropped</td>
<td>DRP</td>
<td>Reason and Effectivity Date</td>
<td></td>
<td>LWD</td>
<td>Specify</td>
</tr>
<tr>
<td>Late Enrollment</td>
<td>LE</td>
<td>Reason (Enrollment beyond 1st Friday of June)</td>
<td></td>
<td>ACL</td>
<td>Specify Level & Effectivity Data</td>
</tr>
</table>
<a class="btn btn-primary" href="export_excel.php?reports=true
&app_id=<?=$app_id?>
&level=<?=$level?>
&f_name=<?=$f_name?>
&m_name=<?=$m_name?>
&l_name=<?=$l_name?>">Save as Excel</a>
</div>
</div>

STI College Calamba 164


</div>
</section>
Admin_reports_process
<?php
include('config.php');
if(isset($_POST['submit'])){
$app_id = $_POST['app_id'];
$LRN = $_POST['LRN'];
$remarks = $_POST['remarks'];
$update = $link->query("UPDATE applicant SET remarks='$remarks',
LRN=$LRN WHERE applicant_id=$app_id");
if($update){
$msg = "Successfully Updated!";
echo "<script> alert('$msg')</script>";
echo "<script>location.href = 'admin_dashboard.php?report=true';</script>";
}
else{
$msg = "Error updating";
echo "<script> alert('$msg')</script>";
echo "<script>location.href = 'admin_dashboard.php?report=true';</script>";
}
}
?>
Admin_room

<section class="section">
<div class="row">
<div class="col-lg-12">
<div class="card">
<div class="card-body">
<h5 class="card-title">Room</h5>

STI College Calamba 165


<p>You can add/edit Rooms here.</p>
<form method="POST" action="admin_room_add.php">
<div class="row">
<div class="col-sm-3">
<p>Room Name</p>
<input type="text" name="room" class="form-
control">
</div>
</div>
<br>
<div class="col-sm-3">
<input type="submit" name="add" class="btn btn-
primary"value="Add Room"></input>
</div>
</form>
<div class="col-sm-10">
<?php
$sql = "SELECT * FROM room";
$room = mysqli_query($link,$sql);
if(mysqli_num_rows($room) > 0){
while($row=mysqli_fetch_assoc($room)){
$id = $row['id'];
$roomname = $row['room'];
?>
<table class="table">
<tr>
<th scope="col">Room Name</th>
<th scope="col">Action</th>
</tr>
<tr>

STI College Calamba 166


<form action="admin_room_add.php"
method="post">
<input type="hidden" name="index"
value="<?php echo $row['id'];?>"></input>
<td><input type="text" name="room"
class="form-control" value="<?php echo $row['room'];?>"></input></td>
<td><input class="btn btn-primary"
type="submit" name="edit" value="Edit"></input>
<input class="btn btn-danger"type="submit"
name="delete" value="Delete"></td>
</form>
</tr>
</table>
<?php
}
}
else {
echo "<h4>No rooms found.</h4>";
}
?>
</div>
</div>
</div>
</div>
</div>
</section>
Admin_room_add
<?php
include('config.php');
if(isset($_POST['add'])){
//$id = $_POST['index'];

STI College Calamba 167


$room = $_POST['room'];
$insert = "INSERT INTO room (room) VALUES('$room')";
$resultinsert = mysqli_query($link, $insert);

$auditmessage = "A room has been added.";


$audit = "INSERT INTO audit (log, date_created)
VALUES('$auditmessage', CURRENT_TIMESTAMP)";
$insertaudit = mysqli_query($link, $audit);

if($resultinsert){
if($insertaudit){
$success = "Added successfully";
echo "<script type='text/javascript'>alert('$success');</script>";
header("Refresh:0; url=admin_dashboard.php?room=true");
}
else{
echo "Error: " . $audit . "<br>" . mysqli_error($link);
}
}
else{
echo "Error: " . $insert . "<br>" . mysqli_error($link);
}
}
elseif(isset($_POST['edit'])){
$id = $_POST['index'];
$room = $_POST['room'];
$update = "UPDATE room SET room='$room' WHERE id='$id'";
$resultupdate = mysqli_query($link, $update);

$auditmessage = "A room has been edited.";

STI College Calamba 168


$audit = "INSERT INTO audit (log, date_created)
VALUES('$auditmessage', CURRENT_TIMESTAMP)";
$insertaudit = mysqli_query($link, $audit);

if($resultupdate){
if($insertaudit){
$success = "Edit successful";
echo "<script type='text/javascript'>alert('$success');</script>";
header("Refresh:0; url=admin_dashboard.php?room=true");
}
else{
echo "Error: " . $audit . "<br>" . mysqli_error($link);
}
}
else{
echo "Error: " . $update . "<br>" . mysqli_error($link);
}

}
elseif(isset($_POST['delete'])){
$id = $_POST['index'];
$room = $_POST['room'];
$delete = "DELETE FROM room WHERE id='$id'";
$resultdelete = mysqli_query($link, $delete);
if($resultdelete){
$delete = "Delete successful";
echo "<script type='text/javascript'>alert('$delete');</script>";
header("Refresh:0; url=admin_dashboard.php?room=true");
}
else{
echo "Error: " . $delete . "<br>" . mysqli_error($link);

STI College Calamba 169


}
}
else{
echo "Error: " . "<br>" . mysqli_error($link);
}
?>
Admin_schedule
<section class="section">
<div class="row">
<div class="col-lg-12">
<div class="card">
<div class="card-body">
<h5 class="card-title">Schedule Upload</h5>
<p>You can upload every level's schedule here</p>
<?php
$sched = "Select * FROM section";
$result = mysqli_query($conn, $sched);
if(mysqli_num_rows($result) <= 0){
echo "<h3>No students enrolled yet.</h3>";
}
else{
while($row=mysqli_fetch_assoc($result)){
$section_id = $row['section_id'];
$level = $row['level'];
?>
<table class="table datatable">
<tr>
<th scope="col">Section ID</th>
<th scope="col">Level</th>
<th scope="col">Schedule</th>
<th scope="col">Schedule Upload</th>

STI College Calamba 170


<th scope="col">Submit</th>
</tr>
<tr>
<form action="schedule_upload.php"
method="post" enctype="multipart/form-data">
<td><?php echo $row['section_id'];?></td>
<td><?php echo $row['level'];?></td>
<td><?php echo "<img src='{$row['schedule']}'
height=30% width=30%>";?></td>
<td><input type="file" name="schedule"
class="form-control" required ></input></td>
<td><input type="submit" class="btn btn-primary"
value="Submit"></input></td>
<input type="hidden" name="sect_id" value="<?
php echo $section_id;?>"></input>
<input type="hidden" name="level" value="<?php
echo $level;?>"></input>
</form>
</tr>
</table>
<?php
}
}
?>
</div>
</div>
</div>
</div>
</section>
Admin_scheduling

STI College Calamba 171


<section class="section">
<div class="row">
<div class="col-lg-12">
<div class="card">
<div class="card-body">
<h5 class="card-title">Schedule</h5>
<p>You can add or configure schedules here.</p>
<form action="admin_scheduling_add.php" method="post">
<div class="col-lg-6">
<div class="card-body">
<p class="card-title">Select Day</p>
<input class="form-check-input" type="checkbox"
name="day[]" value="M"></input>
<label class="form-check-label"
for="gridCheck2">Monday</label><br>
<input class="form-check-input" type="checkbox"
name="day[]" value="T"></input>
<label class="form-check-label"
for="gridCheck2">Tuesday</label><br>
<input class="form-check-input" type="checkbox"
name="day[]" value="W"></input>
<label class="form-check-label"
for="gridCheck2">Wednesday</label><br>
<input class="form-check-input" type="checkbox"
name="day[]" value="Th"></input>
<label class="form-check-label"
for="gridCheck2">Thursday</label><br>
<input class="form-check-input" type="checkbox"
name="day[]" value="F"></input>
<label class="form-check-label"
for="gridCheck2">Friday</label><br>

STI College Calamba 172


<input class="form-check-input" type="checkbox"
name="day[]" value="S"></input>
<label class="form-check-label"
for="gridCheck2">Saturday</label><br>
<!--
==========================================================
================= -->
<p class="card-title">Time Start</p>
<div class="col-lg-4">
<select class="form-control" name="time_start">
<option value="6:00 am">6:00 am</option>
<option value="6:30 am">6:30 am</option>
<option value="7:00 am">7:00 am</option>
<option value="7:30 am">7:30 am</option>
<option value="8:00 am">8:00 am</option>
<option value="8:30 am">8:30 am</option>
<option value="9:00 am">9:00 am</option>
<option value="9:30 am">9:30 am</option>
<option value="10:00 am">10:00 am</option>
<option value="10:30 am">10:30 am</option>
<option value="11:00 am">11:00 am</option>
<option value="11:30 am">11:30 am</option>
<option value="12:00 pm">12:00 pm</option>
<option value="12:30 pm">12:30 pm</option>
<option value="1:00 pm">1:00 pm </option>
<option value="1:30 pm">1:30 pm</option>
<option value="2:00 pm">2:00 pm</option>
<option value="2:30 pm">2:30 pm</option>
<option value="3:00 pm">3:00 pm</option>
<option value="3:30 pm">3:30 pm</option>
<option value="4:00 pm">4:00 pm</option>

STI College Calamba 173


<option value="4:30 pm">4:30 pm</option>
<option value="5:00 pm">5:00 pm</option>
<option value="5:30 pm">5:30 pm</option>
<option value="6:00 pm">6:00 pm</option>
<option value="6:30 pm">6:30 pm</option>
<option value="7:00 pm">7:00 pm</option>
</select>
</div>

<!--
==========================================================
================= -->
<p class="card-title">Time End</p>
<select class="form-control" name="time_end">
<option value="6:00 am">6:00 am</option>
<option value="6:30 am">6:30 am</option>
<option value="7:00 am">7:00 am</option>
<option value="7:30 am">7:30 am</option>
<option value="8:00 am">8:00 am</option>
<option value="8:30 am">8:30 am</option>
<option value="9:00 am">9:00 am</option>
<option value="9:30 am">9:30 am</option>
<option value="10:00 am">10:00 am</option>
<option value="10:30 am">10:30 am</option>
<option value="11:00 am">11:00 am</option>
<option value="11:30 am">11:30 am</option>
<option value="12:00 pm">12:00 pm</option>
<option value="12:30 pm">12:30 pm</option>
<option value="1:00 pm">1:00 pm </option>
<option value="1:30 pm">1:30 pm</option>
<option value="2:00 pm">2:00 pm</option>

STI College Calamba 174


<option value="2:30 pm">2:30 pm</option>
<option value="3:00 pm">3:00 pm</option>
<option value="3:30 pm">3:30 pm</option>
<option value="4:00 pm">4:00 pm</option>
<option value="4:30 pm">4:30 pm</option>
<option value="5:00 pm">5:00 pm</option>
<option value="5:30 pm">5:30 pm</option>
<option value="6:00 pm">6:00 pm</option>
<option value="6:30 pm">6:30 pm</option>
<option value="7:00 pm">7:00 pm</option>
</select>
<!--
==========================================================
=================
<p class="card-title">Grade Level</p>
<select class="form-control" name="level">
<option value="Nursery">Nursery</option>
<option value="Pre-Kinder">Pre-Kinder</option>
<option value="Kinder 1">Kinder 1</option>
<option value="Kinder 2">Kinder 2</option>
<option value="Grade 1">Grade 1</option>
<option value="Grade 2">Grade 2</option>
<option value="Grade 3">Grade 3</option>
<option value="Grade 4">Grade 4</option>
<option value="Grade 5">Grade 5</option>
<option value="Grade 6">Grade 6</option>
<option value="Grade 7">Grade 7</option>
<option value="Grade 8">Grade 8</option>
<option value="Grade 9">Grade 9</option>
<option value="Grade 10">Grade 10</option>
<option value="Grade 11">Grade 11</option>

STI College Calamba 175


<option value="Grade 12">Grade 12</option>
</select>
<!--
==========================================================
================= -->
<p class="card-title">Semester</p>
<select class="form-control" name="semester">
<option value="Gradeschool">Gradeschool</option>
<option value="1st">SHS - 1st</option>
<option value="2nd">SHS - 2nd</option>
</select>
<!--
==========================================================
================= -->
<p class="card-title">School Year</p>
<select class="form-control" name="schoolyear">
<?php
include('config.php');
$sy = "SELECT * FROM schoolyear";
$resultsy = mysqli_query($link, $sy);
if(mysqli_num_rows($resultsy) <= 0){
echo "<h3>No School Year found</h3>";
}
else {
while($row = mysqli_fetch_array($resultsy)){
?>
<option value="<?php echo $row['schoolyear']?
>"><?php echo $row['schoolyear']?></option>
<?php
}
}

STI College Calamba 176


?>
</select>
<!--
==========================================================
================= -->
<p class="card-title">Select Subject</p>
<select class="form-control" name="subject">
<?php
include('config.php');
$subject = "SELECT * FROM subject";
$resultsubject = mysqli_query($link, $subject);
if(mysqli_num_rows($resultsubject) <= 0){
echo "<h3>No subjects found</h3>";
}
else {
while($row = mysqli_fetch_array($resultsubject)){
?>
<option value="<?php echo $row['subject_name']?
>"><?php echo $row['subject_name']?></option>
<?php
}
}
?>
</select>
<!--
==========================================================
================= -->
<p class="card-title">Select Section</p>
<select class="form-control" name="section">
<?php
include('config.php');

STI College Calamba 177


$section = "SELECT * FROM section";
$resultsection = mysqli_query($link, $section);
if(mysqli_num_rows($resultsection) <= 0){
echo "<h3>No subjects found</h3>";
}
else {
while($row = mysqli_fetch_array($resultsection)){
?>
<option value="<?php echo $row['section_id']?
>"><?php echo $row['section_id']?></option>
<?php
}
}
?>
</select>
<!--
==========================================================
================= -->
<p class="card-title">Select Faculty</p>
<select class="form-control" name="faculty">
<?php
include('config.php');
$faculty = "SELECT * FROM faculty";
$resultfaculty = mysqli_query($link, $faculty);
if(mysqli_num_rows($resultfaculty) <= 0){
echo "<h3>No faculty found</h3>";
}
else {
while($row = mysqli_fetch_array($resultfaculty)){
?>

STI College Calamba 178


<option value="<?php echo $row['faculty_name']?
>"><?php echo $row['faculty_name']?> | <?php echo $row['level']?></option>
<?php
}
}
?>
</select>
<!--
==========================================================
================= -->

<p class="card-title">Select Room</p>


<select class="form-control" name="room">
<?php
include('config.php');
$room = "SELECT * FROM room";
$resultroom = mysqli_query($link, $room);
if(mysqli_num_rows($resultroom) <= 0){
echo "<h3>No rooms found</h3>";
}
else {
while($row = mysqli_fetch_array($resultroom)){
?>
<option value="<?php echo $row['room']?>"><?
php echo $row['room']?></option>
<?php
}
}
?>
</select><br>

STI College Calamba 179


<!--
==========================================================
================= -->
<input class="btn btn-primary" type="submit" name="add"
value="Add"></input>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</section>
Admin_scheduling_add
<?php
include('config.php');
if(isset($_POST['add'])){
$day = implode(",",$_POST['day']);
$time_start = $_POST['time_start'];
$time_end = $_POST['time_end'];
$time = $time_start . " - " . $time_end;
$sem = $_POST['semester'];
$sy = $_POST['schoolyear'];
$subject = $_POST['subject'];
$section = $_POST['section'];
$faculty = $_POST['faculty'];
$room = $_POST['room'];

$sql = "INSERT INTO schedule(subject_name, section_id, days, semester,


school_year, time,faculty,room)
Values('$subject', '$section', '$day', '$sem', '$sy', '$time','$faculty', '$room')";

STI College Calamba 180


$insert = mysqli_query($link, $sql);
if($insert){
$message = "Added Successfully";
echo "<script type='text/javascript'>alert('$message');</script>";
header("Refresh:0; url=admin_dashboard.php?schedule=true");
}
else{
echo "Error: " . $sql . "<br>" . mysqli_error($link);
}
}
?>
Admin_scheduling_list
<section class="section">
<div class="row">
<div class="col-lg-12">
<div class="card">
<div class="card-body">
<h5 class="card-title">List of Schedules</h5>
<p>You can see schedules here.</p>
<?php
$name = $_SESSION['name'];
$sql = $link->query("SELECT * from section_sched WHERE
faculty='$name'");
if(mysqli_num_rows($sql) <= 0){
echo "<h3>No schedules found</h3>";
}
else {
?>
<table class="table">
<tr>
<th>Subject</th>

STI College Calamba 181


<th>Level/Section</th>
<th>Days</th>
<th>Time</th>
<th>Room</th>
<th>Instructor</th>
</tr>
<?php
while($fetch = $sql->fetch_array()){
?>
<tr>
<td><?php echo $fetch['subject_id']; ?></td>
<td><?php echo $fetch['section_id']; ?></td>
<td><?php echo $fetch['days']; ?></td>
<td><?php echo $fetch['time_start'];?>-<?php echo
$fetch['time_end'];?></td>
<td><?php echo $fetch['room']; ?></td>
<td><?php echo $fetch['faculty']; ?></td>
</tr>
<?php
}
?>
<a class="btn btn-primary" href="export_excel.php?
sched=true">Save as Excel</a>
</table>
<?php
}
?>
</div>
</div>
</div>
</div>

STI College Calamba 182


</section>
Admin_school year
<section class="section">
<div class="row">
<div class="col-lg-12">
<div class="card">
<div class="card-body">
<h5 class="card-title">School Year</h5>
<p>You can add/configure school years here</p>
<form method="POST" action="admin_schoolyear_add.php">
<div class="row">
<div class="col-sm-3">
<p>School Year</p>
<input required type="text" name="schoolyear" class="form-
control">
</div>
</div>
<br>
<div class="col-sm-3">
<input type="submit" name="add" class="btn btn-
primary"value="Add School Year"></input>
</div>
<br>
</form>
<table class="table">
<tr>
<th scope="col">School Year</th>
<th scope="col">Action</th>
</tr>
<?php
$sql = "SELECT * FROM schoolyear";

STI College Calamba 183


$sy = mysqli_query($link,$sql);
if(mysqli_num_rows($sy) > 0){
while($row=mysqli_fetch_assoc($sy)){
$id = $row['id'];
$roomname = $row['schoolyear'];
$active = $row['active'];
?>

<tr>
<form action="admin_schoolyear_add.php"
method="post">
<input type="hidden" name="id" value="<?php echo
$row['id'];?>"></input>
<td><input type="text" name="schoolyear"
class="form-control" value="<?php echo $row['schoolyear'];?>"></input></td>
<td>
<input class="btn btn-primary" type="submit"
name="edit" value="Edit"></input>
<input class="btn btn-danger"type="submit"
name="delete" value="Delete">
<?php
if($active == 1){
?>
<input disabled type="submit" class="btn btn-
success" name="active" value="Active">
<?php
}
else{
?>
<input type="submit" class="btn btn-danger"
name="inactive" value="Activate">

STI College Calamba 184


<?php
}
?>
</td>
</form>
</tr>

<?php
}
}
else {
echo "<h4>No School Years Added.</h4>";
}
?>
</table>
</div>
</div>
</div>
</div>
</section>
Admin_school year_add
<?php
include('config.php');
if(isset($_POST['add'])){
//$id = $_POST['index'];
$sy = $_POST['schoolyear'];
$insert = "INSERT INTO schoolyear(schoolyear)VALUES('$sy')";
$resultinsert = mysqli_query($link, $insert);

$auditmessage = "A school year has been added.";

STI College Calamba 185


$audit = "INSERT INTO audit (log, date_created)
VALUES('$auditmessage', CURRENT_TIMESTAMP)";
$insertaudit = mysqli_query($link, $audit);

if($resultinsert){
if($insertaudit){
$success = "Added successfully";
echo "<script type='text/javascript'>alert('$success');</script>";
header("Refresh:0; url=admin_dashboard.php?sy=true");
}
else{
echo "Error: " . $audit . "<br>" . mysqli_error($link);
}
}
else{
echo "Error: " . $insert . "<br>" . mysqli_error($link);
}
}
elseif(isset($_POST['edit'])){
$id = $_POST['id'];
$sy = $_POST['schoolyear'];
$update = "UPDATE schoolyear SET schoolyear='$sy' WHERE id='$id'";
$resultupdate = mysqli_query($link, $update);

$auditmessage = "A school year has been edited.";


$audit = "INSERT INTO audit (log, date_created)
VALUES('$auditmessage', CURRENT_TIMESTAMP)";
$insertaudit = mysqli_query($link, $audit);

if($resultupdate){
if($insertaudit){

STI College Calamba 186


$success = "Edit successful";
echo "<script type='text/javascript'>alert('$success');</script>";
header("Refresh:0; url=admin_dashboard.php?sy=true");
}
else{
echo "Error: " . $audit . "<br>" . mysqli_error($link);
}
}
else{
echo "Error: " . $update . "<br>" . mysqli_error($link);
}

}
elseif(isset($_POST['delete'])){
$id = $_POST['id'];
$sy = $_POST['schoolyear'];
$delete = "DELETE FROM schoolyear WHERE id='$id'";
$resultdelete = mysqli_query($link, $delete);

$auditmessage = "A school year has been deleted.";


$audit = "INSERT INTO audit (log, date_created)
VALUES('$auditmessage', CURRENT_TIMESTAMP)";
$insertaudit = mysqli_query($link, $audit);

if($resultdelete){
if($insertaudit){
$delete = "Delete successful";
echo "<script type='text/javascript'>alert('$delete');</script>";
header("Refresh:0; url=admin_dashboard.php?sy=true");
}
else{

STI College Calamba 187


echo "Error: " . $audit . "<br>" . mysqli_error($link);
}
}
else{
echo "Error: " . $delete . "<br>" . mysqli_error($link);
}
}
elseif(isset($_POST['inactive'])){
$id = $_POST['id'];
$sy = $_POST['schoolyear'];
$deactivate = $link->query("UPDATE schoolyear SET active=0 WHERE
active=1");
$activate = $link->query("UPDATE schoolyear SET active=1 WHERE
id='$id'");
if($deactivate){
if($activate){
header("Refresh:0; url=admin_dashboard.php?sy=true");
}
else{
echo "Error: " . $activate . mysqli_error($link);
}
}
else{
echo "Error: " . $deactivate . mysqli_error($link);
}
}
else{
echo "Error: " . "<br>" . mysqli_error($link);
}
?>

STI College Calamba 188


Admin_section_sched
<?php
include('config.php');
if(isset($_POST['addsubject'])){
$sectionid = $_POST['sectionid'];
$subjectid = $_POST['subjectid'];
$level = $_POST['level'];
$day = implode(",",$_POST['day']);
$time_start = $_POST['time_start'];
$time_end = $_POST['time_end'];
$faculty = $_POST['faculty'];
$room = $_POST['room'];
$sql = $link->query("INSERT INTO section_sched(section_id,
level,subject_id,days,time_start,time_end,faculty,room)
VALUES('$sectionid','$level','$subjectid','$day','$time_start','$time_end','$fa
culty','$room')");
if($sql){
header('Refresh: 0; url=admin_dashboard.php?
section_sched=true&sectionid='.$sectionid.'&level='.$level);
}
else{
echo "ERROR " . $sql . " " . mysqli_error($link);
}
}
elseif(isset($_POST['update'])){
$sectionid = $_POST['sectionid'];
$subjectid = $_POST['subjectid'];
$day = implode(",",$_POST['day']);
$time_start = $_POST['time_start'];
$time_end = $_POST['time_end'];
$faculty = $_POST['faculty'];

STI College Calamba 189


$room = $_POST['room'];

$sql = $link->query("UPDATE section_sched SET days = '$day', time_start


= '$time_start', time_end = '$time_end', faculty='$faculty',room='$room'
WHERE section_id = '$sectionid'");
if($sql){
header('Refresh: 0; url=admin_dashboard.php?
section_sched=true&sectionid='.$sectionid);
}
else{
echo "ERROR " . $sql . " " . mysqli_error($link);
}

}
elseif(isset($_POST['deletesched'])){
$id = $_POST['id'];
$sectionid = $_POST['sectionid'];
$deletesched = $link->query("DELETE FROM section_sched WHERE
id=$id");
if($deletesched){
header('Refresh: 0; url=admin_dashboard.php?
section_sched=true&sectionid='.$sectionid);
}
}
?>

Admin_student

<section class="section">
<div class="row">
<div class="col-lg-12">

STI College Calamba 190


<div class="card">
<div class="card-body">
<h5 class="card-title">Select Class</h5>
<p>Select your class here to edit student grades.</p>
<div class="col-lg-4">
<form action="" method="post">
<select class="form-select" name="subject_id">
<?php
$select = $link->query("SELECT * FROM section_sched
WHERE faculty='$name'");
if($select){
while($fetch = $select->fetch_array()){
?>
<option value="<?php echo $fetch['subject_id']?>"><?
php echo $fetch['subject_id']?></option>
<?php
}
}
?>
</select><br>
<input class="btn btn-primary" type="submit" name="submit"
value="Select">
</form>
</div>
</div>
</div>
</div>
</div>
</section>
<?php
if(isset($_POST['submit'])){

STI College Calamba 191


$subject_id = $_POST['subject_id'];
include('grades.php');
}
?>

Admin_student_view

<section class="section">
<div class="row">
<div class="col-lg-12">
<div class="card">
<div class="card-body">
<h5 class="card-title">Student's Registration Assessment Form</h5>

<p></p>
<?php
$app_id = $_GET['app_id'];
$f_name = $_GET['f_name'];
$m_name = $_GET['m_name'];
$l_name = $_GET['l_name'];
$level = $_GET['level'];
$section_id = $_GET['section_id'];

$student = "SELECT * FROM class WHERE


applicant_id=$app_id";
$query = mysqli_query($link, $student);

$finance = "SELECT * FROM fees WHERE level='$level'";


$queryfinance = mysqli_query($link, $finance);

STI College Calamba 192


$getsection = "SELECT a.level, b.section_id FROM applicant as a
inner join section as b
on a.level=b.level WHERE a.applicant_id=$app_id";
$sectionquery = mysqli_query($link, $getsection);

?>
<table class="table table-bordered">
<tr>
<th><center>Student Information</th>
<td><center>SY & Term:</td>
<?php
$sy = $link->query("SELECT * from schoolyear WHERE
active=1");
while ($fetch = $sy->fetch_array()) {
?>
<td><center><?php echo $fetch['schoolyear']?></td>
<?php
}
?>
<th><center>Section</th>
<td><center><?php echo $section_id?></td>
<td><center>Grade/Year Level:</td>
<td><center><?php echo $level;?></td>
</tr>
<tr>
<th><center><?php echo $app_id?></th>
<th colspan="2"><center><?php echo $l_name;?></th>
<th colspan="2"><center><?php echo $f_name;?></th>
<th colspan="2"><center><?php echo $m_name;?></th>
</tr>
<tr>

STI College Calamba 193


<td><center>Student No.</td>
<td colspan="2"><center>Last Name</td>
<td colspan="2"><center>First Name</td>
<td colspan="2"><center>Middle Name</td>
</tr>
<tr>
<th colspan="7"><center>Academic</th>
</tr>
<tr>
<td>Course Description</td>
<td><center>Class/Section</td>
<td><center>Days</td>
<td colspan="2"><center>Time</td>
<td><center>Room</td>
<td><center>Faculty</td>
</tr>
<?php
if($query){
if($sectionquery){
$select = $link->query("SELECT * FROM section_sched
as a
inner join section as b
inner join subject as c
on a.section_id=b.section_id AND
a.subject_id=c.subject_id
WHERE b.level='$level' AND a.section_id='$section_id'");
if($select){
while($row = $select->fetch_array()){
$subject_id = $row['subject_id'];
$subject_name = $row['subject_name'];
$days = $row['days'];

STI College Calamba 194


$time_start = $row['time_start'];
$time_end = $row['time_end'];
$faculty = $row['faculty'];
$room = $row['room'];
$section = $row['section_id'];
?>
<tr>
<td><?php echo $subject_name;?></td>
<td><center><?php echo $section_id;?></td>
<td><center><?php echo $days;?></td>
<td colspan="2"><center><?php echo
$time_start;?> - <?php echo $time_end;?></td>
<td><center><?php echo $room;?></td>
<td><center><?php echo $faculty;?></td>
</tr>
<?php
}
}
}
else{
echo "Error" . $getsection . ": " . mysqli_error($link);
}
}
else{
echo "Error" . $sql . ": " . mysqli_error($link);
}
?>
<tr>
<th colspan="7"><center>Financial</th>
</tr>
<tr>

STI College Calamba 195


<th colspan="4"><center>Charges</th>
<th colspan="3"><center>Fees</th>
</tr>
<?php
while ($row2 = mysqli_fetch_assoc($queryfinance)) {
$sum = "SELECT SUM(price) FROM fees WHERE
level='$level'";
$querysum = mysqli_query($link, $sum);
?>
<tr>
<td colspan="4"><center><?=$row2['fee_name']?></td>
<td colspan="3"><center><?=$row2['price']?></td>
</tr>
<?php
}
if($querysum){
while($row2 = mysqli_fetch_assoc($querysum)){
?>
<tr>
<th colspan="4"><center>Total</th>
<th colspan="3"><center><?php echo
$row2['SUM(price)'];?></th>
</tr>
<?php
}
}
?>
</table>
<a class="btn btn-primary" href="export_excel.php?
studentview=true
&app_id=<?=$app_id?>

STI College Calamba 196


&level=<?=$level?>
&f_name=<?=$f_name?>
&m_name=<?=$m_name?>
&l_name=<?=$l_name?>">Save as Excel</a>
</div>
</div>
</div>
</div>
</section>
<?php

Admin_student_list
<section class="section">
<div class="row">
<div class="col-lg-12">

<div class="card">
<div class="card-body">
<h5 class="card-title">Students</h5>
<p>You can view all new students here</p>
<table class="table">
<tr>
<th scope="col">Applicant ID</th>
<th scope="col">First Name</th>
<th scope="col">Middle Name</th>
<th scope="col">Last Name</th>
<th scope="col">Status</th>
<th scope="col">Grade Level</th>
<th scope="col">View</th>
</tr>
<?php

STI College Calamba 197


$sql = "SELECT * FROM student as a
inner join applicant as b
on a.applicant_id=b.applicant_id
WHERE active='1'";
$result = mysqli_query($conn, $sql);
if(mysqli_num_rows($result) <= 0){
echo "<h3>No students enrolled yet.</h3>";
}
else{
while($row=mysqli_fetch_assoc($result)){

$pic1x1=$row['pic1x1'];
$stud_sig=$row['birth_cert'];
$dad_sig=$row['good_moral'];
$mom_sig=$row['form_137'];
$pay_rec=$row['pay_rec'];
//$img = mysqli_query('SELECT
pic1x1stud_sigdad_sigmom_sigpay_rec')
?>
<!-- Table with stripped rows -->

<tr>
<td scope="row"><?php echo $row['applicant_id'];?></th>
<td><?php echo $row['fname'];?></td>
<td><?php echo $row['mname'];?></td>
<td><?php echo $row['lname'];?></td>
<td><?php echo $row['status'];?></td>
<td><?php echo $row['level'];?></td>
<td><a href="admin_dashboard.php?profile=true&app_id=<?
= $row['applicant_id']?>
&section_id=<?=$row['section_id']?>

STI College Calamba 198


&level=<?=$row['level']?>
&f_name=<?=$row['fname']?>
&m_name=<?=$row['mname']?>
&l_name=<?=$row['lname']?>">View</a></td>
</tr>
<?php
}
}
?>
</table>

<!-- End Table with stripped rows -->

</div>
</div>

</div>
</div>
</section>
<section class="section">
<div class="row">
<div class="col-lg-12">

<div class="card">
<div class="card-body">
<h5 class="card-title">Regular Student Applicants</h5>
<p>You can enroll all regular students here</p>
<?php
//$sql = "SELECT a.applicant_id, b.fname, b.mname, b.lname,
b.pic1x1, b.stud_sig, b.dad_sig, b.mom_sig, b.pay_rec FROM user as a inner join
applicant as b on a.applicant_id=b.applicant_id WHERE email='$sessionemail'";

STI College Calamba 199


//$sql = "SELECT * FROM user as a inner join applicant as b on
a.applicant_id=b.applicant_id";
$sql = "SELECT * FROM applicant as a inner join user as b on
a.applicant_id=b.applicant_id WHERE status='old'";
//$sql2 = "SELECT * from applicant WHERE email='$applicant'";
$result = mysqli_query($conn, $sql);
if(mysqli_num_rows($result) <= 0){
echo "<h3>No regular students applied yet.</h3>";
}
else{
while($row=mysqli_fetch_assoc($result)){
$email = $row['email'];
$applicantid=$row['applicant_id'];
$firstname=$row['fname'];
$middlename=$row['mname'];
$lastname=$row['lname'];
$status=$row['status'];
$level=$row['level'];
$age=$row['age'];
$pob=$row['pob'];
$religion=$row['religion'];
$address=$row['address'];
$church=$row['church'];
$dadname=$row['dadname'];
$dadcontact=$row['dadcontact'];
$momname=$row['momname'];
$momcontact=$row['momcontact'];
$emergname=$row['emergname'];
$emergcontact=$row['emergcontact'];
$distname=$row['distname'];
$distcontact=$row['distcontact'];

STI College Calamba 200


$pic1x1=$row['pic1x1'];
$stud_sig=$row['stud_sig'];
$dad_sig=$row['dad_sig'];
$mom_sig=$row['mom_sig'];
$pay_rec=$row['pay_rec'];
//$img = mysqli_query('SELECT
pic1x1stud_sigdad_sigmom_sigpay_rec')
?>
<!-- Table with stripped rows -->
<table class="table datatable">
<tr>
<th scope="col">Applicant ID</th>
<th scope="col">Full Name</th>
<th scope="col">Email</th>
<th scope="col">Grade Level</th>
<th scope="col">Profile</th>
<th scope="col">Admission</th>
<th scope="col">Downpayment</th>
<th scope="col">Receipt</th>
<th scope="col">Enroll</th>
</tr>
<tr>
<td scope="row"><?php echo $row['applicant_id'];?></th>
<td><?php echo $row['lname'];?>, <?php echo
$row['fname'];?> <?php echo $row['mname'];?></td>
<td><?php echo $row['email'];?></td>
<td><?php echo $row['level'];?></td>
<td><a href="admin_dashboard.php?profile=true&e_mail=<?
=$row['email']?>&app_id='<?= $row['applicant_id']?>'&f_name='<?=

STI College Calamba 201


$row['fname']?>'&m_name='<?= $row['mname']?>'&l_name='<?=
$row['lname']?>'">View</a></td>
<td><a href="admin_dashboard.php?sched=true&e_mail=<?
=$row['email']?>&level=<?=$row['level']?>&app_id='<?= $row['applicant_id']?
>'&f_name='<?= $row['fname']?>'&m_name='<?= $row['mname']?
>'&l_name='<?= $row['lname']?>'">Verify</a></td>
<td><a href="sendMessage.php?
downpayment=true&e_mail=<?=$row['email']?>&app_id='<?=
$row['applicant_id']?>'&f_name='<?= $row['fname']?>'&m_name='<?=
$row['mname']?>'&l_name='<?= $row['lname']?>'">Send to Email</a></td>
<td><a href="admin_dashboard.php?receipt=true&e_mail=<?
=$row['email']?>&level=<?=$row['level']?>&app_id='<?= $row['applicant_id']?
>'&f_name='<?= $row['fname']?>'&m_name='<?= $row['mname']?
>'&l_name='<?= $row['lname']?>'">Send to Email</a></td>
<td><a href="enroll_student.php?e_mail=<?=$row['email'];?
>&app_id=<?=$row['applicant_id'];?>&level=<?=$row['level'];?>&f_name='<?=
$row['fname']?>'&m_name='<?= $row['mname']?>'&l_name='<?=
$row['lname']?>">Enroll</a></td>
</tr>
</table>

<?php
}
}
?>
<!-- End Table with stripped rows -->

</div>
</div>

</div>

STI College Calamba 202


</div>
</section>

</main>

Admin_subject

<section class="section">
<div class="row">
<div class="col-lg-12">
<div class="card">
<div class="card-body">
<h5 class="card-title">Subject</h5>
<p>You can add/edit Subjects here.</p>
<form method="POST" action="subject_process.php">
<div class="row">
<div class="col-sm-3">
<p>Subject ID</p>
<input type="text" name="subject_id" class="form-
control" required>
</div>
<div class="col-sm-3">
<p>Subject Name</p>
<input type="text" name="subject_name"
class="form-control" required>
</div>
<div class="col-sm-3">
<p>Grade Level</p>
<select name="level" class="form-control">
<option value="Nursery">Nursery</option>

STI College Calamba 203


<option value="Pre-Kinder">Pre-Kinder</option>
<option value="Kinder 1">Kinder 1</option>
<option value="Kinder 2">Kinder 2</option>
<option value="Grade 1">Grade 1</option>
<option value="Grade 2">Grade 2</option>
<option value="Grade 3">Grade 3</option>
<option value="Grade 4">Grade 4</option>
<option value="Grade 5">Grade 5</option>
<option value="Grade 6">Grade 6</option>
<option value="Grade 7">Grade 7</option>
<option value="Grade 8">Grade 8</option>
<option value="Grade 9">Grade 9</option>
<option value="Grade 10">Grade 10</option>
<option value="Grade 11">Grade 11</option>
<option value="Grade 12">Grade 12</option>
</select>
</div>
</div>
<br>
<div class="col-sm-3">
<input type="submit" class="btn btn-
primary"value="Add Subject"></input>
</div>
</form>
<div class="col-sm-10">
<table class="table">
<tr>
<th scope="col">Subject ID</th>
<th scope="col">Subject Name</th>
<th scope="col">Level</th>
<th scope="col">Action</th>

STI College Calamba 204


</tr>
<?php
$sql = "SELECT * FROM subject";
$subject = mysqli_query($conn,$sql);
if(mysqli_num_rows($subject) > 0){
while($row=mysqli_fetch_assoc($subject)){
$id = $row['id'];
$subjectid=$row['subject_id'];
$subjectname=$row['subject_name'];
?>

<tr>
<form action="admin_subject_update.php"
method="post">
<input type="hidden" name="index"
value="<?php echo $row['id'];?>"></input>
<td><input type="text" name="subjectid"
class="form-control" value="<?php echo $row['subject_id'];?>"></input></td>
<td><input type="text" name="subjectname"
class="form-control" value="<?php echo
$row['subject_name'];?>"></input></td>
<td><select name="level" class="form-
control">
<option style="background-color: grey;"
selected value="<?php echo $row['level'];?>"><?php echo
$row['level'];?></option>
<option
value="Nursery">Nursery</option>
<option value="Pre-Kinder">Pre-
Kinder</option>

STI College Calamba 205


<option value="Kinder 1">Kinder
1</option>
<option value="Kinder 2">Kinder
2</option>
<option value="Grade 1">Grade
1</option>
<option value="Grade 2">Grade
2</option>
<option value="Grade 3">Grade
3</option>
<option value="Grade 4">Grade
4</option>
<option value="Grade 5">Grade
5</option>
<option value="Grade 6">Grade
6</option>
<option value="Grade 7">Grade
7</option>
<option value="Grade 8">Grade
8</option>
<option value="Grade 9">Grade
9</option>
<option value="Grade 10">Grade
10</option>
<option value="Grade 11">Grade
11</option>
<option value="Grade 12">Grade
12</option>
</select>
</td>

STI College Calamba 206


<td><input class="btn btn-primary"
type="submit" name="edit" value="Edit"></input>
<input class="btn btn-danger"type="submit"
name="delete" value="Delete"></td>
</form>
</tr>

<?php
}
}
else {
echo "<h4>No sections found.</h4>";
}
?>
</table>
</div>
</div>
</div>
</div>
</div>
</section>
Admin_subject_update
<?php
include('config.php');
if(isset($_POST['edit'])){
$id = $_POST['index'];
$subject_id = $_POST['subjectid'];
$subject_name = $_POST['subjectname'];
$level = $_POST['level'];
$update = "UPDATE subject SET subject_id='$subject_id',
subject_name='$subject_name', level='$level' WHERE id='$id'";

STI College Calamba 207


$resultupdate = mysqli_query($link, $update);

$auditmessage = "A subject has been edited.";


$audit = "INSERT INTO audit (log, date_created)
VALUES('$auditmessage', CURRENT_TIMESTAMP)";
$insertaudit = mysqli_query($link, $audit);

if($resultupdate){
if($insertaudit){
$success = "Edit successful";
echo "<script type='text/javascript'>alert('$success');</script>";
header("Refresh:0; url=admin_dashboard.php?subjecting=true");
}
else{
echo "Error: " . $audit . "<br>" . mysqli_error($link);
}
}
else{
echo "Error: " . $update . "<br>" . mysqli_error($link);
}

}
elseif(isset($_POST['delete'])){
$id = $_POST['index'];
$subject_id = $_POST['subjectid'];
$subject_name = $_POST['subjectname'];
$delete = "DELETE FROM subject WHERE id='$id'";
$resultdelete = mysqli_query($link, $delete);
if($resultdelete){
$delete = "Delete successful";
echo "<script type='text/javascript'>alert('$delete');</script>";

STI College Calamba 208


header("Refresh:0; url=admin_dashboard.php?subjecting=true");
}
else{
echo "Error: " . $delete . "<br>" . mysqli_error($link);
}
}
else{
echo "Error: " . "<br>" . mysqli_error($link);
}
?>
Admin_type_settings
<section class="section">
<div class="row">
<div class="col-lg-12">
<div class="card">
<div class="card-body">
<h5 class="card-title">Account Settings</h5>
<p>You can edit your account here</p>
<table class="table">
<tr>
<th>Username</th>
<th>Password</th>
<th>Action</th>
</tr>
<?php
$select = $link->query("SELECT * FROM account WHERE
type='$type' AND user='$username'");
if($select){
while($fetch = $select->fetch_array()){
?>
<tr>

STI College Calamba 209


<form action="admin_type_settings_upload.php"
method="post">
<input type="hidden" name="id" value="<?php echo
$fetch['id'];?>">
<td><input class="form-control" type="text"
name="user" value="<?php echo $fetch['user']?>"></td>
<td><input class="form-control" type="text"
name="pass" value="<?php echo $fetch['pass']?>"></td>
<td><input class="btn btn-primary" type="submit"
name="edit" value="Edit"></td>
</form>
</tr>
<?php
}
}
?>
</table>
</div>
</div>
</div>
</div>
</section>
<?php
?>
Admin_ type_settings_upload
<?php
include('config.php');
if(isset($_POST['edit'])){
$id = $_POST['id'];
$user = $_POST['user'];
$pass = $_POST['pass'];

STI College Calamba 210


$select = $link->query("SELECT * FROM account WHERE id='$id'");
while($fetch = $select->fetch_array()){
$username = $fetch['username'];
$password = $fetch['password'];
$type = $fetch['type'];
$update = $link->query("UPDATE account SET user='$user', pass='$pass'
WHERE id='$id'");
if($update){
$msg_enroll = "Updated successfully";
echo "<script type='text/javascript'>alert('$msg_enroll');</script>";
header('Location: admin_dashboard.php?admin_type=true&type='.
$type.'&username='.$username);
}
else {
echo "Error: " . $update . "<br>" . mysqli_error($link);
}
}

}
else{
echo "Error: " . $_POST . "<br>" . mysqli_error($link);
}
?>
Admin_view_students

<section class="section">
<div class="row">
<div class="col-lg-12">
<div class="card">
<div class="card-body">
<h5 class="card-title">Select Class</h5>

STI College Calamba 211


<p>Select your class here to edit student grades.</p>
<div class="col-lg-4">
<form action="" method="post">
<select class="form-select" name="subject_id">
<?php
$select = $link->query("SELECT * FROM section_sched
WHERE faculty='$name'");
if($select){
while($fetch = $select->fetch_array()){
?>
<option value="<?php echo $fetch['subject_id']?>"><?
php echo $fetch['subject_id']?></option>
<?php
}
}
?>
</select><br>
<input class="btn btn-primary" type="submit" name="submit"
value="Select">
</form>
</div>
</div>
</div>
</div>
</div>
</section>
<?php
if(isset($_POST['submit'])){
$subject_id = $_POST['subject_id'];
include('student_list.php');
}

STI College Calamba 212


?>
Applicant_register
<?php
session_start();
require('connection.php');
$firstname = $_POST['firstname'];
$middlename = $_POST['middlename'];
$lastname = $_POST['lastname'];
$status = $_POST['status'];
$grade = $_POST['grade'];
$dateofbirth = $_POST['dob'];
$gender = $_POST['gender'];
$house = $_POST['house'];
$barangay = $_POST['barangay'];
//$age = $_POST['age'];
$pob = $_POST['pob'];
$religion = $_POST['religion'];
$church = $_POST['church'];
$city = $_POST['city'];
$province = $_POST['province'];
$tongue = $_POST['tongue'];
$ethnic = $_POST['ethnic'];
$fatherfname = $_POST['fatherfname'];
$fathermname = $_POST['fathermname'];
$fatherlname = $_POST['fatherlname'];
$fatheroccupation = $_POST['fatheroccupation'];
$fathercontact = $_POST['fathercontact'];
$motherfname = $_POST['motherfname'];
$mothermname = $_POST['mothermname'];
$motherlname = $_POST['motherlname'];
$motheroccupation = $_POST['motheroccupation'];

STI College Calamba 213


$mothercontact = $_POST['mothercontact'];
$emergencyname = $_POST['emergencyname'];
$emergencyrelation = $_POST['emergencyrelation'];
$emergencyaddress = $_POST['emergencyaddress'];
$emergencycontact = $_POST['emergencycontact'];
$distancename = $_POST['distancename'];
$distancecontact = $_POST['distancecontact'];
$applicantid = $_POST['applicant_id'];
$_SESSION['firstname'] = $_POST['firstname'];
$_SESSION['middlename'] = $_POST['middlename'];
$_SESSION['lastname'] = $_POST['lastname'];

$today = date("Y-m-d");
$diff = date_diff(date_create($dateofbirth), date_create($today));
$age = $diff->format("%y");

// REQUIREMENTS UPLOAD
==========================================================
============= //
$target_dir = "applicant/".$lastname."_".$firstname."/";
//$pic1x1 = $target_dir . basename($_FILES["1x1"]["name"]);
//$studentsignature = $target_dir . basename($_FILES["birth_cert"]["name"]);
//$fathersignature = $target_dir . basename($_FILES["good_moral"]["name"]);
//$mothersignature = $target_dir . basename($_FILES["form_137"]["name"]);
$paymentreceipt = $target_dir . basename($_FILES["payment_receipt"]
["name"]);
$uploadOk = 1;
$imageFileType =
strtolower(pathinfo($paymentreceipt,PATHINFO_EXTENSION));

// Check if image file is a actual image or fake image

STI College Calamba 214


if(isset($_POST["submit"])) {
$check = getimagesize($_FILES["1x1"]["tmp_name"]);
$checkstudsig = getimagesize($_FILES["birth_cert"]["tmp_name"]);
$checkfathsig = getimagesize($_FILES["good_moral"]["tmp_name"]);
$checkmothsig = getimagesize($_FILES["form_137"]["tmp_name"]);
$checkpayrec = getimagesize($_FILES["payment_receipt"]["tmp_name"]);
//if($check !== false||$checkstudsig !== false||$checkfathsig !== false||
$checkmothsig !== false||$checkpayrec !== false) {
// echo "File is an image - " . $check["mime"] .$checkstudsig["mime"] .
$checkfathsig["mime"] .$checkmothsig["mime"] .$checkpayrec["mime"] . ".";
// $uploadOk = 1;
//}
if($checkpayrec !== false) {
echo "File is an image - " . $checkpayrec["mime"] . ".";
$uploadOk = 1;
}
else {
$uploadOk = 0;
$message1 = "One of the files is not an image. Please try again.";
echo "<script type='text/javascript'>alert('$message1');</script>";
header("Refresh:0; url=index.php");
}
}
// Check if file already exists
if (file_exists($paymentreceipt)) {
echo "Sorry, file already exists.";
$uploadOk = 0;
$message1 = "Sorry, file already exists.";
echo "<script type='text/javascript'>alert('$message1');</script>";
header("Refresh:0; url=index.php");
}

STI College Calamba 215


// Check file size
//if ($_FILES["1x1"]["size"] > 5000000||$_FILES["birth_cert"]["size"] >
5000000||$_FILES["good_moral"]["size"] > 5000000||$_FILES["form_137"]
["size"] > 5000000) {
// $uploadOk = 0;
// $message1 = "Sorry, your file is too large.";
// echo "<script type='text/javascript'>alert('$message1');</script>";
// header("Refresh:0; url=index.php");
//}
if ($_FILES["payment_receipt"]["size"] > 5000000) {
$uploadOk = 0;
$message1 = "Sorry, your file is too large.";
echo "<script type='text/javascript'>alert('$message1');</script>";
header("Refresh:0; url=index.php");
}

// Allow certain file formats


if($imageFileType != "jpg" && $imageFileType != "png" && $imageFileType
!= "jpeg"
&& $imageFileType != "gif" ) {
$uploadOk = 0;
$message1 = "Sorry, only JPG, JPEG, PNG & GIF files are allowed.";
echo "<script type='text/javascript'>alert('$message1');</script>";
header("Refresh:0; url=index.php");
}

// Check if $uploadOk is set to 0 by an error


if ($uploadOk == 0) {
$message1 = "Sorry, your file was not uploaded due to an error. Please try
again.";

STI College Calamba 216


echo "<script type='text/javascript'>alert('$message1');</script>";
header("Refresh:0; url=index.php");
// if everything is ok, try to upload file
}
else{
$checkname = "SELECT * FROM applicant WHERE
applicant_id='$applicantid' AND fname ='$firstname' AND lname = '$lastname'
AND mname = '$middlename'";
$result = mysqli_query($conn,$checkname);
$row_count= mysqli_num_rows($result);
if($row_count > 0){
$message = "You are already registered.";
echo "<script type='text/javascript'>alert('$message');</script>";
header("Refresh:0; url=index.php");
}
else{
$messagenotif = "$firstname $lastname has submitted an admission
form!";
$notif="INSERT INTO chat (message) VALUES ('$messagenotif')";
$resultnotif = mysqli_query($conn,$notif);

$insert = "INSERT INTO applicant


(applicant_id,fname,mname,lname,gender,status,level,tongue,ethnic,dob,a
ge,pob,religion,church,house,barangay,city,province,dadfname,dadmname,dadlna
me,dadocc,dadcontact,momfname,mommname,momlname,momocc,momcontact,
emergname,emergrelation,emergaddress,emergcontact,distname,distcontact,
pay_rec)
values('$applicantid',
'$firstname','$middlename','$lastname','$gender','$status','$grade','$tongue','$ethni
c','$dateofbirth','$age','$pob','$religion','$church','$house','$barangay','$city','$prov
ince','$fatherfname','$fathermname','$fatherlname','$fatheroccupation','$fathercont

STI College Calamba 217


act','$motherfname','$mothermname','$motherlname','$motheroccupation','$mothe
rcontact','$emergencyname','$emergencyrelation','$emergencyaddress','$emergenc
ycontact','$distancename','$distancecontact','$paymentreceipt');";

if(mysqli_query($conn,$insert)){
if($resultnotif){
$message = "You have successfully registered!";
//echo "<script type='text/javascript'>alert('$message');</script>";
header("Location:student_dashboard.php?
f_name=$firstname&m_name=$middlename&l_name=$lastname");
if(!file_exists($target_dir)) {
mkdir($target_dir, 0777, true);
if(move_uploaded_file($_FILES["payment_receipt"]
["tmp_name"], $paymentreceipt)){
$messagesuccess = "The files
".htmlspecialchars( basename( $_FILES["payment_receipt"]["name"])). " has
been uploaded.";
echo "<script type='text/javascript'>alert('$message
$messagesuccess');</script>";
}
else{
$message = "Sorry, there was an error uploading your file.";
echo "<script type='text/javascript'>alert('$message');</script>";
header("Refresh:0; Location:index.php");
}
}
exit();
}
}
else {

STI College Calamba 218


$messagesql = "Sorry, there was an error in inserting your details into
the database. Please try again.";
echo "<script type='text/javascript'>alert('$messagesql');</script> " .
$insert . mysqli_error($conn);
header("Refresh:0; Location:index.php");
}
}
}
// END OF UPLOAD REQUIREMENTS START OF INSERT TO DB
==========================================================
===== //

//END OF INSERT TO DB
==========================================================
============== //
?>
Config
<?php
/* Database credentials. Assuming you are running MySQL
server with default setting (user 'root' with no password) */
define('DB_SERVER', 'localhost');
define('DB_USERNAME', 'root');
define('DB_PASSWORD', '');
define('DB_NAME', 'ifl');

/* Attempt to connect to MySQL database */


$link = mysqli_connect(DB_SERVER, DB_USERNAME, DB_PASSWORD,
DB_NAME);

// Check connection
if($link === false){

STI College Calamba 219


die("ERROR: Could not connect. " . mysqli_connect_error());
}
?>
Export_excel
<?php
header("Content-Type: application/vnd.openxmlformats-
officedocument.spreadsheetml.sheet");
header("Content-Disposition: attachment; filename=student_list.xls");
header("Pragma: no-cache");
header("Expires: 0");
require_once 'connection.php';

$output = "";

if(isset($_GET['sched'])){
$output .="
<table>
<thead>
<tr>
<th>Subject</th>
<th>Level/Section</th>
<th>Days</th>
<th>Semester</th>
<th>Time</th>
<th>Room</th>
<th>Instructor</th>
</tr>
<tbody>
";
$query = $conn->query("SELECT * FROM `schedule`");
while($fetch = $query->fetch_array()){

STI College Calamba 220


$output .= "
<tr>
<td>".$fetch['subject_name']."</td>
<td>".$fetch['section_id']."</td>
<td>".$fetch['days']."</td>
<td>".$fetch['semester']."</td>
<td>".$fetch['time']."</td>
<td>".$fetch['room']."</td>
<td>".$fetch['faculty']."</td>
</tr>
";
}
$output .="
</tbody>
</table>
";
echo $output;
}
elseif(isset($_GET['studentview'])){

$app_id = $_GET['app_id'];
$f_name = $_GET['f_name'];
$m_name = $_GET['m_name'];
$l_name = $_GET['l_name'];
$level = $_GET['level'];
$output .="
<table>
<thead>
<tr>
<th>Student Information</th>

STI College Calamba 221


<td>SY & Term:</td>
<td>2101</td>
<td>Program:</td>
<td>BSIT</td>
<td>Grade/Year Level:</td>
<td>".$level."</td>
</tr>
<tr>
<th><center>".$app_id."</th>
<th colspan='2'><center>".$l_name."</th>
<th colspan='2'><center>".$f_name."</th>
<th colspan='2'><center>".$m_name."</th>
</tr>
<tr>
<td><center>Student No.</td>
<td colspan='2'><center>Last Name</td>
<td colspan='2'><center>First Name</td>
<td colspan='2'><center>Middle Name</td>
</tr>
<tr>
<th colspan='7'><center>Academic</th>
</tr>
<tr>
<td>Course Description</td>
<td><center>Class/Section</td>
<td><center>Days</td>
<td colspan='2'><center>Time</td>
<td><center>Room</td>
<td><center>Faculty</td>
</tr>
<tbody>

STI College Calamba 222


";
$sched =
"SELECT a.applicant_id, a.subject_id, a.level, b.section_id,
d.subject_name, c.days, c.semester, c.school_year, c.time, c.faculty, c.room
FROM class as a inner join section as b inner join schedule as c inner join
subject as d
on a.level=b.level AND c.section_id=b.section_id AND
d.subject_name=c.subject_name AND a.subject_id=d.subject_id
WHERE a.applicant_id=$app_id AND a.level='$level'
";
//$raf = mysqli_query($link, $sched);
$query = $conn->query("SELECT a.applicant_id, a.subject_id,
a.level, b.section_id, d.subject_name, c.days, c.semester, c.school_year, c.time,
c.faculty, c.room
FROM class as a inner join section as b inner join schedule as c
inner join subject as d
on a.level=b.level AND c.section_id=b.section_id AND
d.subject_name=c.subject_name AND a.subject_id=d.subject_id
WHERE a.applicant_id=$app_id AND a.level='$level'");

while($fetch = $query->fetch_array()){
$output .= "
<tr>
<td>".$fetch['subject_name']."</td>
<td>".$fetch['section_id']."</td>
<td>".$fetch['days']."</td>
<td>".$fetch['semester']."</td>
<td>".$fetch['time']."</td>
<td>".$fetch['room']."</td>
<td>".$fetch['faculty']."</td>
</tr>

STI College Calamba 223


";
}
$output .="
<tr>
<th colspan='7'>Financial</th>
</tr>
<tr>
<th colspan='4'>Charges</th>
<th colspan='3'>Fees</th>
</tr>
";

$finance = $conn->query("SELECT * FROM fees WHERE


level='$level'");

while($fetch = $finance->fetch_array()){
$output .="
<tr>
<td colspan='4'>".$fetch['fee_name']."</td>
<td colspan='3'>".$fetch['price']."</td>
</tr>
";
}
$sum = $conn->query("SELECT SUM(price) FROM fees
WHERE level='$level'");
while ($fetch = $sum->fetch_array()){
$output .="
<tr>
<th colspan='4'>Total</td>

STI College Calamba 224


<th colspan='3'>Php ".
$fetch['SUM(price)']."</td>
</tr>
";
}
$output .="
</tbody>
</table>
";
echo $output;
}
elseif(isset($_GET['reports'])){
$app_id = $_GET['app_id'];
$f_name = $_GET['f_name'];
$m_name = $_GET['m_name'];
$l_name = $_GET['l_name'];
$level = $_GET['level'];
$output .="
<table class='table'>
<tr>
<th scope='col'>Learning Reference Number</th>
<th scope='col'>Name (Last Name, First Name, Middle
Name)</th>
<th scope='col'>Sex(M/F)</th>
<th scope='col'>Age</th>
<th scope='col'>MOTHER Tongue</th>
<th scope='col'>IP (Ethnic Group)</th>
<th scope='col'>Religion</th>
<th scope='col'>House #/Street/Sitio/Purok</th>
<th scope='col'>Barangay</th>
<th scope='col'>Municipality/City</th>

STI College Calamba 225


<th scope='col'>Province</th>
<th scope='col'>Father's Name(Last Name, First Name,
Middle Name)</th>
<th scope='col'>Mother's Maiden Name(Last Name, First
Name, Middle Name)</th>
<th scope='col'>Guardian Name</th>
<th scope='col'>Relation-ship</th>
<th scope='col'>Contact Number of Parent/Guardian</th>
<th scope='col'>Remarks</th>
</tr>
";
$sql = "SELECT * FROM student as a
inner join applicant as b
on a.applicant_id=b.applicant_id
WHERE active='1'";
$result = mysqli_query($conn, $sql);
if(mysqli_num_rows($result) <= 0){
echo "<h3>No students enrolled yet.</h3>";
}
else{
while($row=mysqli_fetch_assoc($result)){
$app_id = $row['applicant_id'];
$f_name = $row['fname'];
$m_name = $row['mname'];
$l_name = $row['lname'];
$level = $row['level'];
$pic1x1=$row['pic1x1'];
$stud_sig=$row['birth_cert'];
$dad_sig=$row['good_moral'];
$mom_sig=$row['form_137'];
$pay_rec=$row['pay_rec'];

STI College Calamba 226


//$img = mysqli_query('SELECT
pic1x1stud_sigdad_sigmom_sigpay_rec')
$output .="
<tr>
<td scope='row'>".$row['LRN']."</td>
<td>".$row['lname'].", ".$row['fname']. " ".
$row['mname']."</td>
<td>".$row['gender']."</td>
<td>".$row['age']."</td>
<td>".$row['tongue']."</td>
<td>".$row['ethnic']."</td>
<td>".$row['religion']."</td>
<td>".$row['house']."</td>
<td>".$row['barangay']."</td>
<td>".$row['city']."</td>
<td>".$row['province']."</td>
<td>".$row['dadlname'].", ".$row['dadfname']." ".
$row['dadmname']."</td>
<td>".$row['momlname'].", ".$row['momfname']." ".
$row['mommname']."</td>
<td>".$row['emergname']."</td>
<td>".$row['emergrelation']."</td>
<td>".$row['emergcontact']."</td>
<td>".$row['remarks']."</td>
</tr>
";
}
$output .="
</table>
<b>List and Code of Indicators under REMARKS
column</b>

STI College Calamba 227


<table class='table'>
<tr>
<th>Indicator</th>
<th>Code</th>
<th>Required Information</th>
<th></th>
<th>Code</th>
<th>Required Information</th>
</tr>
<tr>
<td>Transferred Out</td>
<td>T/O</td>
<td>Name of Public(P)Private(PR)School &
Effectivity Date</td>
<td></td>
<td>CCT</td>
<td>CCT Control/Reference Number &
Effectivity Date</td>
</tr>
<tr>
<td>Transferred In</td>
<td>T/I</td>
<td>Name of Public(P)Private(PR)School &
Effectivity Date</td>
<td></td>
<td>B/A</td>
<td>Name of school last attended &
Year</td>
</tr>
<tr>
<td>Dropped</td>

STI College Calamba 228


<td>DRP</td>
<td>Reason and Effectivity Date</td>
<td></td>
<td>LWD</td>
<td>Specify</td>
</tr>
<tr>
<td>Late Enrollment</td>
<td>LE</td>
<td>Reason (Enrollment beyond 1st Friday
of June)</td>
<td></td>
<td>ACL</td>
<td>Specify Level & Effectivity Data</td>
</tr>
</table>";
}

echo $output;
}
?>
Grades
<section class="section">
<div class="row">
<div class="col-lg-12">

<div class="card">
<div class="card-body">
<h5 class="card-title">Grade Upload Module</h5>
<p>You can view all the students' grades here</p>
<table class="table">

STI College Calamba 229


<tr>
<th scope="col">Applicant ID</th>
<th scope="col">Full Name</th>
<th scope="col">Grade Level</th>
<th scope="col">1st Quarter</th>
<th scope="col">2nd Quarter</th>
<th scope="col">3rd Quarter</th>
<th scope="col">4th Quarter</th>
<th scope="col">Average</th>
<th scope="col">Edit Grade</th>
</tr>
<?php

$sql = "SELECT a.applicant_id, b.fname, b.mname,b.lname, a.level,


c.subject_name, a.subject_id,a.prelims,a.midterms, a.prefinals, a.finals
FROM class as a inner join applicant as b inner join subject as c
on a.applicant_id=b.applicant_id AND a.subject_id=c.subject_id
WHERE a.subject_id='$subject_id'";

$result = mysqli_query($conn, $sql);


if(mysqli_num_rows($result) <= 0){
echo "<h3>No students enrolled yet.</h3>";
}
else{
while($row=mysqli_fetch_assoc($result)){
$applicantid=$row['applicant_id'];
$firstname=$row['fname'];
$middlename=$row['mname'];
$lastname=$row['lname'];
$prel = $row['prelims'];
$mid = $row['midterms'];

STI College Calamba 230


$pref = $row['prefinals'];
$fin = $row['finals'];
$avg = ($prel+$mid+$pref+$fin)/4;
?>
<!-- Table with stripped rows -->
<tr>
<form action="grades-upload.php" method="post">
<td><?php echo $row['applicant_id'];?></td>
<td><?php echo $row['lname'];?>, <?php echo
$row['fname'];?> <?php echo $row['mname'];?></td>
<td><?php echo $row['level'];?></td>
<td><input type="number" name="prelims" class="form-
control" value="<?=$row['prelims'];?>"></input></td>
<td><input type="number" name="midterms" class="form-
control" value="<?=$row['midterms'];?>"></input></td>
<td><input type="number" name="prefinals" class="form-
control" value="<?=$row['prefinals'];?>"></input></td>
<td><input type="number" name="finals" class="form-
control" value="<?=$row['finals'];?>"></input></td>
<td><input type="number" disabled name="avg"
class="form-control" value="<?php echo $avg;?>"></input></td>
<input type="hidden" name="avg" class="form-control"
value="<?php echo $avg;?>"></input>
<!--<td><a href="grades-upload.php?app_id=<?
=$row['applicant_id'];?>&prel=<?=$row['prelims'];?>&mid=<?
=$row['midterms'];?>&pref=<?=$row['prefinals'];?>&fin=<?=$row['finals'];?
>">Update</a></td>
-->
<input type="hidden" name="applicant_id" value="<?
=$row['applicant_id']?>"></input>

STI College Calamba 231


<input type="hidden" name="subject_id" value="<?
=$row['subject_id']?>"></input>
<td><input name="submit" type="submit" class="btn btn-
secondary" value="Submit"></input></td>
</form>
</tr>
<?php
}
}
?>
</table>
</div>
</div>
</div>
</div>
</section>
grades_upload
<?php
include('config.php');
if(isset($_POST['submit'])){
$app_id = $_POST['applicant_id'];
$subject = $_POST['subject_id'];
$prel = $_POST['prelims'];
$mid = $_POST['midterms'];
$pref = $_POST['prefinals'];
$finals = $_POST['finals'];
$avg = $_POST['avg'];
$sql = "UPDATE class SET prelims=$prel, midterms=$mid, prefinals=$pref,
avg=$avg, finals=$finals WHERE applicant_id='$app_id' AND
subject_id='$subject'";
$result = mysqli_query($link, $sql);

STI College Calamba 232


if($result){
$msg_enroll = "Updated successfully";
echo "<script type='text/javascript'>alert('$msg_enroll');</script>";
header('Refresh:0; url=admin_dashboard.php?class=true');
}
else {
echo "Error: " . $result . "<br>" . mysqli_error($link);
}
}
else {
echo "Error: " . $_POST . "<br>" . mysqli_error($link);
}

?>
login_check
<?php
session_start();
require('connection.php');
if(isset($_POST['login'])&& !empty($_POST['username'])&& !
empty($_POST['password'])) {
$user = $_POST['username'];
$pass = $_POST['password'];
$_SESSION['username'] = $user;
$_SESSION['password'] = $pass;
$login_check = "SELECT * FROM admin WHERE user='$user' AND
pass='$pass'";
$result = mysqli_query($conn, $login_check);
$row_count= mysqli_num_rows($result);
if ($row_count > 0) {
$_SESSION['login'] = "true";
header("Location:admin_dashboard.php?home=true");

STI College Calamba 233


}
else{
$message1 = "User not found. Either incorrect username or password.";
echo "<script type='text/javascript'>alert('$message1');</script>";
header("Refresh:0; url=login_admin.php");
}
}
elseif(isset($_POST['username'])&&isset($_POST['password'])&&isset($_POS
T['c_password'])&& !empty($_POST['username'])&& !
empty($_POST['password'])&& !empty($_POST['c_password'])) {
$user = $_POST['username'];
$pass = $_POST['password'];
$c_pass = $_POST['c_password'];
$_SESSION['username'] = $user;
$_SESSION['password'] = $pass;
$register = "INSERT INTO admin (user, pass) VALUES('$user', '$pass')";
$result = mysqli_query($conn, $register);
if($pass == $c_pass){
if($result){
$message1 = "Registered Successfully!";
echo "<script type='text/javascript'>alert('$message1');</script>";
header("Refresh:0; url=login_admin.php");
}
else{
echo "Error: " . $register . "<br>" . mysqli_error($conn);
}
}
else {
$message2 = "Password are not matched! Please try again.";
echo "<script type='text/javascript'>alert('$message2');</script>";
header("Refresh:0; url=register_admin.php");

STI College Calamba 234


}

?>
pre-enrollment email
<?php
session_start();
require('connection.php');
use PHPMailer\PHPMailer\PHPMailer;
use PHPMailer\PHPMailer\SMTP;
use PHPMailer\PHPMailer\Exception;
require_once "vendor/autoload.php";
if(isset($_POST['email'])){
$firstname = $_POST['firstname'];
$middlename = $_POST['middlename'];
$lastname = $_POST['lastname'];
$contact = $_POST['contact'];
$email = $_POST['email'];
$format = date("Y");
$password = mt_rand(100000,999999);
/*
$_SESSION['fullname'] = $fullname;
$_SESSION['contact'] = $contact;
$_SESSION['email'] = $email;
$_SESSION['username'] = $username;
*/
$checking = "SELECT * FROM user WHERE email ='$email'
AND lastname = '$lastname'";
$result= mysqli_query($conn,$checking);
$row_count= mysqli_num_rows($result);

STI College Calamba 235


if($row_count > 0){
//$_SESSION['message']=" Your email address, ". $email."
has already been registered. Please check your email address and try to log in.";
//echo "Email is already registered. Please check your email or create a
new one.";
$message1 = "Email is already registered. Please check
your email or create a new one.";
echo "<script type='text/javascript'>alert('$message1');</script>";
header("Refresh:0; url=signup.php");
}
else {
$sql="INSERT INTO user (firstname, middlename,
lastname, email, contact, password)Values('$firstname',
'$middlename','$lastname','$email','$contact','$password')";
if(mysqli_query($conn,$sql)){
//get applicant id
$sqlapplicantid = "SELECT applicant_id FROM
user WHERE firstname='$firstname' AND lastname='$lastname' AND
middlename='$middlename';";
$resultapplicantid = mysqli_query($conn,
$sqlapplicantid);

while($row=mysqli_fetch_assoc($resultapplicantid)){
$applicantid=$row['applicant_id'];
}

$mail = new PHPMailer(true);


//Enable SMTP debugging.
$mail->SMTPDebug = 0;
//Set PHPMailer to use SMTP.
$mail->isSMTP();

STI College Calamba 236


//Set SMTP host name
$mail->Host = "smtp.gmail.com";
//Set this to true if SMTP host requires
authentication to send email
$mail->SMTPAuth = true;
//Provide username and password
$mail->Username = "clexydkurosaki@gmail.com";
$mail->Password = "Corvo.attano_123";
//If SMTP requires TLS encryption then set it
$mail->SMTPSecure = "tls";
//Set TCP port to connect to
$mail->Port = 587;

$mail->From = "clexydkurosaki@gmail.com";
$mail->FromName = "Clyde Francis Tome";

//$mail-
>addAddress("francis.tome@yahoo.com.ph", "Clyde Tome");
$mail->addAddress($email, $email);

$mail->isHTML(true);

$mail->Subject = "Password for Login";


$mail->Body = "The password for $email is
$password. Use it to log in on the landing page. Don't share it with anyone.<br>
Please prepare the following requirements for the
entrance examination: <br>
<ol>
<li>NSO Birth Certificate</li>
<li>Form 137 </li>
<li>1x1 ID Picture </li>

STI College Calamba 237


<li>Certificate of Good Moral</li>
</ol><br>";
//$mail->AltBody = "This is the plain text version
of the email content";
$audit = "A user with an E-mail of $email has
registered a temporary account!";
$insertaudit = "INSERT INTO audit (log,
date_created) VALUES('$audit', CURRENT_TIMESTAMP)";
$resultinsertaudit = mysqli_query($conn,
$insertaudit);

$message = "$firstname $lastname has registered!";


$notif="INSERT INTO chat (message) VALUES
('$message')";
$resultnotif = mysqli_query($conn,$notif);

if($resultnotif){
if($resultinsertaudit){
try {
$mail->send();
$message3 = "Registration
successful! Please check your email for your password.";
echo "<script
type='text/javascript'>alert('$message3');</script>";
header("Refresh:0;
url=index.php?
f_name=$firstname&m_name=$middlename&l_name=$lastname&e-
mail=$email");
} catch (Exception $e) {
echo "Mailer Error: " . $mail-
>ErrorInfo;

STI College Calamba 238


}
}
else {
echo "Error: " . $insertaudit .
"<br>" . mysqli_error($conn);
}
}
else {
echo "Error: " . $notif . "<br>" .
mysqli_error($conn);
}
}
else{
echo "Error: " . $sql . "<br>" . mysqli_error($conn);
}
}
}
?>

STI College Calamba 239


USERS GUIDE

Website
The website of the enrollment system by typing the URL:
https://instituteforfoundationallearning.online of the school website to be able to
have pre-enrollment and enrollment. On other hand, the URL for admin,
registrar, and faculty :
https://instituteforfoundationallearning.online/admin_login.php.

STI College Calamba 240


Admin
The Admin can access the site by typing the URL:
https://instituteforfoundationallearning.online/admin_login.php. Admin can add,
delete, and edit the accounts of registar and faculty. Also, it can edit and change
the picture and details of the website.

Enter the
Enter the username
password

Click the login


button

STI College Calamba 241


Homepage
Can see the enrolled To view and to add
students, applicants the accounts of
left and applied registrar and faculty

To view and createthe


administrator
account. To edit the
puctures of homepage

Accounts
name username password edit delete

Account type

Full name

User

Add button password

STI College Calamba 242


Settings
Name Username Password edit delete

Administrator account

input name

input Username

Add button
Input password

Choose file Submit button


update delete

Registrar
The Registrar, can access the site by typing the URL:
https://instituteforfoundationallearning.online/admin_login.php. Registrar is
charge for the processing of the enrollment and pre-enrollment. Also, the registrar
can access the following: student list module, applicant list module, sections
module, faculty module, faculty module, room module, school year module, Price
for RAF module, Audit trails module, and Settings module.

STI College Calamba 243


Login

Enter the
username
Enter the
password

Click the
login button

Homepage

Dashboard Student list Applicant list Sections

Subject

Faculty

Room

Settings Audit trails RAF School Year

STI College Calamba 244


Student List Module
To view the RAF Search the names of
student

Save excel button for


the copy

STI College Calamba 245


Applicant List Module

Section Module

Input Section ID Choose grade level Add section button

Update ID Edit section Remove section

STI College Calamba 246


Subject Module
Enter Subject ID Enter Subject Name Enter Grade Level Add Subject button

Delete button to
Edit button to change remove the subject
the subject ID, ID, Subject Name,
Subject Name, level level

Faculty Module
Edit button to change Delete button to remove
the Faculty Name, the Faculty Name,
Designated level Designated level

STI College Calamba 247


Room Module
Enter Room Name Add Room Button

School Year Module


Enter School Year Add School Year
button

Edit to change the


school Year
Activate the school
Delete to remove the Year
Active the school
school year Year

STI College Calamba 248


Price for RAF

Select the grade level

STI College Calamba 249


Faculty
The Faculty can access the site by typing the URL:
https://instituteforfoundationallearning.online/admin_login.php. Faculty can view
the list of the students, can view and upload the grades and select class. Can view
the the schedule and select class. Also can view the list of schedule

STI College Calamba 250


Applicant, Student, and Transferee
The applicant, and transferee can access the website by typing the URL:
https://instituteforfoundationallearning.online. To have their pre-enrollment and
enrollment. The applicant can have their sign up registration for them to have an
account. The admin will send an email for their verifaction that contains password
to access the website. The applicant can go to the admission to view the
instruction on payment. After that they can proceed for the pre-enrollment
registration. The will fill out the pre-enrollment registration form and attach the
payment receipt. There will be an email that will be sent on the applicant email
for the date. If the applicant passed the examination the applicant will received an
email that the exam is passed. Also, they can see the date of the result and date of
examination and proof of payment on website. The applicant can view on the
student information the personal information. The need requirements can attach
on the Requirement module. Registration Assessment Form(RAF) can view the
schedule and the tuition fee. Also, it can view grades.

STI College Calamba 251


Curriculum Vitae of
Venz Gerald B. Belchez
Block 2 Lot 35 Crescent Knoll Residences, Punta, Calamba, Laguna
geraldbelchez04@gmail.com
09452775168

EDUCATIONAL BACKGROUND
Level Inclusive Dates Name of school/ Institution
Tertiary 2018-2022 STI College Calamba
Vocational/Technical 2016-2018 San Jose National High School
High School 2012-2016 San Jose National High School
Elementary 2006-2012 Binitayan Elementary School

PROFESSIONAL OR VOLUNTEER EXPERIENCE


Nature of Experience/ Name and Address of Company or
Inclusive Dates
Job Title Organization
N/A N/A N/A

AFFILIATIONS
Inclusive Dates Name of Organization Position
2021 Built for IT Students Member
2020 Built for IT Students Member
2019 Built for IT Students Member
2018 Built for IT Students Member

SKILLS
SKILLS Level of Competency Date Acquired
SAP Business One Beginner 2021

TRAININGS, SEMINARS, OR WORKSHOPS ATTENDED


Inclusive Dates Title of Training, Seminar, or Workshop
N/A N/A

STI College Calamba 252


Curriculum Vitae of
Kayne U. Mingo
Block 2 Lot 3 Phase 5 Executive Mabuhay City, Mamatid, Cabuyao, Laguna
contactmekayne@gmail.com
09354980935

EDUCATIONAL BACKGROUND
Level Inclusive Dates Name of school/ Institution
Tertiary 2018-2022 STI College Calamba
Senior High School 2016-2018 Institue for Foundational Learning Inc.
High School 2012-2016 Institue for Foundational Learning Inc.
Elementary 2006-2012 Our Lady of Assumption College

PROFESSIONAL OR VOLUNTEER EXPERIENCE


Nature of Experience/ Name and Address of Company or
Inclusive Dates
Job Title Organization
N/A N/A N/A

AFFILIATIONS
Inclusive Dates Name of Organization Position
2021 Built for IT Students Secretary
2020 Built for IT Students Secretary
2019 Built for IT Students Member
2018 Built for IT Students Member

SKILLS
SKILLS Level of Competency Date Acquired
SAP Business One Beginner 2021

TRAININGS, SEMINARS, OR WORKSHOPS ATTENDED


Inclusive Dates Title of Training, Seminar, or Workshop
N/A N/A

STI College Calamba 253


Curriculum Vitae of
Frances Ysabel M. Tenorio
Block 38 Lot 19 554 Mt. Claire Village Sta.Anastacia, Sto.Tomas City, Batangas
francesysabeltenorio04@gmail.com
09454904417

EDUCATIONAL BACKGROUND
Level Inclusive Dates Name of school/ Institution
Tertiary 2018-2022 STI College Calamba
Senior High School 2016-2018 St.Thomas Academy
High School 2012-2016 St.Thomas Academy
Elementary 2006-2012 Lilyrose School Foundational Inc.

PROFESSIONAL OR VOLUNTEER EXPERIENCE


Nature of Experience/ Name and Address of Company or
Inclusive Dates
Job Title Organization
N/A N/A N/A

AFFILIATIONS
Inclusive Dates Name of Organization Position
2021 Built for IT Students Member
2020 Built for IT Students Member
2019 Built for IT Students Member
2018 Built for IT Students Member

SKILLS
SKILLS Level of Competency Date Acquired
SAP Business One Beginner 2021

TRAININGS, SEMINARS, OR WORKSHOPS ATTENDED


Inclusive Dates Title of Training, Seminar, or Workshop
November, AWS Siklab Pilipinas

STI College Calamba 254


2020

Curriculum Vitae of
Clyde Francis M. Tome
Block 8 Lot 24 San Isidro home, San Isidro, Cabuyao Laguna
francis.tome@yahoo.com
092115926484

EDUCATIONAL BACKGROUND
Level Inclusive Dates Name of school/ Institution
Tertiary 2018-2022 STI College Calamba
Vocational/Technical 2016-2018 STI College Calamba
High School 2012-2016 Infant Jesus Montessori Center - Main
Elementary 2006-2012 Infant Jesus Montessori Center - Main

PROFESSIONAL OR VOLUNTEER EXPERIENCE


Nature of Experience/ Name and Address of Company or
Inclusive Dates
Job Title Organization
N/A N/A N/A

AFFILIATIONS
Inclusive Dates Name of Organization Position
2018-2021 Built for IT Students President
2017-2018 A.I Club Representative
2017-2018 Hearbeats Music Club Vice-President
2016-2017 Computer Enthusiasts Vice-President
2016-2017 Glee Club President

SKILLS
SKILLS Level of Competency Date Acquired
SAP Business One Beginner 2021
Digital Portrait Intermediate 2017
Portrait Sketching Intermediate 2016
C# Programming Intermediate 2016
Java Programming Intermediate 2016

STI College Calamba 255


TRAININGS, SEMINARS, OR WORKSHOPS ATTENDED
Inclusive Dates Title of Training, Seminar, or Workshop
N/A N/A

STI College Calamba 256

You might also like