本文整理汇总了PHP中TemplateEngine::getTemplate方法的典型用法代码示例。如果您正苦于以下问题:PHP TemplateEngine::getTemplate方法的具体用法?PHP TemplateEngine::getTemplate怎么用?PHP TemplateEngine::getTemplate使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TemplateEngine
的用法示例。
在下文中一共展示了TemplateEngine::getTemplate方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
$matchingTextSimilarityField = $widgets->createField('matchingTextSimilarity', 0, $matchingTextSimilarity, getBadgerTranslation2('UserSettingsAdmin', 'matchingTextSimilarityDescription'), true, 'text', ' regexp="BADGER_NUMBER" style="width: 10em;"');
// Print Form for change of password
$PWFormLabel = getBadgerTranslation2('UserSettingsAdmin', 'change_password_heading');
$OldPwLabel = $widgets->createLabel("OldPassword", getBadgerTranslation2('UserSettingsAdmin', 'old_password_name'), false);
$OldPwField = $widgets->createField("OldPassword", 20, "", getBadgerTranslation2('UserSettingsAdmin', 'old_password_description'), false, 'password');
$NewPwLabel = $widgets->createLabel("NewPassword", getBadgerTranslation2('UserSettingsAdmin', 'new_password_name'), false);
$NewPwField = $widgets->createField("NewPassword", 20, "", getBadgerTranslation2('UserSettingsAdmin', 'new_password_description'), false, 'password');
$ConfPwLabel = $widgets->createLabel("NewPasswordConfirm", getBadgerTranslation2('UserSettingsAdmin', 'new_password_confirm_name'), false);
$ConfPwField = $widgets->createField("NewPasswordConfirm", 20, "", getBadgerTranslation2('UserSettingsAdmin', 'new_password_confirm_description'), false, 'password');
$btnSubmit = $widgets->createButton("SubmitUserSettings", getBadgerTranslation2('UserSettingsAdmin', 'submit_button'), "submit", "Widgets/accept.gif", "accesskey='s'");
// Begin of Feedback
$Feedback = "<br/>";
if (isset($validation_user_settings) && $validation_user_settings == true && $change_password == true && isset($validation_change_password) && $validation_change_password == true || isset($validation_user_settings) && $validation_user_settings == true && $change_password == false) {
if ($change_password == true) {
$Feedback .= getBadgerTranslation2('UserSettingsAdmin', 'password_change_commited') . "<br/>";
}
$Feedback .= getBadgerTranslation2('UserSettingsAdmin', 'user_settings_change_commited') . "<br/><br/>";
}
if ($change_password == true && isset($validation_change_password) && $validation_change_password != true) {
$Feedback .= $validation_change_password_errors;
}
// If Validation for User Settings had returned
// a bad result, print the error messages
if (isset($validation_user_settings) && $validation_user_settings != true) {
$Feedback .= "<div class=\"USAError\">" . $validation_user_settings_errors . "</div><br/><br/>";
}
// End of Feedback
eval("echo \"" . $tpl->getTemplate("UserSettingsAdmin/UserSettingsAdmin") . "\";");
//--
//--
eval("echo \"" . $tpl->getTemplate("badgerFooter") . "\";");