Login   Register  
PHP Classes
elePHPant
Icontem

File: mylogs.tpl

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Md. Shahadat Hossain Khan Razon  >  Log Writer and Reader  >  mylogs.tpl  >  Download  
File: mylogs.tpl
Role: Auxiliary script
Content type: text/plain
Description: Example # 01: Template File
Class: Log Writer and Reader
Store and retrieve logs from a MySQL database
Author: By
Last change:
Date: 6 years ago
Size: 688 bytes
 

Contents

Class file image Download
{if $activitieslog}
  <div style="width: 650px; padding-bottom: 15px; ">
  <h3>Latest activities...</h3>
  <table cellpadding=0 cellspacing=0 width="100%" border=0 style="border: 1px solid #cdcdcd; background-color: #F0F0F0; ">
    <tr><th align="left"><u>Time</u></th><th>&nbsp;&nbsp;</th><th align="left"><u>Details</u></th><th align="left"><u>Status</u></th></tr>
  {foreach from=$activitieslog item=ld}
    <tr><td valign="top"><strong>{$ld.tm}</strong></td><td align="center" valign="top">&nbsp;&nbsp;</td><td valign="top">{$ld.details}</td><td valign="top">{$ld.status_text}</td></tr>
  {/foreach}
  </table>
  </div>
{else}
  <h3>No Activities Found at Log Table</h3>
{/if}