summaryrefslogtreecommitdiffstats
path: root/admin/WebConsole/propiedades/propiedades_ordenadores.php
diff options
context:
space:
mode:
authorRamón M. Gómez <ramongomez@us.es>2018-10-19 12:52:34 +0200
committerRamón M. Gómez <ramongomez@us.es>2018-10-19 12:52:34 +0200
commit28cdb75b932df01ed5eeb3ea3f27a134b00ee864 (patch)
treecee5b8d86a66f184abca12908eae59f184222b98 /admin/WebConsole/propiedades/propiedades_ordenadores.php
parent834158ffde5f2a963e1eae18e4b770815204b165 (diff)
#870: Add warning if computer has no repository assigned to it.
Diffstat (limited to 'admin/WebConsole/propiedades/propiedades_ordenadores.php')
-rw-r--r--admin/WebConsole/propiedades/propiedades_ordenadores.php17
1 files changed, 9 insertions, 8 deletions
diff --git a/admin/WebConsole/propiedades/propiedades_ordenadores.php b/admin/WebConsole/propiedades/propiedades_ordenadores.php
index 0b5442bf..38e86438 100644
--- a/admin/WebConsole/propiedades/propiedades_ordenadores.php
+++ b/admin/WebConsole/propiedades/propiedades_ordenadores.php
@@ -181,15 +181,17 @@ function abrir_ventana(URL){
?>
</TR>
<!------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------->
- <TR>
- <th align=center>&nbsp;<?php echo $TbMsg[10]?>&nbsp;</th>
+ <tr>
+ <th align="center">&nbsp;<?php echo $TbMsg[10]?>&nbsp;</th>
<?php
- if ($opcion==$op_eliminacion)
- echo '<TD colspan=3>'.TomaDato($cmd,$idcentro,'repositorios',$idrepositorio,'idrepositorio','nombrerepositorio').'</TD>';
- else
- echo '<TD colspan=3>'.HTMLSELECT($cmd,$idcentro,'repositorios',$idrepositorio,'idrepositorio','nombrerepositorio',250).'</TD>';
+ if ($opcion==$op_eliminacion) {
+ echo '<td colspan="3">'.TomaDato($cmd,$idcentro,'repositorios',$idrepositorio,'idrepositorio','nombrerepositorio').'</td>';
+ } else {
+ echo '<td colspan="3">'.HTMLSELECT($cmd,$idcentro,'repositorios',$idrepositorio,'idrepositorio','nombrerepositorio',250);
+ echo ($idrepositorio==0?$TbMsg["WARN_NOREPO"]:'').'</td>';
+ }
?>
- </TR>
+ </tr>
<!---- AGP -------------------------------------------------------------------- OGLIVE --------------------------------------------------------------------------------------------------------->
<TR>
<th align=center>&nbsp;<?php echo $TbMsg[18]?>&nbsp;</th>
@@ -403,4 +405,3 @@ EOD;
}
return(false);
}
-?>