Location: PHPKode > projects > infoboard > infoboard/_class/form.user.php
<?

	 function tabuser($action, $gid){
		   global $iscon;
		   $print="";
		   if($action) $cass=" class=\"firstuser\" "; else $cass="";
		   if(!$iscon["user"]){
			    $print.= "<form name=\"userinfoboard\" method=\"post\" >\n";
				
				$print.= "<div id=\"infoboarduser1\" ".$cass." style=\"display:none\">\n";
				$print.= "<div id=\"contentuser\">".$iscon["lang"][3]."</div>\n";
				$print.=register();
				$print.= "</div>\n";
				
				$print.= "<div id=\"infoboarduser2\" ".$cass." style=\"display:none\">\n";
				$print.= "<div id=\"contentuser\">".$iscon["lang"][4]."</div>\n";
				$print.=login();
				$print.= "</div>\n";
				
				$print.= "<div id=\"infoboarduser3\" ".$cass." style=\"display:none\">\n";
				$print.= "<div id=\"contentuser\">".$iscon["lang"][5]."</div>\n";
				$print.=forget();
				$print.= "</div>\n";
				$print.= "</form>\n";
				return $print;
		  }
	 }


	 function register(){
		   global $iscon;
		  $print = "<div  class=\"textform\" id=\"_regname\">".$iscon["lang"][9]."</div>\n";
		  $print.= "<label>\n";
		  $print.= "<input name=\"regname\" type=\"text\" id=\"regname\" size=\"20\" class=\"input\" />\n";
		  $print.= "</label>\n";
		  $print.= "<div  class=\"textform\" id=\"_regpass\">".$iscon["lang"][10]."</div>\n";
		  $print.= "<label>\n";
		  $print.= "<input name=\"regpass\" type=\"text\" id=\"regpass\" size=\"20\" class=\"input\" />\n";
		  $print.= "</label>\n";
          $print.= "<div  class=\"textform\" id=\"_regrepass\">".$iscon["lang"][11]."</div>\n";
		  $print.= "<label>\n";
		  $print.= "<input name=\"regrepass\" type=\"text\" id=\"regrepass\" size=\"20\" class=\"input\" />\n";
		  $print.= "</label>\n";
		  $print.= "<div  class=\"textform\" id=\"_regmail\">".$iscon["lang"][12]."</div>\n";
		  $print.= "<label>\n";
		  $print.= "<input name=\"regmail\" type=\"text\" id=\"regmail\" size=\"20\" class=\"input\" />\n";
		  $print.= "</label>\n";
		  $print.= "<label>\n";
		  $print.= "<input name=\"agee\" type=\"checkbox\" id=\"agee\" value=\"1\" onClick=\"";
		  $print.= "if (this.checked==true){ document.userinfoboard.userreg.disabled=false;}else{ document.userinfoboard.userreg.disabled=true;}\" /> ".$iscon["lang"][13]."\n";
		  $print.= "</label>\n";
		  $print.= "<p><input type=\"submit\" name=\"submit\" id=\"userreg\" value=\"REGISTER\" onclick=\"return checkreg();\" disabled=\"disabled\" /></p>\n";
		  return $print;
	 }

	 function login(){
		   global $iscon;
		  $print= "<div  class=\"textform\" id=\"_infoname\">".$iscon["lang"][9]."</div>\n";
		  $print.= "<label>\n";
          $print.= "<input name=\"infoname\" type=\"text\" id=\"infoname\" size=\"20\" class=\"input\" />\n";
		  $print.= "</label>\n";
		  $print.= "<div  class=\"textform\" id=\"_infopass\">".$iscon["lang"][10]."</div>\n";
		  $print.= "<label>\n";
		  $print.= "<input name=\"infopass\" type=\"password\" id=\"infopass\" size=\"20\" class=\"input\" />\n";
		  $print.= "</label>\n";
		  $print.= "<p><input type=\"submit\" name=\"submit\" value=\"LOGIN\" onclick=\"return checklogin();\" /></p>\n";
		  return $print;
	 }

	 function forget(){
		   global $iscon;
		  $print = "<div  class=\"textform\" id=\"_forget\">".$iscon["lang"][12]."</div>\n";
		  $print.= "<label>\n";
		  $print.= "<input name=\"forgetmail\" type=\"text\" id=\"forgetmail\" size=\"20\" class=\"input\" />\n";
		  $print.= "</label>\n";
		  $print.= "<p><input  type=\"submit\" name=\"submit\" value=\"FORGET\" onclick=\"return checkforget();\" /></p>\n";
		  return $print;
	 }

?>

Return current item: infoboard