<%pre> #include #include #include #include <%config> dburl; <%session scope="global"> std::string userName; <%args> int customerid; std::string name; <{ if (userName.size() == 0) { reply.setHeader("Location", "index"); return HTTP_MOVED_TEMPORARILY; } }> <&header title="Installation administration">

Installation administration for <$ name $>

<<Back to customer list
Create new installation
<{ tntdb::Connection conn = tntdb::connect(dburl); std::stringstream query; query << "SELECT id,description FROM installation WHERE customerid=" << customerid << " ORDER BY description ASC"; tntdb::Result res = conn.select(query.str()); std::ostream& out = reply.out(); if (res.size() > 0) { out << "
    "; for (int i=0; i"; out << "" << desc << ""; out << ""; } out << "
"; } else { out << "No installations found!"; } }> <&footer>