Você está na página 1de 112

Golden West Colleges

College of Information Technology Education

Chapter I

THE PROBLEM AND REVIEW OF RELATED LITERATURE AND


STUDIES

Introduction:

Some schools right now, especially those with huge numbers of


students who are not yet using computerized based grading system
has difficulty/problems concerning the records of grades of the
students. The grades are the important record to keep even for the
longest time for the referral and credentials of the student to enter
their next level of attaining their goals. It is the tract record that
recognizes of one student, this maybe use for analyzing of your
attitude and values. Manual computation is very prompt to risk for
any circumstances. It is time consuming in terms of recording
grades, computation using of calculator. If some records are lost,
they never retrieve it in case of unexpected calamity. Accuracy and
security is not been so defined.

Online Grading System is the most commonly used in


computing and analyzing the performance, talent and skills of
students. It is designed to provide incentive reward for achievement
and assist in identifying problems of the student.

GOLDEN WEST COLLEGES Page 1


Golden West Colleges
College of Information Technology Education

The Online Grading System will help both the faculty staffs
and the students to have easy access on the records and past
records, the easier way. The said system will also lessen the staffs
on consuming too much time recording and effort locating records of
the students. It will also be connected to the schools’ website (if
there is), for the students, so they can check their grades online.
The staff in charge will do updating of grades.

The Online Grading System will also be a convenience for the


professors as well, because by this, delayed passing of grade will be
prevented and class cards, certificate of grades, and transcript of
records will be processed in a speedy way. By this, students would
not wait for a long period just to get their papers processed. In case
that a student record is lost, we can easily retrieve it with the help of
modern technology. There would be no alternation of grades once the
records are inputted and finalized, so the records are secure.

This system will served as a tool for easier accessibility of


grades, both for the convenience of the students and the faculty
staffs, as well as the professors.

GOLDEN WEST COLLEGES Page 2


Golden West Colleges
College of Information Technology Education

Conceptual Framework

The conceptual framework shown in figure 1.1 identifies the input

variables, the different phases involved for the development of the software and

the output Online Grading System.

The input includes the 1) existing procedures in managing the Online

Grading System; 2) the problems encountered in the existing procedures in

managing the data Online Grading System; and, 3) features to be developed in

optimized the management of the data of Online Grading System.

The developers employed RAD as a guide in the software developmental

model where the methods are Requirements Planning, User Design, Rapid

Construction and Transition.

After undergoing such processes, the output of the study is the Online

Grading System.

The figure 1.1 shows the Research Paradigm of the study in the next

page.

GOLDEN WEST COLLEGES Page 3


Process Output
Input

1. the existing
procedures in
Golden West Colleges

GOLDEN WEST COLLEGES


managing the data in
GWC Online Grading  G Resort
System. Golden West Colleges
Rapid
2. the problems
Application
encountered in the Development Online Grading System
existing procedures in (RAD)
managing the
information in GWC  Requirements
College of Information Technology Education

Planning
Online Grading System.
 User Design
3. features to be  Construction
developed in the Transition
optimized
management of the
information in GWC
Online Grading
System. .

Page 4
Figure 1.1 Research Daradigm
Golden West Colleges
College of Information Technology Education

Overview of Automated Grading Systems

If bridges and buildings were made like we make software,


then we would have disasters happening daily. I have heard this
several times from many people. It is sad but true. Buggy software is
the bane of the software industry. One of the ways of increasing
software quality is by proper education. Several professionals from
the software industry also attest to this. They believe that a greater
emphasis should be given to quality and testing in university
courses. But simply explaining the principles of software quality is
not sufficient. Students tend to forget theoretical principles over
time. Practical exposure and experience is equally important.
Students should be put in an environment where they can
appreciate the importance of quality software and can experience
the benefits of processes that enhance quality. Many universities
have a period of internship for the students in which they work in a
software company and experience these factors first hand. However
because the internship usually is of a duration of 3-6 months, it is
not sufficient to instill the importance of quality. Emphasis on code
quality should be made a part of the entire software curriculum for
it to have proper impact. Every assignment that the students submit
should be subjected to the same quality standards that an
industrial project would be subjected to.

Having university assignments adhere to industrial standards


will result in the faculty having to spend more time grading the
assignments. The faculty can no longer just give an assignment,
wait for the students to submit it, and grade them. The faculty must
be more like a project manager who constantly mentors the

GOLDEN WEST COLLEGES Page 5


Golden West Colleges
College of Information Technology Education

students and helps them improve the quality of their work. Along
with spending a good amount of time mentoring students off class
hours another challenge is timely evaluation of student
assignments. Faculty members are already overloaded with the task
of teaching, designing projects, grading, and research. Once we
incorporate testing and quality into the curricula, each assignment
will have to be graded along many more dimensions, such as quality
of the tests, coverage of the tests, etc. This can be very time
consuming. We need a mechanism which will automatically grade
student assignments to the best possible extent, so that students
are given a timely feedback, and faculty can focus more on providing
feedback on the style, design, and documentation of the project.
Such a system will also bring consistency to the grading process
and will eliminate discrepancies due to instructors bias and
lethargy.

A good automated grading system should be capable of


executing the test cases written by students as well as the faculty
on the project, determining the coverage of the test cases, and
compiling and executing the submitted programs. It should be
configurable so that faculty can determine the importance of various
factors that make up the final grade.

Several efforts have been made to design and implement


automated grading systems in universities. Some existing systems
are:
1. WEB-CAT
2. Praktomat

GOLDEN WEST COLLEGES Page 6


Golden West Colleges
College of Information Technology Education

In this article, I will briefly explain two such automated


grading systems - WEB-CAT, and the Praktomat systems, and
propose a system that contains useful features from them as well as
some new features.

WEB-CAT

WEB-CAT was created at Virginia Tech University to address


the need for incorporating software testing as an integral part of all
programming courses. The creators realized the need for software to
automatically grade student assignments to enable faster feedback
to students and to balance the working load of faculty members.

Since Test Driven Development (TDD) was to be used for all


the assignments, the students had to be graded not only on the
quality of code, but also on the quality of their test suite. WEB-CAT
grades students on three criteria. It gives each assignment a test
validity score, a test correctness score, and a code correctness
score. Test validity measures the accuracy of the students’ tests. It
determines if the tests are consistent with the problem statement.
Test coverage determines how much of the source code the tests
cover. It determines if all paths and conditionals are adequately
covered. Code correctness measures correctness of the actual code.
All three criteria are given a certain weight-age and a final score is
determined.

WEB-CAT’s graphical user interface is inspired by the unit


testing tool JUnit. Just like JUnit it uses a green bar to show the
test results. A text description containing details such as the

GOLDEN WEST COLLEGES Page 7


Golden West Colleges
College of Information Technology Education

number of tests that were run, and the number that passed is also
provided.

Basic features provided by WEB-CAT are:


 Submission of student assignments using a web based wizard
interface
 Submission of test cases using a web based wizard interface
 Setup of assignments by faculty
 Download of student scores by the faculty
 Automatic grading with immediate feedback for student
assignment

WEB-CAT follows a certain sequence of steps to assess a


project submission. A submission is assessed only if it compiles
successfully. If compilation fails, then a summary of errors is
displayed to the user. If the program is compiled successfully then
WEB-CAT will assess the project on various parameters. It first tests
the correctness of the program by running the student’s tests
against the program. Since these tests are submitted by the
students, and it is expected that 100% of the tests will pass,
because we do not expect students to submit a program that fails
their own tests. After this the student’s test cases are validated by
running them against a reference implementation of the project
created by the instructor.

If a student’s test case fails on the reference implementation


then it is deemed to be invalid. Finally, the coverage of the student’s
test cases is evaluated. Once the scores are obtained a cumulative
score out of 100 is calculated applying a certain formula on the
scores from all criteria. The results are displayed immediately to the

GOLDEN WEST COLLEGES Page 8


Golden West Colleges
College of Information Technology Education

student on an HTML interface. It was observed that the quality of


student assignments increased significantly after using WEB-CAT. It
was found that the code developed using WEB-CAT contained 45%
fewer defects per 1000 (non commented) lines of code.

Praktomat

Praktomat was created at Universitat Passau in Germany. The


purpose of creating Praktomat was to build an environment which
would help students enhance the quality of their code. Along with
automated grading it also has a focus on peer reviews. The creators
of Praktomat felt that reviewing others software and having one’s
software reviewed helps in producing better code. This is the reason
why Praktomat has a strong focus on peer review and allows users
to review as well as annotate code written by other students.
Students can resubmit their code any number of times until the
deadline. This way they can improve their code by adopting things
they learned by reviewing other students code as well as lessons
they learned by others feedback of their own code.

Praktomat evaluates student assignments by running them


against a test suite provided by the faculty. The faculty creates two
test suites – a public suite and a secret suite. The public suite is
distributed to the students to help them validate their project. The
secret test suite is not made available to the students, but they are
aware of its existence. An assignment is evaluated by automatically
running both the test suites against it, and also by manual
examination by the faculty. Praktomat was developed in Python,
and is hosted on SourceForge.

GOLDEN WEST COLLEGES Page 9


Golden West Colleges
College of Information Technology Education

Observations

My contention that student project submissions should be


backed by a process to encourage best practices, and a software to
automate as well as facilitate the process, has become stronger after
reviewing WEB-CAT and Praktomat.

What best practices should we incorporate in the process?


What are the features that an automated grading software should
contain? WEB-CAT, Praktomat, and several other software give a
good starting point. We can learn from their successes and failures,
and enhance the offering by adding our own experience.

WEB-CAT and several other sources have shown us that TDD


is definitely a good practice. In a university environment TDD will
work best if it is complemented by instant feedback to the students.
We want to have a process that will encourage students to improve
the quality of their code. They should be graded on the best code
they can submit till the deadline. Two things are needed for this –
instant feedback and the ability to resubmit assignments.

WEB-CAT achieves this by assessing submissions in real


time, and displaying the results to the students immediately. WEB-
CAT allows students to re-submit assignments any number of time
till the due date. Since faculty members are already overloaded with
work, the software should take some of the faculties responsibilities.
WEB-CAT automatically evaluates and grades the student’s
assignments, leaving faculty with time for more meaningful
activities.

GOLDEN WEST COLLEGES Page 10


Golden West Colleges
College of Information Technology Education

Praktomat has shown us that there is a definite benefit to


peer review. When we review code written by others, we can go
beyond the paradigms set in our own mind. Having our code
reviewed by others can help us see our shortcomings which we may
have earlier overlooked. Praktomat allows students to review code
written by others. However the review is hidden from the faculty, to
ensure that it does not impact grading.

Praktomat does not rely on 100% automatic evaluation of the


assignments. Praktomat evaluates certain aspects automatically
and the rest are evaluated manually. Factors like code quality,
documentation, etc are reviewed and evaluated manually by the
faculty. There may be two reasons for this. Software to support
automatic evaluation of these things may not have been available
when Praktomat was written, or the creators felt that certain things
are best evaluated by the faculty.

A proposed system for automated grading

Based on my observations from reviewing the above software


systems and from my own experience, I have defined a process and
the functional expectations of a software system that supports TDD
and automated grading.

The Process

o Every project should have a deadline, just like the real world
o The project should be defined as a set of use cases and a
functional test suite. Both should be made available to the
students.

GOLDEN WEST COLLEGES Page 11


Golden West Colleges
College of Information Technology Education

o Students should start developing their project using the TDD


philosophy.
o They should also be provided a source code repository like CVS
or VSS.
o Once the students have completed their project they should tag
the build and should upload the tag number to a web based
submission software.
o It must be clearly defined how the students should submit their
unit test suite.
o They should also provide one file which will trigger the remaining
unit tests.
o The software will pull the source from the repository, and
evaluate it.
o Failure is reported to the student if the project fails to compile.
Failure here does not mean that the student fails in the
assignment. Assignments can be corrected and submitted any
number of time till the deadline.
o Once the compilation succeeds, the software will run the unit
tests written by the student on their code.
o After collecting results from the unit tests, the test coverage is
measured.
o Then the functional tests created by the faculty are executed
against the software.
o The software is then run through a source code format checker
which evaluates it for adherence to coding standards.
o The software is then run through a source code quality checker
which evaluates the quality of code based on known best
practices, and anti patterns.
o The software is finally channeled to the faculty who evaluates it
for design.

GOLDEN WEST COLLEGES Page 12


Golden West Colleges
College of Information Technology Education

o Results from all the tests are given out of 100%.


o After collecting all the results a formula (provided by the faculty)
is applied to derive the final score.

The Software

 The software should provide an account with a username and


password to each student and faculty.
 The software should be web based so that it can be accessed
from anywhere using a standard web browser.
 After logging in students should be able to browse to the
homepage for a particular assignment and view the details, such
as specification, due dates, and any other details posted by the
faculty.
 When a student completes her assignment, she should be able to
upload the CVS tag number to the server.
 Once the tag number is uploaded the server should pull the
source code from a CVS repository and perform the checks
mentioned above.
 Results from each check is recorded in the database.
 The detailed result is then displayed to the student.
 Students should be able to resubmit an assignment any number
of times till the deadline.
 Student code should be available for peer review and annotations
if the faculty desires.
 The faculty should be able to create an assignment and upload
details and files.
 The faculty should be able to trigger the final evaluation of all
assignments either manually, or at a scheduled time.

GOLDEN WEST COLLEGES Page 13


Golden West Colleges
College of Information Technology Education

 An evaluation should take the latest tag numbers provided by the


student and perform tests on the respective source code.
 Results should be made available to the faculty, and students.
 The faculty should be able to add their own scores for parts that
were checked manually.
 The final result is computed by applying a formula provided by
the faculty.
 The final results should be downloadable as a csv text file.

Several technologies such as Java, Python, PHP, .NET, and


Ruby can be used to implement such a system. Each has their pros
and cons. We will not cover the implementation technology in this
paper. Evaluation of these technologies and a final choice based on
the evaluation will be dealt with in a separate paper.

GOLDEN WEST COLLEGES Page 14


Golden West Colleges
College of Information Technology Education

Objectives of the Study

The general objective of the study entitled “A Online Grading


System” is to develop a system that will replace the current Grading
System in the state, which is manual. It can also eliminate lag time
between the submissions of grades and will help to ease jobs of
professors and that student can rely on having an accurate grade.

Statement of the Problem

The study entitled “A Online Grading System” is focused on


making the old manual way be an improved one by using a
computerized grading system that would make it easier to file
records.

The study is sought to answer the following questions:

1. The problems encountered in the manual way of grading system


which are the following:

 Some records are lost.

 Incorrect inputting of grades.

 As to security, easy alteration of grades happens.

 Once they received their class cards, they only see their final
grade.

2. The following are solutions recommended to address the problems


identified above are the following:

 The manual grading system will be a computerized one.

GOLDEN WEST COLLEGES Page 15


Golden West Colleges
College of Information Technology Education

 Once it is computerized, the grades inputted on the said


system will be automatically saved on a database.

 Once the grades are put in the said system, it cannot be edited
anymore.

 Students will know their grades from prelim to finals.

Significance of the Study

The study of “A Online Grading System” will be beneficial to


the following:

To the School. This study will give benefits to the school because an
automated grading system is feasible, economically viable and as
accurate as manually grading system.

To the Students. It will help the students to get their grades


processed fast and on time. Through this grading system, they could
also help the students see the connection between effort and grades
that could helps them become more accountable for their progress.

To the Instructors. This will serve as their guide for an easy access
on the students’ grades because grading is an exercise in professional
judgment on the part of teachers.

To the Researcher. This study will equip them with knowledge


about the grading system.

To the Future Researchers. It will serve as their reference for their


research activities and will help them to gain knowledge to express
their ideas in their chosen study.

GOLDEN WEST COLLEGES Page 16


Golden West Colleges
College of Information Technology Education

Scope and Limitation

This study is focused and will only concentrate on the grading


system of the school because it is the important record to keep even
for the longest time for the referral and credentials of the student to
enter their next level of attaining their goals. It is the tract record that
recognizes of one student, this maybe use for analyzing of your
attitude and values.

The said system is only for recording and keeping of grades. It


is not for enrolment and registration use.

Definition of Terms
The following are terms that the researcher used for better
understanding about the concepts in the study. The terms are
defined operationally, as how they are used in the study.

Computer. In the study, it is the machine used by the researcher in


making the documentation of the study and the developing the
computerized system.

Programmer. As used in the study, this person creates and designs


the system.

Database. Is an organized collection of data for one or more


purposes and usually in digital form.

Grades. To allow the student’s have an access to their over all


grades taken from their prelim, midterm, pre-finals and finals.

GOLDEN WEST COLLEGES Page 17


Golden West Colleges
College of Information Technology Education

Chapter II

METHODS OF RESEARCH AND PROCEDURES

Research Design

The method of research we used in the study “A Proposed


Online Grading System” is the descriptive type of method research,
because this kind of research describes the present system, which is
the manual way of grading system based on the impressions of the
respondents. We used this kind of research because it is appropriate
in knowing the extent to which the different conditions of the present
set up of the study is.

Methods of Research

The descriptive survey method was used to achieve the


purpose of the study. We made a survey regarding about the old
system of recording grades, which is the manual way. By that, we
had come up with the idea that the manual way should really be
change into an automated one.

Based on our research, Southdale International School of


Science, Arts and Technology is using a manual computation of
grades of each student, which is the traditional use when
technology is not yet developed.

Since we are used of using the manual way of computing


grades, why not, we try something new and easier to make the job
done fast.

This was deemed appropriate because the study sought to


identify all things happen at the present flow of grading system.

GOLDEN WEST COLLEGES Page 18


Golden West Colleges
College of Information Technology Education

Review of Related Literature and Studies


This part discusses the review of related literature and studies
of the study entitled “A Proposed Online Grading System”.

Foreign Literature and Study

The Trial at Curtin University of Technology

“During the first semester of 2001 a trial of an automated


essay grading system was conducted at Curtin University of
Technology in Perth, Western Australia. One subject was chosen, a
first year introduction to Information Systems, where we had about
1,000 students available to participate.

Unfortunately the semester had already started by the time


we were able to undertake this research. This meant that all
assessment had already been determined.

Once assessment has been published, the policy at Curtin


University is that it cannot be changed without the consent of the
majority of students. In order to gain that consent and ensure a
high rate of response to our trial, we announced that an additional
voluntary essay-type question would be available for bonus marks.
Needless to say, we, had a high rate of response.

The system we were trialing was an American system that


required two hundred manually graded essays as input to their
grading system. Between the three researchers, we graded about 70
papers each and sent the electronic copies along with the marks to

GOLDEN WEST COLLEGES Page 19


Golden West Colleges
College of Information Technology Education

the US site. About another 330 ungraded essays were then


forwarded to the site for grading.

A number of interesting outcomes were noticed when we


analyzed all the grades and as a result, a grader “A” had always
considered himself a “hard” grader and considered grader “B” rather
soft.

However, the purpose was not to check our own grading but
to see how consistent the computer system handled the assessment.
We were delighted to have our suspicions confirmed; the computer
system had the same mean and standard deviation of marks as the
three of us. We were satisfied that it worked.

There was an additional and quite unexpected result from the


test. The system picked up several cases of plagiarism that we had
failed to notice. In this case, the plagiarism was really that of one
student copying the work of another student rather than from
extracting text from another source.

The Weaknesses of the System

There are two important weaknesses and one minor weakness


for our purposes in the system that we trialed. The first weakness is
that for a successful implementation, one need to manually grade
200 essays and feed them into the system. The computer will then
accurately and dependably grade as many more essays on that topic
as is required. In small classes of less than a few hundred students,
it becomes impractical.

GOLDEN WEST COLLEGES Page 20


Golden West Colleges
College of Information Technology Education

The second weakness is the cost of using the system. As the


system was American we had to pay in $US. With the exchange rate
so poor, it cost about A$11,400 to grade a few hundred essays. This
is simply not cost effective. If we were to use the same essay for
several semesters then the per-unit grading costs would reduce
substantially.

However, it is highly unlikely that we would want to use the


same essay questions in consecutive semesters or even twice ever.

There is a third factor. The system is run at a site in the USA


rather than on our own computer network at Curtin University.
There is some lack of control and potential security risk in having
the process run remotely.

Costing Considerations

Ideally, the system would be reasonably inexpensive, and


certainly far cheaper than hiring grading staff. The grading system
would be based on a single all-inclusive model answer supplied by
the lecturer. Obviously, the system would need to assess with the
same degree of accuracy as a manual grader. Finally, the system
should be available to be run in-house on a PC or central server.

We currently pay exam graders at a rate of about A$25 per


hour. It should be possible to reduce the cost of grading through an
automated essay grading system by 90%. Our single experience with

GOLDEN WEST COLLEGES Page 21


Golden West Colleges
College of Information Technology Education

the American system as described above was that it cost about


A$33 per essay of up to two pages in length.

Based on supplying 200 graded essays at a cost of A$3 per


essay, the initial cost before paying for the grading service would be
A$600. The grading service costs that we experienced were another
A$10,800, bringing the total to A$11,400. In the ideal case, it would
be beneficial for a University to own the grading system so the costs
could be spread across many subjects and many departments. Even
if the initial cost were in the thousands of dollars, the cost per essay
or exam would become trivial.

There are economies of scale associated with the system, in


that up to 2000 essays could have been graded for the A$11,400,
but we did not have this number to grade, and so did not gain these
benefits. If we had 2,000 essays to grade, the automated essay
grading system would still have cost A$5.70 per essay, almost
double the cost of grading manually.

Limitations to any Online Grading System

To utilize any Online Grading System the raw data, essays or


examination answers, would need to be in a form that was computer
readable. The most obvious form of this would be electronic
documents in Word format. This is easily enough achieved where
the student could write the essay on a computer.

However, when students sit for examinations this is normally


done at desks with paper and pen. The resulting examination script
is not easily transferred to a computer readable medium. On the

GOLDEN WEST COLLEGES Page 22


Golden West Colleges
College of Information Technology Education

other hand, we see that it is possible to have students sit an exam


in a computer laboratory and submit their examination papers
electronically. It would be difficult to have large numbers sit the
exam simultaneously but it is not impractical to have two groups of
students where as soon as the first group completes, the second
group starts. In this way, with lab facilities of 200 PC’s the same
examination could be sat by up to 400 students without
compromising the examination paper.

Another possibility would be to give the students a take-home


examination due within 24 hours. Any number of students would
then be able to sit the exam at the same time and submit the exam
papers electronically.

Another serious limitation to an essay grading system is that it


grades a students’ knowledge of a given set of material. The model
answer would contain only a set body of knowledge and would grade
the student on the part of that knowledge the student was able to
demonstrate. This may be acceptable in the early years of a course
but probably not in more advanced studies.”

Local Literature and Studies

Automatio of Online Grading System


Posted by Fr. Jerome Marquez, SVD

“The plan to automate the 2010 national election reverberates


clearer to school faculty and staff as SJCS begins to automate
its grading system starting this school year 2009-2010. This first
quarter, faculty members of Preschool and Grade School
Departments have tested the customized grading system in encoding
GOLDEN WEST COLLEGES Page 23
Golden West Colleges
College of Information Technology Education

the scholastic grades of their students. The Registrar's Office, in


coordination with the Information Technology Office, printed and
released recently the first computerized report cards of the school.

The shift to automate the grading system, hopefully, will


increase efficiency of school staff and allow teachers to focus more on
teaching than clerical recording. Other information and services may
also be derived from this new system. High School grading system
will later follow.”

Automation of Grading System in San Sebastian College

“Automation has had a notable impact in a wide range of


industries beyond manufacturing (where it began). Largely
automated telephone switchboards and answering machines have
replaced once-ubiquitous telephone operators. Medical processes
such as primary screening in electrocardiography or radiography
and laboratory analysis of human genes, sera, cells, and tissues are
carried out at much greater speed and accuracy by automated
systems. Applying automation to Grading systems wherein it will
also make a task easy and accurate.

Since San Sebastian College Recoletos began over 4 years ago,


many things in this school have gone from manual to automate. In
addition, because a typical problem in a starting school are Grading
systems, I noticed that this system does not exist in this school. We
all know that making an Automated Grading System means making
the task for professors in computing and calculating grades will
become easy and not only that the professors will have an
advantage but the students will also get a gain, because it will also
improve accuracy of calculations thus making the what we call

GOLDEN WEST COLLEGES Page 24


Golden West Colleges
College of Information Technology Education

“Hula of Grades” will become non – existent in the future of San


Sebastian Recoletos.

San Sebastian College Recoletos – Canlubang lacks a


centralized grading system. It does not have a standalone program
that will accept input, compute grades and print class cards all in a
same program.”

Respondents of the Study

The respondents of the study will consist of a) Southdale


International School students (130), b) faculty and staff (20).

Data Gathering Procedures

First, we discussed about the current grading system


Southdale International School was using and we found out that they
are still using the old manual way of computing and recording of
grades which is really time consuming especially when large numbers
of assignments are submitted at once.

Teachers of the said institution find themselves bogged down in


their attempt to provide consistent evaluations and high quality
feedback to students within as short a timeframe as is reasonable,
usually a matter of days rather than weeks.

Educational administrators are also concerned with quality


and timely feedback, but in addition must manage the cost of doing
this work.

GOLDEN WEST COLLEGES Page 25


Golden West Colleges
College of Information Technology Education

Clearly, an automated system would be a highly desirable


addition to the educational tool-kit, particularly if it can provide less
costly and more effective outcome.

After seeking the approval, we, the researchers, prepared the


questionnaires, for our survey and we have them checked and
approved by our researcher adviser Mr. Carlo C. Clerigo and have
those surveys answered by the respondents, which are the students
and the faculty and staffs of the said institution.

We tally the responses according to the questions in the


statement of the problem. Then, the responses were put into tables
and graphs, and interpret and analyze them.

Data Gathering Instruments

This study, which is “A Proposed Computerized Grading


System” make use of the Questionnaire as its main instrument in
gathering data. It also makes use of interview to support the data and
information gathered from the questionnaires and it is supplemented
by observations and documentary analysis.

Questionnaire. The researchers made use of this instrument to get a


feedback to the respondents.

Observation. The researchers made use of this to differentiate the


manual and computerized way of grading system.

Internet Research. Used for searching additional information.

GOLDEN WEST COLLEGES Page 26


Golden West Colleges
College of Information Technology Education

Chapter III
RESULTS AND DISCUSSION

Table 1
Frequency and Percentage Distribution of Respondents

Respondents Frequency Percentage


(f) (%)

Students 81 81%

Teachers 2 2%

Others 17 17%

Total 100 100%

The respondents of the survey we have conducted are the


students enrolled in the institution, the faculty members and staff,
and the “Others” consists of some people from outside the school.
Questionnaires were given to the respondents to be answered
accordingly, to be able to achieve the necessary information needed.

Table 1 presents the frequency and percentage distributions of


the respondents were in all the respondents

accumulated a percentage which are: The Students with 81%, The


Teachers with 2% while Others 17%, gathering a total of 100
respondents.

GOLDEN WEST COLLEGES Page 27


Golden West Colleges
College of Information Technology Education

Interpretation of Data

TOTAL
YES NO SOMETIMES NEVER
PERCENTAGE

1. Are you having


trouble getting the
class cards when the 75% 8% 15% 2% 100%
professor is gone in
our school?

2. Have you ever


experienced receiving
your class cards, that 75% 10% 15% 0% 100%
only your final grade
is shown?

3. Is it difficult to search
59 11% 30% 0% 100%
previous grades?

4. Have you experienced


the impact on your
grade not knowing 72% 7% 21% 0% 100%
after finals if it is
passing or failed?

5. Is it hard to adjust the


grades of the students 60% 12% 28% 0% 100%
with requirements?

GOLDEN WEST COLLEGES Page 28


Golden West Colleges
College of Information Technology Education

6. Do you encounter Figure


mixed class cards of
64 15 1.1:
each courses and year 21% 0% 100%
% % Tally
level every time you of
get your class card? Surve
y
7. Have you experienced
Quest
that you have a grade
ion for
on your class card but 53 30
15% 2% 100% Manu
in the admin office, % %
al
you have no recorded
Gradi
sets of grades?
ng
System

It shows the assessment of the respondents regarding the


survey we made about the manual grading system. Looking at the
table above, it shows that majority of the respondents are having
problems with the usage of the manual grading system.

GOLDEN WEST COLLEGES Page 29


Golden West Colleges
College of Information Technology Education

TOTAL
SOMETI NEV
YES NO PERCEN
MES ER
TAGE

1. Does the
computerized
91
grading system 4% 5% 0% 100%
%
speed up the process
of grades?

2. Does the
computerized
79
grading system 3% 18% 0% 100%
%
produce an accurate
output?

3. Can automatic
93
tasking of grades be 3% 4% 0% 100%
%
done after exam?

4. Will the students


benefit on the
88
service of the 2% 10% 0% 100%
%
computerized
grading system?

5. Will the faculty


benefit on the
95
service of the 1% 4% 0% 100%
%
computerized
grading system?

GOLDEN WEST COLLEGES Page 30


Golden West Colleges
College of Information Technology Education

6. Do you think the


computerized 92
3% 5% 0% 100%
grading system will %
be user friendly?

7. Do you think it will


lessen the time
94
consumed during 3% 3% 0% 100%
%
the processing of
grades?

8. Does proper
86
allocation of grades 2% 12% 0% 100%
%
be done?

Figure 1.2: Tally of Survey Question for Automated Grading System

It shows the assessment of the respondents regarding the


survey we made about the manual grading system. Looking at the
table above, majority of the respondents are in favor of having an
automated/computerized grading system in the institution.

GOLDEN WEST COLLEGES Page 31


Golden West Colleges
College of Information Technology Education

Chapter IV

SUMMARY, CONCLUSIONS AND RECOMMENDATIONS

Summary

Based on the study that the researchers made, several


problems can be encountered when using the manual way of
recording and computing of grades. One example of that problem are
un retrieve files or records of the students.

So, the researchers had determined first the viability of the


software by conducting a survey in a form of questionnaires.
After analyzing it, the researchers found that majority of the
respondents, which are the enrolled students, the faculty and
staffs and some people whom answered the said
questionnaires is in favor in an automated grading system.

Through descriptive method, which describes data and


characteristics about the present condition of the system being
studied, we have come up with the idea that applying automation to
Grading systems will also make a task easy and accurate

Conclusion

Based on the findings, the researcher came up with a


conclusion that a computerized/automated grading system is a
must-have in a school. It is a best way of storing and computing
grades of students that provides easy way in getting the grades and
to make the procedure faster and efficient.

GOLDEN WEST COLLEGES Page 32


Golden West Colleges
College of Information Technology Education

Recommendation

Based from the conclusion made, the researcher highly


recommends that the school must have an
automated/computerized grading system because computerization
is focused on retrieving and storing information of students in a
faster, more convenient way of storing files of the student enrollees
in a computerized system that will lessen the effort of faculty staff in
storing files of each the students. This will also serve as information
for irregular students, transferees, and freshmen to get course and
subject schedule. The information can be viewed in just a second
without worrying that a single file is lost.

GOLDEN WEST COLLEGES Page 33


Golden West Colleges
College of Information Technology Education

Chapter 5

THE PROPOSED SYSTEM

The proposed System that we developed for Golden West Colleges will be

efficient in terms of time consuming, space and lessen the costs from their

previous data base. Our Proposed system has a security feature of which the

admin and the teachers are the users by using the log-in form by typing the

username and password. In general, our proposed system uses XAMMP .

System Overview

The proposed systems developed using MySQL and PHP. It Improves

working methods by replacing the activities done manually with the computer

based system. By automating every activity of the easier and grades are

computed accurately in less time.

The proposed system is simple, Interactive and has a very user friendly

interface such that eve those with little or no knowledge about working with

computers can easily operate. A welcome screen starts the program and the

teachers log-in by entering their username and password.

GOLDEN WEST COLLEGES Page 34


Golden West Colleges
College of Information Technology Education

Process Specification

The proposed system is composed of three main modules, namely the

registration module where pertinent student information are entered, the

subject module, where the teacher enters the rating of the student for each

grade component, and the grade computation module, where the grade of the

student is calculated based on the inputted ratings for each component, the

main menu is displayed containing three (3) options, namely, to enter student

information, to enter student grades, or to view student information.

The process begins with entry of student information(module1). This is

where pertinent student data, such as student name, address, parents name,

etc.., are entered and stored in a student information database.

Using the data from the student information database, the teacher

chooses a subject and enters the rating of the student in each grade

component(module2). The grades are stored in the subject’s database. The

grades stored in the subject’s database are then retrieved and used in

computing of the student (module3)

GOLDEN WEST COLLEGES Page 35


Golden West Colleges
College of Information Technology Education

5.1 Data Flow Diagram

PROPOSED SYSTEM BASIC DIAGRAM

DATA INPUT PROCESS INFORMATPRION

OUTPUT

Username
Password
Online Student
student
Grades
Information Grading
Student System
Grade
Component
Rating

PROPOSED SYSTEM DATA FLOW DIAGRAM

Student
Student Component Teacher
Registrar
Information Scores

Grading System Component


Student Score
Information

Subject Grade

GOLDEN WEST COLLEGES Page 36


Golden West Colleges
College of Information Technology Education

 Component Grade - the mark or rating given by the teacher to


the different components scores, based on the performance of
the student in these grade components.

 Component Scores – the scores obtained by the student in a


particular subject component.

 Student Information – pertinent data about the student such as


student’s name, address, birth date, parents’ name, etc.

 Student Information Database – the database where student


information data are stored.

 Subject Database – the database where the component grades


and subject grade are stored.

 Subject Grade - The grade of the student for the subject


resulting from the subject grade computation process.

Data Specification
Entity Relationship Diagram

GOLDEN WEST COLLEGES Page 37


Golden West Colleges
College of Information Technology Education

Screen Layout / Specification

Screen 1: Welcome and Login Screen


This is the first screen that will be displayed. Pressing the Login button
will display the Log-in Screen.

Screen 2: Main Menu


The Main Menu Screen displays the options that the user can choose
from.

GOLDEN WEST COLLEGES Page 38


Golden West Colleges
College of Information Technology Education

Screen 3: Student Registration


This screen is shown upon pressing the Register Student button
of the Main Menu. This is where the user will enter pertinent information about
the student and assign the student to a particular
section.

Screen 4: Subject Grade

The Subject Grade Screen is intended for the subject teacher and this is
where the teacher will enter the grades of the student. Pressing the Math Grade
Button, for example, will display the Math Screen for entering grades.

GOLDEN WEST COLLEGES Page 39


Golden West Colleges
College of Information Technology Education

Screen 5: Search Student


The Search Student Screen is intended for searching information
about a student using the Student Number as the search key. Once found,
data about the student is displayed on the screen, together with the grades of
student per subject per grading period.

Screen 6: Student Information


The Student Information Screen, gives the information of all the student
you’ve search.

GOLDEN WEST COLLEGES Page 40


Golden West Colleges
College of Information Technology Education

Chapter 6
SYSTEM CODING (Prototype)
grading/index.php:
<?php
include('config.php');
if(isset($_POST['submit'])){
$user = $_POST['user'];
$pass = $_POST['pass'];
$query = "select * from userdata where username='$user' and
password='$pass'";
$r = mysql_query($query);
if(mysql_num_rows($r) == 1){
$row = mysql_fetch_assoc($r);
$_SESSION['level'] = $row['level'];
$_SESSION['id'] = $row['username'];
$_SESSION['name'] = $row['fname'].' '.$row['lname'];
header('location:'.$row['level'].'');
}else{
header('location:index.php?login=0');
}
}

if(isset($_SESSION['level'])){
header('location:'.$_SESSION['level'].'');
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<link rel="icon" href="favicon.ico">

<title>Online Grading System</title>

<!-- Bootstrap core CSS -->


<link href="css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="css/font-awesome.min.css" />
<link rel="stylesheet" href="css/style.css" />
<!-- Custom styles for this template -->
<link href="jumbotron.css" rel="stylesheet">

GOLDEN WEST COLLEGES Page 41


Golden West Colleges
College of Information Technology Education

</head>

<body>

<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">


<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-
toggle="collapse" data-target="#navbar" aria-expanded="false" aria-
controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="index.php">Online Grading System</a>
</div>
<div id="navbar" class="navbar-collapse collapse">
<form class="navbar-form navbar-right" role="form" action="index.php"
method="POST">
<div class="form-group">
<?php if(isset($_GET['login'])): ?>
<label class="text-danger">Invalid
Username/Password</label>&nbsp;
<?php endif; ?>
</div>
<div class="form-group">
<input type="text" placeholder="ID No." class="form-control"
name="user" autocomplete="off">
</div>
<div class="form-group">
<input type="password" placeholder="Password" class="form-control"
name="pass">
</div>
<button type="submit" class="btn btn-success"
name="submit">Login</button>
</form>
</div><!--/.navbar-collapse -->
</div>
</nav>

<!-- Main jumbotron for a primary marketing message or call to action -->
<div class="jumbotron">
<div class="container">
<h1>Welcome to Online Grading System</h1>

GOLDEN WEST COLLEGES Page 42


Golden West Colleges
College of Information Technology Education

<p>GOLDEN WEST COLLEGES ONLINE GRADE INQUIRY SYSTEM</p>


<p><a class="btn btn-primary btn-lg" href="#" role="button">Learn more
&raquo;</a></p>
</div>
</div>

<div class="container">
<!-- Example row of columns -->
<div class="row">
<div class="col-md-4">
<h2 class="center"><i class="fa fa-users fa-5x"></i></h2>
<p><strong>Student Module</strong></p>
<p>Student will login using their ID no and password to view their
grades.</p>
<p><a class="btn btn-default" href="#" role="button">View details
&raquo;</a></p>
</div>
<div class="col-md-4">
<h2 class="center"><i class="fa fa-table fa-5x"></i></h2>
<p><strong>Admin Module</strong></p>
<p>Administrator Module has all the priviledge of the system. The admin
can manage the students and faculty information.</p>
<p><a class="btn btn-default" href="#" role="button">View details
&raquo;</a></p>
</div>
<div class="col-md-4">
<h2 class="center"><i class="fa fa-tasks fa-5x"></i></h2>
<p><strong>Faculty Module</strong></p>
<p>Faculty Module will be able to view their assigned class and view the
students on that class.</p>
<p><a class="btn btn-default" href="#" role="button">View details
&raquo;</a></p>
</div>
</div>

<hr>

<footer>
<p>&copy; Company 2014</p>
</footer>
</div> <!-- /container -->

<!-- Bootstrap core JavaScript


================================================== -->

GOLDEN WEST COLLEGES Page 43


Golden West Colleges
College of Information Technology Education

<!-- Placed at the end of the document so the pages load faster -->
<script src="js/jquery.js"></script>
<script src="js/bootstrap.min.js"></script>
</body>
</html>

grading/logout:
<?php
include('config.php');
$act = $_SESSION['id'].' logged out.';
$date = date('m-d-Y h:i:s A');
mysql_query("insert into log values(null,'$date','$act')");
session_destroy();
header('location:index.php');
?>

grading/admin/class/data/class_model.php:
<?php

$class = new Dataclass();


if(isset($_GET['q'])){
$class->$_GET['q']();
}
class Dataclass {

function __construct(){
if(!isset($_SESSION['id'])){
header('location:../../');
}
}

//create logs
function logs($act){
$date = date('m-d-Y h:i:s A');
echo $q = "insert into log values(null,'$date','$act')";
mysql_query($q);
return true;
}

//get all class info


function getclass($search){
$q = "select * from class where course like '%$search%' or year like
'%$search%' or section like '%$search%' or sem like '%$search%' or subject
like '%$search%' order by course,year,section,sem asc";

GOLDEN WEST COLLEGES Page 44


Golden West Colleges
College of Information Technology Education

$r = mysql_query($q);

return $r;
}

//get class by ID
function getclassbyid($id){
$q = "select * from class where id=$id";
$r = mysql_query($q);

return $r;
}
//add class
function addclass(){
include('../../config.php');
$course = $_POST['course'];
$year = $_POST['year'];
$section = $_POST['section'];
$sem = $_POST['sem'];
$subject = $_POST['subject'];
$sy = $_POST['sy'];

echo $q = "insert into class


values('','$course','$year','$section','$sem','','$subject','$sy')";
mysql_query($q);
$act = "create new class $course $year - $section with the subject of
$subject";
$this->logs($act);
header('location:../class.php?r=added');
}

//update class
function updateclass(){
include('../../config.php');
$id = $_GET['id'];
$course = $_POST['course'];
$year = $_POST['year'];
$section = $_POST['section'];
$sem = $_POST['sem'];
$subject = $_POST['subject'];
$sy = $_POST['sy'];

echo $q = "update class set course='$course', year='$year',


section='$section', sem='$sem', subject='$subject', SY='$sy' where id=$id";
mysql_query($q);

GOLDEN WEST COLLEGES Page 45


Golden West Colleges
College of Information Technology Education

$act = "update class $course $year - $section with the subject of


$subject";
$this->logs($act);
header('location:../class.php?r=updated');
}

//get all students in that class


function getstudentsubject(){
$classid = $_GET['classid'];
$q = "select * from studentsubject where classid=$classid";
$r = mysql_query($q);
$result = array();
while($row = mysql_fetch_array($r)){
$q2 = 'select * from student where id='.$row['studid'].'';
$r2 = mysql_query($q2);
$result[] = mysql_fetch_array($r2);
}
return $result;
}

//add student to class


function addstudent(){
include('../../config.php');
$classid = $_GET['classid'];
$studid = $_GET['studid'];
$verify = $this->verifystudent($studid,$classid);
if($verify){
echo $q = "INSERT INTO studentsubject (studid,classid) VALUES
('$studid', '$classid');";
mysql_query($q);
header('location:../classstudent.php?r=success&classid='.$classid.'');
}else{

header('location:../classstudent.php?r=duplicate&classid='.$classid.'');
}

$tmp = mysql_query("select * from class where id=$classid");


$tmp_row = mysql_fetch_array($tmp);
$tmp_subject = $tmp_row['subject'];
$tmp_class = $tmp_row['course'].' '.$tmp_row['year'].'-
'.$tmp_row['section'];

$tmp = mysql_query("select * from student where id=$studid");


$tmp_row = mysql_fetch_array($tmp);
$tmp_student = $tmp_row['fname'].' '.$tmp_row['lname'];

GOLDEN WEST COLLEGES Page 46


Golden West Colleges
College of Information Technology Education

$act = "add student $tmp_student to class $tmp_class with the subject


of $tmp_subject";
$this->logs($act);
}
//verify if he/she is enrolled
function verifystudent($studid,$classid){
include('../../config.php');
$q = "select * from studentsubject where studid=$studid and
classid=$classid";
$r = mysql_query($q);
if(mysql_num_rows($r) < 1){
return true;
}else{
return false;
}
}
//remove student to the class
function removestudent(){
$classid = $_GET['classid'];
$studid = $_GET['studid'];
include('../../config.php');
$q = "delete from studentsubject where studid=$studid and
classid=$classid";
mysql_query($q);

$tmp = mysql_query("select * from class where id=$classid");


$tmp_row = mysql_fetch_array($tmp);
$tmp_subject = $tmp_row['subject'];
$tmp_class = $tmp_row['course'].' '.$tmp_row['year'].'-
'.$tmp_row['section'];

$tmp = mysql_query("select * from student where id=$studid");


$tmp_row = mysql_fetch_array($tmp);
$tmp_student = $tmp_row['fname'].' '.$tmp_row['lname'];

$act = "remove student $tmp_student from class $tmp_class with the


subject of $tmp_subject";
$this->logs($act);

header('location:../classstudent.php?r=success&classid='.$classid.'');
}

//update teacher
function updateteacher(){

GOLDEN WEST COLLEGES Page 47


Golden West Colleges
College of Information Technology Education

$classid = $_GET['classid'];
$teachid = $_GET['teachid'];
include('../../config.php');
$q = "update class set teacher=$teachid where id=$classid";
mysql_query($q);

$tmp = mysql_query("select * from class where id=$classid");


$tmp_row = mysql_fetch_array($tmp);
$tmp_subject = $tmp_row['subject'];
$tmp_class = $tmp_row['course'].' '.$tmp_row['year'].'-
'.$tmp_row['section'];

$tmp = mysql_query("select * from teacher where id=$teachid");


$tmp_row = mysql_fetch_array($tmp);
$tmp_teacher = $tmp_row['fname'].' '.$tmp_row['lname'];

$act = "assign teacher $tmp_teacher to class $tmp_class with the


subject of $tmp_subject";
$this->logs($act);

header('location:../classteacher.php?classid='.$classid.'&teacherid='.$teachid.'')
;
}

}
?>

grading/admin/class/data/data_model.php:
<?php
$data = new Data();
if(isset($_GET['q'])){
$data->$_GET['q']();
}
class Data {

function __construct(){
if(!isset($_SESSION['id'])){
header('location:../../');
}
}

//create logs
function logs($act){
$date = date('m-d-Y h:i:s A');

GOLDEN WEST COLLEGES Page 48


Golden West Colleges
College of Information Technology Education

echo $q = "insert into log values(null,'$date','$act')";


mysql_query($q);
return true;
}

//get all subjects


function getsubject($search){
$q = "select * from subject where code like '%$search%' or title like
'%$search%' order by code asc";
$r = mysql_query($q);

return $r;
}
//get subject by ID
function getsubjectbyid($id){
$q = "select * from subject where id=$id";
$r = mysql_query($q);

return $r;
}
//add subject
function addsubject(){
include('../../config.php');
$code = $_POST['code'];
$title = $_POST['title'];
$unit = $_POST['unit'];
$q = "insert into subject values('','$code','$title','$unit')";
mysql_query($q);

$act = "add new subject $code - $title";


$this->logs($act);
header('location:../subject.php?r=added');
}

//update subject
function updatesubject(){
include('../../config.php');
$id = $_GET['id'];
$code = $_POST['code'];
$title = $_POST['title'];
$unit = $_POST['unit'];
$q = "update subject set code='$code', title='$title',unit=$unit where
id=$id";
mysql_query($q);

GOLDEN WEST COLLEGES Page 49


Golden West Colleges
College of Information Technology Education

$act = "update subject $code - $title";


$this->logs($act);
header('location:../subject.php?r=updated');
}

//GLOBAL DELETION
function delete(){
include('../../config.php');
$table = $_GET['table'];
$id = $_GET['id'];
$q = "delete from $table where id=$id";
$r = null;

$tmp = mysql_query("select * from $table where id=$id");


$tmp_row = mysql_fetch_array($tmp);

mysql_query($q);

if($table=='subject'){
$record = $tmp_row['code'];
header('location:../subject.php?r=deleted');

}else if($table=='class'){
$record = $tmp_row['subject'];
header('location:../class.php?r=deleted');

}else if($table=='student'){
$record = $tmp_row['fname'];
header('location:../studentlist.php?r=deleted');

}else if($table=='teacher'){
$record = $tmp_row['fname'];
header('location:../teacherlist.php?r=deleted');
}else if($table=='userdata'){
$record = $tmp_row['username'];
header('location:../users.php?r=deleted');
}

$act = "delete $record from $table";


$this->logs($act);
}

}
?>

GOLDEN WEST COLLEGES Page 50


Golden West Colleges
College of Information Technology Education

grading/admin/class/data/settings_model.php:
<?php
$settings = new Datasettings();
if(isset($_GET['q'])){
$settings->$_GET['q']();
}

class Datasettings {

function __construct(){
if(!isset($_SESSION['id'])){
header('location:../../');
}
}

//create logs
function logs($act){
$date = date('m-d-Y h:i:s A');
echo $q = "insert into log values(null,'$date','$act')";
mysql_query($q);
return true;
}

function changepassword(){
include('../../config.php');
$username = $_GET['username'];
$new = sha1($_POST['new']);
$confirm = sha1($_POST['confirm']);
if($new == $confirm){
$r2 = mysql_query("update userdata set password='$new' where
username='$username'");

header('location:../settings.php?msg=success&username='.$username.'');
}else{

header('location:../settings.php?msg=error&username='.$username.'');
}

$act = "update password of username $username";


$this->logs($act);
}

function addaccount(){
include('../../config.php');
$level = $_GET['level'];

GOLDEN WEST COLLEGES Page 51


Golden West Colleges
College of Information Technology Education

$id = $_GET['id'];
$q = "select * from $level where id=$id";
$r = mysql_query($q);
$row = mysql_fetch_array($r);
if($level == 'student'){
$username = $row['studid'];
$fname = $row['fname'];
$lname = $row['lname'];
$password = $username;
}else{
$username = $row['teachid'];
$fname = $row['fname'];
$lname = $row['lname'];
$password = $username;
}
$verify = $this->verifyusername($username);
if($verify){
$q2 = "insert into userdata
values(null,'$username','$password','$fname','$lname','$level')";
mysql_query($q2);
header('location:../'.$level.'list.php?r=added an account');
}else{
header('location:../'.$level.'list.php?r=has already an account');
}

$act = "add account with the username of $username";


$this->logs($act);

function verifyusername($user){
$q = "select * from userdata where username='$user'";
$r = mysql_query($q);
if(mysql_num_rows($r) < 1){
return true;
}else{
return false;
}
}

function getuser($search){
$user = $_SESSION['id'];
$q = "select * from userdata where username !='$user' and username
like '%$search%' order by lname asc";
$r = mysql_query($q);

GOLDEN WEST COLLEGES Page 52


Golden West Colleges
College of Information Technology Education

return $r;
}
}
?>

grading/admin/class/data/student_model.php:
<?php

$student = new Datastudent();


if(isset($_GET['q'])){
$student->$_GET['q']();
}
class Datastudent {

function __construct(){
if(!isset($_SESSION['id'])){
header('location:../../');
}
}

//create logs
function logs($act){
$date = date('m-d-Y h:i:s A');
echo $q = "insert into log values(null,'$date','$act')";
mysql_query($q);
return true;
}

//get all student info


function getstudent($search){
$q = "select * from student where studid like '%$search%' or fname like
'%$search%' or lname like '%$search%' order by lname,fname,studid";
$r = mysql_query($q);

return $r;
}

//get class by ID
function getstudentbyid($id){
$q = "select * from student where id=$id";
$r = mysql_query($q);

return $r;
}
//add student

GOLDEN WEST COLLEGES Page 53


Golden West Colleges
College of Information Technology Education

function addstudent(){
include('../../config.php');
$studid = $_POST['studid'];
$fname = $_POST['fname'];
$lname = $_POST['lname'];

$q = "insert into student values('','$studid','$fname','$lname')";


mysql_query($q);
$name = $fname.' '.$lname;
$act = "add new student $name";
$this->logs($act);

header('location:../studentlist.php?r=added');
}

//update student
function updatestudent(){
include('../../config.php');
$id = $_GET['id'];
$studid = $_POST['studid'];
$fname = $_POST['fname'];
$lname = $_POST['lname'];
$q = "update student set studid='$studid', fname='$fname',
lname='$lname' where id=$id";
mysql_query($q);

$name = $fname.' '.$lname;


$act = "update student $name";
$this->logs($act);

header('location:../studentlist.php?r=updated');
}
//remove from class
function removesubject(){
include('../../config.php');
$studid = $_GET['studid'];
$classid = $_GET['classid'];
mysql_query("delete from studentsubject where studid=$studid and
classid=$classid");

$tmp = mysql_query("select * from class where id=$classid");


$tmp_row = mysql_fetch_array($tmp);
$tmp_subject = $tmp_row['subject'];
$tmp_class = $tmp_row['course'].' '.$tmp_row['year'].'-
'.$tmp_row['section'];

GOLDEN WEST COLLEGES Page 54


Golden West Colleges
College of Information Technology Education

$tmp = mysql_query("select * from student where id=$studid");


$tmp_row = mysql_fetch_array($tmp);
$tmp_student = $tmp_row['fname'].' '.$tmp_row['lname'];

$act = "remove student $tmp_student from class $tmp_class with the


subject of $tmp_subject";
$this->logs($act);

header('location:../studentsubject.php?id='.$studid.'');
}
}
?>

grading/admin/class/data/teacher_model.php
<?php

$teacher = new Datateacher();


if(isset($_GET['q'])){
$teacher->$_GET['q']();
}
class Datateacher {

function __construct(){
if(!isset($_SESSION['id'])){
header('location:../../');
}
}

//create logs
function logs($act){
$date = date('m-d-Y h:i:s A');
echo $q = "insert into log values(null,'$date','$act')";
mysql_query($q);
return true;
}

//get all teacher info


function getteacher($search){
$q = "select * from teacher where teachid like '%$search%' or fname
like '%$search%' or lname like '%$search%' order by lname,fname,teachid";
$r = mysql_query($q);

return $r;
}

GOLDEN WEST COLLEGES Page 55


Golden West Colleges
College of Information Technology Education

//get teacher by ID
function getteacherbyid($id){
$q = "select * from teacher where id=$id";
$r = mysql_query($q);

return $r;
}
//add teacher
function addteacher(){
include('../../config.php');
$teachid = $_POST['teachid'];
$fname = $_POST['fname'];
$lname = $_POST['lname'];

$q = "insert into teacher values('','$teachid','$fname','$lname')";


mysql_query($q);

$name = $fname.' '.$lname;


$act = "add new teacher $name";
$this->logs($act);

header('location:../teacherlist.php?r=added');
}

//update teacher
function updateteacher(){
include('../../config.php');
$id = $_GET['id'];
$teachid = $_POST['teachid'];
$fname = $_POST['fname'];
$lname = $_POST['lname'];
$q = "update teacher set teachid='$teachid', fname='$fname',
lname='$lname' where id=$id";
mysql_query($q);

$name = $fname.' '.$lname;


$act = "update teacher $name";
$this->logs($act);

header('location:../teacherlist.php?r=updated');
}

//remove teacher from class


function removesubject(){

GOLDEN WEST COLLEGES Page 56


Golden West Colleges
College of Information Technology Education

include('../../config.php');
$classid = $_GET['classid'];
$teachid = $_GET['teachid'];
mysql_query("update class set teacher=null where id=$classid");
header('location:../teacherload.php?id='.$teachid.'');

$tmp = mysql_query("select * from class where id=$classid");


$tmp_row = mysql_fetch_array($tmp);
$tmp_subject = $tmp_row['subject'];
$tmp_class = $tmp_row['course'].' '.$tmp_row['year'].'-
'.$tmp_row['section'];

$tmp = mysql_query("select * from teacher where id=$teachid");


$tmp_row = mysql_fetch_array($tmp);
$tmp_teacher = $tmp_row['fname'].' '.$tmp_row['lname'];

$act = "remove teacher $tmp_teacher from class $tmp_class with the


subject of $tmp_subject";
$this->logs($act);

}
?>

grading/admin/include/class.php:
<?php
include('include/header.php');
include('include/sidebar.php');
include('data/class_model.php');

$search = isset($_POST['search']) ? $_POST['search']: null;


$class = $class->getclass($search);
?>
<div id="page-wrapper">

<div class="container-fluid">

<!-- Page Heading -->


<div class="row">
<div class="col-lg-12">
<h1 class="page-header">
<small>CLASS INFORMATION</small>
</h1>
<ol class="breadcrumb">

GOLDEN WEST COLLEGES Page 57


Golden West Colleges
College of Information Technology Education

<li>
<i class="fa fa-dashboard"></i> <a
href="index.php">Dashboard</a>
</li>
<li class="active">
Class
</li>
</ol>
</div>
</div>
<!-- /.row -->
<div class="row">
<div class="col-lg-12">
<div class="form-inline form-padding">
<form action="class.php" method="post">
<input type="text" class="form-control" name="search"
placeholder="Search Class Info...">
<button type="submit" name="submitsearch" class="btn btn-
success"><i class="fa fa-search"></i> Search</button>
<button type="button" class="btn btn-primary" data-
toggle="modal" data-target="#addclass">Add Class</button>
</form>
</div>
</div>
</div>
<!--/.row -->
<hr />
<div class="row">
<div class="col-lg-12">
<?php if(isset($_GET['r'])): ?>
<?php
$r = $_GET['r'];
if($r=='added'){
$classs='success';
}else if($r=='updated'){
$classs='info';
}else if($r=='deleted'){
$classs='danger';
}else{
$classs='hide';
}
?>
<div class="alert alert-<?php echo $classs?> <?php echo $classs;
?>">
<strong>Class info successfully <?php echo $r; ?>!</strong>

GOLDEN WEST COLLEGES Page 58


Golden West Colleges
College of Information Technology Education

</div>
<?php endif; ?>
</div>
</div>
<div class="row">
<div class="col-lg-12">

<div class="table-responsive">
<table class="table table-striped">
<thead>
<tr>
<th>#</th>
<th>Subject</th>
<th>Class Name</th>
<th class="text-center">Semester</th>
<th class="text-center">S.Y.</th>
<th class="text-center">Teacher</th>
<th class="text-center">Students</th>
<th class="text-center">Action</th>
</tr>
</thead>
<tbody>
<?php $c = 1; ?>
<?php while($row = mysql_fetch_array($class)): ?>
<tr>
<td><?php echo $c;?></td>
<td><?php echo $row['subject'];?></td>
<td><?php echo $row['course'].' '.$row['year'].' -
'.$row['section'];?></td>
<td class="text-center"><?php echo $row['sem'];?></td>
<td class="text-center"><?php echo $row['SY'];?></td>
<td class="text-center"><a
href="classteacher.php?classid=<?php echo $row['id'];?>&teacherid=<?php
echo $row['teacher'];?>" title="update teacher">View</a></td>
<td class="text-center"><a
href="classstudent.php?classid=<?php echo $row['id'];?>" title="update
students" title="add student">View</a></td>
<td class="text-center">
<a href="edit.php?type=class&id=<?php echo
$row['id']?>" title="update class"><i class="fa fa-edit fa-2x text-
primary"></i></a>
<a
href="data/data_model.php?q=delete&table=class&id=<?php echo $row['id']?>"
title="delete class"><i class="fa fa-times-circle fa-2x text-danger
confirmation"></i></a></td>

GOLDEN WEST COLLEGES Page 59


Golden West Colleges
College of Information Technology Education

</tr>
<?php $c++; ?>
<?php endwhile; ?>
<?php if(mysql_num_rows($class) < 1): ?>
<tr>
<td colspan="7" class="bg-danger text-danger text-
center">*** EMPTY ***</td>
</tr>
<?php endif; ?>
</tbody>
</table>
</div>
</div>
</div>

</div>
<!-- /.container-fluid -->

</div>
<!-- /#page-wrapper -->
<?php include('include/modal.php'); ?>
<?php include('include/footer.php'); ?>

GOLDEN WEST COLLEGES Page 60


Golden West Colleges
College of Information Technology Education

grading/admin/include/classstudent.php:
<?php
include('include/header.php');
include('include/sidebar.php');
include('data/student_model.php');
include('data/class_model.php');
$search = isset($_POST['search']) ? $_POST['search']: null;
$student = $student->getstudent($search);
$studentsubject = $class->getstudentsubject();
$classid = $_GET['classid'];

$rc = mysql_query("select * from class where id=$classid");


$rc = mysql_fetch_array($rc);
$subject = $rc['subject'];

?>
<div id="page-wrapper">

<div class="container-fluid">

<!-- Page Heading -->


<div class="row">
<div class="col-lg-12">
<h1 class="page-header">
<small>CLASS STUDENTS</small>
</h1>
<ol class="breadcrumb">
<li>
<i class="fa fa-dashboard"></i> <a
href="index.php">Dashboard</a>
</li>
<li>
<a href="class.php">Class Info</a>
</li>
<li class="active">
Class Students (Subject: <?php echo $subject; ?>)
</li>
</ol>
</div>
</div>
<!-- /.row -->
<div class="row">
<div class="col-lg-12">
<div class="form-inline form-padding">

GOLDEN WEST COLLEGES Page 61


Golden West Colleges
College of Information Technology Education

<form action="classstudent.php?classid=<?php echo $classid;?>"


method="post">
<input type="text" class="form-control" name="search"
placeholder="Search by ID # or Name..." required autofocus>
<button type="submit" name="submitsearch" class="btn btn-
success"><i class="fa fa-search"></i> Search</button>
<a href="classstudent.php?classid=<?php echo $classid;?>"
class="btn btn-primary">Master List</a>
</form>
</div>
</div>
</div>
<hr />
<div class="row">
<div class="col-lg-12">
<div class="table-responsive">
<?php if($search){ ?>

<table class="table table-striped">


<thead>
<tr>
<th>Student ID</th>
<th>Firstname</th>
<th>Lastname</th>
<th class="text-center">Action</th>
</tr>
</thead>
<tbody>
<?php while($row = mysql_fetch_array($student)): ?>
<tr>
<td><?php echo $row['studid']; ?></td>
<td><?php echo $row['fname']; ?></td>
<td><?php echo $row['lname']; ?></td>
<td class="text-center"><a
href="data/class_model.php?q=addstudent&studid=<?php echo $row['id'];
?>&classid=<?php echo $classid;?>" class="btn btn-warning">Add to
class</a></td>
</tr>
<?php endwhile;?>
<?php if(mysql_num_rows($student) < 1): ?>
<tr>
<td colspan="4" class="text-center text-
danger"><strong>*** NO RESULT ***</strong></td>
</tr>
<?php endif;?>

GOLDEN WEST COLLEGES Page 62


Golden West Colleges
College of Information Technology Education

</tbody>
</table>

<?php }else{ ?>


<?php if(isset($_GET['r'])): ?>
<?php if($_GET['r']=='success'){ ?>
<div class="alert alert-success">
<strong>Successfull!</strong>
</div>
<?php }else if($_GET['r']=='duplicate'){ ?>
<div class="alert alert-warning">
<strong>Student already on the list!</strong>
</div>
<?php } ?>
<?php endif;?>
<table class="table table-striped">
<thead>
<th>Student ID</th>
<th>Firstname</th>
<th>Lastname</th>
<th class="text-center">Remove</th>
</thead>
<tbody>
<?php foreach($studentsubject as $row): ?>
<tr>
<td><?php echo $row['studid']; ?></td>
<td><?php echo $row['fname']; ?></td>
<td><?php echo $row['lname']; ?></td>
<td class="text-center"><a
href="data/class_model.php?q=removestudent&studid=<?php echo $row['id'];
?>&classid=<?php echo $classid;?>" class="confirmation"><i class="fa fa-times-
circle fa-2x text-danger"></i></a></td>
</tr>
<?php endforeach;?>
<?php if(!$studentsubject): ?>
<tr>
<td colspan="4" class="text-center text-
danger"><strong>*** EMPTY ***</strong></td>
</tr>
<?php endif;?>
</tbody>
</table>

<?php } ?>

GOLDEN WEST COLLEGES Page 63


Golden West Colleges
College of Information Technology Education

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

</div>
<!-- /.container-fluid -->

</div>
<!-- /#page-wrapper -->
<?php include('include/footer.php');

grading/admin/include/classteacher.php:
<?php
include('include/header.php');
include('include/sidebar.php');
include('data/teacher_model.php');
$search = isset($_POST['search']) ? $_POST['search']: null;
$teacher = $teacher->getteacher($search);
$classid = $_GET['classid'];

$teacherid = $_GET['teacherid'];
$rt = mysql_query("select * from teacher where id=$teacherid");
$rs = mysql_fetch_array($rt);
$teacherbyid = $rs['fname'].' '.$rs['lname'];

$rc = mysql_query("select * from class where id=$classid");


$rc = mysql_fetch_array($rc);
$subject = $rc['subject'];

?>
<div id="page-wrapper">

<div class="container-fluid">

<!-- Page Heading -->


<div class="row">
<div class="col-lg-12">
<h1 class="page-header">
<small>CLASS TEACHER</small>
</h1>
<ol class="breadcrumb">
<li>

GOLDEN WEST COLLEGES Page 64


Golden West Colleges
College of Information Technology Education

<i class="fa fa-dashboard"></i> <a


href="index.php">Dashboard</a>
</li>
<li>
<a href="class.php">Class Info</a>
</li>
<li class="active">
Class Teacher
</li>
</ol>
</div>
</div>
<!-- /.row -->
<div class="row">
<div class="col-lg-12">
<div class="form-inline form-padding">
<form action="classteacher.php?classid=<?php echo
$classid;?>&teacherid=<?php echo $teacherid; ?>" method="post">
<input type="text" class="form-control" name="search"
placeholder="Search by ID # or Name..." required autofocus>
<button type="submit" name="submitsearch" class="btn btn-
success"><i class="fa fa-search"></i> Search</button>
</form>
</div>
</div>
</div>
<hr />
<div class="row">
<div class="col-lg-12">
<div class="alert alert-info">
<table>
<tr>
<td width="100"><strong>SUBJECT</strong></td>
<td><?php echo $subject; ?></td>
</tr>
<tr>
<td width="100"><strong>TEACHER</strong></td>
<td><?php echo $teacherbyid; ?></td>
</tr>
</table>
</div>
<div class="table-responsive">
<?php if($search): ?>

<table class="table table-striped">

GOLDEN WEST COLLEGES Page 65


Golden West Colleges
College of Information Technology Education

<thead>
<tr>
<th>Teacher ID</th>
<th>Firstname</th>
<th>Lastname</th>
<th class="text-center">Action</th>
</tr>
</thead>
<tbody>
<?php while($row = mysql_fetch_array($teacher)): ?>
<tr>
<td><?php echo $row['teachid']; ?></td>
<td><?php echo $row['fname']; ?></td>
<td><?php echo $row['lname']; ?></td>
<td class="text-center"><a
href="data/class_model.php?q=updateteacher&teachid=<?php echo $row['id'];
?>&classid=<?php echo $classid;?>" class="btn btn-warning">Make as
Teacher</a></td>
</tr>
<?php endwhile;?>
<?php if(mysql_num_rows($teacher) < 1): ?>
<tr>
<td colspan="4" class="text-center text-
danger"><strong>*** NO RESULT ***</strong></td>
</tr>
<?php endif;?>
</tbody>
</table>

<?php endif; ?>


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

</div>
<!-- /.container-fluid -->

</div>
<!-- /#page-wrapper -->
<?php include('include/footer.php');

GOLDEN WEST COLLEGES Page 66


Golden West Colleges
College of Information Technology Education

grading/admin/include/edit.php:
<?php
include('include/header.php');
include('include/sidebar.php');
include('data/data_model.php');
include('data/class_model.php');
include('data/student_model.php');
include('data/teacher_model.php');
$id = $_GET['id'];
$subject = $data->getsubjectbyid($id);
$class = $class->getclassbyid($id);
$student = $student->getstudentbyid($id);
$teacher = $teacher->getteacherbyid($id);
?>
<div id="page-wrapper">

<div class="container-fluid">

<!-- Page Heading -->


<div class="row">
<div class="col-lg-12">
<h1 class="page-header">
<small>EDIT</small>
</h1>
<?php
$edit = new Edit();
$type = $_GET['type'];
if($type=='subject'){
$edit->editsubject($subject);
}else if($type=='class'){
$edit->editclass($class);
}else if($type=='student'){
$edit->editstudent($student);
}else if($type=='teacher'){
$edit->editteacher($teacher);
}
?>
</div>
</div>
<!-- /.row -->

</div>

GOLDEN WEST COLLEGES Page 67


Golden West Colleges
College of Information Technology Education

<!-- /.container-fluid -->

</div>
<!-- /#page-wrapper -->

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

class Edit {

function editsubject($subject){ ?>


<ol class="breadcrumb">
<li>
<i class="fa fa-dashboard"></i> <a href="index.php">Dashboard</a>
</li>
<li>
<a href="subject.php">Subject</a>
</li>
<li class="active">
Edit
</li>
</ol>
<hr />
<div class="modal-body">
<?php while($row = mysql_fetch_array($subject)): ?>
<form action="data/data_model.php?q=updatesubject&id=<?php echo
$row['id'];?>" method="post">

<div class="form-group">
<label>Code</label>
<input type="text" class="form-control" value="<?php echo
$row['code']; ?>" name="code" placeholder="subject code" />
</div>
<div class="form-group">
<label>Title</label>
<input type="text" class="form-control" value="<?php echo
$row['title']; ?>" name="title" placeholder="subject title" />
</div>
<div class="form-group">
<label>No. Of Units</label>
<input type="number" min="1" max="5" class="form-control"
value="<?php echo $row['unit']; ?>" name="unit" placeholder="no. of units" />
</div>
</div>
<div class="modal-footer">

GOLDEN WEST COLLEGES Page 68


Golden West Colleges
College of Information Technology Education

<a href="subject.php"><button type="button" class="btn btn-default"><i


class="fa fa-arrow-left"></i> Back</button></a>
<button type="submit" class="btn btn-primary"><i class="fa fa-
check"></i> Update</button>
<?php endwhile; ?>
</form>
</div>

<?php }

function editclass($class){ ?>


<ol class="breadcrumb">
<li>
<i class="fa fa-dashboard"></i> <a href="index.php">Dashboard</a>
</li>
<li>
<a href="class.php">Class Info</a>
</li>
<li class="active">
Edit
</li>
</ol>
<hr />
<div class="modal-body">
<?php while($row = mysql_fetch_array($class)): ?>
<form action="data/class_model.php?q=updateclass&id=<?php echo
$row['id']?>" method="post">
<div class="form-group">
<select name="subject" class="form-control" required>
<option value="">Select Subject...</option>
<?php
$r = mysql_query("select * from subject");
while($re = mysql_fetch_array($r)):
?>
<option <?php if($row['subject'] == $re['code']) echo "selected"?>
value="<?php echo $re['code']; ?>"><?php echo $re['code']; ?> - (<?php echo
$re['title']; ?>)</option>
<?php endwhile; ?>
</select>
</div>
<div class="form-group">
<select name="course" class="form-control" required>
<option value="">Select Course...</option>
<option <?php if($row['course'] == 'BSIT') echo
"selected"?>>BSIT</option>

GOLDEN WEST COLLEGES Page 69


Golden West Colleges
College of Information Technology Education

<option <?php if($row['course'] == 'BSCRIM') echo


"selected"?>>BSCRIM</option>
<option <?php if($row['course'] == 'BSAT') echo
"selected"?>>BSAT</option>
</select>
</div>
<div class="form-group">
<select name="year" class="form-control" required>
<option value="">Select Year...</option>
<option <?php if($row['year'] == 'I') echo
"selected"?>>I</option>
<option <?php if($row['year'] == 'II') echo
"selected"?>>II</option>
<option <?php if($row['year'] == 'III') echo
"selected"?>>III</option>
<option <?php if($row['year'] == 'IV') echo
"selected"?>>IV</option>
</select>
</div>
<div class="form-group">
<select name="section" class="form-control" required>
<option value="">Select Section...</option>
<option <?php if($row['section'] == 'A') echo
"selected"?>>A</option>
<option <?php if($row['section'] == 'B') echo
"selected"?>>B</option>
<option <?php if($row['section'] == 'C') echo
"selected"?>>C</option>
<option <?php if($row['section'] == 'D') echo
"selected"?>>D</option>
</select>
</div>
<div class="form-group">
<select name="sem" class="form-control" required>
<option value="">Select Semester...</option>
<option <?php if($row['sem'] == '1st') echo
"selected"?>>1st</option>
<option <?php if($row['sem'] == '2nd') echo
"selected"?>>2nd</option>
</select>
</div>
<div class="form-group">
<select name="sy" class="form-control" required>
<option value="">Select S.Y.</option>
<?php $year = date('Y'); ?>

GOLDEN WEST COLLEGES Page 70


Golden West Colleges
College of Information Technology Education

<?php for($c=10; $c > 0; $c--): ?>


<?php $sy = ($year).'-'.($year+1); ?>
<option <?php if($row['SY'] == $sy) echo "selected"?>><?php
echo $sy;?></option>
<?php $year--; ?>
<?php endfor; ?>
</select>
</div>
</div>
<div class="modal-footer">
<a href="class.php"><button type="button" class="btn btn-default"><i
class="fa fa-arrow-left"></i> Back</button></a>
<button type="submit" class="btn btn-primary"><i class="fa fa-
check"></i> Update</button>
</form>
<?php endwhile; ?>
</div>
<?php
}

function editstudent($student){ ?>


<ol class="breadcrumb">
<li>
<i class="fa fa-dashboard"></i> <a href="index.php">Dashboard</a>
</li>
<li>
<a href="studentlist.php">Student's List</a>
</li>
<li class="active">
Edit
</li>
</ol>
<hr />
<div class="modal-body">
<?php while($row = mysql_fetch_array($student)): ?>
<form action="data/student_model.php?q=updatestudent&id=<?php
echo $row['id'];?>" method="post">
<div class="form-group">
<input type="text" class="form-control" name="studid"
value="<?php echo $row['studid']; ?>" />
</div>
<div class="form-group">
<input type="text" class="form-control" name="fname"
value="<?php echo $row['fname']; ?>" />
</div>

GOLDEN WEST COLLEGES Page 71


Golden West Colleges
College of Information Technology Education

<div class="form-group">
<input type="text" class="form-control" name="lname"
value="<?php echo $row['lname']; ?>" />
</div>
</div>
<div class="modal-footer">
<a href="studentlist.php"><button type="button" class="btn btn-
default"><i class="fa fa-arrow-left"></i> Back</button></a>
<button type="submit" class="btn btn-primary"><i class="fa fa-
check"></i> Update</button>
</form>
</form>
<?php endwhile; ?>
</div>

<?php
}

function editteacher($teacher){ ?>


<ol class="breadcrumb">
<li>
<i class="fa fa-dashboard"></i> <a href="index.php">Dashboard</a>
</li>
<li>
<a href="studentlist.php">Teacher's List</a>
</li>
<li class="active">
Edit
</li>
</ol>
<hr />
<div class="modal-body">
<?php while($row = mysql_fetch_array($teacher)): ?>
<form action="data/teacher_model.php?q=updateteacher&id=<?php
echo $row['id'];?>" method="post">
<div class="form-group">
<input type="text" class="form-control" name="teachid"
value="<?php echo $row['teachid']; ?>" />
</div>
<div class="form-group">
<input type="text" class="form-control" name="fname"
value="<?php echo $row['fname']; ?>" />
</div>
<div class="form-group">

GOLDEN WEST COLLEGES Page 72


Golden West Colleges
College of Information Technology Education

<input type="text" class="form-control" name="lname"


value="<?php echo $row['lname']; ?>" />
</div>
</div>
<div class="modal-footer">
<a href="teacherlist.php"><button type="button" class="btn btn-
default"><i class="fa fa-arrow-left"></i> Back</button></a>
<button type="submit" class="btn btn-primary"><i class="fa fa-
check"></i> Update</button>
</form>
<?php endwhile; ?>
</div>

<?php
}
}

?>

grading/admin/include/index.php:
<?php
include('include/header.php');
include('include/sidebar.php');
$r1 = mysql_query('select count(*) from student');
$count1 = mysql_fetch_array($r1);

$r2 = mysql_query('select count(*) from subject');


$count2 = mysql_fetch_array($r2);

$r3 = mysql_query('select count(*) from teacher');


$count3 = mysql_fetch_array($r3);

$r4 = mysql_query('select count(*) from userdata');


$count4 = mysql_fetch_array($r4);
?>
<div id="page-wrapper">
<div class="container-fluid">

<!-- Page Heading -->


<div class="row">
<div class="col-lg-12">
<h1 class="page-header">
Dashboard <small>Statistics Overview</small>

</h1>

GOLDEN WEST COLLEGES Page 73


Golden West Colleges
College of Information Technology Education

<ol class="breadcrumb">
<li class="active">
<i class="fa fa-dashboard"></i> Dashboard
</li>
</ol>
</div>
</div>
<!-- /.row -->

<div class="row">
<div class="col-md-6">
<div class="panel panel-primary">
<div class="panel-heading">
<div class="row">
<div class="col-xs-3">
<i class="fa fa-bar-chart-o fa-5x"></i>
</div>
<div class="col-xs-9 text-right">
<div class="huge"><?php echo $count2[0]; ?></div>
<div>Subjects!</div>
</div>
</div>
</div>
<a href="subject.php">
<div class="panel-footer">
<span class="pull-left">View Details</span>
<span class="pull-right"><i class="fa fa-arrow-circle-right fa-
2x"></i></span>
<div class="clearfix"></div>
</div>
</a>
</div>
</div>
<div class="col-md-6">
<div class="panel panel-green">
<div class="panel-heading">
<div class="row">
<div class="col-xs-3">
<i class="fa fa-users fa-5x"></i>
</div>
<div class="col-xs-9 text-right">
<div class="huge"><?php echo $count1[0]; ?></div>
<div>Students!</div>
</div>
</div>

GOLDEN WEST COLLEGES Page 74


Golden West Colleges
College of Information Technology Education

</div>
<a href="studentlist.php">
<div class="panel-footer">
<span class="pull-left">View Details</span>
<span class="pull-right"><i class="fa fa-arrow-circle-right fa-
2x"></i></span>
<div class="clearfix"></div>
</div>
</a>
</div>
</div>
<div class="col-md-6">
<div class="panel panel-yellow">
<div class="panel-heading">
<div class="row">
<div class="col-xs-3">
<i class="fa fa-user fa-5x"></i>
</div>
<div class="col-xs-9 text-right">
<div class="huge"><?php echo $count3[0]; ?></div>
<div>Teachers!</div>
</div>
</div>
</div>
<a href="teacherlist.php">
<div class="panel-footer">
<span class="pull-left">View Details</span>
<span class="pull-right"><i class="fa fa-arrow-circle-right fa-
2x"></i></span>
<div class="clearfix"></div>
</div>
</a>
</div>
</div>
<div class="col-md-6">
<div class="panel panel-red">
<div class="panel-heading">
<div class="row">
<div class="col-xs-3">
<i class="fa fa-gear fa-5x"></i>
</div>
<div class="col-xs-9 text-right">
<div class="huge"><?php echo $count4[0]; ?></div>
<div>Users!</div>
</div>

GOLDEN WEST COLLEGES Page 75


Golden West Colleges
College of Information Technology Education

</div>
</div>
<a href="users.php">
<div class="panel-footer">
<span class="pull-left">View Details</span>
<span class="pull-right"><i class="fa fa-arrow-circle-right fa-
2x"></i></span>
<div class="clearfix"></div>
</div>
</a>
</div>
</div>
</div>
<!-- /.row -->

</div>
<!-- /.container-fluid -->

</div>
<!-- /#page-wrapper -->
<?php include('include/footer.php');

grading/admin/include/logs.php:
<?php
include('include/header.php');
include('include/sidebar.php');
?>
<div id="page-wrapper">

<div class="container-fluid">

<!-- Page Heading -->


<div class="row">
<div class="col-lg-12">
<h1 class="page-header">
<small>LOGS</small>
</h1>
<ol class="breadcrumb">
<li>
<i class="fa fa-dashboard"></i> <a
href="index.php">Dashboard</a>
</li>

GOLDEN WEST COLLEGES Page 76


Golden West Colleges
College of Information Technology Education

<li class="active">
Logs
</li>
</ol>
</div>
</div>
<!-- /.row -->
<div class="row">
<div class="col-lg-12">
<div class="panel panel-green">
<div class="panel-heading">
<h3 class="panel-title"><i class="fa fa-clock-o fa-fw"></i> Latest
Log Activity</h3>
</div>
<div class="panel-body">
<div class="list-group">
<?php $r = mysql_query("select * from log order by date desc
limit 0,100");?>

<?php while($row = mysql_fetch_array($r)): ?>


<a href="#" class="list-group-item">
<span class="badge"><?php echo $row['date']?></span>
<i class="fa fa-fw fa-tasks"></i> <?php echo
$row['activity']?>
</a>
<?php endwhile; ?>
</div>
</div>
</div>
</div>
</div>

</div>
<!-- /.container-fluid -->

</div>
<!-- /#page-wrapper -->
<?php include('include/footer.php');

GOLDEN WEST COLLEGES Page 77


Golden West Colleges
College of Information Technology Education

grading/admin/include/sample.php:
<?php
include('include/header.php');
include('include/sidebar.php');
?>
<div id="page-wrapper">

<div class="container-fluid">

<!-- Page Heading -->


<div class="row">
<div class="col-lg-12">
<h1 class="page-header">
Dashboard <small>Statistics Overview</small>
</h1>
<ol class="breadcrumb">
<li>
<i class="fa fa-dashboard"></i> <a
href="index.php">Dashboard</a>
</li>
<li class="active">
<i class="fa fa-tasks"></i> Sample
</li>
</ol>
</div>
</div>
<!-- /.row -->

</div>
<!-- /.container-fluid -->

</div>
<!-- /#page-wrapper -->
<?php include('include/footer.php');

GOLDEN WEST COLLEGES Page 78


Golden West Colleges
College of Information Technology Education

grading/admin/include/settings.php:
<?php
include('include/header.php');
include('include/sidebar.php');
$username = isset($_GET['username']) ? $_GET['username'] :
$_SESSION['id'];
?>
<div id="page-wrapper">

<div class="container-fluid">

<!-- Page Heading -->


<div class="row">
<div class="col-lg-12">
<h1 class="page-header">
Settings <small>Change Password</small>
</h1>
<ol class="breadcrumb">
<li>
<i class="fa fa-dashboard"></i> <a
href="index.php">Dashboard</a>
</li>
<li class="active">
Change Password
</li>
</ol>
</div>
</div>
<!-- /.row -->
<div class="row">
<div class="col-lg-12">
<?php if(isset($_GET['msg'])): ?>
<?php if($_GET['msg']=='success'){
echo '
<div class="alert alert-success">
<strong>Password Changed!</strong>
</div>
';
}else{
echo '
<div class="alert alert-danger">
<strong>Password incorrect. Please try again!</strong>
</div>
';
}

GOLDEN WEST COLLEGES Page 79


Golden West Colleges
College of Information Technology Education

?>
<?php endif;?>
<form
action="data/settings_model.php?q=changepassword&username=<?php echo
$username;?>" method="post">
<div class="form-group">
<label>New Password</label>
<input type="password" name="new" class="form-control">
</div>
<div class="form-group">
<label>Confirm Password</label>
<input type="password" name="confirm" class="form-control">
</div>
<button type="submit" class="btn btn-success btn-lg"
name="submit">Update Password</button>
</form>
</div>
</div>

</div>
<!-- /.container-fluid -->

</div>
<!-- /#page-wrapper -->
<?php include('include/footer.php');

GOLDEN WEST COLLEGES Page 80


Golden West Colleges
College of Information Technology Education

grading/admin/include/studentlist.php:
<?php
include('include/header.php');
include('include/sidebar.php');
include('data/student_model.php');

$search = isset($_POST['search']) ? $_POST['search']: null;


$student = $student->getstudent($search);
?>
<div id="page-wrapper">

<div class="container-fluid">

<!-- Page Heading -->


<div class="row">
<div class="col-lg-12">
<h1 class="page-header">
<small>STUDENT'S LIST</small>
</h1>
<ol class="breadcrumb">
<li>
<i class="fa fa-dashboard"></i> <a
href="index.php">Dashboard</a>
</li>
<li class="active">
Student's List
</li>
</ol>
</div>
</div>
<!-- /.row -->
<div class="row">
<div class="col-lg-12">
<div class="form-inline form-padding">
<form action="studentlist.php" method="post">
<input type="text" class="form-control" name="search"
placeholder="Search Students...">
<button type="submit" name="submitsearch" class="btn btn-
success"><i class="fa fa-search"></i> Search</button>
<button type="button" class="btn btn-primary" data-
toggle="modal" data-target="#addstudent"><i class="fa fa-user"></i> Add
Student</button>
</form>
</div>
</div>

GOLDEN WEST COLLEGES Page 81


Golden West Colleges
College of Information Technology Education

</div>
<!--/.row -->
<hr />
<div class="row">
<div class="col-lg-12">
<?php if(isset($_GET['r'])): ?>
<?php
$r = $_GET['r'];
if($r=='added'){
$class='success';
}else if($r=='updated'){
$class='info';
}else if($r=='deleted'){
$class='danger';
}else if($r=='added an account'){
$class='success';
}else if($r=='has already an account'){
$class='info';
}else{
$class='hide';
}
?>
<div class="alert alert-<?php echo $class?> <?php echo $classs;
?>">
<strong>1 student successfully <?php echo $r; ?>!</strong>
</div>
<?php endif; ?>
</div>
</div>
<div class="row">
<div class="col-lg-12">

<div class="table-responsive">
<table class="table table-striped">
<thead>
<tr>
<th>#</th>
<th>Student ID</th>
<th>Firstname</th>
<th>Lastname</th>
<th class="text-center">Action</th>
</tr>
</thead>
<tbody>
<?php $c = 1; ?>

GOLDEN WEST COLLEGES Page 82


Golden West Colleges
College of Information Technology Education

<?php while($row = mysql_fetch_array($student)): ?>


<tr>
<td><?php echo $c;?></td>
<td><a href="edit.php?type=student&id=<?php echo
$row['id']?>"><?php echo $row['studid'];?></a></td>
<td><?php echo $row['fname'];?></td>
<td><?php echo $row['lname'];?></td>
<td class="text-center">
<a
href="data/settings_model.php?q=addaccount&level=student&id=<?php echo
$row['id']?>" class="confirmacc"><i class="fa fa-key fa-2x text-
warning"></i></a>
<a href="studentsubject.php?id=<?php echo
$row['id'];?>" title="Update Subject"><i class="fa fa-bar-chart-o fa-2x text-
success"></i></a> &nbsp;
<a
href="data/data_model.php?q=delete&table=student&id=<?php echo
$row['id']?>" title="Remove"><i class="fa fa-times-circle fa-2x text-danger
confirmation"></i></a></td>
</tr>
<?php $c++; ?>
<?php endwhile; ?>
<?php if(mysql_num_rows($student) < 1): ?>
<tr>
<td colspan="5" class="bg-danger text-danger text-
center">*** EMPTY ***</td>
</tr>
<?php endif; ?>
</tbody>
</table>
</div>
</div>
</div>

</div>
<!-- /.container-fluid -->

</div>
<!-- /#page-wrapper -->
<?php include('include/modal.php'); ?>
<?php include('include/footer.php'); ?>

GOLDEN WEST COLLEGES Page 83


Golden West Colleges
College of Information Technology Education

grading/admin/include/studentsubject.php
<?php
include('include/header.php');
include('include/sidebar.php');
include('data/student_model.php');
include('data/data_model.php');

$id = $_GET['id'];
$student = $student->getstudentbyid($id);
?>
<div id="page-wrapper">

<div class="container-fluid">

<!-- Page Heading -->


<div class="row">
<div class="col-lg-12">
<h1 class="page-header">
<small>STUDENT SUBJECT</small>
</h1>
<ol class="breadcrumb">
<li>
<i class="fa fa-dashboard"></i> <a
href="index.php">Dashboard</a>
</li>
<li>
<a href="studentlist.php">Students</a>
</li>
<li class="active">
Student Subject
</li>
</ol>
</div>
</div>
<!-- /.row -->
<div class="row">
<div class="col-lg-12">
<?php while($row = mysql_fetch_array($student)): ?>
<h4>Student ID : <?php echo $row['studid']; ?></h4>
<h4>Name : <?php echo $row['fname'].' '.$row['lname']; ?></h4>
<?php endwhile; ?>
<hr />
<div class="table-responsive">
<table class="table table-striped">
<thead>

GOLDEN WEST COLLEGES Page 84


Golden West Colleges
College of Information Technology Education

<tr>
<th>Subject</th>
<th>Teacher</th>
<th class="text-center">Section</th>
<th class="text-center">Semester</th>
<th class="text-center">Remove</th>
</tr>
</thead>
<tbody>
<?php
$r1 = mysql_query("select * from studentsubject where studid=$id");
while($row = mysql_fetch_array($r1)):
$r2 = mysql_query('select * from class where id='.$row['classid'].'');
while($rows = mysql_fetch_array($r2)):
$r3 = mysql_query('select * from teacher where id='.$rows['teacher'].'');
$teacher = null;
if($r3){
$teacher = mysql_fetch_array($r3);
$teacher = $teacher['fname'].' '.$teacher['lname'];
}?>

<tr>
<td><?php echo $rows['subject']; ?></td>
<td><?php echo $teacher ?></td>
<td class="text-center"><?php echo $rows['section']; ?></td>
<td class="text-center"><?php echo $rows['sem']; ?></td>
<td class="text-center"><a
href="data/student_model.php?q=removesubject&studid=<?php echo
$id;?>&classid=<?php echo $rows['id']; ?>"><i class="fa fa-times-circle text-
danger fa-2x confirmation"></i></a></td>
</tr>

<?php endwhile;
endwhile;
?>
</tbody>
</table>
</div>
</div>
</div>

GOLDEN WEST COLLEGES Page 85


Golden West Colleges
College of Information Technology Education

</div>
<!-- /.container-fluid -->

</div>
<!-- /#page-wrapper -->
<?php include('include/footer.php');

grading/admin/include/subjects.php:
<?php
include('include/header.php');
include('include/sidebar.php');
include('data/data_model.php');

$search = isset($_POST['search']) ? $_POST['search']: null;


$subject = $data->getsubject($search);
?>
<div id="page-wrapper">

<div class="container-fluid">

<!-- Page Heading -->


<div class="row">
<div class="col-lg-12">
<h1 class="page-header">
<small>SUBJECT</small>
</h1>
<ol class="breadcrumb">
<li>
<i class="fa fa-dashboard"></i> <a
href="index.php">Dashboard</a>
</li>
<li class="active">
Subject
</li>
</ol>
</div>
</div>
<!-- /.row -->
<div class="row">
<div class="col-lg-12">
<div class="form-inline form-padding">
<form action="subject.php" method="post">
<input type="text" class="form-control" name="search"
placeholder="Search Subject...">

GOLDEN WEST COLLEGES Page 86


Golden West Colleges
College of Information Technology Education

<button type="submit" name="submitsearch" class="btn btn-


success"><i class="fa fa-search"></i> Search</button>
<button type="button" class="btn btn-primary" data-
toggle="modal" data-target="#addsubject">Add Subject</button>
</form>
</div>
</div>
</div>
<!--/.row -->
<hr />
<div class="row">
<div class="col-lg-12">
<?php if(isset($_GET['r'])): ?>
<?php
$r = $_GET['r'];
if($r=='added'){
$class='success';
}else if($r=='updated'){
$class='info';
}else if($r=='deleted'){
$class='danger';
}else{
$class='hide';
}
?>
<div class="alert alert-<?php echo $class?> <?php echo $class;
?>">
<strong>Subject successfully <?php echo $r; ?>!</strong>
</div>
<?php endif; ?>
</div>
</div>
<div class="row">
<div class="col-lg-12">

<div class="table-responsive">
<table class="table table-striped">
<thead>
<tr>
<th>#</th>
<th>Subject Code</th>
<th>Subject Title</th>
<th class="text-center">Units</th>
<th class="text-center">Remove</th>
</tr>

GOLDEN WEST COLLEGES Page 87


Golden West Colleges
College of Information Technology Education

</thead>
<tbody>
<?php $c = 1; ?>
<?php while($row = mysql_fetch_array($subject)): ?>
<tr>
<td><?php echo $c;?></td>
<td><a href="edit.php?type=subject&id=<?php echo
$row['id']?>"><?php echo $row['code'];?></a></td>
<td><?php echo $row['title'];?></td>
<td class="text-center"><?php echo $row['unit'];?></td>
<td class="text-center"><a
href="data/data_model.php?q=delete&table=subject&id=<?php echo
$row['id']?>"><i class="fa fa-times-circle fa-lg text-danger
confirmation"></i></a></td>
</tr>
<?php $c++; ?>
<?php endwhile; ?>
<?php if(mysql_num_rows($subject) < 1): ?>
<tr>
<td colspan="4" class="bg-danger text-danger text-
center">*** EMPTY ***</td>
</tr>
<?php endif; ?>
</tbody>
</table>
</div>
</div>
</div>

</div>
<!-- /.container-fluid -->

</div>
<!-- /#page-wrapper -->
<?php include('include/modal.php'); ?>
<?php include('include/footer.php'); ?>

GOLDEN WEST COLLEGES Page 88


Golden West Colleges
College of Information Technology Education

grading/admin/include/teacherslist.php:
<?php
include('include/header.php');
include('include/sidebar.php');
include('data/data_model.php');

$search = isset($_POST['search']) ? $_POST['search']: null;


$subject = $data->getsubject($search);
?>
<div id="page-wrapper">

<div class="container-fluid">

<!-- Page Heading -->


<div class="row">
<div class="col-lg-12">
<h1 class="page-header">
<small>SUBJECT</small>
</h1>
<ol class="breadcrumb">
<li>
<i class="fa fa-dashboard"></i> <a
href="index.php">Dashboard</a>
</li>
<li class="active">
Subject
</li>
</ol>
</div>
</div>
<!-- /.row -->
<div class="row">
<div class="col-lg-12">
<div class="form-inline form-padding">
<form action="subject.php" method="post">
<input type="text" class="form-control" name="search"
placeholder="Search Subject...">
<button type="submit" name="submitsearch" class="btn btn-
success"><i class="fa fa-search"></i> Search</button>
<button type="button" class="btn btn-primary" data-
toggle="modal" data-target="#addsubject">Add Subject</button>
</form>
</div>
</div>
</div>

GOLDEN WEST COLLEGES Page 89


Golden West Colleges
College of Information Technology Education

<!--/.row -->
<hr />
<div class="row">
<div class="col-lg-12">
<?php if(isset($_GET['r'])): ?>
<?php
$r = $_GET['r'];
if($r=='added'){
$class='success';
}else if($r=='updated'){
$class='info';
}else if($r=='deleted'){
$class='danger';
}else{
$class='hide';
}
?>
<div class="alert alert-<?php echo $class?> <?php echo $class;
?>">
<strong>Subject successfully <?php echo $r; ?>!</strong>
</div>
<?php endif; ?>
</div>
</div>
<div class="row">
<div class="col-lg-12">

<div class="table-responsive">
<table class="table table-striped">
<thead>
<tr>
<th>#</th>
<th>Subject Code</th>
<th>Subject Title</th>
<th class="text-center">Units</th>
<th class="text-center">Remove</th>
</tr>
</thead>
<tbody>
<?php $c = 1; ?>
<?php while($row = mysql_fetch_array($subject)): ?>
<tr>
<td><?php echo $c;?></td>
<td><a href="edit.php?type=subject&id=<?php echo
$row['id']?>"><?php echo $row['code'];?></a></td>

GOLDEN WEST COLLEGES Page 90


Golden West Colleges
College of Information Technology Education

<td><?php echo $row['title'];?></td>


<td class="text-center"><?php echo $row['unit'];?></td>
<td class="text-center"><a
href="data/data_model.php?q=delete&table=subject&id=<?php echo
$row['id']?>"><i class="fa fa-times-circle fa-lg text-danger
confirmation"></i></a></td>
</tr>
<?php $c++; ?>
<?php endwhile; ?>
<?php if(mysql_num_rows($subject) < 1): ?>
<tr>
<td colspan="4" class="bg-danger text-danger text-
center">*** EMPTY ***</td>
</tr>
<?php endif; ?>
</tbody>
</table>
</div>
</div>
</div>

</div>
<!-- /.container-fluid -->

</div>
<!-- /#page-wrapper -->
<?php include('include/modal.php'); ?>
<?php include('include/footer.php'); ?>

GOLDEN WEST COLLEGES Page 91


Golden West Colleges
College of Information Technology Education

grading/admin/include/teacherload.php:
<?php
include('include/header.php');
include('include/sidebar.php');
include('data/teacher_model.php');
include('data/data_model.php');

$id = $_GET['id'];
$teacher = $teacher->getteacherbyid($id);
?>
<div id="page-wrapper">

<div class="container-fluid">

<!-- Page Heading -->


<div class="row">
<div class="col-lg-12">
<h1 class="page-header">
<small>TEACHER'S LOAD</small>
</h1>
<ol class="breadcrumb">
<li>
<i class="fa fa-dashboard"></i> <a
href="index.php">Dashboard</a>
</li>
<li>
<a href="teacherlist.php">Teachers</a>
</li>
<li class="active">
Teacher's Load
</li>
</ol>
</div>
</div>
<!-- /.row -->
<div class="row">
<div class="col-lg-12">
<?php while($row = mysql_fetch_array($teacher)): ?>
<h4>Teacher ID : <?php echo $row['teachid']; ?></h4>
<h4>Name : <?php echo $row['fname'].' '.$row['lname']; ?></h4>
<?php endwhile; ?>
<hr />
<div class="table-responsive">
<table class="table table-striped">
<thead>

GOLDEN WEST COLLEGES Page 92


Golden West Colleges
College of Information Technology Education

<tr>
<th class="text-center">Subject</th>
<th class="text-center">Students</th>
<th class="text-center">Section</th>
<th class="text-center">Semester</th>
<th class="text-center">Remove</th>
</tr>
</thead>
<tbody>
<?php
$r1 = mysql_query("select * from class where teacher=$id");
while($row = mysql_fetch_array($r1)):?>
<tr>
<td class="text-center"><?php echo $row['subject']?></td>
<td class="text-center"><a href="classstudent.php?classid=<?php
echo $row['id']?>" target="_blank">View</a></td>
<td class="text-center"><?php echo $row['section']?></td>
<td class="text-center"><?php echo $row['sem']?></td>
<td class="text-center"><a
href="data/teacher_model.php?q=removesubject&teachid=<?php echo
$id;?>&classid=<?php echo $row['id']; ?>"><i class="fa fa-times-circle text-
danger fa-2x confirmation"></i></a></td>
</tr>
<?php endwhile;
?>
</tbody>
</table>
</div>
</div>
</div>

</div>
<!-- /.container-fluid -->

</div>
<!-- /#page-wrapper -->
<?php include('include/footer.php');

GOLDEN WEST COLLEGES Page 93


Golden West Colleges
College of Information Technology Education

grading/admin/include/users.php:
<?php
include('include/header.php');
include('include/sidebar.php');
include('data/settings_model.php');

$search = isset($_POST['search']) ? $_POST['search']: null;


$user = $settings->getuser($search);
?>
<div id="page-wrapper">

<div class="container-fluid">

<!-- Page Heading -->


<div class="row">
<div class="col-lg-12">
<h1 class="page-header">
Settings <small>Users</small>
</h1>
<ol class="breadcrumb">
<li>
<i class="fa fa-dashboard"></i> <a
href="index.php">Dashboard</a>
</li>
<li class="active">
Users
</li>
</ol>
</div>
</div>
<!-- /.row -->
<div class="row">
<div class="col-lg-12">
<?php if(isset($_GET['r']) && $_GET['r']=='deleted'): ?>
<div class="alert alert-danger">
<strong>1 account successfully removed!</strong>
</div>
<?php endif; ?>
<div class="form-inline form-padding">
<form action="users.php" method="post">
<input type="text" class="form-control" name="search"
placeholder="Search by username">
<button type="submit" name="submitsearch" class="btn btn-
success"><i class="fa fa-search"></i> Search</button>
</form>

GOLDEN WEST COLLEGES Page 94


Golden West Colleges
College of Information Technology Education

</div>
</div>
</div>
<hr />
<div class="row">
<div class="col-lg-12">
<div class="table-responsive">
<table class="table table-striped table-bordered">
<thead><tr>
<th>Username</th>
<th>Name</th>
<th>Level</th>
<th>Password</th>
<th>Remove</th>
</tr></thead>
<tbody>
<?php while($row = mysql_fetch_array($user)): ?>
<tr>
<td><?php echo $row['username'];?></td>
<td><?php echo $row['lname'].', '.$row['fname'];?></td>
<td><?php echo $row['level'];?></td>
<td><a href="settings.php?username=<?php echo
$row['username'];?>">Update</a></td>
<td><a
href="data/data_model.php?q=delete&table=userdata&id=<?php echo
$row['id']?>" title="Remove" class="text-danger
confirmation">Remove</a></td>
</tr>
<?php endwhile; ?>
</tbody>
</table>
</div>
</div>
</div>
</div>
<!-- /.container-fluid -->

</div>
<!-- /#page-wrapper -->
<?php include('include/footer.php');

GOLDEN WEST COLLEGES Page 95


Golden West Colleges
College of Information Technology Education

grading/css/plugins.css:

grading/css/bootstrap-theme.min.css:

grading/css/bootstrap.min.css:

grading/css/font-awsome.min.css:

grading/css/sb-admin.css:

grading/css/style.css:

grading/database/grading.sql:
-- phpMyAdmin SQL Dump
-- version 3.4.5
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Nov 27, 2014 at 07:58 AM
-- Server version: 5.5.16
-- PHP Version: 5.3.8

SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";

/*!40101 SET
@OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET
@OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET
@OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;

GOLDEN WEST COLLEGES Page 96


Golden West Colleges
College of Information Technology Education

--
-- Database: `grading`
--

-- --------------------------------------------------------

--
-- Table structure for table `class`
--

CREATE TABLE IF NOT EXISTS `class` (


`id` int(11) NOT NULL AUTO_INCREMENT,
`course` varchar(50) NOT NULL,
`year` varchar(50) NOT NULL,
`section` varchar(50) NOT NULL,
`sem` varchar(50) NOT NULL,
`teacher` varchar(100) NOT NULL,
`subject` varchar(100) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=15 ;

--
-- Dumping data for table `class`
--

INSERT INTO `class` (`id`, `course`, `year`, `section`, `sem`, `teacher`, `subject`)
VALUES
(4, 'BSIT', 'III', 'A', '2nd', '3', 'IT104'),
(7, 'BSIT', 'III', 'A', '2nd', '5', 'IT103'),
(8, 'BSIT', 'I', 'D', '1st', '3', 'IT100'),
(9, 'BSIT', 'I', 'C', '1st', '3', 'IT103'),
(10, 'BSIT', 'IV', 'A', '2nd', '5', 'IT113'),
(14, 'BSIT', 'I', 'D', '2nd', '4', 'IT100');

-- --------------------------------------------------------

--
-- Table structure for table `log`
--

CREATE TABLE IF NOT EXISTS `log` (


`id` int(11) NOT NULL AUTO_INCREMENT,
`date` varchar(50) NOT NULL,
`activity` varchar(100) NOT NULL,

GOLDEN WEST COLLEGES Page 97


Golden West Colleges
College of Information Technology Education

PRIMARY KEY (`id`)


) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=29 ;

--
-- Dumping data for table `log`
--

INSERT INTO `log` (`id`, `date`, `activity`) VALUES


(24, '11-27-2014', 'update password of username admin'),
(25, '11-27-2014', 'update password of username 0001-2014'),
(26, '11-27-2014', 'add new teacher af df'),
(27, '11-27-2014', 'update teacher afsdfs dfsdf'),
(28, '11-27-2014', 'delete afsdfs from teacher');

-- --------------------------------------------------------

--
-- Table structure for table `student`
--

CREATE TABLE IF NOT EXISTS `student` (


`id` int(11) NOT NULL AUTO_INCREMENT,
`studid` varchar(50) NOT NULL,
`fname` varchar(100) NOT NULL,
`lname` varchar(100) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=11 ;

--
-- Dumping data for table `student`
--

INSERT INTO `student` (`id`, `studid`, `fname`, `lname`) VALUES


(1, '0827-2007', 'Jimmy', 'Lomocso'),
(2, '0826-2007', 'Rolan', 'Algara'),
(3, '0983-2007', 'Mark', 'Pasicaran'),
(4, '0732-2008', 'Fernando', 'Genon'),
(5, '0001-2014', 'Cherry', 'Aguaviva');

-- --------------------------------------------------------

--
-- Table structure for table `studentsubject`
--

GOLDEN WEST COLLEGES Page 98


Golden West Colleges
College of Information Technology Education

CREATE TABLE IF NOT EXISTS `studentsubject` (


`id` int(11) NOT NULL AUTO_INCREMENT,
`studid` varchar(50) NOT NULL,
`classid` int(11) NOT NULL,
`att1` float NOT NULL,
`att2` float NOT NULL,
`att3` float NOT NULL,
`exam1` float NOT NULL,
`exam2` float NOT NULL,
`exam3` float NOT NULL,
`quiz1` float NOT NULL,
`quiz2` float NOT NULL,
`quiz3` float NOT NULL,
`project1` float NOT NULL,
`project2` float NOT NULL,
`project3` float NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=36 ;

--
-- Dumping data for table `studentsubject`
--

INSERT INTO `studentsubject` (`id`, `studid`, `classid`, `att1`, `att2`, `att3`,


`exam1`, `exam2`, `exam3`, `quiz1`, `quiz2`, `quiz3`, `project1`, `project2`,
`project3`) VALUES
(14, '2', 8, 76, 66, 66, 78, 66, 66, 80, 66, 66, 90, 66, 66),
(15, '2', 9, 78, 78, 87, 74, 66, 88, 85, 77, 88, 90, 90, 75),
(16, '1', 9, 76, 100, 67, 90, 85, 66, 80, 90, 66, 100, 50, 66),
(23, '1', 4, 87, 50, 50, 98, 50, 50, 78, 50, 50, 89, 50, 50),
(24, '2', 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0),
(25, '3', 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0),
(26, '2', 10, 100, 90, 100, 75, 70, 75, 78, 90, 80, 80, 80, 75),
(27, '1', 10, 100, 100, 100, 80, 85, 80, 75, 90, 90, 80, 90, 95),
(28, '3', 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0),
(29, '4', 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0),
(31, '5', 4, 90, 100, 80, 75, 80, 75, 80, 80, 90, 50, 75, 90),
(33, '3', 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0),
(35, '1', 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);

-- --------------------------------------------------------

--
-- Table structure for table `subject`
--

GOLDEN WEST COLLEGES Page 99


Golden West Colleges
College of Information Technology Education

CREATE TABLE IF NOT EXISTS `subject` (


`id` int(11) NOT NULL AUTO_INCREMENT,
`code` varchar(50) NOT NULL,
`title` varchar(100) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=9 ;

--
-- Dumping data for table `subject`
--

INSERT INTO `subject` (`id`, `code`, `title`) VALUES


(1, 'IT100', 'IT Fundamentals'),
(2, 'IT104', 'System Analysis Design'),
(4, 'IT103', 'Basic Programming'),
(5, 'IT113', 'Capstone Project');

-- --------------------------------------------------------

--
-- Table structure for table `teacher`
--

CREATE TABLE IF NOT EXISTS `teacher` (


`id` int(11) NOT NULL AUTO_INCREMENT,
`teachid` varchar(50) NOT NULL,
`fname` varchar(100) NOT NULL,
`lname` varchar(100) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=7 ;

--
-- Dumping data for table `teacher`
--

INSERT INTO `teacher` (`id`, `teachid`, `fname`, `lname`) VALUES


(3, '12345', 'James', 'Castillo'),
(4, '0823-0000', 'Jimmy', 'Lomocso'),
(5, '9082-2006', 'Robert', 'Quingking');

-- --------------------------------------------------------

--
-- Table structure for table `userdata`

GOLDEN WEST COLLEGES Page 100


Golden West Colleges
College of Information Technology Education

--

CREATE TABLE IF NOT EXISTS `userdata` (


`id` int(11) NOT NULL AUTO_INCREMENT,
`username` varchar(100) NOT NULL,
`password` varchar(100) NOT NULL,
`fname` varchar(100) NOT NULL,
`lname` varchar(100) NOT NULL,
`level` varchar(100) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=24 ;

--
-- Dumping data for table `userdata`
--

INSERT INTO `userdata` (`id`, `username`, `password`, `fname`, `lname`, `level`)


VALUES
(1, 'admin', 'd033e22ae348aeb5660fc2140aec35850c4da997', 'admin', 'admin',
'admin'),
(11, '9082-2006', '4b8815283c3940186e173f051af7e0b69249773c', 'Robert',
'Quingking', 'teacher'),
(13, '0823-0000', 'd033e22ae348aeb5660fc2140aec35850c4da997', 'Jimmy',
'Lomocso', 'teacher'),
(18, '0001-2014', 'd033e22ae348aeb5660fc2140aec35850c4da997', 'Cherry',
'Aguaviva', 'student'),
(20, '0827-2007', 'f04fa54b89f3d0625862b89b2df7dee113cb322f', 'Jimmy',
'Lomocso', 'student'),
(21, '0023-2008', '8da0de097e7faaf2fbaccdf3abb5c9f1940606c1', 'James',
'Castillo', 'teacher'),
(22, '12345', '8cb2237d0679ca88db6464eac60da96345513964', 'James',
'Castillo', 'teacher'),
(23, '0983-2007', '770b14efc367b23a71ecd25141aea6ec5e55d2fd', 'Mark',
'Pasicaran', 'student');

/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT


*/;
/*!40101 SET
CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION
*/;

GOLDEN WEST COLLEGES Page 101


Golden West Colleges
College of Information Technology Education

Programming Language

PHP: Hypertext Preprocessor (or simply PHP) is a general-purpose


programming language originally designed for web development. It was
originally created by Rasmus Lerdorf in 1994; the PHP reference
implementation is now produced by The PHP Group. PHP originally stood
for Personal Home Page, but it now stands for the recursive initialism PHP:
Hypertext Preprocessor.
PHP code may be executed with a command line interface (CLI), embedded
into HTML code, or it can be used in combination with various web template
systems, web content management systems, and web frameworks. PHP code is
usually processed by a PHP interpreter implemented as a module in a web

GOLDEN WEST COLLEGES Page 102


Golden West Colleges
College of Information Technology Education

server or as a Common Gateway Interface (CGI) executable. The web server


combines the results of the interpreted and executed PHP code, which may be
any type of data, including images, with the generated web page. PHP can be
used for many programming tasks outside of the web context, such
as standalone graphical applications and robotic drone control.
The standard PHP interpreter, powered by the Zend Engine, is free
software released under the PHP License. PHP has been widely ported and can
be deployed on most web servers on almost every operating
system and platform, free of charge.
The PHP language evolved without a written formal specification or standard
until 2014, with the original implementation acting as the de facto standard
which other implementations aimed to follow. Since 2014, work has gone on to
create a formal PHP specification.

Special Purpose Language Tools

Special purpose Language Tools were also used, particularly :

PHP for the creation of tables and database and in conjunction with

Visual Basic for Application. MS Word for the documentation of the

system MS Paint for the developing of the Data Flow Diagram and

screen printing and cropping for screenshots used in documentation of

the system. Adobe Photoshop for image editing.

This is a graphics editor that is most popularly used because of

programs for image manipulation. It is used widely by graphics

professionals for all sorts of tasks including website design. Developed

by Adobe Systems Inc. Photoshop is considered one of the leaders in

photo editing software.

System Testing Plan


In this part the system is tested. The separate modules are brought

together and tested as a complete system. The system is tested to ensure

GOLDEN WEST COLLEGES Page 103


Golden West Colleges
College of Information Technology Education

that interfaces between modules work and with the expected volume of

data and that the system does what the user requires.

Testing Stages

We employed three testing stages in the development of the

system. The first testing stage was during the creation of the program

forms and modules. We tested each form and module with random data

to know if it is working.

The second testing stage was conducted when the different

program modules were put together.

Testing begun immediately after joining the first two modules to

make sure that data are synchronized, the interfaces between the

modules work, and that there are no broken links. This process was

repeated until all the modules were put together.

The last stage was testing the entire system using sample data.

Here, we asked the help of other students to try our system to check if all

unexpected data entries are covered. We also tested the system using

other computers and laptops to test the accuracy of the path were data

are stored.

Testing Schedules
 February 10 – Individual testing of all user forms and modules,

checking for the accuracy of grade computation and if the

information entered and produced are added and stored in the

GOLDEN WEST COLLEGES Page 104


Golden West Colleges
College of Information Technology Education

database.

 February 13– User form testing and debugging of errors, like no

data display.

 February 23– System test. We tested the whole system after errors

were corrected.

 March 2 –the system was tested in other computers. No problems

 were encountered.

GOLDEN WEST COLLEGES Page 105


Golden West Colleges
College of Information Technology Education

Chapter 8
SYSTEM IMPLEMENTATION PLAN

The Online Grading System for Golden West Colleges is designed to

be a online system. a networking connectivity is needed and it can be

installed and executed in any number of computer units.

Resource Requirements

This chapter presents, analyzes, and interprets the data gathered in this

study. Moreover, it also describes the existing business processes of G-Resort

in terms of their assets management.

The Existing Process of Online Grading System. They use manual system

in their inventory which they tend to manually check their stocks and

equipment.

The resort uses pen-and-paper system, a manual way of recording and

listing of Stocks and supplies. The process, sometimes prone to mistake in

recording sales especially when the record is misplace.

Technical Requirements. The technical requirements are composed of the

system requirements and manpower.

Manpower. Manpower is a major need for the success of every business .More

people means more manpower which is necessary for faster completion of

different tasks.

GOLDEN WEST COLLEGES Page 106


Golden West Colleges
College of Information Technology Education

The minimum Hardware Requirements. Hardware requirements are the

hardware that are used in the system these includes processor, memory, Hard

disk drive, Screen Resolution and Optical Drive.

Table 3.1 The Minimum Hardware Requirements

Requirement Server-side Client -Side


Processor Intel® Celeron TM 2 Intel® Celeron TM 2
CPU N3350 CPU N3350
(or compatible (or compatible
processor) processor)
Memory 4gb 4gb
Hard disk drive 500gb 500gb
Screen resolution 1366x768 1280x1024
Optical Drive DVD - Rom Drive None
Peripherals Mouse, Keyboard, LCD Mouse, Keyboard, LCD
Screen, Printer Screen, Printer

Table 3.1 Shows the Hardware Requirement for Server-Side and Client-

Side to run in the system were processor Intel® Celeron l® CPU N3350 (or

compatible Processor) and above for faster running of the system, a memory

having 4 GB and above to prevent a non-responding of the system. And 500 GB

hard disk drives for the reason that there is a responsibility to reduce the

performance of some application of the project. The screen resolution is 1366 x

768, optical drive monitor was included as the hardware components of the

system and easy managing.

GOLDEN WEST COLLEGES Page 107


Golden West Colleges
College of Information Technology Education

The Minimum Software Requirement. The clients must meet the system

requirements in order to run and use the RAD in a live environment. The

operating system and Application Software are shown in Table 3.2

Table 3.2 The Minimum Software Requirements

Requirement Server-side Client-side


Operating System Microsoft Windows 7 Microsoft Windows 7
or higher or higher
Application Software My SQL Connector My SQL Connector
Xampp 5.3 or Higher Xampp 5.3 or Higher
Sublime Text v.3
Google Chrome Google Chrome
Internet Explorer Internet Explorer

Human Resource Requirements


The system that we developed is simple and user-friendly

such that no special skills or training are needed to operate it. Basically,

the system will need a System Administrator and a user. The System

Administrator (Admin) is the one in-charge of the entire system. This

person should be knowledgeable in basic computer operation, like

opening and closing programs and file management, The user is any

person who knows how to use a computer. For this study, the users are

the teachers and the Registrar of Golden West Colleges.

GOLDEN WEST COLLEGES Page 108


Golden West Colleges
College of Information Technology Education

Implementation Plan

Site Preparation
Prior to the installation of the Online Grading System,

a site inspection is conducted to determine if the available

computer units of the school meet the hardware and software

requirements of the system. The computer units that will be used are

then placed in a designated space within the Registrar’s Office. This is

where the teachers will be encoding their grades.

Personnel Training

A five-day training program on the operation of the system will

be conducted for all users. This training program will be held at

Golden West Colleges and will be scheduled after the end of the of

current school year, when the teachers are no longer busy with their

school work.

The training program will include a introduction to the developed

system, emphasizing on how the usual activities done in the manual

system recording of student information and the computation

of grades are automated. Program modules that perform each step of

the manual system will be explained, highlighting the results of the

processes and their connection to the entire system. Each menu option

will be tackled so that the users would know which option to choose for

their intended activity.

GOLDEN WEST COLLEGES Page 109


Golden West Colleges
College of Information Technology Education

The main part of the training program will be on running the

entire system with sample data so that the users will be confident in

using the system. The sample data that will be used are the previous

records of the students so that the accuracy of computations can be

stressed and the users would have a clear understanding of the entire

system.

System Conversion

All of the computer units of Golden West Colleges are operating in

MS Windows XP and MS Windows 7, hence, minimal system conversion

is required.

Upon installation of the Online Grading System, program modules

are checked and the necessary alterations are done to ensure the path

where databases will be created and stored is correct. This is done for

every installation of the system.

Data Conversion

Minimal data conversion is needed because the Online Grading

System will be implemented during the enrollment period for school year

2017-2018. New data from students will be encoded


upon their enrollment.

GOLDEN WEST COLLEGES Page 110


Golden West Colleges
College of Information Technology Education

Implementation Schedule

The implementation of the Online Grading System will be

implemented on May 5, 2018, the start of the enrollment period for

school year 2017-2018.

System Maintenance Plan

Inevitably, the system will need maintenance. Maintenance

operation takes place after the system has been installed.

Periodic maintenance of the system will be performed to address

problems that might arise during post implementation period. Contact

numbers will be provided to Golden West Colleges that they can use in

case of problems arising from the use of the system.

GOLDEN WEST COLLEGES Page 111


Golden West Colleges
College of Information Technology Education

Appendix
BIBLIOGRAPHY
Books
Cabros, William C., A Feasibility Study of A Online Management,
Academic and Research Information System for the Mountain State
Agricultural College, 1979

Valacich Joseph et al, Essentials of Systems Analysis & Design, 5th Edition,

Pearson Education South Asia PTE. LTD., 2004

Campbell, Ralph H., Automating Systems, California: Wadsworth Publishing,


1986

Websites

Computer Information in Education

http://www.wikibook.org/

http://dspace.slu.edu.ph/

Simple Grading System using Visual Basic.Net


http://www.sourcecodester.com/visual-basic /

A simple Student Registration and Grading System by Reydan Gatchalian 2006

http://www.planet-source-code.com/

Student Grading System 1.0 by Jake Rodriguez Pomperada


http://www.planet-source-code.com/

Student Grading System - Visual Basic


www.a1vbcode.com/

Resource Persons
Hernan Ranchez Leo Virgil Estaquio
Administrator CITE Dean
Golden West Colleges Golden West Colleges
Alaminos City, Pangasinan Alaminos City, Pangasinan

GOLDEN WEST COLLEGES Page 112

Você também pode gostar