<?php
Include_Once("class.template.php");
$tpls=new template;
$tpls->tplsAreHere(Array("main"=>"tutorial4.tpl"));
$d_s=Array("Dream Mixes 3"=>Array("01. Prime Time",
"02. Astrophobia 'Red Supernova Remix'",
"03. Stereolight",
"04. Diamonds and Dust",
"05. Blue Spears",
"06. Meng Tian 'Smart Machine Remix'",
"07. Girl on the stairs 'Rien ne va plus 2001'",
"08. The spirit of the czar",
"09. The comfort zone "),
"Mota Atma"=>Array( "01. The Courage To Lose",
"02. For The Summit Only",
"03. No Pleasure No Pain",
"04. Royal Way Of Privacy",
"05. Phoenix Burning",
"06. Prophet In Chains",
"07. Snow On Angels Feather",
"08. A Fair Days Wage",
"09. Brain Offender",
"10. A Day In Liberty Valley"));
//DISKS is a cycle in a Main template
$with_DISKS=&$tpls->t["main"]->c["DISKS"];//typeing saveing
//SONGS is a SubCycle in a DISKS
$with_SONGS=&$tpls->t["main"]->c["DISKS"]->c["SONGS"];//typeing saveing
$tpls->t["main"]->Values(Array("artist"=>"Tangerine Dream"));
ForEach($d_s as $disk=>$songs){
$with_DISKS->Values(Array("DISK"=>$disk));
ForEach($songs as $song){
$with_SONGS->Values(Array("SONG"=>$song));
$with_SONGS->NextRound();
}
$with_SONGS->PushUp();
$with_DISKS->NextRound();
}
$with_DISKS->PushUp();
print $tpls->GetOut('main');
?>
|