Пример #1
0
		<th>Sender</th>
		<th>Sent</th>
	</tr>
<?php 
    foreach ($messages as $m) {
        $read = $m->getDateRead() != null ? 'read' : 'unread';
        echo '<tr>';
        echo '<td class="subject ' . $read . '">';
        // show "Re:" if this is a reply to a previous message
        $subject = $m->getSubject();
        if ($m->getParentID() != $m->getID()) {
            $subject = 'Re: ' . $subject;
        }
        echo '<h6><a href="' . Url::message($m->getID()) . '">' . $subject . '</a></h6>';
        echo '<p>';
        $body = strip_tags(formatInboxMessage($m->getBody()));
        echo substr($body, 0, 35);
        if (strlen($body) > 35) {
            echo '&hellip;';
        }
        echo '</p>';
        echo '</td>';
        echo '<td class="sender">' . formatUserLink($m->getSenderID()) . '</td>';
        echo '<td class="sent">' . formatTimeTag($m->getDateSent()) . '</td>';
        echo '</tr>';
    }
    ?>

</table>

<?php 
Пример #2
0
			});
		});
	});
</script>

<ul class="segmented-list replies">
	<li><h5><?php 
echo $message->getSubject();
?>
</h5></li>
<?php 
foreach ($replies as $reply) {
    echo '<li>';
    echo formatUserPicture($reply->getSenderID(), 'small');
    echo '<p class="headline">' . formatUserLink($reply->getSenderID()) . ' <span class="slash">/</span> <span class="when">' . formatTimeTag($reply->getDateSent()) . '</span></p>';
    echo '<p class="message">' . formatInboxMessage($reply->getBody()) . '</p>';
    echo '</li>';
}
?>
	<li class="reply">
		<textarea id="txtReplyMessage"></textarea>	
		<div class="buttons">
			<input type="button" class="right" id="btnReply" value="Send Reply" />
			<p class="right"><a class="help-link" href="<?php 
echo Url::help();
?>
#help-html-allowed">Some HTML allowed</a></p>
		</div>
	</li>
</ul>