Location: PHPKode > projects > Automated Tutorials Script > TG Client/index.php
<?php
	
	include("init.php");
	$tpl = new TemplatePower("templates/".$config['site_template']."/index.html");
	$tpl->assignInclude("header", "templates/".$config['site_template']."/header.html");
	$tpl->assignInclude("footer", "templates/".$config['site_template']."/footer.html");
	$tpl->prepare();
	
	
	require_once("inc/pagehead.php");
	
	
	
	foreach($tutorialListArray['tutorialsdata']['tutoriallist'] as $tutorialList)
	{
		if(is_array($tutorialList))
		{
			foreach($tutorialList as $key=>$tutorialInfo)
			{
				$tpl->newBlock("TUTORIALLIST");
				$tpl->assign("TUTORIALTITLE", $tutorialInfo['title']);
				$tpl->assign("TUTORIALTHUMBNAIL", $tutorialInfo['thumbnail']);
				$tpl->assign("TUTORIALURL", $tutorialInfo['tutorialurl']);
				$tpl->assign("TUTORIALAUTHOR", $tutorialInfo['author']);
				$tpl->assign("TUTORIALDATE", date("d F Y", strtotime($tutorialInfo['added'])));
				$tpl->assign("TUTORIALCATEGORY", $simpleCategoryArray[$tutorialInfo['category']]);
				$tpl->assign("TUTORIALSUBCATEGORY", $simpleSubCategoryArray[$tutorialInfo['subcategory']]);
				$tpl->assign("TUTORIALDIFFICULTY", $tutorialInfo['difficulty']);
				$tpl->assign("TUTORIALVIEWS", $tutorialInfo['views']);
				$tpl->assign("TUTORIALVOTES", $tutorialInfo['votes']);
				$tpl->assign("TUTORIALRATING", $tutorialInfo['rating']);
			}
		}
	}
	
	
	$tpl->printToScreen();
	
?>
Return current item: Automated Tutorials Script