/[H9]/trunk/tntnet/dynamic/customerlist.ecpp
ViewVC logotype

Diff of /trunk/tntnet/dynamic/customerlist.ecpp

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

revision 104 by torben, Thu Nov 29 17:06:38 2007 UTC revision 195 by torben, Sat Dec 8 16:47:03 2007 UTC
# Line 21  dburl; Line 21  dburl;
21  <{  <{
22  tntdb::Connection conn;  tntdb::Connection conn;
23    
24  conn = tntdb::connect(dburl); //letting exceptions flow up and to tntnet and let it display an error message  conn = tntdb::connectCached(dburl); //letting exceptions flow up and to tntnet and let it display an error message
25    
26  std::string customer_sql = "SELECT id,name,address,phonenr,contactperson FROM customer ORDER BY name ASC";  std::string customer_sql = "SELECT id,name,address,phonenr,contactperson FROM customer ORDER BY name ASC";
27    
# Line 57  if (res.size() != 0) Line 57  if (res.size() != 0)
57                  if (instres.size() > 0)                  if (instres.size() > 0)
58                  {                  {
59                          out << "Installations:\n";                          out << "Installations:\n";
60                          out << "<ol style='margin-top:0px;'>\n";                          out << "<ol>\n";
61                          for (tntdb::Result::const_iterator instit = instres.begin(); instit != instres.end(); ++instit)                          for (tntdb::Result::const_iterator instit = instres.begin(); instit != instres.end(); ++instit)
62                          {                          {
63                                  tntdb::Row instrow = *instit;                                  tntdb::Row instrow = *instit;

Legend:
Removed from v.104  
changed lines
  Added in v.195

  ViewVC Help
Powered by ViewVC 1.1.20