// index.php - generate output using FastTemplate
// include class file
require("templates/class.FastTemplate.php3");
// include the quote system
require("quotes/quote.php");
// include the menu system
require("templates/menu.php");
//Instantiate the date variable
$today = date("F j, Y");
// instantiate new object
$main = new FastTemplate("./templates/");
// assign names for template files
// "body" now references the template "./templates/main.tpl"
// "header" now references the template "./templates/header.tpl"
$main->define(array(
"header" => "header.tpl",
"body" => "main.tpl"
));
// News Flashes
$main->assign("HLINK1", 'Photo Album');
$main->assign("HINF1", "Click here to find pictures of our members");
$main->assign("HLINK2", 'Beliefs');
$main->assign("HINF2", "Click Here to Find out our beliefs");
$main->assign("HLINK3", 'Ultimate Questions');
$main->assign("HINF3", "Click here to find the truth of the universe");
// Date Function
$main->assign("DATE", $today);
// Webmaster Email
$main->assign("WEBMASTER", 'Webmaster');
// Copyright Information
$main->assign("COPYRIGHT", 'Copyright 2001 Grace Presbyterian Church');
// Implement the Bottom Menu System
$main->assign("BMENU", $menu);
// Implement the Quote System
$main->assign("QUOTES", $herequote);
$main->assign("QUOTEPIC", '');
// Implement the Mission Statement
$main->assign("MISSIONPIC", '
');
$main->assign("MISSION", "The mission of Grace Presbyterian Church is to be a faithful congregation of the Lord's people, glorifying and enjoying God our Creator and Savior, spreading the good news of Christ to McAllen and the world, and building up fellow believers in the joy of God's salvation.");
// Worship Times
$main->assign("WORSHIPPIC", '
');
$main->assign("WORSHIP", '
Sunday A.M. Service: 11:00 a.m.
Sunday P.M. Prayer: 7:00 p.m.
Pastor: Rev. Tom McKeon
Tel: (956) 631-2375
Email: info@gracemcallen.org
Location:
4701 N. 29th St. (@Mile 3 N. Rd.), McAllen
Mailing Address: P.O. Box 4273, McAllen, TX 78502-4273
For More Information click Here
'); // parse template "index" and store in handler "result" $main->parse('ft_header', "header"); $main->parse('ft_body', "body"); // print contents of handler "result" $main->FastPrint('ft_header'); $main->FastPrint('ft_body'); ?>