本文整理汇总了PHP中form::addToForm方法的典型用法代码示例。如果您正苦于以下问题:PHP form::addToForm方法的具体用法?PHP form::addToForm怎么用?PHP form::addToForm使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类form
的用法示例。
在下文中一共展示了form::addToForm方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: searchForm
public function searchForm()
{
$this->loadClass('form', 'htmlelements');
$this->loadClass('textinput', 'htmlelements');
$this->loadClass('button', 'htmlelements');
$form = new form('searchfile', $this->uri(array('action' => 'search')));
$textinput = new textinput('filesearch');
$button = new button('submitsearch', 'Search');
$button->setToSubmit();
$form->addToForm($textinput->show() . ' ' . $button->show());
return $form->show();
}
示例2: show
/**
* Short description for function
*
* Long description (if any) ...
*
* @return object Return description (if any) ...
* @access public
*/
function show()
{
$show = parent::show();
$objForm = new form('form1');
$objForm->action = $this->uri(array('action' => 'edit_main'));
$objForm->displayType = 3;
$objForm->addToForm($show);
$objForm->addToForm("<input type='hidden' name='button' value=''>");
$objForm->addToForm("<input type='hidden' name='class' value=''>");
$objForm->addToForm("<input type='hidden' name='id' value=''>");
return $objForm->show();
}
示例3: array
if ($mode == "edit") {
$rep = array('category' => $category);
$fieldsetLabel = $this->objLanguage->code2txt('mod_storycategory_editlabel', "storycategoryadmin", $rep);
} else {
$fieldsetLabel = $this->objLanguage->code2txt("mod_storycategory_addlabel", "storycategoryadmin");
}
//Create an element for the hidden text input
$objElement = new textinput("id");
//Set the value to the primary keyid
if (isset($id)) {
$objElement->setValue($id);
}
//Set the field type to hidden for the primary key
$objElement->fldType = "hidden";
//Add the hidden PK field to the form
$objForm->addToForm($objElement->show());
//Create label for input of category
$catLabel = new label($this->objLanguage->languageText("word_category"), "input_category");
//Create an element for the input of category
$objCat = new textinput("category");
$catMiss = $this->objLanguage->languageText('mod_storycategory_catmiss', "storycategoryadmin");
$objForm->addRule('category', $catMiss, 'required');
//Set the value of the element to $category
if (isset($category)) {
$objCat->setValue($category);
}
//Create label for the input of title
$titLabel = new label($this->objLanguage->languageText("word_title"), "input_title");
//Create an element for the input of title
$objTit = new textinput("title");
$titMiss = $this->objLanguage->languageText('mod_storycategory_titmiss', "storycategoryadmin");
示例4: showEditAddForm
/**
* Method to render an add form to a template
*
* @param string $module The module to add the parameter
*/
function showEditAddForm($pmodule)
{
//Create a form
$formAction = $this->uri(array('action' => 'save'));
//Load the form class
$this->loadClass('form', 'htmlelements');
//Create and instance of the form class
$objForm = new form('sysconfig');
//Set the action for the form to the uri with paramArray
$objForm->setAction($formAction);
//Set the displayType to 3 for freeform
$objForm->displayType = 3;
//Create a heading for the title
//$objHd = $this->newObject('htmlheading', 'htmlelements');
//Load the textinput class
$this->loadClass('textinput', 'htmlelements');
//Load the label class
$this->loadClass('label', 'htmlelements');
//Load the dropdown class
//Kevin Cyster
$this->loadClass('dropdown', 'htmlelements');
//Create an element for the input of module
$objElement = new textinput("pmodule");
//Set the value of the element to $module
if (isset($pmodule)) {
$objElement->setValue($pmodule);
}
//Create label for input of module
$label = new label($this->objLanguage->languageText("mod_sysconfig_modtxt", 'sysconfig'), "input_pmodule");
$objForm->addToForm("<p><strong>" . $this->objLanguage->languageText("mod_sysconfig_modtxt", 'sysconfig') . "</strong>: " . $pmodule . "</p>");
//Get the pk value
$id = $this->getParam('id');
//Get the records for editing
$ar = $this->objDbSysconfig->getRow('id', $id, 'tbl_sysconfig_properties');
//Get the two values needed
if (isset($ar)) {
$pname = $ar['pname'];
$pvalue = $ar['pvalue'];
} else {
$pname = $this->getParam('id', NULL);
$pvalue = $this->getParam('value', NULL);
}
#if
//Create an element for the input of id
$objElement = new textinput("id");
$objElement->fldType = "hidden";
$objElement->setValue($id);
$objForm->addToForm($objElement->show());
//Create an element for the input of id
$objElement = new textinput("pmodule");
$objElement->fldType = "hidden";
$objElement->setValue($pmodule);
$objForm->addToForm($objElement->show());
//Add the $name element to the form
$objForm->addToForm('<p><b>' . $this->objLanguage->languageText("mod_sysconfig_paramname", 'sysconfig') . '</b>: ' . $pname . '</p>');
// Check in Config folder if module is gives as _site_
if ($pmodule == '_site_') {
$moduleToCheck = 'config';
} else {
$moduleToCheck = $pmodule;
}
// Load object that checks if class exists
$checkobject = $this->getObject('checkobject', 'utilities');
// Check if class 'sysconfig_{pname}' exists in module.
if ($checkobject->objectFileExists('sysconfig_' . str_replace('/', '_', str_replace('-', '_', $pname)), $moduleToCheck)) {
// If yes, instantiate the object
$objParamValue = $this->getObject(strtolower('sysconfig_' . str_replace('/', '_', str_replace('-', '_', $pname))), $moduleToCheck);
// send it the current default value
$objParamValue->setDefaultValue($pvalue);
} else {
$valueLabel = new label($this->objLanguage->languageText("mod_sysconfig_paramvalue", 'sysconfig'), "input_pvalue");
//Add the $value element to the form
$objForm->addToForm("<b>" . $valueLabel->show() . "</b>: ");
//Create an element for the input of value
$objParamValue = new textinput("pvalue");
$objParamValue->size = "50";
//Set the value of the element to $value
if (isset($pvalue)) {
$objParamValue->setValue($pvalue);
}
#if
}
//Create text add link
$objForm->addToForm($objParamValue->show() . "<br /><br />");
// Create an instance of the button object and add a save button to the form
$this->loadClass('button', 'htmlelements');
// Create a submit button
$objElement = new button('submit');
// Set the button type to submit
$objElement->setToSubmit();
// Use the language object to add the word save
$objElement->setValue(' ' . $this->objLanguage->languageText("word_save") . ' ');
// Add the button to the form
$objForm->addToForm('<br/>' . $objElement->show());
//Add the form
//.........这里部分代码省略.........
示例5: form
$this->loadClass('checkbox', 'htmlelements');
$this->loadClass('label', 'htmlelements');
$this->loadClass('button', 'htmlelements');
$this->loadClass('hiddeninput', 'htmlelements');
// echo '<pre>';
// print_r($_POST);
// echo '</pre>';
if ($this->getParam('files') == NULL || !is_array($this->getParam('files')) || count($this->getParam('files')) == 0) {
echo '<div class="noRecordsMessage">' . $this->objLanguage->languageText('mod_filemanager_nofileswereselected', 'filemanager', 'No Files Were Selected') . '</div>';
echo '<p><a href="javascript:history.back()">' . $this->objLanguage->languageText('mod_filemanager_backtopreviouspage', 'filemanager', 'Back to Previous Page') . '</a> / ';
echo '<a href="' . $this->uri(NULL) . '">' . $this->objLanguage->languageText('mod_filemanager_returntofilemanager', 'filemanager', 'Return to File Manager') . '</a></p>';
} else {
$files = $this->getParam('files');
$form = new form('confirmsymlink', $this->uri(array('action' => 'symlinkconfirm')));
$folderIcon = $this->objFileIcons->getExtensionIcon('folder');
$form->addToForm('<ul>');
$counter = 0;
$folderCounter = 0;
foreach ($files as $file) {
if (substr($file, 0, 8) == 'folder__') {
$folderCounter++;
} else {
$fileDetails = $this->objFiles->getFile($file);
if ($fileDetails != FALSE) {
$counter++;
$checkbox = new checkbox('files[]', htmlentities($fileDetails['filename']), TRUE);
$checkbox->value = $file;
$form->addToForm('<li>' . $checkbox->show() . ' ' . htmlentities($fileDetails['filename']) . '</li>');
}
}
}
示例6: textinput
$pname = $this->getParam('key', '');
}
if ($ptag == '') {
// Get it from the querystring
$ptag = $this->getParam('value', '');
}
//Create an element for the hidden text input
$objElement = new textinput("id");
//Set the value to the primary keyid
if (isset($id)) {
$objElement->setValue($id);
}
//Set the field type to hidden for the primary key
$objElement->fldType = "hidden";
//Add the hidden PK field to the form
$objForm->addToForm($objElement->show());
//Create a label for the input of pname
$pnameLabel = new label($this->objLanguage->languageText("mod_userparamsadmin_pname", 'userparamsadmin'), "input_pname");
//Create an element for the input of pname
$objElement = new textinput("pname");
//Hide it to avoid breaking the system if its an edit
if ($mode == "edit") {
$objElement->fldType = "hidden";
//Set the value of the element to $pname
if (isset($pname)) {
$objElement->setValue($pname);
}
$txtToShow = $objElement->show() . $pname;
} else {
// We are adding.
if (isset($pname)) {
示例7: form
$radio->setSelected('guest');
}
// Check if Student
if (in_array($result['userid'], $students)) {
$radio->setSelected('student');
}
// Check if Lecturer
if (in_array($result['userid'], $lecturers)) {
$radio->setSelected('lecturer');
}
$table->addCell($radio->show());
$table->endRow();
}
$addUsersForm = new form('addusers', $this->uri(array('action' => 'addusers')));
$button = new button('submitform', $this->objLanguage->languageText('mod_contextgroups_updateuserroles', 'contextgroups'));
$button->setToSubmit();
$button->extra = 'style="margin-right: 50px;"';
$hiddenInput = new hiddeninput('context', $contextCode);
$addUsersForm->addToForm($hiddenInput->show());
$hiddenInput = new hiddeninput('changedItems', '');
// $hiddenInput->cssId = 'changedItems';
$hiddenInput->extra = 'id="changedItems"';
$addUsersForm->addToForm($hiddenInput->show());
$addUsersForm->addToForm($table->show());
$addUsersForm->addToForm('<p align="right">' . $button->show() . '</p>');
echo $addUsersForm->show();
echo '<p>' . $this->objLanguage->languageText('mod_contextgroups_browseresults', 'contextgroups', 'Browse Results') . ': ' . $paging . '</p>';
}
$returnLink = new link($this->uri(NULL));
$returnLink->link = ucwords($this->objLanguage->code2Txt('phrase_returntocontextgroups', 'contextgroups'));
echo '<p align="center">' . $returnLink->show() . '</p>';
示例8: editContextForm
//.........这里部分代码省略.........
$access->setSelected($context['access']);
} else {
$access->setSelected('Public');
}
}
$table = $this->newObject('htmltable', 'htmlelements');
if ($context != NULL) {
$table->startRow();
$table->addCell(ucwords($this->objLanguage->code2Txt('mod_context_contextcode', 'context', NULL, '[-context-] Code')) . ':', 100);
$table->addCell('<strong>' . $context['contextcode'] . '</strong>');
$table->endRow();
} else {
$code = new textinput('contextcode');
$codeLabel = new label(ucwords($this->objLanguage->code2Txt('mod_context_contextcode', 'context', NULL, '[-context-] Code')), 'input_contextcode');
$table->startRow();
$table->addCell($codeLabel->show(), 100);
$table->addCell($code->show() . ' <span id="contextcodemessage"></span>');
$table->endRow();
}
$table->startRow();
$table->addCell($titleLabel->show() . ':');
$table->addCell($title->show());
$table->endRow();
$table->startRow();
$table->addCell(' ');
$table->addCell(' ');
$table->endRow();
$table->startRow();
$table->addCell($this->objLanguage->languageText('word_status', 'system', 'Status') . ':');
$table->addCell($status->show());
$table->endRow();
if ($this->objSysConfig->getValue('context_access_private_only', 'context', 'false') == 'false') {
$table->startRow();
$table->addCell($this->objLanguage->languageText('word_access', 'system', 'Access') . ':');
$table->addCell($access->show());
$table->endRow();
}
$alerts = explode("|", $context['alerts']);
$emailAlert = new checkbox('emailalertopt', $this->objLanguage->languageText('mod_contextadmin_emailalert', 'contextadmin', 'Email alerts'), $alerts[0] == 'e' || $alerts[0] == '1');
// this will checked
//$alerts=array();
//$emailchecked=;
//$emailAlert->setChecked(FALSE);
//if($emailchecked) {
// $emailAlert->setChecked($emailchecked);
//}
$table->startRow();
$table->addCell($this->objLanguage->languageText('mod_contextadmin_emailalert', 'contextadmin', 'Alerts'));
$table->addCell($emailAlert->show());
$table->endRow();
$objSelectImage = $this->getObject('selectimage', 'filemanager');
$objSelectImage->context = TRUE;
$table2 = $this->newObject('htmltable', 'htmlelements');
$table2->startRow();
$table2->addCell($table->show(), 600, NULL, NULL, NULL, 'colspan="2"');
$table2->addCell($objSelectImage->show());
$table2->endRow();
$table2->startRow();
$table2->addCell(' ');
$table2->addCell(' ');
$table2->addCell(' ');
$table2->endRow();
$table2->startRow();
$table2->addCell(ucwords($this->objLanguage->code2Txt('mod_context_aboutcontext', 'context', NULL, 'About [-context-]')) . ':', 100);
$htmlEditor = $this->newObject('htmlarea', 'htmlelements');
$htmlEditor->name = 'about';
$htmlEditor->toolbarSet = 'advanced';
if ($context != NULL) {
$htmlEditor->value = $context['about'];
}
$table2->addCell($htmlEditor->show(), NULL, NULL, NULL, NULL, 'colspan="2"');
$table2->endRow();
$table2->startRow();
$table2->addCell(' ');
$table2->addCell(' ');
$table2->addCell(' ');
$table2->endRow();
$table2->startRow();
$table2->addCell(' ', 100);
if ($context == NULL) {
$button = new button('savecontext', $formButton);
} else {
$button = new button('savecontext', ucwords($this->objLanguage->code2Txt('mod_context_updatecontext', 'context', NULL, 'Update [-context-]')));
}
$button->setToSubmit();
$table2->addCell($button->show(), NULL, NULL, NULL, NULL, 'colspan="2"');
$table2->endRow();
$form = new form('createcontext', $this->uri(array('action' => $this->formAction), $this->formModule));
$form->addToForm($table2->show());
if ($this->objSysConfig->getValue('context_access_private_only', 'context', 'false') == 'true') {
$form->addToForm($access->show());
}
if ($context != NULL) {
$hiddenInput = new hiddeninput('contextcode', $context['contextcode']);
$form->addToForm($hiddenInput->show());
}
$form->addRule('title', $this->objLanguage->code2Txt('mod_context_entertitleofcontext', 'context', NULL, 'Please enter the title of your [-context-]'), 'required');
$str .= $form->show();
return $str;
}
示例9: dropdown
}
$course1Dropdown = new dropdown('context1');
foreach ($data as $contextCode) {
$row = $this->objContext->getContextDetails($contextCode);
$course1Dropdown->addOption($row['contextcode'], $row['menutext']);
}
$course2Dropdown = new dropdown('context2');
foreach ($data as $contextCode) {
$row = $this->objContext->getContextDetails($contextCode);
$course2Dropdown->addOption($row['contextcode'], $row['menutext']);
}
$objTable = $this->newObject('htmltable', 'htmlelements');
$objTable->startRow();
$objTable->addCell(ucwords($this->objLanguage->code2Txt('mod_context_contextfrom', 'context', null, '[-context-] from')) . ":");
$objTable->endRow();
$objTable->startRow();
$objTable->addCell($course1Dropdown->show());
$objTable->endRow();
$objTable->startRow();
$objTable->addCell(ucwords($this->objLanguage->code2Txt('mod_context_contextto', 'context', null, '[-context-] to')) . ":");
$objTable->endRow();
$objTable->startRow();
$objTable->addCell($course2Dropdown->show());
$objTable->endRow();
$objButton = new button('save', $this->objLanguage->languageText('word_save'));
$objButton->extra = 'onclick="javascript:if(confirm(\'' . $this->objLanguage->code2Txt('mod_contextgroups_confirmtransfer', 'context', NULL, 'Are you sure you want to transfer these [-readonlys-]') . '?\')){document.confirmtransfercontextusers.submit();;}else{return false;}"';
$buttons = $objButton->show();
$objForm = new form('confirmtransfercontextusers', $this->uri(array('action' => 'savetransfercontextusers')));
$objForm->addToForm($objTable->show());
$objForm->addToForm($buttons);
echo $objForm->show();
示例10: form
break;
}
switch ($this->getParam('error')) {
default:
break;
case 'nofoldernameprovided':
echo '<span class="error">' . $this->objLanguage->languageText('mod_filemanager_folderwasnotcreatednoname', 'filemanager', 'Folder was not created. No name provided') . '</span>';
break;
case 'illegalcharacters':
echo '<span class="error">' . $this->objLanguage->languageText('mod_filemanager_folderwasnotcreatedillegalchars', 'filemanager', 'Folder was not created. Folders cannot contain any of the following characters') . ': \\ / : * ? " < > |</span>';
break;
}
echo '<h1>' . $folderpath . ' ' . $icon . '</h1>';
if ((count($files) > 0 || count($subfolders) > 0) && $folderPermission) {
$form = new form('deletefiles', $this->uri(array('action' => 'multidelete')));
$form->addToForm($table);
$button = new button('submitform', $this->objLanguage->languageText('mod_filemanager_deleteselecteditems', 'filemanager', 'Delete Selected Items'));
$button->setToSubmit();
$selectallbutton = new button('selectall', $this->objLanguage->languageText('phrase_selectall', 'system', 'Select All'));
$selectallbutton->setOnClick("javascript:SetAllCheckBoxes('deletefiles', 'files[]', true);");
$deselectallbutton = new button('deselectall', $this->objLanguage->languageText('phrase_deselectall', 'system', 'Deselect all'));
$deselectallbutton->setOnClick("javascript:SetAllCheckBoxes('deletefiles', 'files[]', false);");
$form->addToForm($button->show() . ' ' . $selectallbutton->show() . ' ' . $deselectallbutton->show());
$folderInput = new hiddeninput('folder', $folderId);
$form->addToForm($folderInput->show());
echo $form->show();
} else {
echo $table;
}
if ($folderPermission) {
echo '<h3>' . $this->objLanguage->languageText('phrase_uploadfiles', 'system', 'Upload Files') . '</h3>';
示例11: label
$groupDropdown->addOption($groups[$i], $groups[$i]);
}
$groupDropdown->setSelected($group);
$table->addCell($label2->show() . $groupDropdown->show() . " " . $label->show() . $courseDropdown->show());
$table->endRow();
//Ehb-added-End
$table->startRow();
$orderLabel = new label($this->objLanguage->languageText('mod_contextgroups_orderresultsby', 'contextgroups') . ': ', 'input_order');
$searchdropdown->name = 'order';
$searchdropdown->cssId = 'input_order';
//$table->addCell($orderLabel->show().$searchdropdown->show());
$label = new label($this->objLanguage->languageText('mod_contextgroups_noofresults', 'contextgroups') . ': ', 'input_results');
$dropdown = new dropdown('results');
$dropdown->addOption('20', '20');
$dropdown->addOption('30', '30');
$dropdown->addOption('50', '50');
$dropdown->addOption('75', '75');
$dropdown->addOption('100', '100');
//$dropdown->addOption('all', 'All Results');
$table->addCell($orderLabel->show() . $searchdropdown->show() . " " . $label->show() . $dropdown->show());
$table->endRow();
$button = new button('searchbutton');
$button->value = $this->objLanguage->languageText('word_search');
$button->setToSubmit();
$table->addCell($button->show());
$table->addCell(' ');
$table->endRow();
$form = new form('searchforusers', $this->uri(array('action' => 'searchforusers')));
$form->addToForm($table->show());
echo $form->show();
}
示例12: showCreateFolderForm
/**
* Short description for function
*
* Long description (if any) ...
*
* @param unknown $folderId Parameter description (if any) ...
* @return object Return description (if any) ...
* @access public
*/
function showCreateFolderForm($folderId)
{
$folderPath = $this->getFolderPath($folderId);
if ($folderPath == FALSE) {
return '';
}
$folderParts = explode('/', $folderPath);
$form = new form('createfolder', $this->uri(array('action' => 'createfolder')));
$label = new label('Create a subfolder in: ', 'input_parentfolder');
$form->addToForm($label->show() . '<br/>' . $this->getTree($folderParts[0], $folderParts[1], 'htmldropdown', $folderId));
$textinput = new textinput('foldername');
$label = new label('Name of Folder: ', 'input_foldername');
$form->addToForm('<br/>' . $label->show() . '<br/>' . $textinput->show() . ' ');
$button = new button('create', 'Create Folder');
$button->setToSubmit();
$form->addToForm('<br/>' . $button->show());
return $form->show();
}
示例13: array
$conGroups[2] = array('id' => 'Guest', 'name' => $guestLabel);
$objSelectBox->insertLeftOptions($conGroups, 'id', 'name');
$objSelectBox->insertRightOptions(array());
// Insert the selectbox into the form object.
$objHead->str = $conGroupLabel;
$objHead->type = 3;
$objForm->addToForm('<p>' . $objHead->show() . '</p><p>' . $objSelectBox->show() . '</p>');
/* *********** Save and close buttons ************* */
$objButton = new button('save', $saveLabel);
$objButton->setOnClick('submitPerms()');
$btns = '<p><br/>' . $objButton->show();
$objButton = new button('save', $closeLabel);
$objButton->setOnClick('window.close()');
$btns .= ' ' . $objButton->show() . '</p>';
$objForm->addToForm($btns);
/* ************ Show the form ************* */
$str .= $objForm->show();
/* ************ Restore default permissions ************ */
$objInput = new textinput('modulename', $moduleName);
$objInput->fldType = 'hidden';
$objLink = new link('javascript:void(0)');
$objLink->extra = "onclick=\"restoreDefaults()\"";
$objLink->link = $restoreLabel;
$objForm = new form('restore', $this->uri(array('action' => 'restoreperms')));
$objForm->addToForm($objInput->show());
$objForm->addToForm($objLink->show());
$str .= '<p><br/>' . $objForm->show() . '</p>';
$objLayer = new layer();
$objLayer->str = $str;
$objLayer->align = 'center';
echo $objLayer->show() . '<p> </p>';
示例14: form
$searchField = $this->getParam('searchField_context', 'name');
$orderBy = $this->getParam('orderBy_context', 'quotausage_desc');
$userDisplay = 'none';
$contextDisplay = 'block';
} else {
$searchType = 'users';
// Just to make it explicit!
$searchField = $this->getParam('searchField_user', 'firstname');
$orderBy = $this->getParam('orderBy_user', 'quotausage_desc');
$userDisplay = 'block';
$contextDisplay = 'none';
}
$form = new form('quotasearch', $this->uri(array('action' => 'quotamanager')));
$form->method = 'GET';
$hiddenInput = new hiddeninput('module', 'filemanager');
$form->addToForm($hiddenInput->show());
$hiddenInput = new hiddeninput('action', 'quotamanager');
$form->addToForm($hiddenInput->show());
$table = $this->newObject('htmltable', 'htmlelements');
$table->startRow();
$type = new dropdown('searchType');
$type->addOption('users', $this->objLanguage->languageText('mod_filemanager_users', 'filemanager', 'Users'));
$type->addOption('context', ucwords($this->objLanguage->code2Txt('word_courses', 'security', NULL, '[-contexts-]')));
$type->setSelected($searchType);
$type->extra = 'onchange="swapUsers(this.value);"';
$table->addCell($this->objLanguage->languageText('word_type', 'system', 'Type'));
$table->addCell($type->show());
$search1 = new dropdown('searchField_user');
$search1->addOption('firstname', $this->objLanguage->languageText('phrase_firstname', 'system', 'First Name'));
$search1->addOption('surname', $this->objLanguage->languageText('word_surname', 'system', 'Surname'));
$search1->setSelected($this->getParam('searchField_user'));
示例15: label
$confirmPassword->fldType = 'password';
$confirmPassword->extra = 'maxlength=255';
$confirmPasswordLabel = new label($this->objLanguage->languageText('phrase_confirmpassword', 'userregistration', 'Confirm Password'), 'input_register_confirmpassword');
$table->addCell($passwordLabel->show(), 150, 'top', 'right');
$table->addCell(' ', 5);
$table->addCell($password->show() . $required);
$table->endRow();
$table->startRow();
$table->addCell($confirmPasswordLabel->show(), 150, 'top', 'right');
$table->addCell(' ', 5);
$table->addCell($confirmPassword->show() . $required);
$table->endRow();
$fieldset = $this->newObject('fieldset', 'htmlelements');
$fieldset->legend = $this->objLanguage->languageText('phrase_accountdetails', 'userregistration', 'Account Details');
$fieldset->contents = $table->show();
$form->addToForm($fieldset->show());
$form->addToForm('<br />');
$table = $this->newObject('htmltable', 'htmlelements');
$titlesDropdown = new dropdown('register_title');
$titlesLabel = new label($this->objLanguage->languageText('word_title', 'system') . ' ', 'input_register_title');
$titles = array("title_mr", "title_miss", "title_mrs", "title_ms", "title_dr", "title_prof", "title_rev", "title_assocprof");
foreach ($titles as $title) {
$_title = trim($this->objLanguage->languageText($title));
$titlesDropdown->addOption($_title, $_title);
}
if ($mode == 'addfixup') {
$titlesDropdown->setSelected($this->getParam('register_title'));
}
$table->startRow();
$table->addCell($titlesLabel->show(), 150, NULL, 'right');
$table->addCell($titlesDropdown->show());