Location: PHPKode > projects > PushOk SEMA > html/web/my_objects/my_objects_form.php
<?PHP
// Pushok's SEMA (Small Enterprise Management Application)
//
// Copyright (C) 2004 Pushok Software http://www.pushok.com
//
// LICENSE
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License (GPL)
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// To read the license please visit http://www.gnu.org/copyleft/gpl.html

/*
subscription: contain form to create new project or modify existing.
*/
class web_MyObjects extends web_Layout 
{
	function Info()
	{
		$this->formStart(_LW("My Objects"));
        echo "<FORM method=post>";
		echo "<INPUT type=\"hidden\" name=\"idform\" value=\"FM_MYOBJECTS_ADD\"></INPUT>\n";
		$sLink = web_GetPrevPage();
		if (!strlen($sLink))
			$sLink = "?page=/web/default.php";
		echo "<INPUT type=\"hidden\" name=\"onsuccess\" value=\"$sLink\"></INPUT>\n";
		echo "<INPUT type=\"hidden\" name=\"onerror\" value=\"?".web_GetPageGetParams()."\"></INPUT>\n";
		
		// object column 
		$this->formInputItem(_LW("ID"),"edit","value");
		
		$this->formInputItem(_LW("Add"),"submit","","");						
        echo "</FORM>";
		$this->formEnd();
		?>
		<?PHP
	}
}

$oPage = new web_MyObjects;
$oPage->m_windowHeader = _LW("My objects");
$oPage->WebStack("my_objects_form.php", $oPage->m_windowHeader, $oPage->m_windowHeader, web_GetPageGetParams());

if ( !isset($_SESSION['iduser']) )
	web_RedirectRelative("sema.php");

$oPage->RenderPage();

?>
Return current item: PushOk SEMA