Exemplo n.º 1
0
                ?>
</span>
                    <?php 
            } else {
                ?>
                    <?php 
                if ($option->modifier) {
                    ?>
                    <h4><?php 
                    echo $words->get('SuggestionOptionModifiedBy');
                    ?>
</h4>
                    <div class="userinfo">
                        <div class="picbox_activities float_left">
                        <?php 
                    echo MOD_layoutbits::PIC_30_30($option->modifier->Username, '', $style = 'framed float_left');
                    ?>
                        <a class="username" href="members/<?php 
                    echo $option->modifier->Username;
                    ?>
">
                        <?php 
                    echo $option->modifier->Username;
                    ?>
</a><br />
                        <span class="small"><?php 
                    echo $option->modified;
                    ?>
</span>
                        </div>
                    </div>
Exemplo n.º 2
0
    echo $words->flushBuffer();
    ?>
</li>
          </ul>

            <?php 
    // ###   NEW   To be programmed: show the first visitor, then the second. !! Different div's (c50l, c50r)!  ###
    $next_trips = MOD_trips::get()->RetrieveVisitorsInCityWithAPicture($_SESSION['IdMember']);
    echo $next_trips ? '<h3>' . $words->getFormatted('RecentMemberCity') . '</h3>' : '';
    for ($ii = 0; $ii < count($next_trips); $ii++) {
        $m = $next_trips[$ii];
        $tripDate = explode(" ", $m->tripDate);
        ?>
                    <p class="floatbox UserpicFloated">
                        <?php 
        echo MOD_layoutbits::PIC_30_30($m->Username, '', $style = 'float_left framed');
        echo $words->flushBuffer();
        ?>
                        <?php 
        echo '<a href="members/' . $m->Username . '">' . $m->Username . '</a>';
        ?>
                        <br />
                        <?php 
        echo $m->city;
        ?>
 / <?php 
        echo $m->country;
        ?>
                        <br />
                        <?php 
        echo '<a href="blog/' . $m->Username . '/' . $m->tripId . '">' . $words->get('ComingOn') . ' ' . $tripDate[0] . '</a>';
Exemplo n.º 3
0
    protected function tableCell_from($message)
    {
        $direction_in = $message->IdReceiver == $_SESSION['IdMember'];
        $contact_username = $direction_in ? $message->senderUsername : $message->receiverUsername;
        $link_username = $message->senderUsername;
        $date_sent = $message->DateSent;
        $date_created = $message->created;
        $layoutbits = new MOD_layoutbits();
        $date_string = date("M d, Y - H:i", strtotime($date_created));
        ?>
        <table><tr>
        <td>
        <?php 
        echo MOD_layoutbits::PIC_30_30($message->senderUsername, '');
        ?>
        </td>
        <td>
        <a style="color: #333;" href="members/<?php 
        echo $contact_username;
        ?>
"><strong><?php 
        echo $link_username;
        ?>
</strong></a>
        <br />
        <span class="small"><?php 
        echo $layoutbits->ago(strtotime($date_created));
        ?>
</span>
        </td>
        </tr></table>
        <?php 
    }
      <?php 
            }
            ?>
            <div class="profile float_left" >
                <p class="center">
                <?php 
            if (isset($_SESSION['Username']) && $e['memberdata']->Username == $_SESSION['Username']) {
                $username = $words->get('me');
                $myself = true;
            } else {
                $username = $e['memberdata']->Username;
                $myself = false;
            }
            ?>
                    <?php 
            echo MOD_layoutbits::PIC_30_30($e['memberdata']->Username, '', $style = '');
            ?>
<br />
                    <span title="<?php 
            echo $e['memberdata']->City;
            ?>
, <?php 
            echo $e['memberdata']->Country;
            ?>
" ><?php 
            echo '<a href="members/' . $e['memberdata']->Username . '">' . $username . '</a>';
            ?>
</span>
                </p>
            </div> <!-- profile float_left -->
  <?php 
Exemplo n.º 5
0
    protected function showListItem($item, $i_row)
    {
        $words = new MOD_words();
        $member = $this->createEntity('Member')->findById($item->IdRelMember);
        if ($item->WordCode == '' && ($text_params = unserialize($item->TranslationParams)) !== false) {
            $text = call_user_func_array(array($words, 'getSilent'), $text_params);
        } else {
            $text = $words->getSilent($item->WordCode, $member->Username);
        }
        $text_params = isset($text_params) ? $text_params : false;
        $created = MOD_layoutbits::ago(strtotime($item->created));
        echo <<<HTML
        <div class="floatbox">
            <a target="notify-{$item->id}" class="dynamic float_right" href="notify/{$item->id}/check" title="Remove">
                <img src="images/icons/box-close.png">
            </a>
            <div class="float_right small grey" title="{$item->created}">{$created}</div>
            <div class="float_left">
HTML;
        if ($item->IdRelMember != '') {
            echo "<a href='members/{$member->Username}'>";
            echo MOD_layoutbits::PIC_30_30($member->Username, '', "framed");
            echo '</a>';
        }
        echo "</div>";
        if ($item->Link != '') {
            echo "<a href='{$item->Link}'>";
        }
        echo <<<HTML
            <p class="notification_text">
                {$text}
            </p>
HTML;
        if ($item->Link != '') {
            echo '</a>';
        }
        echo "</div>";
    }
Exemplo n.º 6
0
    protected function showListItem($message, $i_row)
    {
        $words = new MOD_words();
        extract(get_object_vars($message));
        $readstyle = '';
        if ($message->unixtime_WhenFirstRead == false) {
            $readstyle = 'message unread';
        }
        //print_r($message);
        ?>
        
        <div class="floatbox">
            <a class="float_right" href="messages/<?php 
        echo $id;
        ?>
/reply" >
                <img src="images/icons/email_go.png" alt="Reply" />
            </a>
            <?php 
        echo MOD_layoutbits::PIC_30_30($senderUsername, '', 'float_left framed');
        ?>
            <a href="messages/<?php 
        echo $id;
        ?>
" class="<?php 
        echo $readstyle;
        ?>
">
        
            <?php 
        /* Remove XHTML linebreak tags. */
        $Message = str_replace("<br />", " ", $Message);
        $Message = str_replace("<br/>", " ", $Message);
        /* Remove HTML 4.01 linebreak tags. */
        $Message = str_replace("<br>", " ", $Message);
        if (strlen($Message) >= 61) {
            echo substr($Message, 0, 58) . '... ';
        } else {
            echo $Message;
        }
        ?>
        
            </a><br />
            <span class="small grey" title="<?php 
        echo date('d. m. Y', $message->unixtime_created);
        ?>
"><?php 
        echo $words->get('from');
        ?>
 <a href="members/<?php 
        echo $senderUsername;
        ?>
"><?php 
        echo $senderUsername;
        ?>
: </a>
            <?php 
        echo MOD_layoutbits::ago($message->unixtime_created);
        ?>
</span>
        </div>
        
        <?php 
    }
    echo $this->rights[$rightId]->Name;
    ?>
</td>
        <?php 
    foreach ($details->Members as $id => $memberDetails) {
        if ($firstRow) {
            $firstRow = false;
        } else {
            echo '<tr class="' . $class . '">';
        }
        $ss = $memberDetails->level == 0 ? '<span style="text-decoration: line-through; color: red;">' : '';
        $se = $memberDetails->level == 0 ? '</span>' : '';
        ?>
        <td class="usercol"> 
			<div class="picture"><div><?php 
        echo $layoutbits->PIC_30_30($memberDetails->Username);
        ?>
</div>
            <div><a href="members/<?php 
        echo $memberDetails->Username;
        ?>
" target="_blank"><?php 
        echo $memberDetails->Username;
        ?>
</a><br/>
                (<?php 
        echo $memberDetails->Status;
        ?>
 , <?php 
        echo $memberDetails->LastLogin;
        ?>
<?php

$words = new MOD_words();
$thumbPathMember = MOD_layoutbits::PIC_30_30($_SESSION['Username'], '', $style = 'float_left framed');
//$imagePathMember = MOD_user::getImage();
$_newMessagesNumber = $this->model->getNewMessagesNumber($_SESSION['IdMember']);
if ($_newMessagesNumber > 0) {
    $_mainPageNewMessagesMessage = $words->getFormatted('MainPageNewMessages', $_newMessagesNumber);
}
$LayoutBits = new MOD_layoutbits();
$ShowDonateBar = $LayoutBits->getParams('ToggleDonateBar');
$notify_widget = new NotifyMemberWidget();
$notify_widget->model = new NotifyModel();
$notify_widget->items_per_page = 4;
$inbox_widget = new MailboxWidget_Personalstart();
$inbox_widget->model = new MessagesModel();
$inbox_widget->items_per_page = 4;
$Trip = new Trip();
$TripcallbackId = $Trip->createProcess();
$editing = false;
$Places = new Places();
$Countries = $Places->getAllCountries();
Exemplo n.º 9
0
    	<div class="c50l">
			<div class="subr">
                <div class="floatbox">
                <h1 id="trip_name">
                    <a href="trip/<?php 
echo $trip->trip_id;
?>
" style="padding-right: 10px;">
                    <?php 
echo $trip->trip_name;
?>
                    </a>
                </h1>
                    <div class="float_left">
                    	<?php 
echo $layoutbits->PIC_30_30($trip->handle);
?>
                    </div>
                    <div class="trip_author"><?php 
echo $words->get('by');
?>
 <a href="members/<?php 
echo $trip->handle;
?>
"><?php 
echo $trip->handle;
?>
</a>
                        <a href="blog/<?php 
echo $trip->handle;
?>
Exemplo n.º 10
0
$Gallery = new GalleryModel();
$gallery_ctrl = new GalleryController();
if ($this->model->getLoggedInMember()) {
    $callbackId = $gallery_ctrl->editProcess($image);
    $vars =& PPostHandler::getVars($callbackId);
    $callbackIdCom = $gallery_ctrl->commentProcess($image);
    $varsCom =& PPostHandler::getVars($callbackIdCom);
    $R = MOD_right::get();
    $GalleryRight = $R->hasRight('Gallery');
}
if (!isset($vars['errors'])) {
    $vars['errors'] = array();
}
$Previous = $this->previous;
$Next = $this->next;
$userpic = MOD_layoutbits::PIC_30_30($d->user_handle, '', $style = 'float_left');
echo <<<HTML
    <div class="floatbox" style="padding-top: 30px;">
        {$userpic}
        {$words->flushBuffer()}
        <h3><a href="gallery/show/user/{$image->user_handle}">{$words->getFormatted('galleryUserOthers', $image->user_handle)}</a></h3>
    </div>
HTML;
$UserId = 1;
$SetId = false;
require_once 'surrounditems_small.php';
if ($this->gallery) {
    echo '<div class="floatbox" style="padding-top: 30px;"><h3 class="borderless">' . $words->getFormatted('Belongs to album') . '</h3>';
    echo '<a href="gallery/show/sets/' . $this->gallery->id . '">' . htmlspecialchars($this->gallery->title) . '</a>
    </div>';
}
Exemplo n.º 11
0
          <img class="gallery_first" src="gallery/thumbimg?id=<?php 
    echo $d;
    ?>
&amp;t=1" alt="image"/>
      </a>
<?php 
}
?>
      <p id="g-text" class="description">
      <?php 
echo $Own && !$g->text ? $words->get('GalleryAddDescription') : $purifier->purify($g->text);
?>
      </p>
      <div class="floatbox">
           <?php 
echo MOD_layoutbits::PIC_30_30($this->member->Username, '', $style = 'float_left');
echo $words->flushBuffer();
?>
           <p class="small"><?php 
echo $num_rows;
?>
 <?php 
echo $words->get('pictures');
?>
<br />
           <?php 
echo $words->get('by');
?>
 <a href="members/<?php 
echo $this->member->Username;
?>