Lines Matching refs:form

37         // create the updateprofile form
38 $form = new Form(['id' => 'dw__register']);
39 $form->addTagOpen('div')->addClass('no');
40 $form->addFieldsetOpen($lang['profile']);
41 $form->setHiddenField('do', 'profile');
42 $form->setHiddenField('save', '1');
45 $input = $form->addTextInput('login', $lang['user'])->attrs($attr)->addClass('edit')
48 $form->addHTML("<br>\n");
52 $input = $form->addTextInput('fullname', $lang['fullname'])->attrs($attr)->addClass('edit')
55 $form->addHTML("<br>\n");
59 $input = $form->addTextInput('email', $lang['email'])->attrs($attr)->addClass('edit')
62 $form->addHTML("<br>\n");
66 $input = $form->addPasswordInput('newpass', $lang['newpass'])->attrs($attr)->addClass('edit');
68 $form->addHTML("<br>\n");
70 $input = $form->addPasswordInput('passchk', $lang['passchk'])->attrs($attr)->addClass('edit');
72 $form->addHTML("<br>\n");
76 $form->addHTML("<br>\n");
78 $input = $form->addPasswordInput('oldpass', $lang['oldpass'])->attrs($attr)->addClass('edit');
80 $form->addHTML("<br>\n");
83 $form->addButton('', $lang['btn_save'])->attr('type', 'submit');
84 $form->addButton('', $lang['btn_reset'])->attr('type', 'reset');
86 $form->addFieldsetClose();
87 $form->addTagClose('div');
89 print $form->toHTML('UpdateProfile');
94 // create the profiledelete form
95 $form = new Form(['id' => 'dw__profiledelete']);
96 $form->addTagOpen('div')->addClass('no');
97 $form->addFieldsetOpen($lang['profdeleteuser']);
98 $form->setHiddenField('do', 'profile_delete');
99 $form->setHiddenField('delete', '1');
101 $form->addCheckbox('confirm_delete', $lang['profconfdelete'])
107 $form->addHTML("<br>\n");
109 $input = $form->addPasswordInput('oldppass', $lang['oldpass'])->attrs($attr)
112 $form->addHTML("<br>\n");
115 $form->addButton('', $lang['btn_deleteuser'])->attr('type', 'submit');
116 $form->addFieldsetClose();
117 $form->addTagClose('div');
119 print $form->toHTML('ProfileDelete');