/[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 93 by torben, Thu Nov 29 05:21:04 2007 UTC revision 94 by torben, Thu Nov 29 08:04:13 2007 UTC
# Line 13  dburl; Line 13  dburl;
13  std::string userName;  std::string userName;
14  </%session>  </%session>
15    
16    <{
17    if (userName.size() == 0)
18    {
19            reply.setHeader("Location", "index");
20            return HTTP_MOVED_TEMPORARILY;
21    }
22    }>
23    
24  <&header title="Customer administration">  <&header title="Customer administration">
25  </&header>  </&header>
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    
 <{  
   
 if (userName.size() == 0)  
 {  
         reply.setHeader("Refresh", "0; url=login");  
         return HTTP_OK;  
 }  
   
 tntdb::Connection conn;  
30    
31  conn = tntdb::connect(dburl); //letting exceptions flow up and to tntnet and let it display an error message  <{
32    tntdb::Connection conn = tntdb::connect(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    

Legend:
Removed from v.93  
changed lines
  Added in v.94

  ViewVC Help
Powered by ViewVC 1.1.20