PHP Classes

File: examples/tbs_us_examples_grouping.php

Recommend this page to a friend!
  Classes of Skrol29   TinyButStrong template engine   examples/tbs_us_examples_grouping.php   Download  
File: examples/tbs_us_examples_grouping.php
Role: Example script
Content type: text/plain
Description: examples and tests - grouping
Class: TinyButStrong template engine
Template Engine for Pro and Beginners
Author: By
Last change: goes with last TBS version
Date: 5 years ago
Size: 1,267 bytes
 

Contents

Class file image Download
<?php

include_once('tbs_class.php');

$result[0] = array('country'=>'United States', 'city'=>'Washington', 'winner'=>'Bob', 'score'=>100);
$result[1] = array('country'=>'United States', 'city'=>'Washington', 'winner'=>'Julia', 'score'=>99);
$result[2] = array('country'=>'United States', 'city'=>'Washington', 'winner'=>'Mark', 'score'=>78);
$result[3] = array('country'=>'United States', 'city'=>'New York', 'winner'=>'Stanley', 'score'=>110);
$result[4] = array('country'=>'United States', 'city'=>'New York', 'winner'=>'Robert', 'score'=>109);
$result[5] = array('country'=>'France', 'city'=>'Paris', 'winner'=>'Pierre', 'score'=>250);
$result[6] = array('country'=>'France', 'city'=>'Paris', 'winner'=>'Jean', 'score'=>210);
$result[7] = array('country'=>'France', 'city'=>'Paris', 'winner'=>'Gaƫl', 'score'=>120);
$result[8] = array('country'=>'France', 'city'=>'Toulouse', 'winner'=>'Emmanuelle', 'score'=>260);
$result[9] = array('country'=>'France', 'city'=>'Toulouse', 'winner'=>'Louis', 'score'=>240);
$result[10] = array('country'=>'France', 'city'=>'Toulouse', 'winner'=>'Jaques', 'score'=>200);

$TBS = new clsTinyButStrong;
$TBS->LoadTemplate('tbs_us_examples_grouping.htm');
$TBS->MergeBlock('blk_res',$result);
$TBS->Show();

?>