activitylist.tpl 1.09 KB
Newer Older
1
2
3
4
5
6
7
8
9
{foreach from=$data item=item}
  <tr class="{cycle values='r0,r1'}">
    <td>
        <img src="{theme_url filename=cat('images/' $item->type '.gif')}" alt="{$item->strtype|escape}" />
    </td>
    <td>
  {if $item->message}
      <a href="" onclick="showHideMessage({$item->id}); return false;">{$item->subject|escape}</a>
      <div id="message-{$item->id}" class="hidden">{$item->message|clean_html}
10
      {if $item->url}<br><a href="{$item->url|escape}" class="s">{if $item->urltext}{$item->urltext|escape} &raquo;{else}{str tag="more..."}{/if}</a>{/if}
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
      </div>
  {elseif $item->url}
      <a href="{$item->url|escape}">{$item->subject|escape}</a>
  {else}
      {$item->subject|escape}
  {/if}
    </td>
    <td>{$item->date|escape}</td>
    <td class="center">
  {if $item->read}
      <img src="{theme_url filename='images/star.png'}" alt="{str tag=read section=activity}">
  {else}
      <input type="checkbox" class="tocheckread" name="unread-{$item->id|escape}">
  {/if}
    </td>
    <td class="center"><input type="checkbox" class="tocheckdel" name="delete-{$item->id|escape}"></td>
  </tr>
{/foreach}