29 return $this->
multi = $value;
35 return $this->
type = $value;
47 return $this->
size = $value;
51 include_once XOOPS_ROOT_PATH.
"/class/xoopslists.php";
52 $zonas = XoopsLists::getTimeZoneList();
55 $rtn =
"<table cellpadding='2' cellspacing='1' border='0'>";
56 foreach ($zonas as $k => $v){
60 $rtn .=
"<label><input type='checkbox' value='$k' name='".$this->getName().
"[]' id='".$this->
id().
"[]'".(is_array($this->
selected) ? (in_array($k, $this->
selected) ?
" checked='checked'" :
'') :
'').
" /> $v</label>";
62 $rtn .=
"<label><input type='radio' value='$k' name='".$this->getName().
"' id='".$this->
id().
"'".($k == $this->
selected ?
" checked='checked'" :
'').
" /> $v</label>";
71 $rtn =
"<select name='".$this->getName().
"[]' id='".$this->
id().
"[]' size='$this->size' multiple='multiple'>";
72 foreach ($zonas as $k => $v){
73 $rtn .=
"<option value='$k'".(is_array($this->
selected) ? (in_array($k, $this->
selected) ?
" selected='selected'" :
'') :
'').
">$v</option>";
77 $rtn =
"<select name='".$this->getName().
"' id='".$this->
id().
"'>";
78 foreach ($zonas as $k => $v){
79 $rtn .=
"<option value='$k'".($k==$this->
selected ?
" selected='selected'" :
'').
">$v</option>";