示例#1
0
<table id="activities" class="striped"  style="width: 100%">
<tbody>
<?php 
foreach ($list as $activity_date => $activity) {
    echo '<tr>' . '<td><a href="' . Folks::getUrlFor('user', $activity['user_uid']) . '">' . '<img src="' . Folks::getImageUrl($activity['user_uid']) . '" class="userMiniIcon" style="float: left" /> ' . $activity['user_uid'] . '</a> - <span class="small">' . Folks::format_datetime($activity_date) . '</span>' . '<br />' . $activity['activity_message'] . '<br />' . '</td></tr>';
}
?>
</tbody>
</table>
示例#2
0
echo _("Group");
?>
</th>
    <th><?php 
echo _("Owner");
?>
</th>
    <th colsan="3"><?php 
echo _("Action");
?>
</th>
</tr>
</thead>
<tbody>
<?php 
foreach ($groups as $group_id => $group_name) {
    echo '<tr><td>' . $group_name . '</td>';
    $owner = $friends->getGroupOwner($group_id);
    echo '<td style="text-align: center"><a href="' . Folks::getUrlFor('user', $owner) . '"><img src="' . Folks::getImageUrl($owner) . '" class="userMiniIcon" /><br />' . $owner . '</a></td>';
    echo '<td><a href="' . $members_url->add('g', $group_id) . '">' . $members_img . ' ' . _("Members") . '</a></td>';
    if ($friends->hasCapability('groups_add')) {
        echo '<td><a href="' . $edit_url->add('g', $group_id) . '">' . $edit_img . ' ' . _("Rename") . '</a></td>';
        echo '<td><a href="#" onclick="if (confirm(\'' . _("Do you really want to delete this group?") . '\')) {window.location=\'' . $remove_url->add('g', $group_id) . '\'}">' . $remove_img . ' ' . _("Delete") . '</a></td>';
        echo '<td><a href="#" onclick="' . Horde::popupJs($perms_url, array('params' => array('cid' => $group_id), 'urlencode' => true)) . '">' . $perms_img . ' ' . _("Permissions") . '</a></td>';
    }
    echo '</tr>';
}
?>
</tbody>
</table>
示例#3
0
foreach ($list as $user) {
    ?>
<tr valign="top">
<td>
<a href="<?php 
    echo Folks::getUrlFor('user', $user);
    ?>
" alt="<?php 
    echo $user;
    ?>
" title="<?php 
    echo $user;
    ?>
">
<img src="<?php 
    echo Folks::getImageUrl($user);
    ?>
" class="userMiniIcon" style="float: left" />
<strong><?php 
    echo $user;
    ?>
</strong></a><br />
<span class="small">
<?php 
    foreach ($actions as $action) {
        ?>
<a href="<?php 
        echo $action['url']->add($action['id'], $user);
        ?>
"><?php 
        echo $action['name'];
示例#4
0
文件: Api.php 项目: jubinpatel/horde
 /**
  * Returns profile image URL.
  *
  * @param string  $user      User uid
  * @param string $view       The view ('small', 'big') to show.
  * @param boolean $full      Return a path that includes the server name?
  *
  * @return string  The image path.
  */
 public function getImageUrl($user, $view = 'small', $full = false)
 {
     require_once __DIR__ . '/base.php';
     return Folks::getImageUrl($user, $view, $full);
 }
示例#5
0
文件: feed.php 项目: jubinpatel/horde
?>
</pubDate>
  <generator><?php 
echo $registry->get('name');
?>
</generator>
<?php 
foreach ($users as $user) {
    ?>
   <item>
    <title><?php 
    echo htmlspecialchars($user);
    ?>
</title>
    <description><![CDATA[ <?php 
    echo '<img src="' . Folks::getImageUrl($user, 'small', true) . '" />';
    ?>
 ]]></description>
    <link><?php 
    echo Folks::getUrlFor('user', $user, true);
    ?>
</link>
    <author><?php 
    echo $user;
    ?>
</author>
  </item>
  <?php 
}
?>
 </channel>
示例#6
0
文件: user.php 项目: jubinpatel/horde
</a>
</span>
<?php 
    echo _("Friends");
    ?>
 (<?php 
    echo count($friends);
    ?>
)
</td>
</tr>
<tr>
    <td colspan="2">
        <?php 
    foreach ($friends as $item) {
        $img = Folks::getImageUrl($item);
        echo '<a href="' . Folks::getUrlFor('user', $item) . '" title="' . $item . '">' . '<img src="' . $img . '" class="userMiniIcon" /></a>';
    }
    ?>
    </td>
</tr>
<?php 
}
?>

<?php 
if ($profile['count_classifieds']) {
    $path = $registry->get('webroot', 'classifieds');
    ?>
<tr>
<td class="header" colspan="2">
示例#7
0
文件: list.php 项目: jubinpatel/horde
        echo '</th>';
    }
    ?>
</tr>
</thead>
<?php 
    foreach ($users as $user) {
        ?>
<tr>
    <td style="text-align: center">
        <a href="<?php 
        echo Folks::getUrlFor('user', $user['user_uid']);
        ?>
">
        <img src="<?php 
        echo Folks::getImageUrl($user['user_uid']);
        ?>
" class="userMiniIcon" />
        <?php 
        echo $user['user_uid'];
        ?>
</a>
    </td>
    <td><?php 
        if ($user['user_gender']) {
            echo $user['user_gender'] == 1 ? _("Male") : _("Female");
        }
        ?>
</td>
    <td><?php 
        $age = Folks::calcAge($user['user_birthday']);
示例#8
0
?>
</th>
    <th><?php 
echo _("Action");
?>
</th>
</tr>
</thead>
<tbody>
<?php 
foreach ($list as $user) {
    ?>
<tr>
    <td style="text-align: center">
        <?php 
    echo '<a href="' . Folks::getUrlFor('user', $user) . '">' . '<img src="' . Folks::getImageUrl($user) . '" class="userMiniIcon" /><br />' . $user;
    ?>
</a>
    </td>
    <td>
    <?php 
    if ($folks_driver->isOnline($user)) {
        echo '<span class="online">' . _("Online") . '</span>';
    } else {
        echo '<span class="offline">' . _("Offline") . '</span>';
    }
    ?>
    </td>
    <?php 
    foreach ($actions as $action) {
        echo '<td>';