Example #1
0
		public static function getAuthForm($id, $dn)
			{
			if((! empty($_POST['auth_form_id'])) && $id == $_POST['auth_form_id'])
				{$form_sent_class='auth_form_sent'; $password_class="error";}
			else
				{$form_sent_class=''; $password_class="";}

			$Form="<form method=\"POST\" class=\"".$form_sent_class."\" action=\"".$_SERVER['PHP_SELF']."\">";
			$Form.="<label for=\"password_".$id."\">Введите пароль</label><br/>";
			$Form.="<input type=\"password\" class=\"password ".$password_class."\" id=\"password_".$id."\" name=\"password\"/><br/>";

			$Form.=Application::getHiddenFieldForForm();
			$Form.="<input type=\"hidden\" name=\"dn\" value=\"".$dn."\">";
			$Form.="<input type=\"hidden\" name=\"auth_form_id\" value=\"".$id."\">";

			$Form.="<input type=\"submit\" name=\"BItSMe\" value=\"Докажите\">";
			$Form.="</form>";
			return $Form;
			}