本文整理匯總了PHP中UserForm::requestAction方法的典型用法代碼示例。如果您正苦於以下問題:PHP UserForm::requestAction方法的具體用法?PHP UserForm::requestAction怎麽用?PHP UserForm::requestAction使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類UserForm
的用法示例。
在下文中一共展示了UserForm::requestAction方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: date
$mail->setContent("message", $_REQUEST['message']);
$mail->setContent("email", $_REQUEST['email']);
if (isset($GLOBALS['homeEntity'])) {
if (isset($_REQUEST['home'])) {
$mail->setContent("home", "http://www.di.univaq.it/home.php?username={$_REQUEST['username']}");
$GLOBALS['homeEntity']->insertItem(NULL, "{$_REQUEST['username']}", date('YmdHi'), date('YmdHi'), "Generale", "General", "Home", "Home", "Pagina provvisoria di {$_REQUEST['name']} {$_REQUEST['surname']}", "Temporary page of {$_REQUEST['name']} {$_REQUEST['surname']}", "*", 1);
}
$config = Config::getInstance()->getConfigurations();
Parser::mail($_REQUEST['email'], "{$config['website']['name']} Login data", $mail->get(), $config['website']['email']);
}
}
}
/* LOCAL END */
$main = new Skin("system");
InitGraphic::getInstance()->createSystemGraphic($main);
$form1 = new UserForm("dataEntry", $usersEntity);
$form1->addSection("User Management");
$form1->addText("username", "Username", 50, MANDATORY);
$form1->addPassword("password", "Password");
$form1->addSection("personal data");
$form1->addText("email", "Email", 50, MANDATORY);
$form1->addText("name", "Name", 40, MANDATORY);
$form1->addText("surname", "Surname", 40, MANDATORY);
$form1->addCheck("active", "Active");
$form1->addCheck("active_newsletter", "Newsletter");
$form2 = new RelationForm("dataEntry2", $usersGroupsRelation);
$form1->addSection("usergroups");
$form2->addRelationManager("groups", "Groups");
$form1->triggers($form2);
$main->setContent("body", $form1->requestAction());
$main->close();