#594: Comando Particionar y Formatear solo presenta datos del disco 1 y muestra un mensaje de aviso si el cliente tiene más de un disco o si el disco 1 no tiene una tabla de particiones MSDOS.
git-svn-id: https://opengnsys.es/svn/branches/version1.0@4051 a21b9725-9963-47de-94b9-378ad31fedc9remotes/github/debian-pkg
parent
9139a5f13c
commit
055be91d29
|
@ -36,6 +36,8 @@ $TbMsg["IMAGE_REPOSITORY"]='Imagen / Repositorio';
|
|||
$TbMsg["INCREMENTAL_IMAGE_REPOSITORY"]='Imagen Incremental / Repositorio';
|
||||
|
||||
$TbMsg["CONFIG_NOCONFIG"]='Sense configuració: client no connectat al servidor.';
|
||||
$TbMsg["CONFIG_NODISK1MSDOS"]='Avís: aquest comandament sol tracta el disc 1 amb taula de particions MSDOS.';
|
||||
|
||||
|
||||
?>
|
||||
|
||||
|
|
|
@ -36,6 +36,7 @@ $TbMsg["IMAGE_REPOSITORY"]='Imagen / Repositorio';
|
|||
$TbMsg["INCREMENTAL_IMAGE_REPOSITORY"]='Imagen Incremental / Repositorio';
|
||||
|
||||
$TbMsg["CONFIG_NOCONFIG"]='No configuration: client does not connect to server.';
|
||||
TbMsg["CONFIG_NODISK1MSDOS"]='Warning: this command only uses disk 1 with a MSDOS partition table.';
|
||||
|
||||
?>
|
||||
|
||||
|
|
|
@ -36,7 +36,7 @@ $TbMsg["IMAGE_REPOSITORY"]='Imagen / Repositorio';
|
|||
$TbMsg["INCREMENTAL_IMAGE_REPOSITORY"]='Imagen Incremental / Repositorio';
|
||||
|
||||
$TbMsg["CONFIG_NOCONFIG"]='Sin configuración: cliente no conectado al servidor.';
|
||||
|
||||
$TbMsg["CONFIG_NODISK1MSDOS"]='Aviso: este comando solo trata el disco 1 con tabla de particiones MSDOS.';
|
||||
|
||||
?>
|
||||
|
||||
|
|
|
@ -288,31 +288,40 @@ function pintaParticionesConfigurar($cmd,$configuraciones,$idordenadores,$cc)
|
|||
echo '<TH align=center> '.$TbMsg[14].' </TH>';
|
||||
echo '</TR>';
|
||||
|
||||
$aviso=false;
|
||||
$auxCfg=split("@",$configuraciones); // Crea lista de particiones
|
||||
for($i=0;$i<sizeof($auxCfg);$i++){
|
||||
$auxKey=split(";",$auxCfg[$i]); // Toma clave de configuracion
|
||||
for($k=1;$k<$conKeys;$k++){ // Busca los literales para las claves de esa partición
|
||||
if($tbKeys[$k]["cfg"]==$auxCfg[$i]){ // Claves encontradas
|
||||
$icp=$cc."_".$k; // Identificador de la configuración-partición
|
||||
echo '<TR id="TR_'.$icp.'">';
|
||||
echo '<TD align=center><input type=checkbox onclick="eliminaParticion(this,\''.$icp.'\')"></TD>';
|
||||
|
||||
echo '<TD align=center>'.HTMLSELECT_particiones($tbKeys[$k]["numpar"]).'</TD>';
|
||||
echo '<TD align=center>'.HTMLSELECT_tipospar($cmd,$tbKeys[$k]["tipopar"]).'</TD>';
|
||||
|
||||
$sf=tomaSistemasFicheros($tbKeys[$k]["numpar"],$idordenadores,true);
|
||||
echo'<TD align=center>'.HTMLSELECT_sistemasficheros($cmd,$sf).'</TD>';
|
||||
|
||||
$tm=tomaTamano($tbKeys[$k]["numpar"],$idordenadores);
|
||||
echo'<TD align=center><INPUT type="text" style="width:100" value="'.$tm.'"></TD>';
|
||||
|
||||
echo '<TD align=center>'.tomaNombresSO($tbKeys[$k]["numpar"],$idordenadores).'</TD>';
|
||||
|
||||
echo '<TD align=center>'.opeFormatear().'</TD>';
|
||||
echo '</TR>';
|
||||
if($tbKeys[$k]["numdisk"]==1){ // Solo tratar disco 1
|
||||
if($tbKeys[$k]["numpar"]>0){ // Solo particiones (número>0)
|
||||
$icp=$cc."_".$k; // Identificador de la configuración-partición
|
||||
echo '<tr id="TR_'.$icp.'" align="center">';
|
||||
echo '<td><input type="checkbox" onclick="eliminaParticion(this,\''.$icp.'\')"></td>';
|
||||
echo '<td>'.HTMLSELECT_particiones($tbKeys[$k]["numpar"]).'</td>';
|
||||
echo '<td>'.HTMLSELECT_tipospar($cmd,$tbKeys[$k]["tipopar"]).'</td>';
|
||||
$sf=tomaSistemasFicheros($tbKeys[$k]["numpar"],$idordenadores,true);
|
||||
echo '<td>'.HTMLSELECT_sistemasficheros($cmd,$sf).'</td>';
|
||||
$tm=tomaTamano($tbKeys[$k]["numpar"],$idordenadores);
|
||||
echo '<td><input type="text" style="width:100" value="'.$tm.'"></td>';
|
||||
echo '<td>'.tomaNombresSO($tbKeys[$k]["numpar"],$idordenadores).'</td>';
|
||||
echo '<td>'.opeFormatear().'</td>';
|
||||
echo '</tr>';
|
||||
} else {
|
||||
if ($tbKeys[$k]["codpar"]!=1) { // Aviso tabla no MSDOS.
|
||||
$aviso=true;
|
||||
}
|
||||
}
|
||||
} else { // Aviso: más de un disco.
|
||||
$aviso=true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if ($aviso) { // Mostrar aviso: solo disco 1 con tabla MSDOS.
|
||||
echo '<tr><th colspan='.$colums.'">'.$TbMsg["CONFIG_NODISK1MSDOS"].'</th></tr>';
|
||||
}
|
||||
/* Botones de añadir y confirmar */
|
||||
echo '<TR id="TRIMG_'.$cc.'" height=5><TD colspan='.$colums.' style="BORDER-TOP: #999999 1px solid;BACKGROUND-COLOR: #FFFFFF;"> </TD></TR>';
|
||||
echo '<TR height=30><TD style="BACKGROUND-COLOR: #FFFFFF;" colspan='.$colums.' align=center>';
|
||||
|
|
Loading…
Reference in New Issue