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 | 118 | return; |
| 119 | 119 | } |
| 120 | 120 | $temasn = $nmapa->getAllLayerNames(); |
| 121 | + $dados = ""; | |
| 121 | 122 | foreach ($temasn as $teman) |
| 122 | 123 | { |
| 123 | 124 | $layern = $nmapa->getLayerByName($teman); |
| 124 | 125 | $layern->set("status",MS_DEFAULT); |
| 125 | 126 | ms_newLayerObj($mapa, $layern); |
| 127 | + if ($layern->data == "") | |
| 128 | + $dados = $layern->connection; | |
| 129 | + else | |
| 130 | + $dados = $layern->data; | |
| 126 | 131 | } |
| 127 | 132 | if (isset($postgis_mapa)) |
| 128 | 133 | { |
| ... | ... | @@ -169,6 +174,10 @@ function verifica($map) |
| 169 | 174 | if(($tipo == "") || ($tipo == "todos")) |
| 170 | 175 | { |
| 171 | 176 | echo "<img src=".$nomer." />"; |
| 177 | + if($tipo == "todos") | |
| 178 | + { | |
| 179 | + echo "<br>".$dados."<br>"; | |
| 180 | + } | |
| 172 | 181 | if($map != "todos") |
| 173 | 182 | { |
| 174 | 183 | echo "<br>Erros:<br>"; | ... | ... |