Source code of tbs_us_examples_grouping.php

  1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
 
<?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();