#551 #573: Corregir errata al obtener lista de resoluciones de pantalla para Kernel 3.7; limpiar algo el HTML del formulario de propiedades de menú y reducir avisos PHP.
git-svn-id: https://opengnsys.es/svn/branches/version1.0@3764 a21b9725-9963-47de-94b9-378ad31fedc9remotes/github/debian-pkg
parent
42a0e41716
commit
b657326f3c
|
@ -1,4 +1,4 @@
|
|||
<?
|
||||
<?php
|
||||
// *************************************************************************************************************************************************
|
||||
// Aplicación WEB: ogAdmWebCon.
|
||||
// Autor: José Manuel Alonso (E.T.S.I.I.) Universidad de Sevilla
|
||||
|
@ -23,9 +23,13 @@ function HTMLCTESELECT($parametros,$nombreid,$clase,$defaultlit,$valorselec,$anc
|
|||
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].'"';
|
||||
if($valorselec==$item[0]) $SelectHtml.=" selected ";
|
||||
$SelectHtml.= '>'.$item[1].'</option>';
|
||||
// Comprobar formato de línea: "nombre=valor".
|
||||
if (! empty ($item[1])) {
|
||||
$SelectHtml.= '<option value="'.$item[0].'"';
|
||||
if($valorselec==$item[0])
|
||||
$SelectHtml.=" selected ";
|
||||
$SelectHtml.= '>'.$item[1].'</option>';
|
||||
}
|
||||
}
|
||||
$SelectHtml.= '</select>';
|
||||
return($SelectHtml);
|
||||
|
|
|
@ -67,40 +67,39 @@ if ($opcion!=$op_alta){
|
|||
<INPUT type=hidden name=opcion value=<?=$opcion?>>
|
||||
<INPUT type=hidden name=idmenu value=<?=$idmenu?>>
|
||||
<INPUT type=hidden name=grupoid value=<?=$grupoid?>>
|
||||
<P align=center class=cabeceras><?echo $TbMsg[4]?><BR>
|
||||
<SPAN align=center class=subcabeceras><? echo $opciones[$opcion]?></SPAN></P>
|
||||
<TABLE align=center border=0 cellPadding=1 cellSpacing=1 class=tabla_datos >
|
||||
<P align=center class=cabeceras><?php echo $TbMsg[4]?><BR>
|
||||
<SPAN align=center class=subcabeceras><?php echo $opciones[$opcion]?></SPAN></P>
|
||||
<table align="center" border="0" cellPadding="1" cellSpacing="1" class="tabla_datos">
|
||||
<!------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------->
|
||||
<TR>
|
||||
<th align=center> <?echo $TbMsg[5]?> </th>
|
||||
<tr>
|
||||
<th align="center"> <?echo $TbMsg[5]?> </th>
|
||||
<?php if ($opcion==$op_eliminacion)
|
||||
echo '<TD style="width:300">'.$descripcion.'</TD>';
|
||||
echo '<td style="width:300">'.$descripcion.'</td>';
|
||||
else
|
||||
echo '<TD><INPUT class="formulariodatos" name=descripcion style="width:300" type=text value="'.$descripcion.'"></TD>';?>
|
||||
</TR>
|
||||
echo '<td><input class="formulariodatos" name="descripcion" style="width:300" type="text" value="'.$descripcion.'" /></td>';?>
|
||||
</tr>
|
||||
<!------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------->
|
||||
<TR>
|
||||
<tr>
|
||||
<th align=center> <?echo $TbMsg[6]?> </th>
|
||||
<?php if ($opcion==$op_eliminacion)
|
||||
echo '<TD style="width:300">'.$titulo.'</TD>';
|
||||
echo '<td style="width:300">'.$titulo.'</td>';
|
||||
else
|
||||
echo '<TD ><INPUT class="formulariodatos" name=titulo style="width:300" type=text value="'.$titulo.'"></TD>';?>
|
||||
</TR>
|
||||
echo '<td ><input class="formulariodatos" name="titulo" style="width:300" type="text" value="'.$titulo.'" /></td>';?>
|
||||
</tr>
|
||||
<!------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------->
|
||||
<TR>
|
||||
<th align=center> <?echo $TbMsg[18]?> </th>
|
||||
<?
|
||||
if ($opcion==$op_eliminacion)
|
||||
echo '<TD colspan=3>'.TomaDato($cmd,0,'iconos',$idurlimg,'idicono','descripcion').' </TD>';
|
||||
<tr>
|
||||
<th align="center"> <?echo $TbMsg[18]?> </th>
|
||||
<?php if ($opcion==$op_eliminacion)
|
||||
echo '<td colspan="3">'.TomaDato($cmd,0,'iconos',$idurlimg,'idicono','descripcion').' </td>';
|
||||
else
|
||||
echo '<TD colspan=3>'.HTMLSELECT($cmd,0,'iconos',$idurlimg,'idicono','descripcion',160,"","","idtipoicono=3").'</TD>';
|
||||
echo '<td colspan="3">'.HTMLSELECT($cmd,0,'iconos',$idurlimg,'idicono','descripcion',150,"","","idtipoicono=3").'</td>';
|
||||
?>
|
||||
</TR>
|
||||
</tr>
|
||||
<!------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------->
|
||||
<!--<php-->
|
||||
|
||||
<tr>
|
||||
<th align="center"> <?php echo $TbMsg[17]?> <sup>*</sup> </th>
|
||||
<th align="center"> <?php echo $TbMsg[17]?> </th>
|
||||
<?php if ($opcion==$op_eliminacion){
|
||||
$tbresolucion[788]="800x600 16bits";
|
||||
$tbresolucion[791]="1024x768 16bits";
|
||||
|
@ -121,7 +120,7 @@ if ($opcion!=$op_alta){
|
|||
else{
|
||||
if (clientKernelVersion() < "3.7") {
|
||||
// Kernel anterior a 3.7 usa parámetro "vga".
|
||||
$parametros="788=800x600 16bits".chr(13);
|
||||
$parametros ="788=800x600 16bits".chr(13);
|
||||
$parametros.="791=1024x768 16bits".chr(13);
|
||||
$parametros.="355=1152x864 16bits".chr(13);
|
||||
$parametros.="794=1280x1024 16bits".chr(13);
|
||||
|
@ -132,17 +131,17 @@ if ($opcion!=$op_alta){
|
|||
$parametros.="799=1600x1200 24bits";
|
||||
} else {
|
||||
// Kernel 3.7 y superior usa parámetro "video".
|
||||
$parametros="uvesafb:800x600-16=800x600, 16bit".chr(13);
|
||||
$parametros="uvesafb:800x600-24=800x600, 24bit".chr(13);
|
||||
$parametros="uvesafb:1024x768-16=1024x768, 16bit".chr(13);
|
||||
$parametros="uvesafb:1024x768-24=1024x768, 24bit".chr(13);
|
||||
$parametros="uvesafb:1152x864-16=1152x864, 16bit".chr(13);
|
||||
$parametros="uvesafb:1280x1024,16=1280x1024, 16bit".chr(13);
|
||||
$parametros="uvesafb:1280x1024,24=1280x1024, 24bit".chr(13);
|
||||
$parametros="uvesafb:1600x1200,24=1600x1200, 24bit".chr(13);
|
||||
$parametros="uvesafb:1600x1200,24=1600x1200, 16bit".chr(13);
|
||||
$parametros ="uvesafb:800x600-16=800x600, 16bit".chr(13);
|
||||
$parametros.="uvesafb:800x600-24=800x600, 24bit".chr(13);
|
||||
$parametros.="uvesafb:1024x768-16=1024x768, 16bit".chr(13);
|
||||
$parametros.="uvesafb:1024x768-24=1024x768, 24bit".chr(13);
|
||||
$parametros.="uvesafb:1152x864-16=1152x864, 16bit".chr(13);
|
||||
$parametros.="uvesafb:1280x1024,16=1280x1024, 16bit".chr(13);
|
||||
$parametros.="uvesafb:1280x1024,24=1280x1024, 24bit".chr(13);
|
||||
$parametros.="uvesafb:1600x1200,24=1600x1200, 24bit".chr(13);
|
||||
$parametros.="uvesafb:1600x1200,24=1600x1200, 16bit";
|
||||
}
|
||||
echo '<td>'.HTMLCTESELECT($parametros,"resolucion","estilodesple","",$resolucion,100).'</td>';
|
||||
echo '<td>'.HTMLCTESELECT($parametros,"resolucion","estilodesple","",$resolucion,150).'</td>';
|
||||
}
|
||||
?>
|
||||
</tr>
|
||||
|
@ -152,13 +151,10 @@ if ($opcion!=$op_alta){
|
|||
<?php if ($opcion==$op_eliminacion)
|
||||
echo '<td>'.$comentarios.' </TD>';
|
||||
else
|
||||
echo '<td><textarea class="formulariodatos" name=comentarios rows="3" cols="55">'.$comentarios.'</textarea></TD>';
|
||||
echo '<td><textarea class="formulariodatos" name="comentarios" rows="3" cols="55">'.$comentarios.'</textarea></td>';
|
||||
?>
|
||||
</tr>
|
||||
<tr>
|
||||
<th colspan="2" align="center"> <sup>*</sup> <?php echo $TbMsg["WARN_NETBOOT"]?> </th>
|
||||
</tr>
|
||||
</TABLE>
|
||||
</table>
|
||||
<!------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------->
|
||||
<BR>
|
||||
<!------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------->
|
||||
|
@ -249,14 +245,14 @@ if ($opcion!=$op_alta){
|
|||
</TABLE>
|
||||
</FORM>
|
||||
</DIV>
|
||||
<?
|
||||
<?php
|
||||
//________________________________________________________________________________________________________
|
||||
include_once("../includes/opcionesbotonesop.php");
|
||||
//________________________________________________________________________________________________________
|
||||
?>
|
||||
</BODY>
|
||||
</HTML>
|
||||
<?
|
||||
<?php
|
||||
//________________________________________________________________________________________________________
|
||||
// Recupera los datos de un menu
|
||||
// Parametros:
|
||||
|
|
Loading…
Reference in New Issue