Location: PHPKode > projects > Anantasoft Gazelle CMS > admin/setfrontpage.php
<?php
$output = "";
if (!empty($_POST)) {
	$output = include("sql/update.php");
}
$limit = 0;
$fpmenu = 0;
$fp = mysql_query("select menu, fplimit from ".$tableprefix."frontpage where number = '1'");
while ($fplimit = mysql_fetch_array($fp, MYSQL_ASSOC)) {
	$limit = $fplimit{'fplimit'};
	$fpmenu = $fplimit{'menu'};
}
$menus = include("scripts/listmenu2.php");

return $output."
<form id=\"frm\" action=\"".$_SERVER['REQUEST_URI']."\" method=\"post\">
	<fieldset>
		<label for=\"menu\">Redirect to: </label>
		<select id=\"menu\" name=\"menu\">
			<option title=\"0\" value=\"0\">Website Overview</option>
			".$menus."
		</select>
		<br />
		<br />
		<label for=\"fplimit\">Limit results (on website overview) per X posts: (0 = unlimited)</label>
		<input type=\"text\" name=\"fplimit\" id=\"fplimit\" value=\"".$limit."\" />
		<br />
		<br />
		<input type=\"submit\" name=\"save\" value=\"Set\" class=\"button\" />
		<input type=\"hidden\" name=\"table\" value=\"frontpage\" />
		<input type=\"hidden\" name=\"number\" value=\"1\" />
	</fieldset>
</form>";
?>
Return current item: Anantasoft Gazelle CMS