Example #1
0
File: ex3.php Project: shupp/BTS
<?php

$names_array[0] = array('first' => 'John', 'last' => 'Parker');
$names_array[1] = array('first' => 'Matt', 'last' => 'Timmons');
$names_array[2] = array('first' => 'Joe', 'last' => 'Shmoe');
$names_array[3] = array('first' => 'Fred', 'last' => 'Hamilton');
require_once 'BTS2.php';
$tpl = new BTS2();
$tpl->assign('title', "Here's a List of names, with cycling tr bgcolors:");
$tpl->assign('names', $names_array);
$out = $tpl->display('tpl3.tpl', 1);
echo $out;
Example #2
0
File: ex1.php Project: shupp/BTS
<?php

require_once 'BTS2.php';
$tpl = new BTS2('../examples/templates');
$tpl->assign('title', 'Welcome to my web site');
$tpl->display('tpl1.tpl');
Example #3
0
File: ex2.php Project: shupp/BTS
<?php

$name_array = array('first' => 'bill', 'last' => 'shupp');
require_once 'BTS2.php';
$tpl = new BTS2();
$tpl->assign('title', 'Welcome to my web site');
$tpl->assign('name', $name_array);
$tpl->display('tpl2.tpl');
Example #4
0
File: ex4.php Project: shupp/BTS
<?php

$names_array[0] = 'bill';
$names_array[1] = 'david';
$names_array[2] = 'bob';
$names_array[3] = 'steve';
$names_array[4] = 'mike';
require_once 'BTS2.php';
$tpl = new BTS2();
$tpl->assign('title', "Here's a List of names, with cycling tr bgcolors:");
$tpl->assign('names', $names_array);
$tpl->assign('name_selected', 'steve');
$out = $tpl->display('tpl4.tpl', 1);
echo $out;