viewlog.tpl 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. <div id="overview">
  2. <form name="frmOverview" method="post" action="">
  3. <select name="fDomain" onchange="this.form.submit();">{$select_options}</select>
  4. <noscript><input class="button" type="submit" name="go" value="{$PALANG.go}" /></noscript>
  5. </form>
  6. </div>
  7. {if $tLog}
  8. <table id="log_table">
  9. <tr>
  10. <th colspan="5">{$PALANG.pViewlog_welcome} {$fDomain}</th>
  11. </tr>
  12. {#tr_header#}
  13. <td>{$PALANG.pViewlog_timestamp}</td>
  14. <td>{$PALANG.admin}</td>
  15. <td>{$PALANG.domain}</td>
  16. <td>{$PALANG.pViewlog_action}</td>
  17. <td>{$PALANG.pViewlog_data}</td>
  18. </tr>
  19. {assign var="PALANG_pViewlog_data" value=$PALANG.pViewlog_data}
  20. {foreach from=$tLog item=item}
  21. {assign var=log_data value=$item.data|truncate:35:"...":true}
  22. {assign var=item_data value=$item.data}
  23. {$smarty.config.tr_hilightoff|replace:'>':" style=\"cursor:pointer;\" onclick=\"alert('$PALANG_pViewlog_data = $item_data')\">"}
  24. <td nowrap="nowrap">{$item.timestamp}</td>
  25. <td nowrap="nowrap">{$item.username}</td>
  26. <td nowrap="nowrap">{$item.domain}</td>
  27. <td nowrap="nowrap">{$item.action}</td>
  28. <td nowrap="nowrap">{$log_data}</td>
  29. </tr>
  30. {/foreach}
  31. </table>
  32. {/if}