28 $blank_img =
'blank.gif';
30 $blank_img = str_replace(
'avatars/',
'', $obj->
getVar(
'avatar_file',
'e'));
37 parent::__construct(
$title,
'avatar_form',
$action,
"post",
true);
38 $this->
setExtra(
'enctype="multipart/form-data"');
45 $image_array_img = XoopsLists::getImgListAsArray($avatars_path);
46 $imageselect_img->addOption(
"$blank_img", $blank_img);
47 foreach ($image_array_img as $image_img) {
48 $imageselect_img->addOption(
"$image_img", $image_img);
51 $imageselect_img->setExtra(
"onchange='showImgSelected(\"xo-avatar-img\", \"avatar_file\", \"avatars\", \"\", \"" .
$xoops_upload_url .
"\")'");
52 $imgtray_img->addElement($imageselect_img,
false);
53 $imgtray_img->addElement(
new Xoops\Form\Label(
'',
"<br /><img src='" .
$xoops_upload_url .
"/avatars/" . $blank_img .
"' name='image_img' id='xo-avatar-img' alt='' />"));
57 $imgtray_img->addElement($fileseltray_img);
const E_YOU_NEED_A_POSITIVE_INTEGER
getVar($key, $format= 's')