#608 consola web: eliminar imagen de cache. mostrar aviso si equipo sin configuracion en BD. Modificacion funcion tabla_configuraciones
git-svn-id: https://opengnsys.es/svn/branches/version1.0@3878 a21b9725-9963-47de-94b9-378ad31fedc9remotes/github/debian-pkg
parent
c751419a21
commit
b5bc6b2361
|
@ -3,6 +3,8 @@
|
|||
// Nombre del fichero: EliminarImagenCache.php
|
||||
// Descripci????n :
|
||||
// Implementaci????n?????? del comando "Eliminar Imagen Cache"
|
||||
// date: 13-junio-2013
|
||||
// Cambio: se incluye mensaje equipos sin configuracion. En la funcion tabla_configuracion incluye cabecera de la tabla.
|
||||
// *************************************************************************************************************************************************
|
||||
include_once("../includes/ctrlacc.php");
|
||||
include_once("../clases/AdoPhp.php");
|
||||
|
@ -136,58 +138,32 @@ switch($ambito){
|
|||
echo '<p align=center><span class=cabeceras>'.$TbMsg[5].' </span><br>';
|
||||
echo '<IMG src="'.$urlimg.'"> <span align=center class=subcabeceras><U>'.$TbMsg[6].': '.$textambito.','.$nombreambito.'</U></span> </span></p>';
|
||||
?>
|
||||
<!//#agp-->
|
||||
<?php if ($cuentarepos >1){ ?>
|
||||
<TABLE id="tabla_conf" align=center border=0 cellPadding=1 cellSpacing=1 class=tabla_datos>
|
||||
<TR>
|
||||
<TH align=center > <? if ($ambito==16){echo $TbMsg[17]."</br>".$nombreambito.$TbMsg[16]."</br>".$TbMsg[18];}else{
|
||||
echo $TbMsg[17]."</br>".$nombreambito.$TbMsg[15]."</br>".$TbMsg[18];
|
||||
}?> </TH>
|
||||
</TR>
|
||||
</TABLE>
|
||||
<!-- //#agp-->
|
||||
<?php
|
||||
// Mensaje aviso limitacion version si hay dos repositorios
|
||||
if ($cuentarepos >1){ ?>
|
||||
<TABLE id="tabla_conf" align=center border=0 cellPadding=1 cellSpacing=1 class=tabla_datos>
|
||||
<TR>
|
||||
<TH align=center >
|
||||
<? if ($ambito==16){
|
||||
echo $TbMsg[17]."</br>".$nombreambito.$TbMsg[16]."</br>".$TbMsg[18];
|
||||
}else{
|
||||
echo $TbMsg[17]."</br>".$nombreambito.$TbMsg[15]."</br>".$TbMsg[18]; }
|
||||
?> </TH> </TR>
|
||||
|
||||
</TABLE>
|
||||
<?php }?>
|
||||
<!//#agp-->
|
||||
<!-- //#agp-->
|
||||
|
||||
<P align=center>
|
||||
<SPAN align=center class=subcabeceras><? echo $TbMsg[7] ?></SPAN>
|
||||
</BR>
|
||||
<!//#agp-->
|
||||
<?php if ($cuentarepos >1){ ?>
|
||||
<TABLE id="tabla_conf" align=center border=0 cellPadding=1 cellSpacing=1 class=tabla_datos>
|
||||
</P>
|
||||
|
||||
|
||||
<TR>
|
||||
|
||||
<TH align=center> <? echo $TbMsg[11] ?> </TH>
|
||||
<TH align=center> <? echo $TbMsg[12] ?> </TH>
|
||||
<TH align=center> <? echo $TbMsg[10] ?> </TH>
|
||||
|
||||
</TR>
|
||||
<?php
|
||||
echo tabla_configuraciones($cmd,$idambito);
|
||||
?>
|
||||
</TABLE>
|
||||
|
||||
<?php }else{ ?>
|
||||
<!//#agp-->
|
||||
<form align=center name="fdatos">
|
||||
<TABLE id="tabla_conf" align=center border=0 cellPadding=1 cellSpacing=1 class=tabla_datos>
|
||||
<TR>
|
||||
<TH align=center> <? echo $TbMsg[11] ?> </TH>
|
||||
<TH align=center> <? echo $TbMsg[12] ?> </TH>
|
||||
<TH align=center> <? echo $TbMsg[10] ?> </TH>
|
||||
<TH align=center> <? echo $TbMsg[13] ?> </TH>
|
||||
|
||||
|
||||
</TR>
|
||||
<?php
|
||||
echo tabla_configuraciones($cmd,$idambito);
|
||||
?>
|
||||
</TABLE>
|
||||
</FORM>
|
||||
|
||||
<!//#agp-->
|
||||
<?php } ?>
|
||||
<?php echo tabla_configuraciones($cmd,$idambito); ?>
|
||||
</form>
|
||||
<P></P>
|
||||
<!-- //#agp-->
|
||||
|
||||
<?php
|
||||
//________________________________________________________________________________________________________
|
||||
|
@ -398,6 +374,26 @@ switch($ambito){
|
|||
|
||||
$sin_duplicados=array_unique($nombreimagenes);
|
||||
$contar=1;
|
||||
if (empty($sin_duplicados)) {
|
||||
// Equipo sin configuracion en base de datos.
|
||||
$inicioTabla='<table id="tabla_conf" width="95%" class="tabla_listados_sin" align="center" border="0" cellpadding="0" cellspacing="1">'.chr(13);
|
||||
$inicioTabla.='<tr><th align="center" >'.$TbMsg["CONFIG_NOCONFIG"].'</th><tr>'.chr(13);
|
||||
}
|
||||
else {
|
||||
// Equipo con configuracion en BD
|
||||
// Incluimos primera linea de la tabla.
|
||||
$inicioTabla='<TABLE id="tabla_conf" align=center border=0 cellPadding=1 cellSpacing=1 class=tabla_datos>'.chr(13);
|
||||
$inicioTabla.=' <TR>'.chr(13);
|
||||
$inicioTabla.=' <TH align=center> '.$TbMsg[11].' </TH>'.chr(13);
|
||||
$inicioTabla.=' <TH align=center> '.$TbMsg[12].' </TH>'.chr(13);
|
||||
$inicioTabla.=' <TH align=center> '.$TbMsg[10].' </TH>'.chr(13);
|
||||
if ($cuentarepos==1)
|
||||
$inicioTabla.=' <TH align=center> '.$TbMsg[13].' </TH>'.chr(13);
|
||||
|
||||
|
||||
|
||||
}
|
||||
echo $inicioTabla;
|
||||
foreach($sin_duplicados as $value) //imprimimos $sin_duplicados
|
||||
{
|
||||
|
||||
|
@ -418,7 +414,7 @@ switch($ambito){
|
|||
$contar++;
|
||||
}
|
||||
|
||||
|
||||
echo "</table>".chr(13);
|
||||
return($tablaHtml);
|
||||
}
|
||||
|
||||
|
|
|
@ -24,4 +24,5 @@
|
|||
$TbMsg[16]=' NO te el Repositori al Servidor';
|
||||
$TbMsg[17]='Limitacions Versió 1.1';
|
||||
$TbMsg[18]='Grandària de la imatge disponible si Repositori i Servidor Web allotjats al mateix Servidor';
|
||||
$TbMsg["CONFIG_NOCONFIG"]='Sense configuració: client no connectat al servidor.';
|
||||
?>
|
||||
|
|
|
@ -24,4 +24,5 @@
|
|||
$TbMsg[16]=' NOT have the Repository on the Server';
|
||||
$TbMsg[17]='Version limitations: 1.1';
|
||||
$TbMsg[18]='Image size available if Repository and Web server hosted on the same Server';
|
||||
$TbMsg["CONFIG_NOCONFIG"]='No configuration: client does not connect to server.';
|
||||
?>
|
||||
|
|
|
@ -24,4 +24,5 @@
|
|||
$TbMsg[16]=' NO tiene el Repositorio en el Servidor';
|
||||
$TbMsg[17]='Limitaciones Versión 1.1';
|
||||
$TbMsg[18]='Tamaño de la imagen disponible si Repositorio y Servidor Web alojados en el mismo Servidor';
|
||||
$TbMsg["CONFIG_NOCONFIG"]='Sin configuración: cliente no conectado al servidor.';
|
||||
?>
|
||||
|
|
Loading…
Reference in New Issue