コード例 #1
0
ファイル: withmember.page.php プロジェクト: gpuenteallott/rox
 protected function getTableColumns()
 {
     $request_str = implode('/', PRequest::get()->request);
     $dir_str = isset($_GET['dir']) && $_GET['dir'] != 'ASC' ? 'ASC' : 'DESC';
     $words = new MOD_words();
     return array('select' => '', 'from' => '<a href="' . $request_str . '?sort=sender&amp;dir=' . $dir_str . '">' . $words->getSilent('From') . '</a> / <a href="' . $request_str . '?sort=date&amp;dir=' . (isset($_GET['dir']) ? $dir_str : 'ASC') . '">' . $words->getSilent('Date') . '</a>' . $words->flushBuffer(), 'message' => $words->get('MessagesText'));
     return array('select' => '', 'from' => 'From/To', 'message' => 'Text');
 }
コード例 #2
0
ファイル: mailbox.widget.php プロジェクト: gpuenteallott/rox
 /**
  * Columns for messages table.
  * The $key of a column is used as a suffix for method tableCell_$key
  *
  * @return array table columns, as $name => Column title
  */
 protected function getTableColumns()
 {
     // We don't mark the link of the current sortorder yet, but we could:
     // $sort_current = isset($_GET['sort']) ? $_GET['sort'] : 'date';
     // This would lgo in the a-tag: '.(($sort_current == 'date') ? 'class="sort_selected"' : '').'
     $request_str = implode('/', PRequest::get()->request);
     $dir_str = isset($_GET['dir']) && $_GET['dir'] != 'ASC' ? 'ASC' : 'DESC';
     $words = new MOD_words();
     return array('select' => '', 'from' => '<a href="' . $request_str . '?sort=sender&amp;dir=' . $dir_str . '">' . $words->getSilent('From') . '</a> / <a href="' . $request_str . '?sort=date&amp;dir=' . (isset($_GET['dir']) ? $dir_str : 'ASC') . '">' . $words->getSilent('Date') . '</a>' . $words->flushBuffer(), 'message' => $words->get('MessagesText'));
 }
コード例 #3
0
 protected function getPageTitle()
 {
     $words = new MOD_words();
     if (isset($_SESSION['Username'])) {
         return $words->getSilent('HelloUsername', $_SESSION['Username']) . ' | BeWelcome';
     } else {
         // this should not happen actually!
         return $words->getSilent('WelcomeGuest');
     }
 }
コード例 #4
0
ファイル: sent.page.php プロジェクト: gpuenteallott/rox
 protected function getTableColumns()
 {
     $columns = parent::getTableColumns();
     $columns['from'] = 'To';
     // We don't mark the link of the current sortorder yet, but we could:
     // $sort_current = isset($_GET['sort']) ? $_GET['sort'] : 'date';
     // This would lgo in the a-tag: '.(($sort_current == 'date') ? 'class="sort_selected"' : '').'
     $request_str = implode('/', PRequest::get()->request);
     $dir_str = isset($_GET['dir']) && $_GET['dir'] != 'ASC' ? 'ASC' : 'DESC';
     $words = new MOD_words();
     $columns['from'] = '<a href="' . $request_str . '?sort=receiver&amp;dir=' . $dir_str . '">' . $words->getSilent('To') . '</a> / <a href="' . $request_str . '?sort=date&amp;dir=' . (isset($_GET['dir']) ? $dir_str : 'ASC') . '">' . $words->getSilent('Date') . '</a>' . $words->flushBuffer();
     return $columns;
 }
コード例 #5
0
ファイル: profileversion.php プロジェクト: gpuenteallott/rox
function sortLanguages($languages)
{
    $words = new MOD_words();
    $langarr = indexedLanguages($languages);
    foreach ($langarr as $language) {
        $language->TranslatedName = $words->getSilent($language->WordCode);
    }
    uasort($langarr, "cmpProfileLang");
    return $langarr;
}
コード例 #6
0
 private function sortLanguages($languages)
 {
     $words = new MOD_words();
     $langarr = array();
     foreach ($languages as $language) {
         $lang = $language;
         $lang->TranslatedName = $words->getSilent($language->WordCode);
         $langarr[] = $lang;
     }
     usort($langarr, "cmpEditLang");
     return $langarr;
 }
コード例 #7
0
function ShowAccommodation($accommodation)
{
    $words = new MOD_words();
    switch ($accommodation) {
        case 'anytime':
            $imgSrc = 'images/icons/yesicanhost.png';
            break;
        case 'dependonrequest':
            $imgSrc = 'images/icons/maybe.png';
            break;
        case 'neverask':
            $imgSrc = 'images/icons/nosorry.png';
            break;
    }
    $altText = $words->getSilent('Accomodation_' . $accommodation);
    $imgTag = '<img src="' . $imgSrc . '" title="' . $altText . '" ' . ' alt="' . $altText . '" />';
    return $imgTag;
}
コード例 #8
0
ファイル: blogcreate.page.php プロジェクト: gpuenteallott/rox
 protected function column_col3()
 {
     $member = $this->_model->getLoggedInMember();
     $Blog = new Blog();
     $callback = $this->getCallbackOutput('BlogController', 'createProcess');
     // get the saved post vars
     // get current request
     $request = PRequest::get()->request;
     $errors = array();
     $lang = array();
     $words = new MOD_words();
     $i18n = new MOD_i18n('apps/blog/editcreate.php');
     $errors = $i18n->getText('errors');
     $lang = $i18n->getText('lang');
     $monthNames = array();
     $i18n = new MOD_i18n('date.php');
     $monthNames = $i18n->getText('monthNames');
     $catIt = $this->_model->getCategoryFromUserIt($member->id);
     $tripIt = $this->_model->getTripFromUserIt($member->id);
     $google_conf = PVars::getObj('config_google');
     $defaultVis = new StdClass();
     $defaultVis->valueint = 2;
     // hack: TB settings are disabled as they reference app_user - default visibility is public
     //$defaultVis = A PP_User::getSetting($member->id, 'APP_blog_defaultVis');
     if (!isset($vars['errors']) || !is_array($vars['errors'])) {
         $vars['errors'] = array();
     }
     if (!isset($request[2]) || $request[2] != 'finish') {
         $actionUrl = 'blog/create';
         $submitName = '';
         $submitValue = $words->getSilent('BlogCreateSubmit');
         echo '<h2>' . $words->get('Blog_CreateEntry') . '</h2>';
     } else {
         // $request[2] == 'finish'
         echo '<h2>' . $words->get('BlogCreateFinishTitle') . "</h2>\n";
         echo '<p>' . $words->get('BlogCreateFinishText') . "</p>\n";
         echo '<p>' . $words->get('BlogCreateFinishInfo') . "</p>\n";
     }
     $disableTinyMCE = $this->_model->getTinyMCEPreference();
     require SCRIPT_BASE . 'build/blog/templates/editcreateform.php';
 }
コード例 #9
0
ファイル: notify.widgets.php プロジェクト: gpuenteallott/rox
    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>";
    }
コード例 #10
0
ファイル: blogedit.page.php プロジェクト: gpuenteallott/rox
 protected function column_col3()
 {
     $post = $this->post;
     $member = $this->member;
     $blogId = $post->blog_id;
     $vars = $this->vars;
     $callback = $this->getCallbackOutput('BlogController', 'editProcess');
     $errors = array();
     $lang = array();
     $i18n = new MOD_i18n('apps/blog/editcreate.php');
     $words = new MOD_words();
     $errors = $i18n->getText('errors');
     $lang = $i18n->getText('lang');
     $monthNames = array();
     $i18n = new MOD_i18n('date.php');
     $monthNames = $i18n->getText('monthNames');
     $catIt = $this->_model->getCategoryFromUserIt($member->id);
     $tripIt = $this->_model->getTripFromUserIt($member->id);
     $google_conf = PVars::getObj('config_google');
     $defaultVis = new StdClass();
     $defaultVis->valueint = 2;
     // hack: TB settings are disabled as they reference app_user - default visibility is public
     //$defaultVis = A PP_User::getSetting($member->id, 'APP_blog_defaultVis');
     if (!isset($request[3]) || $request[3] != 'finish') {
         echo '<h2>' . $words->get('BlogEditTitle') . '</h2>';
     } else {
         // $request[2] == 'finish'
         echo '<h2>' . $words->get('BlogEditFinishTitle') . "</h2>\n";
         echo $words->get('BlogEditFinishText') ? '<p>' . $words->get('BlogEditFinishText') . "</p>\n" : '';
         echo $words->get('BlogEditFinishInfo') ? '<p>' . $words->get('BlogEditFinishInfo') . "</p>\n" : '';
     }
     $actionUrl = 'blog/edit/' . $blogId;
     $submitName = 'submit_blog_edit';
     $submitValue = $words->getSilent('BlogEditSubmit');
     $disableTinyMCE = $this->_model->getTinyMCEPreference();
     require_once SCRIPT_BASE . 'build/blog/templates/editcreateform.php';
 }
コード例 #11
0
    protected function column_col3()
    {
        $words = new MOD_words();
        $member = $this->member;
        $layoutkit = $this->layoutkit;
        $formkit = $layoutkit->formkit;
        $callback_tag = $formkit->setPostCallback('MembersController', 'RelationCallback');
        $page_url = PVars::getObj('env')->baseuri . implode('/', PRequest::get()->request);
        $TabRelationsType = $member->get_TabRelationsType();
        $relation = $this->model->get_relation_between_members($member->id);
        if (isset($relation['member']->Confirmed) && $relation['member']->Confirmed == 'No') {
            $action = 'confirm';
        } elseif (isset($relation['myself']->id)) {
            $action = 'update';
        } else {
            $action = 'add';
        }
        ?>
         <?php 
        if ($action == 'update' && isset($relation['member']->Confirmed)) {
            ?>
            <p class="note"><?php 
            echo $words->get('RelationIsConfirmed', $member->Username);
            ?>
</p>
         <?php 
        } elseif ($action == 'update') {
            ?>
            <p class="note"><?php 
            echo $words->get('RelationWaitConfirmed', $member->Username);
            ?>
</p>
         <?php 
        }
        ?>
        <form method="post" action="<?php 
        echo $page_url;
        ?>
" name="relation" id="relation" enctype="multipart/form-data">
        <fieldset>
            <input type="hidden"  name="IdRelation"  value="<?php 
        echo $member->id;
        ?>
" />
            <input type="hidden"  name="IdOwner"  value="<?php 
        echo $_SESSION['IdMember'];
        ?>
" />
            <?php 
        echo $callback_tag;
        ?>
            <legend><?php 
        echo $words->get($action . 'Relation');
        ?>
</legend>
            <p><?php 
        echo $words->get('MyRelationListExplanation', $member->Username, $member->Username);
        ?>
</p>
            <?php 
        if (count($relation['member']) <= 0) {
            ?>
            <div class="row">
            <label class="grey"><?php 
            echo $words->get('RelationListCategory');
            ?>
</label><br />
            <?php 
            $tt = $TabRelationsType;
            $max = count($tt);
            for ($ii = 0; $ii < $max; $ii++) {
                echo "<input type=checkbox name=\"Type_" . $tt[$ii] . "\"";
                if (count($relation['myself']) > 0 && strpos(" " . $relation['myself']->Type, $tt[$ii]) != 0) {
                    echo " checked ";
                }
                echo "> " . $words->get("Relation_Type_" . $tt[$ii]) . "<br />";
            }
            ?>
            <p class="desc"><?php 
            echo $words->get('RelationListExplanation');
            ?>
</p>
            </div>
            <?php 
        } else {
            ?>
            <div class="row">
            <?php 
            echo $words->get('RelationType');
            ?>
: <strong><?php 
            echo $words->get("Relation_Type_" . $relation['member']->Type);
            ?>
</strong>
            </div>
            <?php 
        }
        ?>
            <div class="row">
                <label class="grey"><?php 
        echo $words->get("RelationText", $member->Username);
        ?>
:</label><br />
                <textarea rows="4" cols="60" name="Comment"><?php 
        if (isset($relation['myself']->Comment)) {
            $lang = $this->model->get_profile_language();
            $comment = $words->mInTrad($relation['myself']->IdTradComment, $lang->id);
            // Hack to filter out accidental '0' or '123456' comments that were saved
            // by users while relation comment update form was buggy (see #1580)
            if (is_numeric($comment)) {
                $comment = '';
            }
            echo $comment;
        }
        ?>
</textarea>
            </div>
            <?php 
        if ($action == 'confirm') {
            echo '<input type="hidden" name="Type" value="' . $relation['member']->Type . '">';
            echo '<input type="hidden" name="RelationId" value="' . $relation['member']->id . '">';
            echo '<input type="hidden" name="action" value="confirm">';
        } elseif ($action == 'update') {
            echo '<input type="hidden" name="RelationId" value="' . $relation['myself']->id . '">';
            echo '<input type="hidden" name="action" value="update">';
        } else {
            echo '<input type="hidden" name="action" value="add">';
        }
        ?>
            <br />
            <input type="submit" name="submit" value="<?php 
        echo $words->getSilent($action . 'Relation');
        ?>
" /><?php 
        echo $words->flushBuffer();
        ?>
            <br />
        </fieldset>
        </form>
        <?php 
    }
コード例 #12
0
ファイル: editcreateform.php プロジェクト: gpuenteallott/rox
    ?>
</legend>
            <div id="fpost_lang">
                <div>
                    <select name="IdLanguage" id="IdLanguage"><?php 
    // Here propose to choose a language, a javascript routine at the form checking must make it mandatory
    if (!isset($AppropriatedLanguage)) {
        echo "<option value=\"-1\">-</option>";
    }
    $closeOptGroup = false;
    $closeOptGroupFinal = false;
    foreach ($LanguageChoices as $Choices) {
        if (is_string($Choices)) {
            switch ($Choices) {
                case "CurrentLanguage":
                    echo '<optgroup label="' . $words->getSilent("ForumCurrentLanguage") . '">';
                    $closeOptGroup = true;
                    break;
                case "DefaultLanguage":
                    echo '<optgroup label="' . $words->getSilent("ForumDefaultLanguage") . '">';
                    $closeOptGroup = true;
                    break;
                case "UILanguage":
                    echo '<optgroup label="' . $words->getSilent("ForumUILanguage") . '">';
                    $closeOptGroup = true;
                    break;
                case "AllLanguages":
                    echo '<optgroup label="' . $words->getSilent("ForumAllLanguages") . '">';
                    $closeOptGroupFinal = true;
                    break;
            }
コード例 #13
0
ファイル: sidebar_rss.php プロジェクト: gpuenteallott/rox
<?php

$words = new MOD_words();
$request = PRequest::get()->request;
$requestStr = implode('/', $request);
?>
<h3><?php 
echo $words->get('Meta');
?>
</h3>
<ul class="linklist">
    <li><a href="rss/<?php 
echo htmlspecialchars($requestStr, ENT_QUOTES);
?>
"><img src="images/icons/feed.png" alt="<?php 
echo $words->getSilent('GetRSSFeed');
?>
" /> <?php 
echo $words->getSilent('BlogEntriesRSS');
echo $words->flushBuffer();
?>
</a></li>
</ul>
コード例 #14
0
echo $words->get("FeedBackChooseYourCategory");
?>
</label>
        <select id="IdCategory" name="IdCategory">
            <?php 
foreach ($categories as $cat) {
    ?>
                <option value="<?php 
    echo $cat->id;
    ?>
" <?php 
    echo $cat->id == $IdCategory ? 'selected="selected"' : '';
    ?>
>
                    <?php 
    echo $words->getSilent("FeedBackName_" . $cat->name);
    ?>
                </option>
            <?php 
}
?>
        </select>
    </div>
    <?php 
echo $words->flushBuffer();
?>
    <!-- type-select -->

    <div class="type-text <?php 
if (in_array('FeedbackErrorDataMissing', $errors)) {
    echo "error \">";
コード例 #15
0
ファイル: compose.php プロジェクト: gpuenteallott/rox
        // Don't flush buffer as the languages levels are better translated on the profile page
        echo $words->get($language->WordCode);
        echo $space;
        ?>
</span></strong><?php 
        $ii++;
    }
}
?>
             </p>
             <p class="small grey">
        <a href="messages/with/<?php 
echo $receiver_username;
?>
"><img src="images/icons/comments.png" alt="<?php 
echo $words->getSilent('messages_allmessageswith', $receiver_username);
?>
" title="<?php 
echo $words->getSilent('messages_allmessageswith', $receiver_username);
?>
" /> <?php 
echo $words->getSilent('messages_allmessageswith', $receiver_username);
?>
</a>
             </p>
    </div> <!-- messageside -->

        <div class="float_left">
      <?php 
echo MOD_layoutbits::PIC_50_50($receiver_username);
?>
コード例 #16
0
ファイル: about.php プロジェクト: gpuenteallott/rox
echo "<h3>", $words->get("AboutUs_GiveFeedback"), "</h3>";
echo "<p>", $words->get("AboutUs_GiveFeedbackText"), "</p>";
?>
    </div>
   </div>


  <div class="c50r">
    <div class="subcr">
<?php 
echo "<h3>", $words->get("AboutUs_HowOrganized"), "</h3>";
echo "<p>", $words->get("AboutUs_HowOrganizedText"), "</p>";
//Blog model to fetch the Community News
$Blog = new Blog();
$postIt = $Blog->getTaggedPostsIt('Community News for the frontpage', true);
$format = array('short' => $words->getSilent('DateFormatShort'));
?>
<h3 class="first" ><a href="blog/tags/Community News for the frontpage"><?php 
echo $words->getFormatted('CommunityNews');
?>
</a> <a href="rss/blog/tags/Community%20News%20for%20the%20frontpage"><img src="images/icons/feed.png" alt="<?php 
echo $words->getSilent('GetRSSFeed');
?>
"></a><?php 
echo $words->flushBuffer();
?>
</h3>
                <div class="floatbox">
                    <?php 
$i = 1;
foreach ($postIt as $blog) {
コード例 #17
0
ファイル: places.model.php プロジェクト: gpuenteallott/rox
 public function getContinents()
 {
     $words = new MOD_words();
     $continents = array("AM" => array($words->getSilent('PlacesAmerica'), $words->getSilent("PlacesAmericaCont")), "EA" => array($words->getSilent('PlacesEurAsia'), $words->getSilent("PlacesEurAsiaCont")), "AF" => array($words->getSilent('PlacesAfrica'), $words->getSilent("PlacesAfricaCont")), "OC" => array($words->getSilent('PlacesOceania'), $words->getSilent("PlacesOceaniaCont")), "AN" => array($words->getSilent('PlacesAntarctica'), $words->getSilent("PlacesAntarcticaCont")));
     uasort($continents, function ($a, $b) {
         return strcmp($a[0], $b[0]);
     });
     return $continents;
 }
コード例 #18
0
    protected function column_col3()
    {
        $words = new MOD_words();
        $message = $this->message;
        $purifier = new MOD_htmlpure();
        $purifier = $purifier->getMessagesHtmlPurifier();
        $contact_username = $message->senderUsername;
        $model = new MembersModel();
        $direction_in = true;
        if ($contact_username == $_SESSION['Username']) {
            $contact_username = $message->receiverUsername;
            $direction_in = false;
        }
        $member = $model->getMemberWithUsername($contact_username);
        ?>
        <div id="message" class="floatbox">
            <div id="shade_top"></div>
            <div id="buttonstop">
                <p class="floatbox">
                    <?php 
        if ($direction_in) {
            ?>
                        <a class="button float_left"
                           href="messages/<?php 
            echo $message->id;
            ?>
/reply"><?php 
            echo $words->get('replymessage');
            ?>
</a>
                        <?php 
            if ($message->InFolder == 'Spam') {
                ?>
                            <a class="button float_right"
                               href="messages/<?php 
                echo $message->id;
                ?>
/nospam"><?php 
                echo $words->get('marknospam');
                ?>
</a>
                        <?php 
            } else {
                ?>
                            <a class="button float_right"
                               href="messages/<?php 
                echo $message->id;
                ?>
/spam"><?php 
                echo $words->get('markspam');
                ?>
</a>
                        <?php 
            }
            ?>
                    <?php 
        } else {
            ?>
                        <a class="button float_left"
                           href="messages/<?php 
            echo $message->id;
            ?>
/edit"><?php 
            echo $words->get('editmessage');
            ?>
</a>
                    <?php 
        }
        ?>
                    <a class="button float_right" href="messages/<?php 
        echo $message->id;
        ?>
/delete"
                       onclick="return confirm ('<?php 
        echo $words->getBuffered('MessagesWarningConfirmDelete');
        ?>
')"><?php 
        echo $words->get('delmessage');
        ?>
</a>
                    <?php 
        echo $words->flushBuffer();
        ?>
                </p>
            </div>
            <!-- buttonstop -->
            <div id="messageheader" class="floatbox">
                <div id="messageside" class="float_right">
                    <p class="small grey">
                        <?php 
        echo $words->get('LivesIn');
        ?>
 <strong><?php 
        echo $member->City;
        ?>
, <?php 
        echo $member->Country;
        ?>
</strong>
                        <br/>
                        <?php 
        echo $words->get('Speaks');
        ?>
                        <?php 
        $languages = $member->get_languages_spoken();
        if (count($languages) > 0) {
            $ii = 0;
            $max = count($languages);
            foreach ($languages as $language) {
                $space = $ii != $max - 1 ? ', ' : '';
                ?>
<strong><span
                                    title="<?php 
                echo $words->getSilent('LanguageLevel_' . $language->Level);
                ?>
"><?php 
                echo $language->Name;
                echo $space;
                ?>
</span>
                                </strong><?php 
                echo $words->flushBuffer();
                $ii++;
            }
        }
        ?>
                    </p>

                    <p class="small grey">
                        <a href="messages/with/<?php 
        echo $contact_username;
        ?>
"><img src="images/icons/comments.png"
                                                                              alt="<?php 
        echo $words->getSilent('messages_allmessageswith', $contact_username);
        ?>
"
                                                                              title="<?php 
        echo $words->getSilent('messages_allmessageswith', $contact_username);
        ?>
"/> <?php 
        echo $words->getSilent('messages_allmessageswith', $contact_username);
        ?>
                        </a>
                    </p>
                </div>
                <!-- messageside -->
                <p class="float_left">
                    <?php 
        echo MOD_layoutbits::PIC_50_50($contact_username);
        ?>
                </p>

                <p class="">
                    <span
                        class="grey"><?php 
        echo $direction_in ? $words->get('MessageFrom', '<a href="members/' . $contact_username . '">' . $contact_username . '</a>') : $words->get('MessageTo', '<a href="members/' . $contact_username . '">' . $contact_username . '</a>');
        ?>
 </span>
                </p>

                <p class="">
                    <span class="grey"><?php 
        echo $words->get('MessagesDate');
        ?>
                        : </span> <?php 
        echo date($words->getSilent('DateFormatShort'), strtotime($message->created));
        ?>
                </p>
            </div>
            <div id="messagecontent">
                <p class="text">
                    <?php 
        echo $purifier->purify($message->Message);
        ?>
                </p>
            </div>
            <!-- messagecontent -->
            <div id="messagefooter">
                <p class="floatbox">
                    <?php 
        if ($direction_in) {
            ?>
                        <a class="button float_left"
                           href="messages/<?php 
            echo $message->id;
            ?>
/reply"><?php 
            echo $words->get('replymessage');
            ?>
</a>
                        <?php 
            if ($message->InFolder == 'Spam') {
                ?>
                            <a class="button float_right"
                               href="messages/<?php 
                echo $message->id;
                ?>
/nospam"><?php 
                echo $words->get('marknospam');
                ?>
</a>
                        <?php 
            } else {
                ?>
                            <a class="button float_right"
                               href="messages/<?php 
                echo $message->id;
                ?>
/spam"><?php 
                echo $words->get('markspam');
                ?>
</a>
                        <?php 
            }
            ?>
                    <?php 
        } else {
            ?>
                        <a class="button float_left"
                           href="messages/<?php 
            echo $message->id;
            ?>
/edit"><?php 
            echo $words->get('editmessage');
            ?>
</a>
                    <?php 
        }
        ?>
                    <a class="button float_right"
                       href="messages/<?php 
        echo $message->id;
        ?>
/delete"><?php 
        echo $words->get('delmessage');
        ?>
</a>
                </p>
            </div>
            <!-- messagefooter -->
            <div id="shade"></div>
        </div> <!-- message -->
        <?php 
        echo $words->flushBuffer();
        ?>

    <?php 
    }
コード例 #19
0
ファイル: createform.php プロジェクト: gpuenteallott/rox
if (isset($vars['d']) && $vars['d']) {
    echo htmlentities($vars['d'], ENT_COMPAT, 'utf-8');
}
?>
</textarea>
            <p class="desc"><?php 
echo $words->get('TripDesc_desc2');
?>
</p>
        </div>
    </fieldset>
    <p>
<?php 
if (isset($vars['trip_id']) && $vars['trip_id']) {
    echo '<input type="hidden" name="trip_id" value="' . $vars['trip_id'] . '" />';
}
?>
        <input type="hidden" name="<?php 
echo $callbackId;
?>
" value="1"/>
        <input type="submit" value="<?php 
echo $editing ? $words->getSilent('TripSubmit_edit') : $words->getSilent('TripSubmit_create');
?>
"/><?php 
echo $words->flushBuffer();
?>
    </p>
</form>
<?php 
PPostHandler::clearVars($callbackId);
コード例 #20
0
ファイル: blogitem.php プロジェクト: gpuenteallott/rox
/**
 * blog item template controller
 *
 * defined vars:
 * $blog        - the blog object.
 *
 * @package blog
 * @subpackage template
 * @author The myTravelbook Team <http://www.sourceforge.net/projects/mytravelbook>
 * @copyright Copyright (c) 2005-2006, myTravelbook Team
 * @license http://www.gnu.org/licenses/gpl.html GNU General Public License (GPL)
 * @version $Id$
 */
$words = new MOD_words();
$format = array('short' => $words->getSilent('DateFormatShort'));
if (!isset($headingLevel)) {
    $headingLevel = 3;
}
?>
<div class="blogitem">
    <h<?php 
echo $headingLevel;
?>
><a href="blog/<?php 
echo $blog->user_handle;
?>
/<?php 
echo $blog->blog_id;
?>
"><?php 
コード例 #21
0
ファイル: external.php プロジェクト: gpuenteallott/rox
            echo "[Deleted]";
        }
        if ($thread->ThreadVisibility == "ModeratorOnly") {
            echo "[ModOnly]";
        }
        ?>
                    <a href="<?php 
        echo $url;
        ?>
" class="news">
                    <?php 
        echo $words->fTrad($thread->IdTitle);
        ?>
</a><br />
                    <span class="small grey"><?php 
        echo $words->getSilent('by');
        ?>
 <a href="members/<?php 
        echo $thread->last_author;
        ?>
"><?php 
        echo $thread->last_author;
        ?>
</a>
                    <?php 
        if ($thread->IdGroup > 0 && $showGroups) {
            echo $words->getFormatted('in') . ' <a href="groups/' . $thread->IdGroup . '/" title="' . $words->getSilent('Group') . ": " . $thread->GroupName . '">' . MOD_layoutbits::truncate($thread->GroupName, 13);
        }
        ?>
                    <?php 
        echo '</a> - <span title="' . date($words->getSilent('DateHHMMShortFormat'), ServerToLocalDateTime($thread->last_create_time)) . '"><a href="' . $last_url . '" class="grey">' . $layoutbits->ago($thread->last_create_time) . '</a></span>';
コード例 #22
0
ファイル: topic.php プロジェクト: gpuenteallott/rox
    }
    echo "<h2 class=\"forumstopic\">";
    if ($topic->topicinfo->ThreadDeleted == 'Deleted') {
        echo "[Deleted]";
    }
    if ($topic->topicinfo->ThreadVisibility == 'ModeratorOnly') {
        echo "[ModOnly]";
    }
    echo $words->fTrad($topic->topicinfo->IdTitle);
    if ($User) {
        $url = $_SERVER['REQUEST_URI'];
        if (strpos($url, "/reverse") === false) {
            // THis in order to avoid to concatenate /reverse twice
            $url .= "/reverse";
        }
        echo ' <a href="' . $url . '" title="' . $words->getSilent('ReverseOrder') . '" ><img src="images/icons/reverse_order.png" alt="' . $words->getSilent('ReverseOrder') . '" /></a> ' . $words->flushBuffer();
    }
    echo "</h2>";
    ?>

    <div class="forumthreadinfo">
        <div class="float_left">
            <?php 
    if ($topic->topicinfo->IdGroup > 0) {
        ?>
                <p class="forumsthreadtags"><strong><?php 
        echo $words->get("group");
        ?>
:</strong>
                    <a href="groups/<?php 
        echo $this->_model->getGroupName($topic->topicinfo->IdGroup);
コード例 #23
0
ファイル: userbar.php プロジェクト: gpuenteallott/rox
<?php

$words = new MOD_words();
$member = $this->_model->getLoggedInMember();
if ($member) {
    ?>
          <h3><?php 
    echo $words->get('TripsSingleTripActionsHeadline');
    ?>
</h3>
          <ul class="linklist">
			<li><a href="trip/show/<?php 
    echo $member->Username;
    ?>
" title="<?php 
    echo $words->getSilent('TripsShowMy');
    ?>
"><img src="images/icons/world.png" style="vertical-align:bottom;" alt="<?php 
    echo $words->getSilent('TripsShowMy');
    ?>
" /></a> <a href="trip/show/<?php 
    echo $member->Username;
    ?>
" title="<?php 
    echo $words->getSilent('TripsShowMy');
    ?>
"><?php 
    echo $words->getSilent('TripsShowMy');
    ?>
</a><?php 
    echo $words->flushBuffer();
コード例 #24
0
ファイル: teaser.php プロジェクト: gpuenteallott/rox
    	<div class="c50l">
			<div class="subr">
    			<h1><a href="trip"><?php 
echo $words->getFormatted('tripsTitle');
?>
</a></h1>
        	</div>
    	</div> 
    	<div class="c50r" > 
        	<div class="subc">
            	<div id="searchteaser" >
                <form method="get" action="trip/search" class="float_right">
                    <input type="text" name="s" value="<?php 
echo htmlspecialchars($search, ENT_QUOTES);
?>
" />
                    <input class="button" type="submit" name="submit" value="<?php 
echo $words->getSilent('TripsSearch');
?>
" />
                    <?php 
echo $words->flushBuffer();
?>
                </div>
                </form>
            </div>
        </div>
    </div>
</div>

コード例 #25
0
 * massmail details template
 *
 * @package Apps
 * @subpackage Admin
 */
$words = new MOD_words();
$massmail = $this->massmail;
?>
<div id="adminmassmail">
<h3><?php 
echo $words->get('AdminMassMailDetailsHeader');
?>
</h3>
<table>
<?php 
echo '<tr class="highlight"><th class="left" style="width:80%;">' . $massmail->Name . '</th>' . '<th><img src="images/icons/tick.png" alt="' . $words->getSilent('AdminMassMailEnqueued') . '" title="' . $words->getSilent('AdminMassMailEnqueued') . '"></th>' . '<th><img src="images/icons/exclamation.png" alt="' . $words->getSilent('AdminMassMailTriggered') . '" title="' . $words->getSilent('AdminMassMailTriggered') . '"></th>' . '<th><img src="images/icons/email.png" alt="' . $words->getSilent('AdminMassMailSent') . '" title="' . $words->getSilent('AdminMassMailSent') . '"></th>' . '<th><img src="images/icons/error.png" alt="' . $words->getSilent('AdminMassMailFailed') . '"title="' . $words->getSilent('AdminMassMailFailed') . '"></th>' . '</tr>';
echo '<tr class="blank"><td>&nbsp;</td>';
echo '<td><a href="admin/massmail/details/' . $this->id . '/enqueued">' . $massmail->ToApprove . '</a></td>';
echo '<td><a href="admin/massmail/details/' . $this->id . '/triggered">' . $massmail->ToSend . '</a></td>';
echo '<td><a href="admin/massmail/details/' . $this->id . '/sent">' . $massmail->Sent . '</a></td>';
echo '<td><a href="admin/massmail/details/' . $this->id . '/failed">' . $massmail->Failed . '</a></td></tr>';
if (!$this->detail) {
    echo '<tr class="highlight"><td class="left" colspan="5"><strong>' . $words->get('AdminMassMailAvailableLanguages') . '</strong>:';
    $lang = $_SESSION['lang'];
    foreach ($massmail->Languages as $language) {
        if ($language->ShortCode == $lang) {
            echo '<strong>';
        }
        echo " " . $language->Name;
        if ($language->ShortCode == $lang) {
            echo '</strong>';
コード例 #26
0
ファイル: singlepost.php プロジェクト: gpuenteallott/rox
 */
$callback = $this->getCallbackOutput('BlogController', 'CommentProcess');
$request = PRequest::get()->request;
$vars = $this->getRedirectedMem('vars');
$login_url = 'login/' . htmlspecialchars(implode('/', $request), ENT_QUOTES);
$blogitemText = array();
$i18n = new MOD_i18n('apps/blog/blogitem.php');
$blogitemText = $i18n->getText('blogitemText');
$commentsText = array();
$commentsError = array();
$i18n = new MOD_i18n('apps/blog/comments.php');
$commentsText = $i18n->getText('commentsText');
$commentsError = $i18n->getText('commentsError');
$i18n = new MOD_i18n('date.php');
$words = new MOD_words();
$format = array('short' => $words->getSilent('DateFormatShort'));
if (!isset($vars['errors'])) {
    $vars['errors'] = array();
}
?>
<div class="blogitem">
  <div class="corner"></div>
    <h3><span><?php 
echo htmlentities($blog->blog_title, ENT_COMPAT, 'utf-8');
?>
</span></h3>
    <div class="author">
        <?php 
echo $words->get('written_by');
?>
 <a href="members/<?php 
コード例 #27
0
ファイル: layoutbits.lib.php プロジェクト: gpuenteallott/rox
 /**
  * returns a sentence based on a given timestamp
  * like: 20 minutes ago
  *
  * @param int $timestamp unix timestamp
  * @access public
  * @return string
  */
 public function ago($timestamp)
 {
     // test if the given timestamp could be a unix timestamp, otherwise try to make it one
     $timestamp = is_string($timestamp) && intval($timestamp) == $timestamp ? intval($timestamp) : $timestamp;
     if (!is_int($timestamp)) {
         $timestamp = strtotime($timestamp);
     }
     $words = new MOD_words();
     $difference = time() - $timestamp;
     $periods = array('second', 'minute', 'hour', 'day', 'week', 'month', 'year', 'decade');
     $lengths = array("60", "60", "24", "7", "4.35", "12", "10");
     for ($j = 0; $j < count($lengths) && $difference >= $lengths[$j]; $j++) {
         $difference /= $lengths[$j];
     }
     $difference = round($difference);
     if ($difference != 1) {
         $periods[$j] .= "s";
     }
     $periods[$j] = $periods[$j] . "_ago";
     $text = $words->getSilent($periods[$j], $difference);
     return $text;
 }
コード例 #28
0
ファイル: memberlist.php プロジェクト: gpuenteallott/rox
echo '<h2 class="paddingtop">' . $words->get('members') . '</h2>';
$User = new APP_User();
$words = new MOD_words();
$layoutbits = new MOD_layoutbits();
$url = '/places/' . htmlspecialchars($this->countryName) . '/' . $this->countryCode . '/';
if ($this->regionCode) {
    $url .= htmlspecialchars($this->regionName) . '/' . $this->regionCode . '/';
}
if ($this->cityCode) {
    $url .= htmlspecialchars($this->cityName) . '/' . $this->cityCode . '/';
}
$loginUrlOpen = '<a href="login' . $url . '#login-widget">';
$loginUrlClose = '</a>';
if (!$this->members) {
    if ($this->totalMemberCount) {
        echo $words->get('PlacesMoreMembers', $words->getSilent('PlacesMoreLogin'), $loginUrlOpen, $loginUrlClose) . $words->flushBuffer();
    } else {
        echo $words->get('PlacesNoMembersFound', htmlspecialchars($this->placeName));
    }
} else {
    if ($this->totalMemberCount != $this->memberCount) {
        echo $words->get('PlacesMoreMembers', $words->getSilent('PlacesMoreLogin'), $loginUrlOpen, $loginUrlClose) . $words->flushBuffer();
    }
    // divide members into pages of Places::MEMBERS_PER_PAGE (20)
    $params = new StdClass();
    $params->strategy = new HalfPagePager('right');
    $params->page_url = $url;
    $params->page_url_marker = 'page';
    $params->page_method = 'url';
    $params->items = $this->memberCount;
    $params->active_page = $this->pageNumber;
コード例 #29
0
ファイル: shoutlink.php プロジェクト: gpuenteallott/rox
/**
 * blog item template controller
 *
 * defined vars:
 * $blog        - the blog object.
 *
 * @package blog
 * @subpackage template
 * @author The myTravelbook Team <http://www.sourceforge.net/projects/mytravelbook>
 * @copyright Copyright (c) 2005-2006, myTravelbook Team
 * @license http://www.gnu.org/licenses/gpl.html GNU General Public License (GPL)
 * @version $Id$
 */
$words = new MOD_words();
$format = array('short' => $words->getSilent('DateFormatShort'));
if (!isset($headingLevel)) {
    $headingLevel = 3;
}
$shouts = new ShoutsController();
?>

    <p class="action">
<?php 
if (!$shouts->getShouts($application, $id)) {
    if ($shouts->count == 1) {
        echo '<img src="images/icons/comment.png" alt="' . $words->get('CommentsSingular') . '"/> 1 ' . $words->get('CommentsSingular');
    } else {
        echo '<img src="images/icons/comments.png" alt="' . $words->get('CommentsPlural') . '"/> ' . (int) $shouts->comments . ' ' . $words->get('CommentsPlural');
    }
} else {
コード例 #30
0
ファイル: editcreateform.php プロジェクト: gpuenteallott/rox
} elseif (in_array('duration', $vars['errors'])) {
    echo '<span class="error">' . $words->get('BlogErrors_duration') . '</span>';
}
?>
        <p class="desc"><?php 
echo $words->get('BlogCreateTrips_SublineStartdate');
?>
</p>
        <!-- End trip start date block -->
        <!-- Start location search block -->
        <label for="create-location"><?php 
echo $words->get('BlogCreateTrips_LabelLocation');
?>
:</label><br />
        <input type="text" name="create-location" id="create-location" value="" /> <input type="button" id="btn-create-location" class="button" value="<?php 
echo $words->getSilent('label_search_location');
?>
" /><?php 
echo $words->flushBuffer();
?>
        <p class="desc"><?php 
echo $words->get('BlogCreateTrips_SublineLocation');
?>
</p>
        <!-- End location search block -->
    </div>
  </div>
  <div class="c50r">
    <div class="subcr">
      <div id="spaf_map" style="width:300px; height:200px;"></div>
    </div>