38 |
std::ostream& out = reply.out(); |
std::ostream& out = reply.out(); |
39 |
if (res.size() > 0) |
if (res.size() > 0) |
40 |
{ |
{ |
41 |
out << "<ul>"; |
out << "<table border='1' cellspacing='0'>"; |
42 |
for (int i=0; i<res.size(); ++i) |
for (int i=0; i<res.size(); ++i) |
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 << "<li>"; |
out << "<tr><td>"; |
47 |
out << "<a href='adm_customer_edit?id=" << id << "'>" << name << "</a>"; |
out << "<a href='adm_customer_edit?id=" << id << "'>" << name << "</a>"; |
48 |
out << " - <a href='adm_installation_list?customerid=" << id << "&name=" << name << "'>manage installations</a>"; |
out << "</td>\n<td>"; |
49 |
out << "</li>"; |
out << "<a href='adm_installation_list?customerid=" << id << "&name=" << name << "'>manage installations</a>"; |
50 |
|
out << "</td></tr>"; |
51 |
} |
} |
52 |
out << "</ul>"; |
out << "</table>"; |
53 |
} |
} |
54 |
else |
else |
55 |
{ |
{ |