40 return $this->
multi = $value;
46 return $this->
type = $value;
56 $files = XoopsLists::getFileListAsArray(XOOPS_ROOT_PATH.
'/modules/rmcommon/lang',
'');
58 $langs[
'en_US'] =
'en';
61 if(substr(
$file, -3)!=
'.mo')
continue;
63 $langs[substr(
$file, 0, -3)] = substr(
$file, 0, -3);
67 $rtn =
'<ul class="rmoptions_container">';
69 foreach ($langs as $k){
71 $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>";
73 $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>";
80 $rtn =
"<select name='".$this->getName().
"[]' id='".$this->
id().
"[]' size='$this->cols' multiple='multiple'>";
81 foreach ($langs as $k){
82 $rtn .=
"<option value='$k'".(is_array($this->
selected) ? (in_array($k, $this->
selected) ?
" selected='selected'" :
'') :
'').
">$k</option>";
86 $rtn =
"<select name='".$this->getName().
"' id='".$this->
id().
"'>";
87 foreach ($langs as $k){
88 $rtn .=
"<option value='$k'".(!empty($this->
selected) ? ($k==$this->
selected ?
" selected='selected'" :
'') :
'').
">$k</option>";