26 |
<h2>Customers administration</h2> |
<h2>Customers administration</h2> |
27 |
|
|
28 |
<a href="adm_customer_edit?id=-1">Create new customer</a><br> |
<a href="adm_customer_edit?id=-1">Create new customer</a><br> |
29 |
|
<br> |
30 |
|
|
31 |
<{ |
<{ |
32 |
tntdb::Connection conn = tntdb::connect(dburl); |
tntdb::Connection conn = tntdb::connect(dburl); |
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>"; |
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 << "</td>\n<td>"; |
out << " </td>\n<td> "; |
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 << "</td></tr>"; |
out << " </td></tr>"; |
51 |
} |
} |
52 |
out << "</table>"; |
out << "</table>"; |
53 |
} |
} |