"DListeditorials", "");
$tpl->parse("editorialsNoRecords", false);
$tpl->set_var("editorialsScroller", "");
$tpl->parse("Formeditorials", false);
return;
}
// Parse scroller
if(@$db->next_record())
{
if ($iPage == 1)
{
$tpl->set_var("editorialsScrollerPrevSwitch", "_");
}
else
{
$tpl->set_var("PrevPage", ($iPage - 1));
$tpl->set_var("editorialsScrollerPrevSwitch", "");
}
$tpl->set_var("NextPage", ($iPage + 1));
$tpl->set_var("editorialsScrollerNextSwitch", "");
$tpl->set_var("editorialsCurrentPage", $iPage);
$tpl->parse("editorialsScroller", false);
}
else
{
if ($iPage == 1)
{
$tpl->set_var("editorialsScroller", "");
}
else
{
$tpl->set_var("editorialsScrollerNextSwitch", "_");
$tpl->set_var("PrevPage", ($iPage - 1));
$tpl->set_var("editorialsScrollerPrevSwitch", "");
$tpl->set_var("editorialsCurrentPage", $iPage);
$tpl->parse("editorialsScroller", false);
}
}
$tpl->set_var("editorialsNoRecords", "");
$tpl->parse("Formeditorials", false);
}
?>