| @@ 233-238 (lines=6) @@ | ||
| 230 | } |
|
| 231 | } |
|
| 232 | ||
| 233 | if ($xoopsModuleConfig['adslight_diff_name'] == '1') { |
|
| 234 | $form->addElement(new XoopsFormText(_ADSLIGHT_SUBMITTER, 'submitter', 50, 50, $member_uname), true); |
|
| 235 | } else { |
|
| 236 | $form->addElement(new XoopsFormLabel(_ADSLIGHT_SUBMITTER, $member_uname)); |
|
| 237 | $form->addElement(new XoopsFormHidden('submitter', $member_uname), true); |
|
| 238 | } |
|
| 239 | if ($xoopsModuleConfig['adslight_diff_email'] == '1') { |
|
| 240 | $form->addElement(new XoopsFormText(_ADSLIGHT_EMAIL, 'email', 50, 50, $member_email), true); |
|
| 241 | } else { |
|
| @@ 239-244 (lines=6) @@ | ||
| 236 | $form->addElement(new XoopsFormLabel(_ADSLIGHT_SUBMITTER, $member_uname)); |
|
| 237 | $form->addElement(new XoopsFormHidden('submitter', $member_uname), true); |
|
| 238 | } |
|
| 239 | if ($xoopsModuleConfig['adslight_diff_email'] == '1') { |
|
| 240 | $form->addElement(new XoopsFormText(_ADSLIGHT_EMAIL, 'email', 50, 50, $member_email), true); |
|
| 241 | } else { |
|
| 242 | $form->addElement(new XoopsFormLabel(_ADSLIGHT_EMAIL, $member_email)); |
|
| 243 | $form->addElement(new XoopsFormHidden('email', $member_email), true); |
|
| 244 | } |
|
| 245 | $form->addElement(new XoopsFormText(_ADSLIGHT_TOWN, 'town', 50, 50, ''), false); |
|
| 246 | if ($xoopsModuleConfig['adslight_use_country'] == '1') { |
|
| 247 | $form->addElement(new XoopsFormText(_ADSLIGHT_COUNTRY, 'country', 50, 50, ''), false); |
|
| @@ 281-286 (lines=6) @@ | ||
| 278 | $form->addElement(new XoopsFormHidden('status', '0'), true); |
|
| 279 | } |
|
| 280 | ||
| 281 | if ($premium == 1) { |
|
| 282 | $form->addElement(new XoopsFormText(_ADSLIGHT_HOW_LONG, 'expire', 3, 3, $xoopsModuleConfig['adslight_howlong']), true); |
|
| 283 | } else { |
|
| 284 | $form->addElement(new XoopsFormLabel(_ADSLIGHT_WILL_LAST, $xoopsModuleConfig['adslight_howlong'])); |
|
| 285 | $form->addElement(new XoopsFormHidden('expire', $xoopsModuleConfig['adslight_howlong']), false); |
|
| 286 | } |
|
| 287 | ||
| 288 | /// Type d'annonce |
|
| 289 | $type_form = new XoopsFormSelect(_ADSLIGHT_TYPE, 'type', '', '1'); |
|
| @@ 225-230 (lines=6) @@ | ||
| 222 | } |
|
| 223 | } |
|
| 224 | ||
| 225 | if ($xoopsModuleConfig['adslight_diff_name'] == '1') { |
|
| 226 | $form->addElement(new XoopsFormText(_ADSLIGHT_SUBMITTER, 'submitter', 50, 50, $member_uname), true); |
|
| 227 | } else { |
|
| 228 | $form->addElement(new XoopsFormLabel(_ADSLIGHT_SUBMITTER, $member_uname)); |
|
| 229 | $form->addElement(new XoopsFormHidden('submitter', $member_uname), true); |
|
| 230 | } |
|
| 231 | if ($xoopsModuleConfig['adslight_diff_email'] == '1') { |
|
| 232 | $form->addElement(new XoopsFormText(_ADSLIGHT_EMAIL, 'email', 50, 50, $member_email), true); |
|
| 233 | } else { |
|
| @@ 231-236 (lines=6) @@ | ||
| 228 | $form->addElement(new XoopsFormLabel(_ADSLIGHT_SUBMITTER, $member_uname)); |
|
| 229 | $form->addElement(new XoopsFormHidden('submitter', $member_uname), true); |
|
| 230 | } |
|
| 231 | if ($xoopsModuleConfig['adslight_diff_email'] == '1') { |
|
| 232 | $form->addElement(new XoopsFormText(_ADSLIGHT_EMAIL, 'email', 50, 50, $member_email), true); |
|
| 233 | } else { |
|
| 234 | $form->addElement(new XoopsFormLabel(_ADSLIGHT_EMAIL, $member_email)); |
|
| 235 | $form->addElement(new XoopsFormHidden('email', $member_email), true); |
|
| 236 | } |
|
| 237 | $form->addElement(new XoopsFormText(_ADSLIGHT_TOWN, 'town', 50, 50, ''), false); |
|
| 238 | if ($xoopsModuleConfig['adslight_use_country'] == '1') { |
|
| 239 | $form->addElement(new XoopsFormText(_ADSLIGHT_COUNTRY, 'country', 50, 50, ''), false); |
|
| @@ 269-274 (lines=6) @@ | ||
| 266 | $form->addElement(new XoopsFormHidden('status', '0'), true); |
|
| 267 | } |
|
| 268 | ||
| 269 | if ($premium == 1) { |
|
| 270 | $form->addElement(new XoopsFormText(_ADSLIGHT_HOW_LONG, 'expire', 3, 3, $xoopsModuleConfig['adslight_howlong']), true); |
|
| 271 | } else { |
|
| 272 | $form->addElement(new XoopsFormLabel(_ADSLIGHT_WILL_LAST, $xoopsModuleConfig['adslight_howlong'])); |
|
| 273 | $form->addElement(new XoopsFormHidden('expire', $xoopsModuleConfig['adslight_howlong']), false); |
|
| 274 | } |
|
| 275 | ||
| 276 | /// Type d'annonce |
|
| 277 | $type_form = new XoopsFormSelect(_ADSLIGHT_TYPE, 'type', '', '1'); |
|