summaryrefslogtreecommitdiffstats
path: root/admin/WebConsole/includes/HTMLCTESELECT.php
diff options
context:
space:
mode:
Diffstat (limited to 'admin/WebConsole/includes/HTMLCTESELECT.php')
-rw-r--r--admin/WebConsole/includes/HTMLCTESELECT.php11
1 files changed, 6 insertions, 5 deletions
diff --git a/admin/WebConsole/includes/HTMLCTESELECT.php b/admin/WebConsole/includes/HTMLCTESELECT.php
index bd07d085..93719426 100644
--- a/admin/WebConsole/includes/HTMLCTESELECT.php
+++ b/admin/WebConsole/includes/HTMLCTESELECT.php
@@ -19,13 +19,14 @@
function HTMLCTESELECT($parametros,$nombreid,$clase,$defaultlit,$valorselec,$ancho,$eventochg=""){
if (!empty($eventochg)) $eventochg='onchange="'.$eventochg.'(this);"';
$opciones=split(chr(13),$parametros);
- $SelectHtml= '<SELECT '.$eventochg.' class= "'.$clase.'" id='.$nombreid.' name="'.$nombreid.'" style="WIDTH: '.$ancho.'">';
- if (!empty($defaultlit)) $SelectHtml.= '<OPTION value="0">'.$defaultlit.'</OPTION>';
+ $SelectHtml= '<select '.$eventochg.' class="'.$clase.'" id='.$nombreid.' name="'.$nombreid.'" style="width: '.$ancho.'">';
+ if (!empty($defaultlit)) $SelectHtml.= '<option value="0">'.$defaultlit.'</option>';
for($i=0;$i<sizeof($opciones);$i++){
$item=split("=",$opciones[$i]);
- $SelectHtml.= '<OPTION value="'.$item[0].'"';
+ $SelectHtml.= '<option value="'.$item[0].'"';
if($valorselec==$item[0]) $SelectHtml.=" selected ";
- $SelectHtml.= '>'.$item[1].'</OPTION>';
+ $SelectHtml.= '>'.$item[1].'</option>';
}
+ $SelectHtml.= '</select>';
return($SelectHtml);
-} \ No newline at end of file
+}