--- trunk/tntnet/dynamic/adm_customer_edit.ecpp 2007/11/29 08:04:13 94 +++ trunk/tntnet/dynamic/adm_customer_edit.ecpp 2007/12/06 18:40:14 179 @@ -15,7 +15,6 @@ <%session scope="global"> std::string userName; -bool isAdmin; <%args> @@ -44,7 +43,7 @@ reply.out() << ""; reply.sout() << "<< back to customer list"; -reply.out() << "
"; +reply.out() << "

"; tntdb::Connection conn = tntdb::connect(dburl); @@ -75,6 +74,8 @@ tntdb::Statement st = conn.prepare("UPDATE customer SET name=:v1, address=:v2, phonenr=:v3, contactperson=:v4 WHERE id=:v5"); st.setString("v1", form_name).setString("v2", form_address).setString("v3", form_phone).setString("v4", form_contact).setInt("v5", id); st.execute(); + + reply.out() << "Customer updated
\n"; } } @@ -139,16 +140,20 @@ +<{ +if (id != -1) +{ +}> +
-
+ - +
<{ -} - - +} //fi (id != -1) +} //fi (showForm) }> <&footer>