/[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 377 by torben, Thu Oct 1 08:21:09 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                          }                          }
102                  }                  }
103                  if (res == null) {                  if (res == null) {
104                          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>";
105                  }                  }
106                                    
107                  resp.setContentType("text/html");                  resp.setContentType("text/html");

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

  ViewVC Help
Powered by ViewVC 1.1.20