/*
##################################################
#
# Filename..........: $RCSfile: page.php,v $
# Original Author...: Anthony L. Awtrey
# Version...........: $Revision: 0.1 $
# Last Modified By..: $Author: aawtrey $
# Last Modified.....: $Date: 2006/09/19 04:17:55 $
#
# Copyright 2006 Anthony Awtrey
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
*/
$inc_dir = 'include';
while (!is_dir($inc_dir)) {
$relpath .= '../';
$inc_dir = $relpath . 'include';
if ($relpath == '../../../../../') { $relpath=''; break; }
}
$include_path = ':' . $relpath . 'include';
ini_set("include_path", ini_get("include_path").$include_path);
require_once("master.inc");
$page = new Page();
$page->title = "Service Schema";
$page->description = "This page describes the service table and related schema.";
$page->content = <<
| Description | Type |
|---|---|
| Prelude | Music |
| Announcements (our church calls this "In Step With St. Stephen") | Reading |
| Exchange Greetings | Reading |
| Choral Introit | Anthem or Music |
| Call To Worship | Reading |
| Hymn of Praise | Music |
| Prayer of Confession | Reading |
| Assurance of Pardon | Reading |
| Gloria Patri (aka Glory Be To The Father...) | Music |
| Choral Anthem | Anthem or Music |
| Children's Sermon (our church calls this "A Moment With The Children") | Reading |
| Offering (our church calls this "Our Gifts To God") | Music |
| Doxology (aka Praise God from Whom All Blessings Flow...) | Music |
| Prayer Of Dedication | Reading |
| Statement of Faith (typically either the Apostles Creed or Nicene Creed) | Reading |
| The Ascription | Reading |
| Hymn | Music |
| Prayer of Illumination | Reading |
| Sermon | Sermon |
| Closing Hymn | Music |
| Benediction | Reading |
| Response | Anthem or Music |
| Postlude | Music |
A service is composed of service components with some additional fields. They are all linked together with a common service id.
+---------------------+ | service | +---------------------+ | id | | timestamp | | title | (usually the lectionary day description) | subtitle | (usually a "Thought for the day" type thing) +---------------------+
Service components that make up a given service are stored like this:
+---------------------+ | service_component | +---------------------+ | id | | service_id | (reference to service table, id field) | order | (integer indicating the worship order) | stand | (should the congregation stand? boolean y/n) | title | (optional title for component such as Hymn of Praise, Offertory, etc.) | type | (reference to a specific service type table) | type_id | (reference to id in service type table) | person | (name of musician, reader, pastor, etc.) +---------------------+
The service types each have their own table.
+---------------------+ | anthem | (choir anthems from music library) +---------------------+ | id | | account | | title | | composer | | author | | arranger | | publisher | | scripture | | voicing | | pages | | length | | copies | | publish_date | | purchase_date | | lyrics | | notes | +---------------------+ +---------------------+ | music | (freeform entry optionally filled from hymnbook XML file) +---------------------+ | id | | title | | composer | | author | | tune | | lyrics | | notes | +---------------------+ +---------------------+ | reading | (can be a reponsive reading, prayer, creed, etc.) +---------------------+ | id | | content | | notes | +---------------------+ +---------------------+ | scripture | (freeform entry filled from xml file) +---------------------+ | id | | reference | | translation | | content | | notes | +---------------------+ +---------------------+ | sermon | +---------------------+ | id | | title | | theme | | scripture | (the scripture reference used for the sermon) | excerpt | (an optional field for an excerpt from scripture or sermon) | content | | notes | +---------------------+EOF; $page->display(); ?>