@@ 142-145 (lines=4) @@ | ||
139 | ||
140 | $form->addElement(new \XoopsFormRadioYN(_AM_XNEWSLETTER_ACCOUNTS_DEFAULT, 'accounts_default', $this->getVar('accounts_default'), _YES, _NO), false); |
|
141 | ||
142 | if (false === $dis_accounts_userpass) { |
|
143 | $form->addElement(new \XoopsFormText(_AM_XNEWSLETTER_ACCOUNTS_USERNAME, 'accounts_username', 50, 255, $this->getVar('accounts_username')), true); |
|
144 | $form->addElement(new \XoopsFormText(_AM_XNEWSLETTER_ACCOUNTS_PASSWORD, 'accounts_password', 50, 255, $this->getVar('accounts_password')), true); |
|
145 | } |
|
146 | ||
147 | if (false === $dis_accounts_server_in) { |
|
148 | $incomming_tray = new \XoopsFormElementTray(_AM_XNEWSLETTER_ACCOUNTS_INCOMING, ''); |
@@ 78-82 (lines=5) @@ | ||
75 | $form->setExtra('enctype="multipart/form-data"'); |
|
76 | ||
77 | // template_title |
|
78 | if ( $this->getVar('template_type') == _XNEWSLETTER_MAILINGLIST_TPL_FILE_VAL ) { |
|
79 | $form->addElement(new \XoopsFormLabel(_AM_XNEWSLETTER_TEMPLATE_TITLE, $this->getVar('template_title'))); |
|
80 | } else { |
|
81 | $form->addElement(new \XoopsFormText(_AM_XNEWSLETTER_TEMPLATE_TITLE, 'template_title', 50, 255, $this->getVar('template_title', 'e')), true); |
|
82 | } |
|
83 | ||
84 | // template_description |
|
85 | if ( $this->getVar('template_type') == _XNEWSLETTER_MAILINGLIST_TPL_FILE_VAL ) { |