Ignore:
Timestamp:
2014-12-03T00:03:51+01:00 (10 years ago)
Author:
mkyral
Message:

PointInfo: Show issues reported on Ruian buildings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/pointInfo/servers/RUIAN/index.php

    r30466 r30833  
    7373           "plati_od" => $row["plati_od"]
    7474           );
     75
     76  // Reported issues on building
     77  $query="
     78    select nb.user_nick, nb.datum, nbd.popis, nb.poznamka
     79    from neplatne_budovy nb, neplatne_budovy_duvod nbd
     80    where nb.duvod = nbd.id and nb.kod = ".$row["kod"]."
     81    ;
     82  ";
     83  $result=pg_query($CONNECT,$query);
     84
     85  if (pg_num_rows($result) > 0)
     86  {
     87    $row = pg_fetch_array($result, 0);
     88
     89
     90    $data["nahlaseny_problem"] =
     91      array( "uzivatel" => $row["user_nick"],
     92             "datum" => $row["datum"],
     93             "duvod" => $row["popis"],
     94             "poznamka" => $row["poznamka"]
     95            );
     96  } else
     97  {
     98    $data["nahlaseny_problem"] = array();
     99  }
    75100} else
     101{
    76102    $data["stavebni_objekt"] = array();
     103    $data["nahlaseny_problem"] = array();
     104}
     105
     106
     107
    77108
    78109// Ghosts: Buildings without geometry in close neighbourhood
Note: See TracChangeset for help on using the changeset viewer.