43 return $this->
multi = $value;
49 return $this->
type = $value;
59 if($this->section==
'GUI')
60 $dirs = XoopsLists::getDirListAsArray(XOOPS_ROOT_PATH.
'/modules/rmcommon/themes',
'');
62 $dirs = XoopsLists::getDirListAsArray(XOOPS_ROOT_PATH.
'/themes',
'');
67 if($this->section==
'GUI'){
68 if(!file_exists(XOOPS_ROOT_PATH.
'/modules/rmcommon/themes/'.
$dir.
'/admin_gui.php')) die(
$dir);
70 if(!file_exists(XOOPS_ROOT_PATH.
'/themes/'.
$dir.
'/theme.html'))
continue;
78 $rtn =
'<ul class="rmoptions_container">';
79 foreach ($themes as $k){
81 $rtn .=
"<li><label><input type='checkbox' value='$k' name='".$this->getName().
"[]' id='".$this->
id().
"'".(is_array($this->
selected) ? (in_array($k, $this->
selected) ?
" checked='checked'" :
'') :
'').
" /> $k</label></li>";
83 $rtn .=
"<li><label><input type='radio' value='$k' name='".$this->getName().
"' id='".$this->
id().
"'".(!empty($this->
selected) ? ($k == $this->
selected ?
" checked='checked'" :
'') :
'').
" /> $k</label></li>";
89 $rtn =
"<select name='".$this->getName().
"[]' id='".$this->
id().
"' size='6' multiple='multiple'>";
90 foreach ($themes as $k){
91 $rtn .=
"<option value='$k'".(is_array($this->
selected) ? (in_array($k, $this->
selected) ?
" selected='selected'" :
'') :
'').
">$k</option>";
95 $rtn =
"<select name='".$this->getName().
"' id='".$this->
id().
"'>";
96 foreach ($themes as $k){
97 $rtn .=
"<option value='$k'".(!empty($this->
selected) ? ($k==$this->
selected ?
" selected='selected'" :
'') :
'').
">$k</option>";