assign('baseUrl', $baseUrl); $template->assign('header', $aHeader); $template->assign('subheader', $aSubheader); $template->assign('body', formatText($aBody)); $template->assign('image', $aImage); $template->assign('imagewidth', $imageWidth); $template->assign('bgPath', $bgPath); $template->assign('crumpath', ' '); $template->assign('title', $mainTitle." :: ".$aTitle); $template->assign('footer', $footer); //$template->assign('menu', $menuHTML); $template->assign('link', $menuLinks); /* if ($aModule1 > 0) { $newsItems = array(); $result = dbQuery("select id, header, body from articles where type='1' order by created desc limit $numNewsitems"); while (list($id, $header, $teaser) = mysql_fetch_array($result)) { $teaser = formatText($teaser); $teaser = preg_replace("'<[\/\!]*?[^<>]*?>'si", "", $teaser); if (strlen($teaser) > $teaserLength-3) $teaser = substr($teaser, 0, $teaserLength)."..."; $newsItems[] = array('id'=>$id, 'header'=>$header,'teaser'=>$teaser); } $template->assign('news', $newsItems); } if ($aModule2 > 0) { $newsItems = array(); $result = dbQuery("select id, header from articles where type='1' order by created desc "); while (list($id, $header) = mysql_fetch_array($result)) { $sheader = $header; if (strlen($header) > $headerLength-3) $sheader = substr($header, 0, $headerLength)."..."; $newsItems[] = array('id'=>$id, 'sheader'=>$sheader, 'header'=>$header); } $template->assign('newsList', $newsItems); } if ($aModule3 > 0) { $projectItems = array(); $result = dbQuery("select id, header from articles where type='2' order by header"); while (list($id, $header) = mysql_fetch_array($result)) { $sheader = $header; if (strlen($header) > $headerLength-3) $sheader = substr($header, 0, $headerLength)."..."; $projectItems[] = array('id'=>$id, 'sheader'=>$sheader, 'header'=>$header); } $template->assign('projectList', $projectItems); } */ // output template if (!isset($HTTP_GET_VARS['print'])) { $template->display('main.tpl'); } else { $template->display('print.tpl'); } dbClose(); ?>