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

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

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

revision 171 by torben, Thu Dec 6 10:18:40 2007 UTC revision 195 by torben, Sat Dec 8 16:47:03 2007 UTC
# Line 29  if (userName.size() == 0) Line 29  if (userName.size() == 0)
29  <br>  <br>
30    
31  <{  <{
32  tntdb::Connection conn = tntdb::connect(dburl);  tntdb::Connection conn = tntdb::connectCached(dburl);
33    
34  std::string query = "SELECT id, name FROM customer ORDER BY name ASC";  std::string query = "SELECT id, name FROM customer ORDER BY name ASC";
35    
# Line 43  if (res.size() > 0) Line 43  if (res.size() > 0)
43          {          {
44                  int id = res[i].getInt(0);                  int id = res[i].getInt(0);
45                  std::string name = res[i].getString(1);                  std::string name = res[i].getString(1);
46                  out << "<tr><td>&nbsp;";                  out << "<tr><td>&nbsp;" << name << "&nbsp;</td>";
47                  out << "<a href='adm_customer_edit?id=" << id << "'>" << name << "</a>";                  out << "<td>&nbsp;<a href='adm_customer_edit?id=" << id << "'>edit customer</a>";
48                  out << "&nbsp;</td>\n<td>&nbsp;";                  out << "&nbsp;</td>\n<td>&nbsp;";
49                  out << "<a href='adm_installation_list?customerid=" << id << "&name=" << name << "'>manage installations</a>";                  out << "<a href='adm_installation_list?customerid=" << id << "&name=" << name << "'>manage installations</a>";
50                  out << "&nbsp;</td></tr>";                  out << "&nbsp;</td></tr>";

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

  ViewVC Help
Powered by ViewVC 1.1.20