Professional Documents
Culture Documents
Saint Gregory Academy Official Website
Saint Gregory Academy Official Website
I. Acknowledgement---------------------------------------------------------------
III. Introduction----------------------------------------------------------------------------
a. General
Objective------------------------------------------------------------------
b. Specific Objective------------------------------------------------------------------
a. Gantt chart---------------------------------------------------------------------------
b. Pert/CPM----------------------------------------------------------------------------
a. Technical Terms-------------------------------------------------------------------
b. Operational Terms---------------------------------------------------------------
XVI. Screenshots------------------------------------------------------------------------------
XIX. Bibliography----------------------------------------------------------------------------
person who in one way or another contributed ti the success and fulfillment of the
study:
Mr. Ryan John H. Dela Cruz, Department chairperson, for sharing his
approving the study and giving the authors a challenging task; and the rest of the
Classmates for the support and sincere concern that made the authors
strong;
In their very special way, they want to thank their responsible and loving
parents for providing them spiritual and financial support which strengthen the
for the special gifts and making things possible. To Him, the authors humbly
Jojo Mendoza Gunio was born on March 07, 1992 in Gen. Emilio
Aguinaldo, Cavite (Bailen) is the only child of Mr. Justino and Mrs. Wilma Gunio.
National High School, Castaños Cerca, Gen. Emilio Agiunaldo, Cavite. And now
Gilvis Garcia Maralang is the sixth among the seven broods of Mr.
Gaudioso and Mrs. Elvie Maralang. He was born on October 03, 1992 in
School and secondary education at Naic National High School in Halang Naic,
Cavite. He pursue his college education at Cavite State University- Naic, where
Gen.Tinio, Nueva Ecija. Fifth among seven seedlings of Mr. Anselmo and Mrs.
Salome Pajarillaga.
secondary education at Gen. Tinio National High School. And now studying at
INTRODUCTION
We all know that almost all people can access an internet, because it is
the fastest way to access information or data that why the study conducted for
The study represents what kind of the school they have and what are the
Saint Gregory Academy is a catholic school that aims to help the human
person in his pursuit of his ultimate end and of the society of which he is a
vision-mission.
curriculum.
excellence.
education.
5. To guide the students to take a justified in life, to develop the
sincere and varied social life; to lead a good life based on the
the school.
School?
2. How will the study enhance the delivery and distribution of the
publication?
The study entitled “St. Gregory Academy Official Website” was made for
the benefits of the Gregorian staffs and students. It helps the user to easily
access the school information; latest news or events, different features of the
school and others. The system enabled the staffs to post the news or events, to
upload and delete latest photos of activities and latest facilities they have. This
can also be used as a time table for the students to know the forthcoming events
and what so ever changes the management want to inform to all gregorians
General Objective
1. Create a system that will ease the promotion of the school and
the Gregorian.
Time and Place of the Study
a. Gantt Chart
b. Operational Terms
2. This website lets the user be aware on how advance the St. Gregory
3.
4.
Definition of Terms
Technical Terms
by Adobe Systems.
Apache – is a web server notable for playing a key rolr in the initial growth of the
CSS – is a style sheet language used to describe the presentation (that is, the
consolidates records into a common pool of data records that provides data for
more than 6 million installations. MySQL stands for “My Structured Query
number of database.
PHP – is a widely-used, general-purpose scripting language that was originally
embedded into HTML and generally runs on a web server, which needs to be
configured to process PHP code and create web page content from it.
Server – computer handling the request and sending back the HTML file. It is a
computer program that provides services to other computer programs (and their
computers, and media center. The name “XP” is short for “experience”.
Operational Terms
Alumni Feature – It is the section of CvSU – Naic Tides which features the
Clients – those who are able to view the system, able to send comments and
Comments – Written remarks sent by clients regarding the issue or the campus
sent by clients.
CvSU Naic Tides – It is a monthly publication of the administration of CvSU –
Naic. It included events and updates regarding the administration, faculty and
EIC – Editor-in Chief, administrator of the system and the overall in-charge of the
tasks, able to post and create reports, accepts and reject comments, choose
Reports – News or articles for the issue sent by the staffs to the EIC.
Staff – News contributor for the issue, able to make and send reports to the EIC,
0
Viewer SGA Administratio
n
WEBSITE
feedback
confirm
user and password
D1 Admin
Flowchart
Start
About Us
B
Academics
C
Student D
Gallery/Facilities
E
Contact Us
F
End
Source Code
academics.php
<?php
include("header.php");
?>
<div id="wrapper">
<div id="content">
<div id="sidebar">
<?php
include("logincorner.php");
?>
<?php
include("recentupdates.php");
?>
</div>
<div id="main">
<div id="welcome" class="post">
<div id="welcome" class="post">
<h2 class="title">Services</h2>
<div class="story">
<p><strong>Curricular
Offerrings</strong></p>
<p><a
href="preschool.php">Preschool</a></strong>(Nursery and Kinder)</p>
<p><a
href="elementary.php">Elementary</a></strong></p>
<p><a href="highschool.php">High
School</a></strong></p>
</div>
</div>
</div>
</div>
</div>
</div>
<?php
include ("footer.php");
?>
</body>
<?php
include ("validsign.php");
?>
</html>
accset.php
<?php require('adminheader.php');?>
<div id="wrapper">
<div id="content">
<div id="sidebar">
</div>
<div id="main">
<div id="welcome" class="post">
<h2 class="title">Account Settings</h2>
<div class="story">
<?php
mysql_connect('localhost','root','');
mysql_select_db('admin');
$rs =
mysql_query("select * from login");
while($row=mysql_fetch_array($rs)){
$user = $row['user'];
$pass = $row['pass'];
}
?>
<form id="form1" method="post"
action="accset.php">
<fieldset>
<center>
<br>
<label for="txtuser">User Name:</label>
<input id="txtuser" type="text"
name="txtuser" value="<?php echo $user; ?>" /><br><br>
<label for="txtpass">Password:</label>
<input id="txtpass" type="password"
name="txtpass" value="<?php echo $pass; ?>" /><br><br>
<label for="txtpass">Confirm
Password:</label>
<input id="txtpass1" type="password"
name="txtpass1" value="<?php echo $pass; ?>" /><br><br>
<input id="cmdupdate" type="submit"
name="cmdupdate" value="Update" />
</center>
</fieldset>
</div>
</div>
</div>
</div>
</div>
<?php
$un=($_POST['txtuser']);
$pass=$_POST['txtpass'];
$pass1=$_POST['txtpass1'];
if(isset($cmdupdate))
{
if($un=="" || $pass=="")
{ echo "<script>window.alert('Please complete the data');history.go(-
1);</script>";}
elseif($pass!=$pass1)
{echo "<script>window.alert('Password do not Match');history.go(-1);</script>";}
else
{
$aa = "update login set user='$un',pass='$pass'where
user='$user'";
$rx = mysql_query($aa) or die(mysql_error());
echo "<script>window.alert('Account Succesfully
update');</script>";
echo "<script>window.location.href='accset.php';</script>";
}
}
?>
</body>
</html>
addpic.php
<?php require('adminheader.php');?>
<div id="wrapper">
<div id="content">
<div id="main">
<div id="welcome" class="post">
<h2 class="title">Add Picture</h2>
<div class="story">
<?php
echo'<form id="form1" method="post"
action="addpic.php">';
echo'<fieldset>';
echo'<center>';
echo'<br>';
echo'Picture ID:';
echo'<input id="txtid" type="text"
name="txtid"/><br><br>';
echo'Picture caption:';
echo'<input id="txtcaption" type="text"
name="txtcaption"/><br><br>';
echo'Save in:';
echo'<select name="txttype">
<option value="Events"> Events
<option value="Facilities">Facilities
</select>';
echo'<input id="file1" type="file"
name="file1"/><br><br>';
echo'<input id="cmdupload" type="submit"
name="cmdupload" value="Upload" />';
echo'</center>';
echo'</fieldset>';
?>
</div>
</div>
</div>
</div>
</div>
<?php
include("footer.php");
?>
<?php
mysql_connect('localhost','root','');
mysql_select_db("admin");
if($cmdupload)
{
$id=$_POST['txtid'];
$file=($_POST['file1']);
$caption=$_POST['txtcaption'];
$type=$_POST['txttype'];
if ($file=="")
{
echo"<script>alert(\"No file to be uploaded.\");
</script>";
}
elseif ($caption=="")
{
echo"<script>alert(\"No description.\");history.go(-1);</script>";
}
elseif (strlen($caption)<10)
{
echo"<script>alert(\"Description is too short.\");history.go(-
1);</script>";
}
elseif ($id=="")
{
echo"<script>alert(\"No ID.\");history.go(-1);</script>";
}
elseif (!is_numeric($id))
{
echo"<script>alert(\"Invalid ID\");history.go(-1);</script>";
}
elseif ($id<0 || $id==0)
{
echo"<script>alert(\"Invalid ID\");history.go(-1);</script>";
}
else
{
$aa= "SELECT * FROM `tblimage` WHERE `imgid`='".$id."'";
$bb = mysql_query($aa) or die(mysql_error());
if(mysql_num_rows($bb) > 0)
{
echo"<script>alert(\"Item already exist\");history.go(-
1);</script>";
}
else
{
$rs = mysql_query("insert into
tblimage(imgid,imgurl,imgcaption,type) values('$id','$file','$caption','$type')") or
die(mysql_error());
echo"<script>alert(\"Picture save\");</script>";
}
}
}
?>
</body>
</html>
admin.php
<html >
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Saint Gregory Academy</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<link href="default.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form name="form1" method="post" action="index.php">
<div id="header">
<div id="logo">
<h1><marquee scrollAmount="2" scrollDelay="2">St. Gregory Academy... a
school that reaches out and within your reach</marquee></h1>
</div>
</div>
<div id="wrapper">
<div id="content">
<div id="sidebar">
</div>
<div id="main">
<div id="welcome" class="post">
<h2 class="title">Admin Control
Panel</h2>
<div class="story">
<img src="images/news.jpg" name="pic1"
onMouseOver
='pic1.src="images/news1.jpg"'onMouseOut='pic1.src="images/news.jpg"'
onclick=window.location.href='postnews.php' ><br>
<br>
<img src="images/gallery.jpg" name="pic2"
onMouseOver
='pic2.src="images/gallery1.jpg"'onMouseOut='pic2.src="images/gallery.jpg"'
onclick=window.location.href='admingallery.php'> <br>
<br>
<img src="images/account1.jpg" name="pic3"
onMouseOver
='pic3.src="images/account.jpg"'onMouseOut='pic3.src="images/account1.jpg"'
onclick=window.location.href='accset.php' ><br>
<br>
<img src="images/logout.jpg" name="pic4"
onMouseOver
='pic4.src="images/logout1.jpg"'onMouseOut='pic4.src="images/logout.jpg"'
onclick=window.location.href='postnews.php' ><br>
</div>
</div>
</div>
</div>
</div>
<?php
include ("footer.php");
?>
</body>
<?php
include ("validsign.php");
?>
</html>
admingallery.php
<?php
require('adminheader.php');
?>
<div id="wrapper">
<div id="content">
<div id="sidebar">
</div>
<div id="main">
<div id="welcome" class="post">
<h2 class="title">Gallery </h2>
<div class="story">
<p><a href="addpic.php">Add picture</a></p>
<p><a href="picdelete.php">Delete
Picture</a></p>
</div>
</div>
</div>
</div>
</div>
<?php
include ("footer.php");
?>
</body>
<?php
include ("validsign.php");
?>
</html>
adminheader.php
<html >
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Saint Gregory Academy</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<link href="default.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="header">
<div id="logo">
<h1><marquee scrollAmount="2" scrollDelay="1">St. Gregory Academy... a
school that reaches out and within your reach</marquee></h1>
</div>
<div id="menu">
<ul>
<li><a href="postnews.php" title="">News</a></li>
<li><a href="admingallery.php" title="">Gallery</a></li>
<li><a href="accset.php" title="">Account Settings</a></li>
<li><a href="student.php" title="">Log-out</a></li>
</ul>
</div>
</div>
adminnews.php
<form action="delete.php" method="post">
<marquee onMouseOver="this.stop()"onMouseOut="this.start()" scrollAmount="2"
scrollDelay="2" direction="up">
<div id="updates" class="boxed">
<h2 class="title">News</h2>
<div class="content">
<ul>
<li>
<?php
mysql_connect('localhost','root','');
mysql_select_db("admin");
$aa=mysql_query("select * from
tblnews");
while($row=mysql_fetch_array($aa))
{
$title=$row['title'];
$descrip=$row['descrip'];
$date=$row['date'];
echo"<font
color=\"#00688B\">$title</font><br>";
echo"<p>$descrip</p>";
echo"<i>Date
posted<br></i>";
echo"$date <br>";
$delete=$title;
echo "<a
href='update.php?news=$title'>[Update]</a>";
echo "<a
href='deletenews.php?newsdeleted=$title'>[Delete]</a><br><br>";
}
?>
</li>
</ul>
</div>
</div>
</marquee>
</form>
contact.php
<?php
include("header.php");
?>
<div id="wrapper">
<div id="content">
<div id="sidebar">
<?php
include("logincorner.php");
?>
<?php
include("recentupdates.php");
?>
</div>
<div id="main">
<div id="welcome" class="post">
<h2 class="title">Contact St. Gregory Academy:</h2>
<div class="story">
<h2 class="title">St. Gregory Academy </h2>
<h2 class="title">Indang, Cavite</h2>
<p><strong><i><a
href="sga.indang@yahoo.com.ph">sga.indang@yahoo.com.ph</a></i></strong></p><b
r>
<h2 class="title">(046)4150550/4151703</h2>
</div>
</div>
</div>
</div>
</div>
<?php
include ("footer.php");
?>
</body>
<?php
include ("validsign.php");
?>
</html>
deletenews.php
<?php
$delete=$_GET['newsdeleted'];
{
mysql_connect('localhost','root','');
mysql_select_db('admin');
$rs = mysql_query("delete from tblnews where title='$delete'");
echo"<script>alert(\"News in now Deleted\");</script>";
echo"<script>window.location='postnews.php'</script>";
}
?>
deletepic.php
<?php
{
mysql_connect('localhost','root','');
mysql_select_db('admin');
$rs = mysql_query("delete from tblimage where imgid='$pathdeleted'");
echo"<script>alert(\"Picture is now Deleted\");</script>";
echo"<script>window.location='picdelete.php'</script>";
}
?>
elementary.php
<?php
include("header.php");
?>
<div id="wrapper">
<div id="content">
<div id="sidebar">
<?php
include("logincorner.php");
?>
<?php
include("recentupdates.php");
?>
</div>
<div id="main">
<div id="welcome" class="post">
<h2 class="title">Academics
for: &nbs
p;  
; <img src="images/arrowl.jpg" alt="Back"
onclick="history.back()"></h2>
<div class="story">
<font color="#00688B"><p><strong>Grade
1</strong></p></font>
<font color="#00688B"><p>Grade 1 enrollees
should be seven(7) years old even without Pre-School education.</p></font>
<font color="#00688B"><p>Those who are six(6)
years old provided they have completed Nursery and Kinder or 2 years pre-school
course.</p></font>
</div>
</div>
</div>
</div>
</div>
<?php include("footer.php");
?>
</body>
<?php
include ("validsign.php");
?>
</html>
event.php
<?php
include("header.php");
?>
<script type="text/javascript" src="jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="jquery.slidertron-0.1.js"></script>
<style type="text/css">
@import "slidertron.css";
</style>
<div id="wrapper">
<div id="content">
<div id="sidebar">
<?php
include("logincorner.php");
?>
<?php
include("recentupdates.php");
?>
</div>
<div id="main">
<div id="welcome" class="post">
<h2 class="title">Event:</h2>
</div>
</div>
<div id="slideshow">
<div id="foobar">
<div id="col1"><a href="#" class="previous"> </a></div>
<div id="col2">
<div class="viewer">
<div class="reel">
<?php
mysql_connect('localhost','root','');
mysql_select_db("admin");
$type="Events";
$rec=mysql_query("select * from
tblimage where type='$type'");
while($row=mysql_fetch_array($rec))
{
$path=$row['imgurl'];
$caption=$row['imgcaption'];
echo "<div
class=\"slide\"><img src=\"images/$path\" width=\"400\" height=\"250\" />";
echo "<span>";
echo "$caption";
echo"</span></div>";
}
?>
</div>
</div>
</div>
</div>
<div id="col3"><a href="#" class="next"></a></div>
</div>
<script type="text/javascript">
$('#foobar').slidertron({
viewerSelector: '.viewer',
reelSelector: '.viewer .reel',
slidesSelector: '.viewer .reel .slide',
navPreviousSelector: '.previous',
navNextSelector: '.next',
navFirstSelector: '.first',
navLastSelector: '.last'
});
</script>
<div style="clear: both;"></div>
</div>
</body>
<?php
include ("footer.php");
?>
<?php
include ("validsign.php");
?>
</html>
facilities.php
<?php
include("header.php");
?>
<script type="text/javascript" src="jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="jquery.slidertron-0.1.js"></script>
<style type="text/css">
@import "slidertron.css";
</style>
<div id="wrapper">
<div id="content">
<div id="sidebar">
<?php
include("logincorner.php");
?>
<?php
include("recentupdates.php");
?>
</div>
<div id="main">
<div id="welcome" class="post">
<h2 class="title">Facilities:</h2>
</div>
</div>
<div id="slideshow">
<div id="foobar">
<div id="col1"><a href="#"
class="previous"> </a></div>
<div id="col2">
<div class="viewer">
<div class="reel">
<?php
mysql_connect('localhost','root','');
mysql_select_db("admin");
$type="Facilities";
$rec=mysql_query("select *
from tblimage where type='$type'");
while($row=mysql_fetch_array($rec))
{
$path=$row['imgurl'];
$caption=$row['imgcaption'];
echo "<div
class=\"slide\"><img src=\"images/$path\" width=\"400\" height=\"250\" />";
echo "<span>";
echo "$caption";
echo"</span></div>";
}
?>
</div>
</div>
</div>
</div>
<div id="col3"><a href="#" class="next"></a></div>
</div>
<script type="text/javascript">
$('#foobar').slidertron({
viewerSelector: '.viewer',
reelSelector: '.viewer .reel',
slidesSelector: '.viewer .reel .slide',
navPreviousSelector: '.previous',
navNextSelector: '.next',
navFirstSelector: '.first',
navLastSelector: '.last'
});
</script>
<div style="clear: both;"></div>
</div>
</body>
<?php
include ("footer.php");
?>
<?php
include ("validsign.php");
?>
</html>
footer.php
gallery.php
<?php
include("header.php");
?>
<div id="wrapper">
<div id="content">
<div id="sidebar">
<?php
include("logincorner.php");
?>
<?php
include("recentupdates.php");
?>
</div>
<div id="main">
<div id="welcome" class="post">
<h2 class="title">Event</h2>
<div class="story">
<a href="event.php"><img src="images/event.jpg"
width="150" height="150" ></a>
</div>
<h2 class="title">Facilities</h2>
<div class="story">
<a href="facilities.php"><img src="images/4.jpg"
width="150" height="150" ></a>
</div>
</div>
</div>
</div>
</div>
<?php
include("footer.php");
?>
</body>
<?php
include ("validsign.php");
?>
</html>
header.php
<html >
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Saint Gregory Academy</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<link href="default.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form name="form1" method="post" action="index.php">
<div id="header">
<div id="logo">
<h1><marquee scrollAmount="2" scrollDelay="1">St. Gregory Academy... a
school that reaches out and within your reach</marquee></h1>
</div>
<div id="menu">
<ul>
<li><a href="index.php" title="">Home</a></li>
<li><a href="index2.php" title="">About Us</a></li>
<li><a href="academics.php" title="">Academics</a></li>
<li><a href="student.php" title="">Students</a></li>
<li><a href="gallery.php" title="">Gallery/Facilities</a></li>
<li><a href="contact.php" title="">Contact Us</a></li>
</ul>
</div>
</div>
highschool.php
<?php
include("header.php");
?>
<div id="wrapper">
<div id="content">
<div id="sidebar">
<?php
include("logincorner.php");
?>
<?php
include("recentupdates.php");
?>
</div>
<div id="main">
<div id="welcome" class="post">
<h2 class="title">Academics
for: &nbs
p;  
; <img src="images/arrowl.jpg" alt="Back"
onclick="history.back()"></h2>
<div class="story">
<font color="#00688B"><p><strong>High
School</strong></p></font>
<font color="#00688B"><p>For a student to be
eligible for admission to the high schoollevel, he/she must have complete a duly
approved academic elementary course or its equivalent as approved by the Department of
Education. Upon applying for enrollment the student must present:</p></font>
<font color="#00688B"><p>Original copy of
Report Card.</p></font>
<font color="#00688B"><p>Birth Certificate from
NSO.</p></font>
<font color="#00688B"><p>Certificate of good
moral.</p></font>
<font color="#00688B"><p>A certification of
ranking from the principal for those who graduated with honors (First, Second,
Third).</p></font>
</div>
</div>
</div>
</div>
</div>
<?php
include("footer.php");
?>
</body>
<?php
include ("validsign.php");
?>
</html>
history.php
<?php
include("header.php");
?>
<div id="wrapper">
<div id="content">
<div id="sidebar">
<?php
include("logincorner.php");
?>
<?php
include("recentupdates.php");
?>
</div>
<div id="main">
<div id="welcome" class="post">
<h2 class="title">St. Gregory
Academy  
;
<img src="images/arrowl.jpg" alt="Back"
onclick="history.back()"></h2>
<div class="story">
<font color="#00688B"><p><strong>Saint Gregory
Academy</strong> was founded in 1965. It is a catholic school owned and operated by a
corporation of the Diocese of Imus and the people of Indang. Situated in the center of the
town of Indang, Cavite, it is adjacent to the parish church and is opposite the municipal
building.
Looking back in 1964, Msgr. Mauro de Leon, the parish priest of Indang that time
along with a retiree from the government service, thought of putting up a Catholic school,
an institution different from those already operating in the town. They contacted some
interested individuals from the place and after several meetings, they made plans for the
establishment of Saint Gregory Academy in honor of the Patron Saint of the Parish.
It was in July 1965 that Saint Gregory Academy opened its doors to welcome the
first and second year students. Six rooms of the convent were utilized as classroom with
12 full time teachers. Msgr. De Leon served as first Director and Pedro Creencia as the
Principal.
After the year of operation, the Diocese of Imus took over the management and
put up 60% of the capital stock while the lay people contributed 40%.
Complete high school was in operation on the second year and the
academic building was constructed. On April 28, 1967 the school received its Certificate
of Recognition signed by the Secretary of Education, Hon. Carlos P. Romulo.
With the able leadership of the administrators of the school from its inception up
to the present, Saint Gregory Academy has grown gradually. When Fr. Redentor S.
Corpuz was appointed Principal in school year 1980-1981, he continued worked on the
establishment of the Pre-elementary and Elementary Department until their recognition
on April 18, 1983 and 1986 respectively.
With Fr. Corpuz's love and zeal to serve the church through the educational
system and with his managerial skills, he has spent a great deal of his time and effort in
helping the school to improve through the years. He initiated ways and means to raise
funds in order to meet the needs of the growing population. Fundraising was in terms of
holding raffle draws, concerts , and donations and parents. These fund raising activities
had been successful with the cooperation of parents, teachers, and friends. His linkages
with the different agencies and institution have facilitated the student's acquisition of
scholarships for college education. Also, the teachers could easily avail themselves of the
trainings and seminars for their professional upliftment because of these linkages.
Acquisition of books and other equipment has been made easy through the book
foundation and other agencies.
To develop the students academic potentials, leadership, and fellowship, they are
sent to summer camps, trainings, workshops, sport fests, and the like. Likewise, the
school participates in the diocesan program such as teacher's assemblies which aim to
provide a continuing education that will strengthen the teacher's commitment of service
to the faith. Service to the community is also a concern of the present administration.
This is done through community outreach program like putting up livelihood projects to
help augment the income of the beneficiaries. Teaching catechism in the public schools is
also our way of reaching out to the pupils and our way to participate in the evangelization
programs of the church. Making the school facilities available to the church and the
community on special occasions is also a way of reaching out of them.
The school is also involved in helping maintain the ecological balance of our
Mother Earth by providing seedlings to selected students in the different levels to be
planted in their respective homes. The public schools in Indang also received seedlings
from our school.
The principal sees to it that teachers receive salaries that are at par with the
salaries of public school teachers.
Forty-four years is a long stretch of time especially for a school that is trying its
level best to live up to the expectations of parents, students, alumni, the general public
and the principles for which it was founded. Through the years, SGA has tried to provide
its worth by making education relevant and responsive to the needs of the times. Imbued
with the Gregorian spirit of academic excellence, service and values information, it is our
prayer that SGA will continue to grow by molding and guiding our students into
productive citizens and responsible Christians who are Maka-Diyos: makatao,
makabuhay, makabayan, at makakalikasan.</font></p>
</div>
</div>
</div>
</div>
</div>
<?php
include("footer.php");
?>
</body>
<?php
include ("validsign.php");
?>
</html>
index.php
<?php
include("header.php");
?>
<div id="wrapper">
<div id="content">
<div id="sidebar">
<?php
include("logincorner.php");
?>
<?php
include("recentupdates.php");
?>
</div>
<div id="main">
<div id="welcome" class="post">
<h2 class="title">ST. GREGORY ACADEMY</h2>
<div class="story">
<p><strong>PHILOSOPHY AND
OBJECTIVE</strong></p>
<p>Inspirational text:Luke 4:18-19</p>
<p><font color="#00688B">"The spirit of the lord
is upon me,because he has chosen me to bring the good news to the poor. He has sent me
to proclaim liberty to the captive and recovery of sight to the blind, to set free the
oppresed and announce that the time has come when the Lord will save His people."
</font></p>
</div>
</div>
</div>
</div>
</div>
<?php
include("footer.php");
?>
</body>
<?php
include ("validsign.php");
?>
</html>
logincorner.php
<?php
include("header.php");
?>
<div id="wrapper">
<div id="content">
<div id="sidebar">
<?php
include("logincorner.php");
?>
<?php
include("recentupdates.php");
?>
</div>
<div id="main">
<div id="welcome" class="post">
<h2 class="title">St. Gregory
Academy  
;
<img src="images/arrowl.jpg" alt="Back"
onclick="history.back()"></h2>
<h2 class="title">Mission</h2>
<div class="story">
<font color="#00688B"> <p>Our mission is to mold
the school community to be: "Maka-Diyos, makatao, makabuhay, makabayan at
makakalikasan" by providing a wholistic formation.</p></font>
</div>
</div>
</div>
</div>
</div>
<?php
include("footer.php");
?>
</body>
<?php
include ("validsign.php");
?>
</html>
orgchart.php
<?php
include("header.php");
?>
<div id="wrapper">
<div id="content">
<div id="sidebar">
<?php
include("logincorner.php");
?>
<?php
include("recentupdates.php");
?>
</div>
<div id="main">
<div id="welcome" class="post">
<h2 class="title">Organizational Chart</h2><br>
<img src="images/chart.jpg" width="500" height="400" >
</div>
</div>
</div>
</div>
<?php
include("footer.php");
?>
</body>
<?php
include ("validsign.php");
?>
</html>
picdelete.php
<?php require('adminheader.php');?>
<script type="text/javascript" src="jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="jquery.slidertron-0.1.js"></script>
<style type="text/css">
@import "slidertron.css";
</style>
<div id="wrapper">
<div id="content">
<div id="sidebar">
<div id="login" class="boxed">
<div class="content">
</div>
</div>
<div id="updates" class="boxed">
<div class="content">
<ul>
<li></li>
</ul>
</div>
</div>
</div>
<div id="main">
<div id="welcome" class="post">
<h2 class="title"> Click the image that you want to delete!
</h2>
</div>
<br>
</div>
<br>
<br>
<div id="slideshow">
<div id="foobar">
<div id="col1"><a href="#" class="previous"> </a></div>
<div id="col2">
<div class="viewer">
<div class="reel">
<?php
$type=$_POST['txttype'];
mysql_connect('localhost','root','');
mysql_select_db("admin");
$rec=mysql_query("select *
from tblimage");
while($row=mysql_fetch_array($rec))
{
$id=$row['imgid'];
$path=$row['imgurl'];
$caption=$row['imgcaption'];
echo "<div
class=\"slide\"><img src=\"images/$path\" width=\"400\" height=\"250\"
onclick=window.location.href='deletepic.php?pathdeleted=$id' > />";
echo "<span>";
echo "$caption";
echo"</span></div>";
}
?>
</div>
</div>
</div>
<div id="col3"><a href="#" class="next"></a></div>
</div>
<script type="text/javascript">
$('#foobar').slidertron({
viewerSelector:
'.viewer',
reelSelector:
'.viewer .reel',
slidesSelector:
'.viewer .reel .slide',
navPreviousSelector: '.previous',
navNextSelector: '.next',
navFirstSelector: '.first',
navLastSelector: '.last'
});
</script>
<div style="clear: both;"></div>
</div>
</div>
</div>
</body>
</html>
postnews.php
<?php require('adminheader.php');?>
<div id="wrapper">
<div id="content">
<div id="sidebar">
<?php
include("adminnews.php");
?>
</div>
<div id="main">
<div id="welcome" class="post">
<h2 class="title">Post News
</h2>
<div class="story">
<?php
$date=date("F d, Y");
echo'<form id="form1" method="post"
action="postnews.php">';
echo'<fieldset>';
echo'<center>';
echo'<br>';
echo'<label for="txtnews">Whats
News: </label>';
echo'<input id="txtnews" type="text"
name="txtnews" value="" /><br><br>';
echo'<label
for="txttheme">Theme:  
;</label>';
echo'<input id="txttheme" type="text"
name="txttheme" value="" /><br><br>';
echo"$date<br><br>";
echo'<input id="cmdlog" type="submit"
name="cmdpost" value="Post" />';
echo'</center>';
echo'</fieldset>';
?>
</div>
</div>
</div>
</div>
<?php include("footer.php");
?>
<?php
mysql_connect ("localhost", "root", "") or die ('My SQL Error: ' .
mysql_error());
mysql_select_db ("admin");
if($cmdpost)
{
$wn=($_POST['txtnews']);
$theme=$_POST['txttheme'];
if ($wn=="")
{
echo"<script>alert(\"Please enter the Title of your
News.\");history.go(-1);</script>";
}
elseif ($theme=="")
{
echo"<script>alert(\"Please Enter Something About the news you
want to post.\");history.go(-1);</script>";
}
elseif (strlen($theme)<10)
{
echo"<script>alert(\"theme is too short.\");history.go(-
1);</script>";
}
else
{
$aaa = "SELECT * FROM `tblnews` WHERE `title`='".$wn."'";
$bb = mysql_query($aaa) or die(mysql_error());
if(mysql_num_rows($bb) > 0)
{
echo"<script>alert(\"News Name already
exist\");history.go(-1);</script>";
}
else
{
$cc = mysql_query("insert into tblnews (title,descrip,date)
values('$wn','$theme','$date')") or die(mysql_error());
echo"<script>alert(\"News Is Now Posted\");</script>";
echo"<script>window.location='postnews.php'</script>";
}
}
}
?>
</body>
</html>
update.php
<html >
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Saint Gregory Academy</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<link href="default.css" rel="stylesheet" type="text/css" />
</head>
<div id="header">
<div id="logo">
<h1><marquee scrollAmount="2" scrollDelay="2">St. Gregory Academy... a
school that reaches out and within your reach</marquee></h1>
</div>
</div>
<div id="wrapper">
<div id="content">
<div id="sidebar">
<?php
include("adminnews.php");
?>
</div>
<?php
mysql_connect('localhost','root','');
mysql_select_db('admin');
$title = $_GET['news'];
$rs = mysql_query("select * from tblnews where title='$title'");
while($row=mysql_fetch_array($rs)){
$title = $row[0];
$descrip = $row[1];
}
?>
<div id="main">
<div id="welcome" class="post">
<h2 class="title">Update News</h2>
<div class="story">
</div>
</div>
</div>
</div>
<?php
$wn=($_POST['txtnews']);
$theme=$_POST['txttheme'];
$title=$_POST['txttitle'];
if(isset($cmdupdate))
{
$aa = "update tblnews set title='$wn',descrip='$theme',date='$date' where title='$title'";
$rx = mysql_query($aa) or die(mysql_error());
echo "<script>window.alert('record updated');</script>";
echo "<script>window.location.href='postnews.php';</script>";
}
?>
</body>
</html>
validsign.php
<?php
if($cmdlog)
{
$username=$_POST['txtuser'];
$password=$_POST['txtpass'];
mysql_connect ("localhost", "root", "") or die ('My SQL Error: ' .
mysql_error());
mysql_select_db ("admin");
$stuff = mysql_query("SELECT * FROM `login` WHERE user='".$username."' AND
pass='".$password."'") or die("MySQL Login Error: ".mysql_error());
if (mysql_num_rows($stuff) != 0)
{
$row=mysql_num_rows($stuff);
echo"<script>window.location='admin.php'</script>";
}
else
{
echo"<script>alert(\"Login Incorrect. Please Try Again!\");</script>";
}
}
?>