Saint Gregory Academy Official Website

Preview:

Citation preview

TABLE OF CONTENT

I. Acknowledgement---------------------------------------------------------------

II. Student Profile------------------------------------------------------------------

III. Introduction----------------------------------------------------------------------------

IV. Statement of the Problem-----------------------------------------------------

V. Importance of the Problem-------------------------------------------------------

VI. Objective of the Study-----------------------------------------------------------

a. General

Objective------------------------------------------------------------------

b. Specific Objective------------------------------------------------------------------

VII. Time and Place of the Study---------------------------------------------------

a. Gantt chart---------------------------------------------------------------------------

b. Pert/

CPM-----------------------------------------------------------------------------

VIII. Scope and Limitation---------------------------------------------------------------

IX. Definition of Terms-----------------------------------------------------------------

a. Technical Terms-------------------------------------------------------------------

b. Operational Terms---------------------------------------------------------------

X. Tools, Platforms and Language to be Used-------------------------

XI. About Platforms, Language and Tools Used-------------------------

XII. Scope of Future Application-------------------------------------------------

XIII. Data Dictionary-----------------------------------------------------------------------

XIV. Flowchart and DFD-----------------------------------------------------------------

XV. ER Diagram--------------------------------------------------------------------------------

XVI. Screenshots------------------------------------------------------------------------------

XVII. Source Code----------------------------------------------------------------------------

XVIII. System Testing, Implementation and Maintenance---------------

XIX. Bibliography----------------------------------------------------------------------------

XX. Special Notes---------------------------------------------------------------------------

ACKNOWLEDGEMENT

The authors wishes to convey their grateful appreciation to the following

person who in one way or another contributed ti the success and fulfillment of the

study:

Mr. Agelito L. Catajan Jr., adviser, for his, knowledge constructive

criticisms, suggestion, encouragement in refinement of this manuscript;

Mr. Troy Gilson P. Buenaflor, for support, reminders and guidance;

Mr. Ryan John H. Dela Cruz, Department chairperson, for sharing his

knowledge in constructing an effective proposal.

Mr. Jose R. Mojica, Assistant principal of St. Gregory Academy, for

approving the study and giving the authors a challenging task; and the rest of the

staff for helping the authors in data gathering.

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

authors in pursuing their education;

Above all, to God, for the immeasurable love and innumerable blessings,

for the special gifts and making things possible. To Him, the authors humbly

raises their endless thanks and praises.

To all of them, this work is dedicated.

Student Profile

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.

He was graduated primary education in Nazareth School, Pob. I, Gen.

Emilio Aguinaldo, Cavite and secondary education at Gen. Emilio Aguinaldo

National High School, Castaños Cerca, Gen. Emilio Agiunaldo, Cavite. And now

studying in Cavite State University-Naic, Bucana, Naic, Cavite taking Bachelor of

Science in Computer Science.

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

Palangue II, Naic, Cavite.

He finish his elementary education at Palangue Central Elementary

School and secondary education at Naic National High School in Halang Naic,

Cavite. He pursue his college education at Cavite State University- Naic, where

he took up Bachelor of Science in Computer Science.

Ariel Factor Pajarillaga was born on June 01, 1989 at Concepcion,

Gen.Tinio, Nueva Ecija. Fifth among seven seedlings of Mr. Anselmo and Mrs.

Salome Pajarillaga.

He finish his Elementary education at Gen.Tinio East central School and

secondary education at Gen. Tinio National High School. And now studying at

Cavite State University-Naic, taking a Bachelor of Science in Computer Science.

SAINT GREGORY ACADEMY OFFICIAL WEBSITE

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 own benefits of the Gregorian.

The study represents what kind of the school they have and what are the

different features of the school.

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

member, with responsibilities in order to create for the school community a

special atmosphere animated by the Gospel spirit of freedom and charity.

The specific objective of the institution are:

1. To align the vision-mission of the school with the diocesan

vision-mission.

2. To make Religion (Christian Value Formation) as care of the

curriculum.

3. To instill in the faculty and the student the value of academic

excellence.

4. To implement an improved curriculum aiming at quality

education.

5. To guide the students to take a justified in life, to develop the

ability to plan his own life as an individual and to enjoy a rich,

sincere and varied social life; to lead a good life based on the

principles of Catholic morality.

6. To prepare the student to contribute to the economic

development, conversation of natural resources and

preservation of Mother Earth.

7. To provide worthwhile leisure time activities and to encourage

him to participate in various cultural, vocational, community

extension, recreational, social and ecological activities.

8. To prepare the students for engagement in leadership by

providing opportunities for initiative and creativity.

9. To provide and upgrade the necessary and modern facilities of

the school.

10.To instill the Gregorian spirit of academic excellence, service,

leadership and values formation in the life and witness of the

atudents and graduate of Saint Gregory Academy.

Statement of the Problem

This study was conducted to answer the following questions:

1. How will the study provide easy access of the updates about the

School?

2. How will the study enhance the delivery and distribution of the

publication?

3. How will the study be evaluated?

Importance of the study

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

same with their parents.

Objectives of the Study

General Objective

1. Create a system that will ease the promotion of the school and

encourage the other student outside the Gregorian.

2. Design to fast conversation of the student to school that willing to join

the Gregorian.

Time and Place of the Study

a. Gantt Chart

b. Operational Terms

Scope and Limitations of the Study

1. The system can show the different features of the school.

2. This website lets the user be aware on how advance the St. Gregory

Academy facilities have.

3.

4.

Definition of Terms

Technical Terms

Adobe Photoshop CS3 – is a graphics editing program developed and published

by Adobe Systems.

Apache – is a web server notable for playing a key rolr in the initial growth of the

World Wide Web.

Client – is the requesting program or user in a client/server relationship. It is an

application or system that accesses a remote service on another computer

system, known as a server.

CSS – is a style sheet language used to describe the presentation (that is, the

look and formatting) of a document written in a markup language. It’s most

common application is to style web pages written in HTML and XHTML.

Database – is an integrated collection of logically related records or files which

consolidates records into a common pool of data records that provides data for

many applications. A database is a collection of information that is organized so

that it can easily be accessed, managed, and updated.

MySQL – is a relational database management system (RDBMS) which has

more than 6 million installations. MySQL stands for “My Structured Query

Language”. The program runs as a server providing multi-user access to a

number of database.

PHP – is a widely-used, general-purpose scripting language that was originally

designed for web development, to produce dynamic web pages. It can be

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

users) in the same or other computer.

Windows XP – is a line of operating system produce by Microsoft for use on

personal computers, including home and business desktops, notebook

computers, and media center. The name “XP” is short for “experience”.

Operational Terms

Alumni – A graduate of former student of Cavite State Universty – Naic.

Alumni Feature – It is the section of CvSU – Naic Tides which features the

achievements and success of the alumni of the campus.

Clients – those who are able to view the system, able to send comments and

feedbacks to the EIC.

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

staff of the campus.

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

template for the issue, upload pictures edit staff members.

News – Communication of information on current events regarding the campus.

Reports – News or articles for the issue sent by the staffs to the EIC.

Seminars – Seminars participated by the staff or students of CvSU – Naic or the

seminars hosted by the campus.

Staff – News contributor for the issue, able to make and send reports to the EIC,

edit their profile and upload pictures.

DFD Diagram

View Data Feedback

Information Post Data

Context Diagram of Saint Gregory Academy Official Website

View view view view

Latest event, gallery/facilities view

latest news

post pictures

feedback

confirm user and password

D1 Admin

user and password exist

Data Flow Diagram (DFD) of Saint Gregory Academy Official Website

Viewer

0

SGA WEBSITE

Administration

Viewer 1.0

Home Page

2.0

About Us

3.0

Academics

4.0

Student

5.0

Gallery/ Facilities

6.0

Contact Us

7.0

Home Page

Viewer

From user and password user and password exist

confirm user and password

D1 Admin

7.1

News

7.2

Gallery

7.3 Account Setting

7.1.1 Post,

Update, Delete

7.2.1 Add,

Delete Picture

7.3.1 Update

User and Password

Flowchart

Start

End

B

C

D

E

F

Home Page A

A

Home

About Us

Academics

Student

Gallery/Facilities

Contact Us

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><?phpinclude ("footer.php");?></body><?phpinclude ("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">

<?phpecho'<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><?phpinclude("footer.php");?><?phpmysql_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>&nbsp;&nbsp;&nbsp;<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><?phpinclude ("footer.php");?></body><?phpinclude ("validsign.php");?></html>

admingallery.php

<?phprequire('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><?phpinclude ("footer.php");?></body><?phpinclude ("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><br>

<h2 class="title">(046)4150550/4151703</h2>

</div></div>

</div></div>

</div><?phpinclude ("footer.php");?></body><?phpinclude ("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:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<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><?phpinclude ("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">&nbsp;</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><?phpinclude ("footer.php");?><?phpinclude ("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">&nbsp;</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><?phpinclude ("footer.php");?><?phpinclude ("validsign.php");?></html>

footer.php

<div style="clear: both;">&nbsp;</div><div id="footer">

<p id="legal"><center>Copyright &copy; 2010 SGA. All Rights Reserved. Designed by: "J.A.G" <a href="http://www.facebook.com/">Developers</a>.</center></p></div>

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><?phpinclude("footer.php");?></body><?phpinclude ("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:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<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><?phpinclude("footer.php");?></body><?phpinclude ("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&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<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><?phpinclude("footer.php");?></body><?phpinclude ("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><?phpinclude("footer.php");?></body><?phpinclude ("validsign.php");?></html>

logincorner.php

<div id="login" class="boxed"><h2 class="title"> Administrative </h2><div class="content">

<form id="form1" method="post" action="validsign.php">

<fieldset><legend>Log-in:</legend><label for="txtuser">User Name:</label><input id="txtuser" type="text" name="txtuser"

value="" /><label for="txtpw">Password:</label><input id="txtpass" type="password"

name="txtpass" value="" /><input id="cmdlog" type="submit" name="cmdlog"

value="Log-in" /><p><a href="#">Forgot your password?</a></p></fieldset>

</form></div><h2 class="title">News</h2>

</div>

mission.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&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<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><?phpinclude ("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><?phpinclude("footer.php");?></body><?phpinclude ("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">&nbsp;</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:&nbsp;&nbsp;</label>';echo'<input id="txtnews"

type="text" name="txtnews" value="" /><br><br>';echo'<label

for="txttheme">Theme:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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><?phpmysql_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">

<?php $date=date("F d, Y");$title = $_GET['news'];?><form id="form1" method="post"

action="update.php"><fieldset>

<center> <input type="hidden"

name="txttitle" value="<?php echo $title; ?>"><br><label for="txtnews">Whats

News:&nbsp;&nbsp;</label><input id="txtnews" type="text"

name="txtnews" value="<?php echo $title; ?>" /><br><br><label

for="txttheme">Theme:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label>

<input id="txttheme" type="text" name="txttheme" value="<?php echo $descrip; ?>" /><br><br>

<?php echo $date; ?><br><br><input id="cmdupdate"

type="submit" name="cmdupdate" value="Update" /></center>';</fieldset>';

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

<?phpif($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>";}

}?>

Recommended