/[H9]/trunk/tntnet/dynamic/installationdetails.ecpp
ViewVC logotype

Diff of /trunk/tntnet/dynamic/installationdetails.ecpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 114 by torben, Sat Dec 1 18:44:36 2007 UTC revision 126 by torben, Sun Dec 2 20:26:43 2007 UTC
# Line 74  if (res.size() >0 ) Line 74  if (res.size() >0 )
74          </tr>          </tr>
75          <tr>          <tr>
76                  <td>Comm. status: </td>                  <td>Comm. status: </td>
77                  <td><img src="bullet.php?rgb=<$ (res[0].getBool(6) ? "ff0000" : "00ff00") $>"></td>                  <td><img src="bullet.php?rgb=<$ (res[0].getBool(6) ? "ff0000" : "00ff00") $>" alt="Status Indicator"></td>
78          </tr>          </tr>
79    
80    
81          </table>          </table>
82    
83    
84          <p align="center"><img src="temperaturegraph?id=<$id$>"></p>          <p align="center"><img src="temperaturegraph?id=<$id$>" alt="Temperature graph"></p>
85    
86          <{          <{
87          query.str(""); //reset stringstream          query.str(""); //reset stringstream
# Line 95  if (res.size() >0 ) Line 95  if (res.size() >0 )
95          out << "<table border=1 cellspacing=0 align='center'>\n";          out << "<table border=1 cellspacing=0 align='center'>\n";
96          out << "<tr><th>&nbsp;Message#&nbsp;</th><th>&nbsp;Logtime&nbsp;</th><th>&nbsp;Temperature&nbsp;</th><th>&nbsp;Flamedetector&nbsp;</th><th>&nbsp;Solidfuel empty&nbsp;</th><th>&nbsp;Conveyor error&nbsp;</th><th>&nbsp;Power failure&nbsp;</th></tr>\n";          out << "<tr><th>&nbsp;Message#&nbsp;</th><th>&nbsp;Logtime&nbsp;</th><th>&nbsp;Temperature&nbsp;</th><th>&nbsp;Flamedetector&nbsp;</th><th>&nbsp;Solidfuel empty&nbsp;</th><th>&nbsp;Conveyor error&nbsp;</th><th>&nbsp;Power failure&nbsp;</th></tr>\n";
97    
98          for (int i=0; i<res.size(); ++i)          for (unsigned int i=0; i<res.size(); ++i)
99          {          {
100                  int messagenr = res[i].getInt(0);                  int messagenr = res[i].getInt(0);
101                  std::string logtime = res[i].getString(1);                  std::string logtime = res[i].getString(1);
# Line 119  if (res.size() >0 ) Line 119  if (res.size() >0 )
119                                                                    
120                  out << "</tr>";                  out << "</tr>";
121          }          }
122            out << "</table>\n";
123    
124    
125          }>          }>

Legend:
Removed from v.114  
changed lines
  Added in v.126

  ViewVC Help
Powered by ViewVC 1.1.20