31 $blank_img =
'blank.gif';
33 $blank_img = str_replace(
'ranks/',
'', $obj->
getVar(
'rank_image',
'e'));
38 parent::__construct(
$title,
'form',
'userrank.php',
'post',
true);
39 $this->
setExtra(
'enctype="multipart/form-data"');
52 $image_array_img = XoopsLists::getImgListAsArray(\
XoopsBaseConfig::get(
'uploads-path') .
'/ranks');
53 $imageselect_img->addOption(
"$blank_img", $blank_img);
54 foreach ($image_array_img as $image_img) {
55 $imageselect_img->addOption(
"$image_img", $image_img);
57 $imageselect_img->setExtra(
"onchange='showImgSelected(\"xo-ranks-img\", \"rank_image\", \"ranks\", \"\", \"" . \
XoopsBaseConfig::get(
'uploads-url') .
"\")'");
58 $imgtray_img->addElement($imageselect_img,
false);
59 $imgtray_img->addElement(
new Xoops\Form\Label(
'',
"<br /><img src='" . \
XoopsBaseConfig::get(
'uploads-url') .
"/ranks/" . $blank_img .
"' name='image_img' id='xo-ranks-img' alt='' />"));
63 $fileseltray_img->addElement(
new Xoops\Form\Label(
''),
false);
64 $imgtray_img->addElement($fileseltray_img);
68 $rank_special = $obj->
getVar(
'rank_special');
75 $special_tray->addElement(
new Xoops\Form\RadioYesNo(
'',
'rank_special', $rank_special));
const _AM_USERRANK_UPLOAD
const _AM_USERRANK_MAXPOST
const _AM_USERRANK_SPECIAL_CAN
const _AM_USERRANK_MINPOST
getVar($key, $format= 's')
const _AM_USERRANK_SPECIAL
const _AM_USERRANK_ERROR_POST
const _AM_USERRANK_IMAGE_PATH