<?php
 
    include_Once("class.template.php");
 
 
    $tpls = new template;
 
    $tpls->tplsAreHere(Array("MAIN"=>"tutorial3-main.tpl",
 
                              "ROW"=>"tutorial3-rows.tpl"));
 
 
    $tpls->t["MAIN"]->Values(Array("Time"=>Date("Y.m.d. H:i:s")));
 
 
    $Art_URL=Array("Tangerine Dream"=>"http://www.tangerinedream.org/",
 
                     "Klaus Schulze"=>"http://www.klaus-schulze.com/",
 
                 "Loreena McKennitt"=>"http://www.quinlanroad.com/",
 
                     "Mike Oldfield"=>"http://www.mikeoldfield.com/");
 
 
    ForEach($Art_URL as $art=>$url){
 
        $tpls->t["ROW"]->c["ARTS"]->Values(Array("Artist"=>$art,
 
                                         "URL"=>$url));
 
        $tpls->t["ROW"]->c["ARTS"]->NextRound();
 
    }
 
    $tpls->t["ROW"]->c["ARTS"]->PushUp();
 
    //The complet ROW template go into a simple template variable, wich are in a other template.
 
    $tpls->t["MAIN"]->Values(Array("Art"=>$tpls->t["ROW"]->GetOut()));
 
 
    Print $tpls->GetOut("MAIN");
 
 
?>
 
 |