/[projects]/android/TrainInfoService/src/dk/thoerup/traininfoservice/DumpResultSet.java
ViewVC logotype

Diff of /android/TrainInfoService/src/dk/thoerup/traininfoservice/DumpResultSet.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 304 by torben, Tue Sep 8 11:51:21 2009 UTC revision 492 by torben, Sun Nov 1 16:35:48 2009 UTC
# Line 93  public class DumpResultSet extends HttpS Line 93  public class DumpResultSet extends HttpS
93                          } else if (dump.equals("allfull")) {                          } else if (dump.equals("allfull")) {
94                                  res = dumpResultset("select *, " +                                  res = dumpResultset("select *, " +
95                                                  "'<a href=\"http://maps.google.com/?q=' ||latitude || ',' || longitude || '\">Maps</a>' AS maps, " +                                                  "'<a href=\"http://maps.google.com/?q=' ||latitude || ',' || longitude || '\">Maps</a>' AS maps, " +
96                                                  "CASE WHEN stog = false THEN '<a href=\"http://www.bane.dk/visStation.asp?ArtikelID=4275&W=FJRN&S=' || stationcode  || '\">Bane.dk</a>' " +                                                  "'<a href=\"http://www.bane.dk/visStation.asp?ArtikelID=4275&W=FJRN&S=' || stationcode_fjrn  || '\">Bane.dk Fjern</a>' as banedk1, " +
97                                                  "ELSE '<a href=\"http://www.bane.dk/visStation.asp?ArtikelID=4275&W=S2&S=' || stationcode  || '\">Bane.dk</a>' " +                                                  "'<a href=\"http://www.bane.dk/visStation.asp?ArtikelID=4275&W=S2&S=' || stationcode_stog  || '\">Bane.dk stog</a>' as banedk2 " +
98                                                  "END as banedk FROM trainstations ORDER BY id");                                                  "FROM trainstations ORDER BY id");
99                            } else if (dump.equals("disabled")) {
100                                    res = dumpResultset("SELECT * FROM trainstations WHERE enabled = false ORDER BY id");
101                            } else if (dump.equals("noaddress")) {
102                                    res = dumpResultset("SELECT * FROM trainstations WHERE address IS NULL or address = '' ");
103                          }                          }
104                  }                  }
105                  if (res == null) {                  if (res == null) {
106                          res = "<a href=DumpResultSet?dump=all>All</a><br><a href=DumpResultSet?dump=allfull>All with links</a><br><a href=DumpResultSet?dump=coords>Missing coords</a><br><a href=DumpResultSet?dump=duplicate>Duplicate stations</a>";                          res = "<a href=DumpResultSet?dump=all>All</a><br><a href=DumpResultSet?dump=allfull>All with links</a><br><a href=DumpResultSet?dump=coords>Missing coords</a><br><a href=DumpResultSet?dump=duplicate>Duplicate stations</a><br><a href=DumpResultSet?dump=disabled>Disabled stations</a><br><a href=DumpResultSet?dump=noaddress>No address</a>";
107                  }                  }
108                                    
109                  resp.setContentType("text/html");                  resp.setContentType("text/html");

Legend:
Removed from v.304  
changed lines
  Added in v.492

  ViewVC Help
Powered by ViewVC 1.1.20