Location: PHPKode > projects > WebArchive > phparchive.0.1.82.beta/forms.php
<?php
/**
 * @version $Id: forms.php,v 1.3 2004/01/08 23:20:59 freedev Exp $
 * @author Vincenzo D'Amore <hide@address.com>
 * @package wa_base
*/

/**
 *
 */

require_once("./wacommon.inc.php");
require_once("./includes/handleform.inc.php");
require_once("./includes/databases.inc.php");
require_once("./includes/contents.inc.php");
require_once("./includes/modifyform.inc.php");
require_once("./includes/searchform.inc.php");

	CheckSession();

	PrintHTMLHeader("Contents Manager", "");
?>
<body class="BodyStandard" onload="formLocationChange(self);">
<?php

    include("./header.php");
    
	$ChildUIDForm = "";
	StartMainTable();

	if (!empty($_GET["IdForm"]))
	{
		$_SESSION["gIdForm"] = $_GET["IdForm"];
		if ($_SESSION["gIdCurrentForm"] != $_SESSION["gIdForm"])
		{
			$_SESSION["gIdCurrentForm"] = $_SESSION["gIdForm"];
			ClearAllForms();
		}
	}

	$_SESSION["giIdContext"] = $_SESSION["giIdMenu"];

	if ((isset($_SESSION["gIdForm"])) &&
		($formUID = BuildForm($_SESSION["gIdForm"], 0)))
	{
		$aForms = &$_SESSION["gaForms"];

//		echo "<pre>"; print_r($aForms); echo "</pre>";
//		echo "<pre>"; print_r($_POST); echo "</pre>";

		$Form = &$aForms[$formUID];
		$Form["WAUIDParent"] = "";
		$aMessages = array();
		$aMessages[$formUID] = "";
		$TableRel = null;
		FormActionsHandle($Form, $_POST, $aMessages, 0, $TableRel);

		$ChildUIDForm = $formUID;

		FormContentBuild($Form, $_POST, $aMessages, 0, $TableRel, $ChildUIDForm);
	}
	else
	{
		echo "<span class='ErrorMsg'>".WA_MSG_WARNING_FORMDISABLED."</span>";
	}
	EndMainTable($ChildUIDForm);

	include("./footer.php");

?>
</body>
</html>
Return current item: WebArchive