diff options
author | Ramón M. Gómez <ramongomez@us.es> | 2018-10-19 12:52:34 +0200 |
---|---|---|
committer | Ramón M. Gómez <ramongomez@us.es> | 2018-10-19 12:52:34 +0200 |
commit | 28cdb75b932df01ed5eeb3ea3f27a134b00ee864 (patch) | |
tree | cee5b8d86a66f184abca12908eae59f184222b98 /admin/WebConsole/propiedades | |
parent | 834158ffde5f2a963e1eae18e4b770815204b165 (diff) |
#870: Add warning if computer has no repository assigned to it.
Diffstat (limited to 'admin/WebConsole/propiedades')
-rw-r--r-- | admin/WebConsole/propiedades/propiedades_ordenadores.php | 17 |
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> <?php echo $TbMsg[10]?> </th> + <tr> + <th align="center"> <?php echo $TbMsg[10]?> </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> <?php echo $TbMsg[18]?> </th> @@ -403,4 +405,3 @@ EOD; } return(false); } -?> |