Advertisement
Guest User

Untitled

a guest
Jul 3rd, 2015
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.89 KB | None | 0 0
  1. <html>
  2.    <head>
  3.       <* = call ( getResourceFromName("ajax"), "start", getResourceName(getThisResource()) ) *>
  4.    </head>
  5.    <body>
  6.     <*
  7.  
  8.         if ( exports.GTIreport:getReports() ) >= 1 then
  9.             httpWrite ( "<table border='1'> <tr> <th> Reporter </th> <th> Reporter job </th> <th> Last attacker </th> <th> Attacker job </th> <th> Rule broken </th>< <th> Screenshot </th> /tr>" )
  10.             for index, value in ipairs (  exports.GTIreport:getTableReports() ) do
  11.                 httpWrite ( "<td> " .. value[1] .. " </td> <td> " ..value[2] .. " </td>")
  12.                 if value[1] ~= value[3] then
  13.                     httpWrite ( "<td> " .. value[3] .. " </td> <td> " ..value[4] .. " </td>")
  14.                 else
  15.                     httpWrite ( "<td> N/A </td> <td> N/A </td>")
  16.                 end
  17.                 httpWrite ( "<td> " .. value[7] .. " </td>")
  18.                
  19.                 httpWrite ( "</table>" )
  20.             end
  21.         else
  22.             httpWrite( "There are no pending reports" )
  23.         end
  24.     *>
  25.    </body>
  26. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement