All pastes #427804 Raw Edit

Unnamed

public php v1 · immutable
·published 2007-04-07 00:53 UTC
rendered paste body
<?phpclass rightModule extends CMSModule {	function rightModule() {		$this->setName("Right Module");		$this->setID("right");	}	function rightEdit() {		$ret = "<form method='post' action='?module=right&amp;mode=editsubmit'>\n";		$ret .= "<input type='text' name='random' />\n";		$ret .= "<input type='submit' name='submit' value='Submit' />\n";		$ret .= "</form>\n";		return $ret;	}	function rightEditSubmit() {		$ret = "You put \"".$_POST['random']."\" in the text field";		return $ret;	}	function drawSideBar() {		$ret = "So, latest news would go here or something.<br />\n";		$ret .= "<br /><a href='?module=right&amp;mode=edit'>Edit Something</a>";		return $ret;	}	function drawMainContent() {			}}?>