/[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 314 by torben, Fri Sep 11 08:02:33 2009 UTC revision 492 by torben, Sun Nov 1 16:35:48 2009 UTC
# Line 96  public class DumpResultSet extends HttpS Line 96  public class DumpResultSet extends HttpS
96                                                  "'<a href=\"http://www.bane.dk/visStation.asp?ArtikelID=4275&W=FJRN&S=' || stationcode_fjrn  || '\">Bane.dk Fjern</a>' as banedk1, " +                                                  "'<a href=\"http://www.bane.dk/visStation.asp?ArtikelID=4275&W=FJRN&S=' || stationcode_fjrn  || '\">Bane.dk Fjern</a>' as banedk1, " +
97                                                  "'<a href=\"http://www.bane.dk/visStation.asp?ArtikelID=4275&W=S2&S=' || stationcode_stog  || '\">Bane.dk stog</a>' as banedk2 " +                                                  "'<a href=\"http://www.bane.dk/visStation.asp?ArtikelID=4275&W=S2&S=' || stationcode_stog  || '\">Bane.dk stog</a>' as banedk2 " +
98                                                  "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.314  
changed lines
  Added in v.492

  ViewVC Help
Powered by ViewVC 1.1.20