draw("MPfolyoirat_hirlevel", true); // Főmenü $tpl = new Tpl; $tpl->assign("HL_FORM", $HL_FORM); $buffer = $tpl->draw("MPfolyoirat_main", true); echo iconv("UTF-8", "iso-8859-2", $buffer) ; } // Adott folyóirat számainak megjelenítése else { // Hírlevél blokk template (fejlécnek lesz átadva) $tpl = new Tpl; $HL_FORM = $tpl->draw("MPfolyoirat_hirlevel", true); // Fejléc $tpl = new Tpl; $tpl->assign("targy", $targy); $tpl->assign("HL_FORM", $HL_FORM); $buffer = $tpl->draw("MPfolyoirat_list_header", true); echo iconv("UTF-8", "iso-8859-2", $buffer) ; mysql_query("SET NAMES utf8"); $cmd = "SELECT * FROM MozaPortal.folyoirat WHERE targy = '$targy' AND visible = 1 ORDER BY ev DESC, szam DESC"; $query = mysql_query_log($cmd); while ($row = mysql_fetch_assoc($query)) { $cmd1 = "SELECT * FROM MozaPortal.folyoirat_tartalom WHERE folyoiratID = '{$row['id']}' ORDER BY oldal"; $query1 = mysql_query_log($cmd1); while ($row1 = mysql_fetch_assoc($query1)) { $row['titles'][] = $row1; } if ($targy != 'opus') { $row['szam'] .= "."; $row['szamtext'] = "szám"; } $tpl = new Tpl; $tpl->assign("row", $row); $buffer = $tpl->draw("MPfolyoirat_list", true); echo iconv("UTF-8", "iso-8859-2", $buffer) ; } // Lábléc $tpl = new Tpl; $tpl->assign("targy", $targy); $buffer = $tpl->draw("MPfolyoirat_list_footer", true); echo iconv("UTF-8", "iso-8859-2", $buffer) ; } include_once("footer.php"); ?>