Location: PHPKode > projects > Anantasoft Gazelle CMS > admin/addcontent.php
<?php
$output = "";
if (!empty($_POST)) {
	$output = include("sql/insert.php");
}
$uncat = 1;
$menus = include("scripts/listmenu2.php");

return $output."
<form id=\"frm\" method=\"post\" action=\"".$_SERVER['REQUEST_URI']."\" onsubmit=\"return validate(this);\">
	<fieldset>
		<script type=\"text/javascript\" src=\"js/checkfields.js\"></script>
		<script type=\"text/javascript\" src=\"js/editcontent.js\"></script>
		<script type=\"text/javascript\" src=\"editor/tiny_mce.js\"></script>
		<script type=\"text/javascript\" src=\"editor/settings.js\"></script>
		<label for=\"title\">Content title: </label>
		<input type=\"text\" id=\"title\" name=\"title\" />
		<br />
		<br />
		<label for=\"parent\">Parent menu: </label>
		<select id=\"parent\" name=\"parent\">
			".$menus."
		</select>
		<br />
		<br />
		<label for=\"allowcomments\">Allow comments: </label>
		<input type=\"checkbox\" id=\"allowcomments\" name=\"allowcomments\" checked=\"checked\" />
		<br />
		<br />
		<label for=\"cnt\">Content: </label>
		<textarea id=\"cnt\" name=\"content\" rows=\"30\" cols=\"20\"></textarea>
		<br />
		<br />
		<input type=\"button\" name=\"codebtn\" value=\"code\" class=\"button\" onclick=\"change();\" />
		<br />
		<br />
		<input type=\"submit\" name=\"save\" value=\"Add\" class=\"button\" />
		<input type=\"hidden\" name=\"table\" value=\"content\" />
		<input type=\"hidden\" name=\"code\" value=\"editor\" />
		<input type=\"hidden\" name=\"backend\" value=\"0\" />
		<input type=\"hidden\" name=\"creator\" value=\"".$_SESSION["name"]."\" />
		<input type=\"hidden\" name=\"createtime\" value=\"".date('Y-m-d H:i:s')."\" />
	</fieldset>
</form>";
?>
Return current item: Anantasoft Gazelle CMS