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

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

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

revision 101 by torben, Thu Nov 29 13:59:21 2007 UTC revision 195 by torben, Sat Dec 8 16:47:03 2007 UTC
# Line 31  if (userName.size() == 0) Line 31  if (userName.size() == 0)
31  <h2>Installation administration for <$ name $></h2>  <h2>Installation administration for <$ name $></h2>
32    
33    
34  <a href="adm_customer_list">&lt;&lt;Back to customer list</a>  <a href="adm_customer_list">&lt;&lt;Back to customer list</a><br><br>
35  <a href="adm_installation_edit?id=-1&customerid=<$customerid$>&name=<$name$>">Create new installation</a><br>  <a href="adm_installation_edit?id=-1&customerid=<$customerid$>&name=<$name$>">Create new installation</a><br>
36    
37    
38  <{  <{
39  tntdb::Connection conn = tntdb::connect(dburl);  tntdb::Connection conn = tntdb::connectCached(dburl);
40    
41  std::stringstream query;  std::stringstream query;
42  query << "SELECT id,description FROM installation WHERE customerid=" << customerid << " ORDER BY description ASC";  query << "SELECT id,description FROM installation WHERE customerid=" << customerid << " ORDER BY description ASC";
# Line 47  std::ostream& out = reply.out(); Line 47  std::ostream& out = reply.out();
47  if (res.size() > 0)  if (res.size() > 0)
48  {  {
49          out << "<ol>";          out << "<ol>";
50          for (int i=0; i<res.size(); ++i)          for (unsigned i=0; i<res.size(); ++i)
51          {          {
52                  int id = res[i].getInt(0);                  int id = res[i].getInt(0);
53                  std::string desc = res[i].getString(1);                  std::string desc = res[i].getString(1);

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

  ViewVC Help
Powered by ViewVC 1.1.20