diff options
author | ramon <ramongomez@us.es> | 2012-11-28 11:38:50 +0000 |
---|---|---|
committer | ramon <ramongomez@us.es> | 2012-11-28 11:38:50 +0000 |
commit | 4329e85010531edeaca3d10a62241014b799345e (patch) | |
tree | 94c13c2d249f29557d89b21bc0c9a477487397b0 /admin/WebConsole/includes/HTMLSELECT.php | |
parent | a0da76f5ea8c5f4cbcfef7510917448a909660eb (diff) |
Versión 1.0.5, #565: Integrar código del ticket:565 en rama de desarrollo.
git-svn-id: https://opengnsys.es/svn/branches/version1.0@3446 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'admin/WebConsole/includes/HTMLSELECT.php')
-rw-r--r-- | admin/WebConsole/includes/HTMLSELECT.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/admin/WebConsole/includes/HTMLSELECT.php b/admin/WebConsole/includes/HTMLSELECT.php index 5db2e45b..76433d08 100644 --- a/admin/WebConsole/includes/HTMLSELECT.php +++ b/admin/WebConsole/includes/HTMLSELECT.php @@ -19,12 +19,13 @@ // - clase: Clase que define su estilo (por defecto: formulariodatos) // - clausulawhere: Clausula Where adicional // ************************************************************************************************************************************************* -function HTMLSELECT($cmd,$idcentro,$nombretabla,$identificador,$nombreid,$nombreliteral,$ancho,$eventochg = "",$clase="",$clausulawhere=""){ +function HTMLSELECT($cmd,$idcentro,$nombretabla,$identificador,$nombreid,$nombreliteral,$ancho,$eventochg = "",$clase="",$clausulawhere="",$nwname=""){ $nombretabla=htmlentities($nombretabla); $nombreid=htmlentities($nombreid); $nombreliteral=htmlentities($nombreliteral); if (!empty($eventochg)) $eventochg='onchange="'.$eventochg.'(this);"'; if (empty($clase)) $clase='formulariodatos'; + if (empty($nwname)) $nwname=$nombreid; $SelectHtml=""; $rs=new Recordset; if ($idcentro>0){ @@ -41,7 +42,7 @@ function HTMLSELECT($cmd,$idcentro,$nombretabla,$identificador,$nombreid,$nombre //echo "<br>".$cmd->texto; $rs->Comando=&$cmd; if (!$rs->Abrir()) return(""); // Error al abrir recordset - $SelectHtml.= '<SELECT '.$eventochg.' class="'.$clase.'" name="'.$nombreid.'" style="WIDTH: '.$ancho.'">'; + $SelectHtml.= '<SELECT '.$eventochg.' class="'.$clase.'" name="'.$nwname.'" style="WIDTH: '.$ancho.'">'; $SelectHtml.= ' <OPTION value="0"></OPTION>'; $rs->Primero(); while (!$rs->EOF){ |