17 defined(
'XOOPS_ROOT_PATH') or die('Restricted access');
19 include_once XOOPS_ROOT_PATH . '/kernel/user.php';
29 function __construct()
31 parent::__construct();
37 $blank_img =
'blank.gif';
39 $blank_img = $this->getVar(
'avatar_file',
'e');
46 $form->setExtra(
'enctype="multipart/form-data"');
52 $uploadirectory_img =
'';
56 $imageselect_img->addOption(
"$blank_img", $blank_img);
57 foreach ($image_array_img as $image_img) {
58 if (preg_match(
'#avt#', $image_img)) {
59 $imageselect_img->addOption(
"$image_img", $image_img);
62 $imageselect_img->setExtra(
"onchange='showImgSelected(\"image_img\", \"avatar_file\", \"".$uploadirectory_img.
"\", \"\", \"".
XOOPS_UPLOAD_URL.
"\")'");
63 $imgtray_img->addElement($imageselect_img,
false);
64 $imgtray_img->addElement(
new XoopsFormLabel(
'',
"<br /><img src='" .
XOOPS_UPLOAD_URL .
"/" . $blank_img .
"' name='image_img' id='image_img' alt='' />"));
67 $imgtray_img->addElement($fileseltray_img);
68 $form->addElement($imgtray_img);
96 parent::__construct(
$db);
97 $this->className =
'SystemUsers';