Location: PHPKode > projects > Anantasoft Gazelle CMS > admin/editmenu.php
<?php
$output = "";
if (!empty($_POST)) {
	$output = include("sql/update.php");
}

$noemptymenu = 1;
$noemptygroup = 1;

$menus = include("scripts/listmenu.php");
$permissions = include("scripts/listpermissions.php");
$menugroups = include("scripts/listmenugroups.php");

return $output."
<form id=\"frm\" action=\"".$_SERVER['REQUEST_URI']."\" method=\"post\" onsubmit=\"return validate(this);\">
	<fieldset>
		<script type=\"text/javascript\" src=\"js/checkfields.js\"></script>
		<script type=\"text/javascript\" src=\"js/editmenu.js\"></script>
		<label for=\"number\">Menu: </label>
		<select id=\"number\" name=\"number\" onchange=\"fillin();\">
			".$menus."
		</select>
		<br />
		<hr />
		<br />
		<label for=\"numbmenu\">Menu group: </label>
		<select name=\"numbmenu\" id=\"numbmenu\" onchange=\"changeparent();\">
			".$menugroups."
		</select>
		<br />
		<br />
		<label for=\"name\">New name: </label>
		<input type=\"text\" id=\"name\" name=\"name\" />
		<br />
		<br />
		<label for=\"parent\">New parent: </label>
		<select id=\"parent\" name=\"parent\">
			<option value=\"0\"></option>
		</select>
		<br />
		<br />
		<label for=\"admin\">Visible for: </label>
		<select multiple=\"multiple\" name=\"admin[]\" id=\"admin\" size=\"4\">
			".$permissions."
		</select>
		<br />
		<br />
		<label for=\"showper\">Show how many articles per page: (0 = unlimited) </label>
		<input type=\"text\" id=\"showper\" name=\"showper\" />
		<br />
		<br />
		<input type=\"submit\" name=\"save\" value=\"Edit\" class=\"button\" />
		<input type=\"hidden\" name=\"table\" value=\"menus\" />
	</fieldset>
</form>";
?>
Return current item: Anantasoft Gazelle CMS