websiteWebsite
codingteam CodingTeam
A free forge, lightweight and extensible.

 

Browse the code

Revision log Information on the revision
Revision: 360 (differences)
Author: xbright
Log message: * Added a personal messaging system, allowing users to communicate privately through CT (SQL schema updated)
* Added pt_BR to the list of human languages
Change revision:
<div class="toolbuttons">
  <a href="users/messages/new" class="tforum"><?=i18n('Send a new message');?></a>
</div>
 
<h1><?=i18n('Messages');?></h1>
 
<h2><?=i18n('Personal threads');?></h2>
 
<table style="width: 100%;">
  <thead>
    <tr>
      <th style="width: 50%;"><?=i18n('Subject');?></th>
      <th><?=i18n('With');?></th>
      <th style="width: 15%;" class="current-th"><?=i18n('Date');?></th>
    </tr>
  </thead>
  <tfoot>
    <tr>
      <td colspan="2">
        <?=$pagination['links'];?>
      </td>
      <td style="text-align: right;">
        <?=$pagination['infos'];?>
      </td>
    </tr>
  </tfoot>
  <tbody>
    <? if (is_array($messages)): ?>
      <? foreach($messages as $mess): ?>
        <tr>
          <td>
            <table style="width: 100%;">
              <tr>
                <td style="width: 25px;vertical-align: top;">
                  <img src="public/images/icons/stock/net/stock_mail<?=(($mess['read']) ? '' : '-unread');?>.png" />
                </td>
                <td>
                  <a href="users/messages/show/<?=$mess['postid'];?>"><strong><?=$mess['subject'];?></strong></a>
                  <br />
                  <span class="text_normal"><?=$mess['message'];?></span>
                </td>
              </tr>
            </table>
          </td>
          <td>
            <?=$mess['sender'];?>
          </td>
          <td class="current-td center">
            <?=$mess['date'];?>
          </td>
        </tr>
      <? endforeach; ?>
    <? else: ?>
      <tr>
        <td>
          <em><?=i18n('No messages.');?></em>
        </td>
      </tr>
    <? endif; ?>
  </tbody>
</table>