Commit f32d807e7031f8730dead15a76b9cb9d6ea5c13a
1 parent
411054ad
Exists in
master
and in
7 other branches
Inclusão de paginação na opção de verificação de todos os mapfiles
Showing
1 changed file
with
9 additions
and
0 deletions
Show diff stats
testamapfile.php
| @@ -118,11 +118,16 @@ function verifica($map) | @@ -118,11 +118,16 @@ function verifica($map) | ||
| 118 | return; | 118 | return; |
| 119 | } | 119 | } |
| 120 | $temasn = $nmapa->getAllLayerNames(); | 120 | $temasn = $nmapa->getAllLayerNames(); |
| 121 | + $dados = ""; | ||
| 121 | foreach ($temasn as $teman) | 122 | foreach ($temasn as $teman) |
| 122 | { | 123 | { |
| 123 | $layern = $nmapa->getLayerByName($teman); | 124 | $layern = $nmapa->getLayerByName($teman); |
| 124 | $layern->set("status",MS_DEFAULT); | 125 | $layern->set("status",MS_DEFAULT); |
| 125 | ms_newLayerObj($mapa, $layern); | 126 | ms_newLayerObj($mapa, $layern); |
| 127 | + if ($layern->data == "") | ||
| 128 | + $dados = $layern->connection; | ||
| 129 | + else | ||
| 130 | + $dados = $layern->data; | ||
| 126 | } | 131 | } |
| 127 | if (isset($postgis_mapa)) | 132 | if (isset($postgis_mapa)) |
| 128 | { | 133 | { |
| @@ -169,6 +174,10 @@ function verifica($map) | @@ -169,6 +174,10 @@ function verifica($map) | ||
| 169 | if(($tipo == "") || ($tipo == "todos")) | 174 | if(($tipo == "") || ($tipo == "todos")) |
| 170 | { | 175 | { |
| 171 | echo "<img src=".$nomer." />"; | 176 | echo "<img src=".$nomer." />"; |
| 177 | + if($tipo == "todos") | ||
| 178 | + { | ||
| 179 | + echo "<br>".$dados."<br>"; | ||
| 180 | + } | ||
| 172 | if($map != "todos") | 181 | if($map != "todos") |
| 173 | { | 182 | { |
| 174 | echo "<br>Erros:<br>"; | 183 | echo "<br>Erros:<br>"; |