$friends = ""; ?> <h4><?php echo _t("my friends"); ?> </h4> <?php if ($db->numRows()) { while ($db->nextRecord()) { $acl = new Acl($db->friend_sender); $time = time() - 200; $online = $acl->last_access < $time ? get_date($acl->last_access) : "<b><font color='green'>Online</font></b>"; ?> <div class="user" style="float:left; margin: 3px; border: 1px solid #ddd; padding:5px; padding-bottom: 10px; background-color: #f8f8f8; width: 47%;"> <img width="50px" src="<?php echo $acl->avatar(); ?> " style="float:left; margin-right: 5px;" alt=""> <a href="<?php echo page("profile", "view", $acl->name); ?> "><b><?php echo $acl->name; ?> </b></a> (<?php echo $acl->group_name; ?> ) <?php echo $online; ?> <br />
<thead> <tr> <td width="150px" class="border-bottom"><a href="<?php echo page("profile", "view", strtolower($user->name)); ?> "><?php echo $user->name; ?> </a></td> <td class="border-bottom"></td> </tr> </thead> <tbody> <tr> <td valign="top" class="border-right"><img src="<?php echo $user->avatar(); ?> " width="150px"/></td> <td valign="top"> <small>Posted at <?php echo get_date(time(), "", 0, 0); ?> </small><br /> <?php echo htmlformat($content, true); ?> </td> </tr> <tr> <td valign="top" class="border-right border-bottom"> <a href="<?php
<?php $db = new DB("messages"); $db->setSort("message_added DESC"); $db->setColPrefix("message_"); $db->select("message_id = '" . $this->item . "'"); $db->nextRecord(); $user = new Acl($db->sender); ?> <div class="item"> <div class="avatar"> <?php echo "<img src='" . $user->avatar() . "' style='max-width:70px'>"; ?> </div> <div class="sender"> <b><a href="<?php echo page("profile", "view", strtolower($user->name)); ?> "><?php echo $db->sender != 0 ? $user->name : "System"; ?> </a></b> <br /> <?php echo htmlformat($db->content, true); ?> </div> <div class="date"> <?php echo get_date($db->added); ?>