public function column_col3() { $model = new OnlineModel(); $words = new MOD_words(); PVars::getObj('page')->title = $words->getBuffered('WhoIsOnLinePage'); $TMembers = $model->GetMembers(); $TGuests = $model->GetGuests(); $TotMembers = $model->GetTotMembers(); require 'templates/showonline.php'; }
public function ShowOnline() { global $_SYSHCVOL; $words = new MOD_words(); PVars::getObj('page')->title = $words->getBuffered('WhoIsOnLinePage'); $TMembers = $this->_model->GetMembers(); $TGuests = $this->_model->GetGuests(); $TotMembers = $this->_model->GetTotMembers(); require 'templates/showonline.php'; }
function getGenderDropDown($vars) { $words = new MOD_words(); $select = '<strong class="small">' . $words->getFormatted('Gender') . '</strong><br/>'; $select .= '<select name="search-gender">'; $select .= '<option value="0"></option> <option value="male"'; if ($vars['search-gender'] === 'male') { $select .= ' selected="selected"'; } $select .= '>' . $words->getBuffered('Male') . '</option>'; $select .= '<option value="female"'; if ($vars['search-gender'] === 'female') { $select .= ' selected="selected"'; } $select .= '>' . $words->getBuffered('Female') . '</option>'; $select .= '<option value="genderOther"'; if ($vars['search-gender'] === 'genderOther') { $select .= ' selected="selected"'; } $select .= '>' . $words->getBuffered('genderOther') . '</option> </select>' . $words->flushBuffer(); return $select; }
/** * function LinkWithPicture build a link with picture and Username to the member profile. * Optional parameter status can be used to alter the link. * Old version found in FunctionsTools.php * * Usually it is more convenient to use * smallUserPic_userId($userId) * or * smallUserPic_username($username) * * @param string $username * @param string $height of picture * @param string $width of picture * @param string $quality of picture * @param string $picfile alternative picture path * @param string $style css-class for the image-tag * @return string html-formatted link with picture */ public static function linkWithPictureVar($username, $height, $width, $quality, $picfile, $style) { $words = new MOD_words(); $thumburl = self::member_pic_url() . $username . '?' . $height . '_' . $width; /* if(!is_file(getcwd().'/bw'.$picfile)) { // get a picture by username $thumburl = self::smallUserPic_usernameVar($username,$height,$width,$quality) ; } else { $thumburl = self::_getThumb($picfile,$height,$width,$quality); if ($thumburl === null) $thumburl = "bw/"; } */ return '<a ' . 'href="members/' . $username . '" ' . 'title="' . $words->getBuffered('SeeProfileOf', $username) . '" ' . '><img height="' . $height . '" width="' . $width . '" ' . 'class="' . $style . '" ' . 'src="' . $thumburl . '" ' . 'alt="Profile" ' . '/></a>'; }
BW Rox is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, see <http://www.gnu.org/licenses/> or write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /** * @author Felix van Hove <*****@*****.**> */ $words = new MOD_words(); ?> <h3><?php echo $words->getBuffered("WordsDownload_Title"); ?> </h3> <p><?php echo $words->getFormatted('WordsDownload_Description'); ?> </p> <p> <form id="wordsdownload" name="wordsdownload" method="post" action="admin/wordsdownload" /> <input type="checkbox" name="Replace"> <?php echo $words->getBuffered("WordsDownload_ReplaceOption"); ?> <br /><br /> <input type="hidden" name="<?php echo $callbackId; ?>
break; case 'Unqueue': echo $words->get('AdminMassMailSuccessUnqueue', $status[1], $status[2]); break; case 'Trigger': echo $words->get('AdminMassMailSuccessTrigger', $status[1], $status[2]); break; case 'Untrigger': echo $words->get('AdminMassMailSuccessUntrigger', $status[1], $status[2]); break; } echo '</div>'; unset($_SESSION['AdminMassMailStatus']); } echo '<table>'; echo '<tr><th class="left" style="width:50%;">' . $words->getBuffered('AdminMassMailName') . '</th>'; if ($this->canTrigger) { echo '<th colspan="5">' . $words->getBuffered('AdminMassMailActions') . '</th>'; } else { echo '<th colspan="3">' . $words->getBuffered('AdminMassMailActions') . '</th>'; } echo '<th><img src="images/icons/tick.png" alt="' . $words->getBuffered('AdminMassMailEnqueued') . '"></th>' . '<th><img src="images/icons/exclamation.png" alt="' . $words->getBuffered('AdminMassMailTriggered') . '"></th>' . '<th><img src="images/icons/email.png" alt="' . $words->getBuffered('AdminMassMailSent') . '"></th>' . '<th><img src="images/icons/error.png" alt="' . $words->getBuffered('AdminMassMailFailed') . '"></th>' . '<th>' . $words->flushBuffer() . '</th>' . '</tr>'; foreach ($this->pager->getActiveSubset($this->massmails) as $massmail) { $enqueued = $massmail->enqueuedCount != 0; $triggered = $massmail->triggeredCount != 0; $edit = '<a href="admin/massmail/edit/' . $massmail->id . '">' . '<img src="images/icons/comment_edit.png" alt="edit" /></a><br><a href="admin/massmail/edit/' . $massmail->id . '">' . $words->getBuffered('AdminMassMailEdit') . '</a>'; $enqueue = '<a href="admin/massmail/enqueue/' . $massmail->id . '">' . '<img src="images/icons/tick.png" alt="enqueue" /></a><br/><a href="admin/massmail/enqueue/' . $massmail->id . '">' . $words->getBuffered('AdminMassMailEnqueue') . '</a>'; $unqueue = '<a href="admin/massmail/unqueue/' . $massmail->id . '">' . '<img src="images/icons/delete.png" alt="unqueue" /></a><br/><a href="admin/massmail/unqueue/' . $massmail->id . '">' . $words->getBuffered('AdminMassMailUnqueue') . '</a>'; $trigger = '<a href="admin/massmail/trigger/' . $massmail->id . '">' . '<img src="images/icons/exclamation.png" alt="trigger" /></a><br/><a href="admin/massmail/trigger/' . $massmail->id . '">' . $words->getBuffered('AdminMassMailTrigger') . '</a>'; $untrigger = '<a href="admin/massmail/trigger/' . $massmail->id . '">' . '<img src="images/icons/delete.png" alt="untrigger" /></a><br/><a href="admin/massmail/untrigger/' . $massmail->id . '">' . $words->getBuffered('AdminMassMailUntrigger') . '</a>'; if ($ii % 2 == 0) {
<?php $threadsliced = array_slice($threads, 0, 5); foreach ($threadsliced as $cnt => $thread) { $url = ForumsView::threadURL($thread); if ($url[0] == 's') { // JeanYves Hack/Fix to be sure that forums/ is written in the beginning of the links ! $url = "forums/" . $url; } $max = $thread->replies + 1; $maxPage = ceil($max / $this->_model->POSTS_PER_PAGE); $last_url = $url . ($maxPage != 1 ? '/page' . $maxPage : '') . '/#post' . $thread->last_postid; ?> <tr> <td class="forumsboardthreadtitle"><?php echo '<img src="styles/css/minimal/images/iconsfam/comment_add.png" alt="' . $words->getBuffered('tags') . '" title="' . $words->getBuffered('tags') . '" />' . $words->flushBuffer(); ?> <?php if ($thread->ThreadDeleted == 'Deleted') { echo "[Deleted]"; } if ($thread->ThreadVisibility == "ModeratorOnly") { echo "[ModOnly]"; } ?> <a href="<?php echo $url; ?> " class="news"> <?php echo $words->fTrad($thread->IdTitle);
if (!in_array($url_bit, $request)) { $url = $uri . $url_bit . '/'; $breadcrumb .= '<a href="' . $url . '">' . $wordtag . '</a> '; } else { $breadcrumb .= '' . $wordtag . ' '; } // Heritage of TravelBook if ($wordtag == 'help' || $wordtag == 'Help and Support') { $ShowHelp = true; // todo deal with this in a better way } } if ($breadcrumb) { // we will later use the 'tags' word, but don't want an edit link inside the html tag! if ($ShowHelp) { echo '<img src="styles/css/minimal/images/iconsfam/help.png" alt="' . $words->getBuffered('tags') . '" title="' . $words->getBuffered('tags') . '" class="forum_icon" />' . $words->flushBuffer(); } elseif (isset($thread->continent) && $thread->continent) { echo '<img src="styles/css/minimal/images/iconsfam/world.png" alt="' . $words->getBuffered('tags') . '" title="' . $words->getBuffered('tags') . '" class="forum_icon" />' . $words->flushBuffer(); } else { echo '<img src="styles/css/minimal/images/iconsfam/tag_blue.png" alt="' . $words->getBuffered('tags') . '" title="' . $words->getBuffered('tags') . '" class="forum_icon" />' . $words->flushBuffer(); } echo $breadcrumb; } ?> </span> </td> <td class="forumsboardthreadreplies"><?php echo $thread->replies; ?> </td> <td class="forumsboardthreadauthor"><a href="bw/member.php?cid=<?php
<?php $words = new MOD_words(); $address = isset($vars) && $vars && isset($vars['CityName']) ? $vars['CityName'] : $words->getBuffered('searchmembersAllOver'); if (isset($_GET['vars'])) { $address = $_GET['vars']; } ?> <div id="teaser" class="clearfix"> <h1><?php echo $words->getFormatted('searchmembersTitle'); ?> </h1> <div id="scriptinfo" class="clearfix NotDisplayed"> <p class="note"><b><?php echo $words->getFormatted('searchmembersScriptInfo'); ?> </b><br /><?php echo $words->getFormatted('searchmembersScriptInfoText', '<a href="searchmembers/quicksearch">', '</a>', '<a href="country/">', '</a>'); ?> </p> </div> <!-- scriptinfo --> <div id="searchbox" class="floatbox"> <span class="small"> <!--<input type="radio" name="SelectedSearchField" value="Address" checked="checked"><?php echo $words->getBuffered('Address'); ?> <input type="radio" name="SelectedSearchField" value="Username"><?php echo $words->getBuffered('Username');
along with this program; if not, see <http://www.gnu.org/licenses/> or write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ $words = new MOD_words(); ?> <div id="forumsboardselect" class="highlight"> <p><?php echo $words->getFormatted('ForumChooseSubforum'); ?> </p> <select name="board" id="forumsboarddropdown" onchange="window.location.href=this.value;"> <option value=""><?php echo $words->getBuffered('ForumSubforum'); ?> </option> <?php foreach ($boards as $board) { $url = $uri . $board->getBoardLink(); ?> <option value="<?php echo $url; ?> "><?php echo $board->getBoardName(); ?> </option>
?> " /> <input type="hidden" name="return" value="<?php echo PVars::getObj('env')->baseuri; ?> donate/done" /> <input type="hidden" name="cancel_return" value="<?php echo PVars::getObj('env')->baseuri; ?> donate/cancel" /> <input type="hidden" name="cn" value="comment" /> <input type="hidden" name="currency_code" value="EUR" /> <input type="hidden" name="tax" value="0" /> <input type="hidden" name="bn" value="PP-DonationsBF" /> <input type="submit" class="button" name="submit" alt="<?php echo $words->getBuffered('Donate_DonateNow'); ?> " onmouseover="return('<?php echo $words->getBuffered('Donate_DonateNow'); ?> ')" value="<?php echo $words->getBuffered('Donate_DonateNow'); ?> " /> <img alt="Donate now" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1" /> </p> </form> <p><?php echo $words->get('Donate_Process'); ?> </p>
</div> <?php } } ?> </div> <!-- forumsauthor --> <div class="forumsmessage"> <div class="floatbox"> <!-- Display the time the post was made --> <p class="forumstime"> <?php //echo "[",$post->posttime,"]",$words->getFormatted('DateHHMMShortFormat') ; echo $words->getFormatted('posted'); ?> <?php echo date($words->getBuffered('DateHHMMShortFormat'), ServerToLocalDateTime($post->posttime)); echo $words->flushBuffer() . " " . $words->getFormatted("forum_label_visibility") . ": " . $words->getFormatted("forum_edit_vis_" . $post->PostVisibility); $max = 0; if (!empty($post->Trad)) { $max = count($post->Trad); } for ($jj = 0; $jj < $max and $topic->WithDetail; $jj++) { // Not optimized, it is a bit stupid to look in all the trads here if ($post->Trad[$jj]->trad_created != $post->Trad[$jj]->trad_updated) { // If one of the trads have been updated if ($post->Trad[$jj]->IdLanguage == $_SESSION["IdLanguage"]) { echo "<br /><em>last edited on ", date($words->getFormatted('DateHHMMShortFormat'), ServerToLocalDateTime($post->Trad[$jj]->trad_updated)), " by ", $post->Trad[$jj]->TranslatorUsername, "</em>"; } } } ?>
protected function setTitleTranslate($title) { $words = new MOD_words(); $this->setTitle($words->getBuffered($title)); }
<?php $words = new MOD_words(); ?> <div id="teaser" class="clearfix"> <h1><?php echo $words->getBuffered("WordsDownload_Title"); ?> </h1> </div>
Boston, MA 02111-1307, USA. */ $words = new MOD_words(); ?> <div id="middle_nav" class="clearfix" > <div id="nav_sub"> <ul> <li id="sub1" <?php if ($subTab == 'places') { echo 'class="active"'; } ?> > <a href="places/"> <span><?php echo $words->getBuffered('Overview'); ?> </span> </a> <?php echo $words->flushBuffer(); ?> </li> <li id="sub2" <?php if ($subTab == 'members') { echo 'class="active"'; } ?> > <a href="places/members">
Boston, MA 02111-1307, USA. */ $words = new MOD_words(); ?> <div id="middle_nav" class="clearfix"> <div id="nav_sub"> <ul> <li id="sub1" class="<?php if ($sub !== 'list') { echo 'active'; } ?> "> <a href="donate"> <span><?php echo $words->getBuffered('DonateLink'); ?> </span></a></li> <li id="sub2" class="<?php if ($sub == 'list') { echo 'active'; } ?> "><a href="donate/list"><span><?php echo $words->getBuffered('DonateList'); ?> </span></a></li> <?php echo $words->flushBuffer(); ?>
<?php /* Copyright (c) 2007 BeVolunteer This file is part of BW Rox. BW Rox is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. BW Rox is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, see <http://www.gnu.org/licenses/> or write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ $words = new MOD_words(); ?> <div id="teaser" class="clearfix"> <h1><?php echo $words->getBuffered('WhoIsOnLinePage'); ?> </h1> </div>
?> <div id="adminmassmailenqueue"> <form method="post" name="mass-mail-enqueue-form" id="mass-mail-enqueue-form" class="fieldset-menu-form" enctype="multipart/form-data"> <?php echo $callback_tags; ?> <input type="hidden" name="id" value="<?php echo $this->id; ?> " /> <?php if ($this->canEnqueueMembers) { ?> <fieldset id="members"> <legend><?php echo $words->getBuffered('AdminMassMailEnqueueMembers'); ?> </legend> <table> <tr><td colspan="3"><?php echo $words->flushBuffer(); ?> </td></tr> <tr> <td><input type="radio" id="allmembers" name="members-type" value="allmembers" <?php if (isset($vars['members-type']) && $vars['members-type'] == 'allmembers') { echo 'checked="checked"'; } ?> /></td>
<?php if (in_array('textlen', $vars['errors'])) { echo '<span class="error">' . $commentsError['textlen'] . '</span>'; } ?> <p class="desc"><?php echo $words->get('CommentsSublineText'); ?> </p> </div> <p> <input type="submit" value="<?php echo $words->getSilent('CommentsSubmitForm'); ?> " class="submit" /><?php echo $words->flushBuffer(); ?> <?php echo $callback; ?> </p> </form> <?php } else { // not logged in. echo '<p>' . $words->getBuffered('PleaseLogInToComment', '<a href="' . $login_url . '">', '</a>') . '</p>'; } ?> </div> <?php }
$navigationPath .= '<a href="' . htmlspecialchars($boards->getBoardLink(), ENT_QUOTES) . '">' . $boardName . '</a>'; ?> <?php // Quick hack to avoid "no tags" showing up at the top of tag search results // TODO: fix this properly in Forums::boardTopLevelLastPosts() (forums model) if ($boardName != 'no tags') { echo "<h2>" . $navigationPath . "</h2>"; } if ($this->BW_Right->HasRight("ForumModerator", "Edit") || $this->BW_Right->HasRight("ForumModerator", "All")) { if (isset($boards->IdTag)) { echo " <a href=\"forums/modedittag/" . $boards->IdTag . "\">Edit Tag</a>"; } } if (isset($boards->IdSubscribe)) { echo " <span class=\"button\"><a href=\"forums/subscriptions/unsubscribe/tag/", $boards->IdTag, "\">", $words->getBuffered('ForumUnsubscribe'), "</a></span>", $words->flushBuffer(); } else { if (isset($boards->IdTag)) { echo " <span class=\"button\"><a href=\"forums/subscribe/tag/", $boards->IdTag, "\">", $words->getBuffered('ForumSubscribe'), "</a></span>", $words->flushBuffer(); } } ?> <p><?php $tags = $boards->getBoardDescription(); ?> </p> <!-- cut end --> <?php if ($boards->hasSubBoards()) { require 'boardboards.php'; }
?> /> <div id="bcomment-title" class="statbtn"></div> <?php if (in_array('nameinvalid', $vars['errors'])) { echo '<span class="error">' . $words->get('nameinvalid') . '</span>'; } if (in_array('namedupe', $vars['errors'])) { echo '<span class="error">' . $words->get('namedupe') . '</span>'; } if (in_array('nameempty', $vars['errors'])) { echo '<span class="error">' . $words->get('nameempty') . '</span>'; } ?> <p class="desc"></p> </div> <p> <input type="submit" value="<?php echo isset($request[2]) && $request[2] == 'edit' ? $words->getBuffered('Category_submit_edit') : $words->getBuffered('Category_submit_add'); ?> " class="submit" /> <?php echo $callback; ?> </p> </form> </div> <?php } echo $words->flushBuffer();
<?php $words = new MOD_words(); ?> <div id="nextmap"> <strong class="small"><?php echo $words->getFormatted('FindPeopleSortOrderDirection'); ?> </strong><br /> <select name="OrderByDirection"> <option value="desc"><?php echo $words->getBuffered('Forward'); ?> </option> <option value="asc"><?php echo $words->getBuffered('Reverse'); ?> </option> </select> <div id="member_list"></div> <div id="help_and_markers"></div> </div>
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 }
</h1> <div> <div id="searchteaser" style="width: 40%" class="float_left"> <fieldset id="searchtop" name="searchtop"> <strong class="small"><?php echo $words->getFormatted('FindPeopleEnterSomething'); ?> </strong><br /> <form action="searchmembers/quicksearch" method="get"> <input type="text" name="searchtext" size="25" maxlength="30" id="text-field" value="Search...." onfocus="this.value='';"/> <?php PPostHandler::setCallback('quicksearch_callbackId', 'SearchmembersController', 'index'); ?> <input type="hidden" name="quicksearch_callbackId" value="1"/> <input type="submit" value="<?php echo $words->getBuffered('FindPeopleSubmitSearch'); ?> " id="submit-button" class="button" /> </form> </fieldset> </div> <div id="searchteaser2" style="width: 40%" class="float_left"> <p><a href="searchmembers/mapon"><?php echo $words->getFormatted('TryMapSearch'); ?> !</a></p> </div> </div> </div>
/** */ public function index() { $vw = new ViewWrap($this->_view); $P = PVars::getObj('page'); // First check if the feature is closed if ($_SESSION["Param"]->FeatureSearchPageIsClosed != 'No') { $P->content = $this->_view->showFeatureIsClosed(); return; } // end of test "if feature is closed" if (PPostHandler::isHandling()) { return; } $request = PRequest::get()->request; if (!isset($request[1])) { $request[1] = ''; } // Route quicksearch if ($request[0] == 'quicksearch') { $error = false; // static pages switch ($request[1]) { case '': $searchtext = isset($_GET["vars"]) ? $_GET['vars'] : ''; // Because of old way to use the QuickSearch with a get break; default: $searchtext = $request[1]; break; } $TReturn = $this->_model->quicksearch($searchtext); if (count($TReturn->TMembers) == 1 and count($TReturn->TPlaces) == 0 and count($TReturn->TForumTags) == 0) { $loc = "members/" . $TReturn->TMembers[0]->Username; header('Location: ' . $loc); PPHP::PExit(); } else { if (count($TReturn->TMembers) == 0 and count($TReturn->TPlaces) == 1 and count($TReturn->TForumTags) == 0) { $loc = $TReturn->TPlaces[0]->link; header('Location: ' . $loc); PPHP::PExit(); } else { if (count($TReturn->TMembers) == 0 and count($TReturn->TPlaces) == 0 and count($TReturn->TForumTags) == 1) { $loc = "forums/t" . $TReturn->TForumTags[0]->IdTag; header('Location: ' . $loc); PPHP::PExit(); } } } $P->content .= $vw->quicksearch_results($TReturn); return $P; } if ($request[0] != 'searchmembers') { header('Location: searchmembers'); PPHP::PExit(); } // fix a problem with Opera javascript, which sends a 'searchmembers/searchmembers/ajax' request if ($request[1] === 'searchmembers') { $request = array_slice($request, 1); } // default mapstyle: $mapstyle = 'mapon'; $queries = ''; $varsOnLoad = ''; $varsGet = ''; if (isset($request[1])) { switch ($request[1]) { case 'mapoff': $mapstyle = "mapoff"; $_SESSION['SearchMembersTList'] = array(); break; case 'mapon': $mapstyle = "mapon"; $_SESSION['SearchMembersTList'] = array(); break; case 'queries': if (PVars::get()->debug) { $R = MOD_right::get(); if ($R->HasRight("Debug", "DB_QUERY")) { $queries = true; $mapstyle = "mapoff"; } } break; default: if (isset($_SESSION['SearchMapStyle']) and $_SESSION['SearchMapStyle']) { $mapstyle = $_SESSION['SearchMapStyle']; } break; } } // Store the MapStyle in session $_SESSION['SearchMapStyle'] = $mapstyle; // Check wether there are latest search results and variables from the session if (!$queries && isset($_SESSION['SearchMembersTList'])) { if ($_SESSION['SearchMembersTList'] && $_SESSION['SearchMembersVars']) { $varsOnLoad = $_SESSION['SearchMembersVars']; } } switch ($request[1]) { case 'ajax': if (isset($request[2]) and $request[2] == "varsonload") { $vars['varsOnLoad'] = true; // Read the latest search results and variables from the session if (!empty($_SESSION['SearchMembersTList'])) { $TList = $_SESSION['SearchMembersTList']; } if (!empty($_SESSION['SearchMembersVars'])) { $vars = $_SESSION['SearchMembersVars']; } if (isset($request[3])) { $vars['OrderBy'] = $request[3]; $TList = $this->_model->search($vars); } } else { $vars = isset($_GET) ? $_GET : array(); if (isset($request[2]) && $request[2] == "queries") { $vars['queries'] = true; } if (!isset($TList)) { $TList = $this->_model->search($vars); } } $this->_view->searchmembers_ajax($TList, $vars, $mapstyle); // Store latest search results and variables in session $_SESSION['SearchMembersTList'] = $TList; $_SESSION['SearchMembersVars'] = $vars; PPHP::PExit(); break; /* quicksearch shouldn't go through this route case 'quicksearch': $mapstyle = "mapoff"; // First check if the QuickSearch feature is closed if ($_SESSION["Param"]->FeatureQuickSearchIsClosed!='No') { $this->_view->showFeatureIsClosed(); PPHP::PExit(); break ; } // end of test "if QuickSearch feature is closed" if (isset($request[2])) { // The parameter to search for can be for the form searchmember/quicksearch/ value $searchtext=$request[2] ; } if (isset($_GET['searchtext'])) { // The parameter can come from the main menu $searchtext = $_GET['searchtext']; } if (isset($_POST['searchtext'])) { // The parameter can come from the quicksearch form $searchtext = $_POST['searchtext']; } // die('here searchtext={'.$searchtext.'}') ; if (!empty($searchtext)) { $TReturn=$this->_model->quicksearch($searchtext) ; if ((count($TReturn->TMembers)==1) and (count($TReturn->TPlaces)==0) and (count($TReturn->TForumTags)==0)) { $loc="members/".$TReturn->TMembers[0]->Username ; header('Location: '.$loc); PPHP::PExit(); } else if ((count($TReturn->TMembers)==0) and (count($TReturn->TPlaces)==1) and (count($TReturn->TForumTags)==0)) { $loc=$TReturn->TPlaces[0]->link ; header('Location: '.$loc); PPHP::PExit(); } else if ((count($TReturn->TMembers)==0) and (count($TReturn->TPlaces)==0) and (count($TReturn->TForumTags)==1)) { $loc="forums/t".$TReturn->TForumTags[0]->IdTag ; header('Location: '.$loc); PPHP::PExit(); } $P->content .= $vw->quicksearch_results($TReturn); } else { $vars = PPostHandler::getVars('quicksearch_callbackId'); PPostHandler::clearVars('quicksearch_callbackId'); // first include the col2-stylesheet $P->addStyles .= $this->_view->customStyles($mapstyle,$quicksearch=1); // now the teaser content $P->teaserBar .= $vw->teaserquicksearch($mapstyle); $P->content .= $vw->quicksearch_form(); } break; // Backwards compatibility case 'index': $loc = PVars::getObj('env')->baseuri; $loc .= 'searchmembers'; if(isset($request[2])) {$loc .= '/'.$request[2];} elseif(isset($request[3])) {$loc .= '/'.$request[3];} header('Location: '.$loc); PPHP::PExit(); break; */ /* quicksearch shouldn't go through this route case 'quicksearch': $mapstyle = "mapoff"; // First check if the QuickSearch feature is closed if ($_SESSION["Param"]->FeatureQuickSearchIsClosed!='No') { $this->_view->showFeatureIsClosed(); PPHP::PExit(); break ; } // end of test "if QuickSearch feature is closed" if (isset($request[2])) { // The parameter to search for can be for the form searchmember/quicksearch/ value $searchtext=$request[2] ; } if (isset($_GET['searchtext'])) { // The parameter can come from the main menu $searchtext = $_GET['searchtext']; } if (isset($_POST['searchtext'])) { // The parameter can come from the quicksearch form $searchtext = $_POST['searchtext']; } // die('here searchtext={'.$searchtext.'}') ; if (!empty($searchtext)) { $TReturn=$this->_model->quicksearch($searchtext) ; if ((count($TReturn->TMembers)==1) and (count($TReturn->TPlaces)==0) and (count($TReturn->TForumTags)==0)) { $loc="members/".$TReturn->TMembers[0]->Username ; header('Location: '.$loc); PPHP::PExit(); } else if ((count($TReturn->TMembers)==0) and (count($TReturn->TPlaces)==1) and (count($TReturn->TForumTags)==0)) { $loc=$TReturn->TPlaces[0]->link ; header('Location: '.$loc); PPHP::PExit(); } else if ((count($TReturn->TMembers)==0) and (count($TReturn->TPlaces)==0) and (count($TReturn->TForumTags)==1)) { $loc="forums/t".$TReturn->TForumTags[0]->IdTag ; header('Location: '.$loc); PPHP::PExit(); } $P->content .= $vw->quicksearch_results($TReturn); } else { $vars = PPostHandler::getVars('quicksearch_callbackId'); PPostHandler::clearVars('quicksearch_callbackId'); // first include the col2-stylesheet $P->addStyles .= $this->_view->customStyles($mapstyle,$quicksearch=1); // now the teaser content $P->teaserBar .= $vw->teaserquicksearch($mapstyle); $P->content .= $vw->quicksearch_form(); } break; // Backwards compatibility case 'index': $loc = PVars::getObj('env')->baseuri; $loc .= 'searchmembers'; if(isset($request[2])) {$loc .= '/'.$request[2];} elseif(isset($request[3])) {$loc .= '/'.$request[3];} header('Location: '.$loc); PPHP::PExit(); break; */ default: $words = new MOD_words(); $P->addStyles = $this->_view->customStyles($mapstyle); $google_conf = PVars::getObj('config_google'); $P->title = $words->getBuffered('searchmembersTitle') . " - BeWelcome"; $P->currentTab = 'searchmembers'; $P->currentSubTab = 'searchmembers'; $subTab = 'index'; // prepare sort order for both the filters and the userbar $sortorder = $this->_model->get_sort_order(); $P->teaserBar = $vw->teaser($mapstyle, $sortorder, $varsOnLoad); $P->teaserBar .= $vw->searchmembersFilters($this->_model->sql_get_groups(), $this->_model->sql_get_set("members", "Accomodation"), $this->_model->sql_get_set("members", "TypicOffer"), $sortorder); $P->content = $vw->search_column_col3($sortorder, $queries, $mapstyle, $varsOnLoad, $varsGet, $this->_model->sql_get_set("members", "Accomodation")); /*$P->content = $vw->memberlist($mapstyle,$sortorder); $P->content .= $vw->searchmembers( $queries, $mapstyle, $varsOnLoad, $varsGet, $this->_model->sql_get_set("members", "Accomodation") ); */ $P->show_volunteerbar = false; break; } }
protected function getPageTitle() { $words = new MOD_words(); echo $words->getBuffered('CommunityTitle'); }
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->getBuffered('LanguageLevel_' . $language->Level); ?> "><?php // 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;
echo $words->get('AdminTreasurerComment'); ?> </label> <input type="text" id="donate-comment" name="donate-comment" maxlength="100" value="<?php echo $vars['donate-comment']; ?> " /> </div> <div class="subcolumns type-select"> <label for="donate-country"><?php echo $words->get('AdminTreasurerSelectCountry'); ?> </label> <select id="donate-country" name="donate-country"> <option value="0"><?php echo $words->getBuffered('AdminTreasurerSelectACountry'); ?> </option> <?php foreach ($countries as $country) { echo '<option value="' . $country->iso_alpha2 . '"'; if (isset($vars['donate-country']) && $vars['donate-country'] == $country->iso_alpha2) { echo ' selected="selected"'; } echo '>' . $country->name . '</option>'; } ?> </select><?php echo $words->flushBuffer(); ?> </div>
$topic->topicinfo->IsClosed = strtotime($topic->topicinfo->expiredate) <= time(); } if ($topic->topicinfo->IsClosed) { echo " <span class=\"forumsthreadtags\"><strong> this thread is closed</strong>"; } ?> <?php if ($User) { ?> <div id="forumsthreadreplytop"> <?php if (isset($topic->isGroupSubscribed) && $topic->isGroupSubscribed) { if (isset($topic->IdSubscribe)) { if ($topic->notificationsEnabled > 0) { echo '<a class="button" href="' . $this->getURI() . '/subscriptions/disable/thread/' . $topic->IdThread . '">' . $words->getBuffered('ForumDisable') . '</a>' . $words->flushBuffer() . PHP_EOL; } else { echo '<a class="button" href="' . $this->getURI() . '/subscriptions/enable/thread/' . $topic->IdThread . '">' . $words->getBuffered('ForumEnable') . '</a>' . $words->flushBuffer() . PHP_EOL; } } else { if ($topic->notificationsEnabled) { echo '<a class="button" href="' . $this->getURI() . '/subscriptions/disable/thread/' . $topic->IdThread . '">' . $words->getBuffered('ForumDisable') . '</a>' . $words->flushBuffer() . PHP_EOL; } else { echo '<a class="button" href="' . $this->getURI() . '/subscriptions/enable/thread/' . $topic->IdThread . '">' . $words->getBuffered('ForumEnable') . '</a>' . $words->flushBuffer() . PHP_EOL; } } } else { if (isset($topic->IdSubscribe)) { if ($topic->notificationsEnabled > 0) { echo '<a class="button" href="' . $this->getURI() . '/subscriptions/disable/thread/' . $topic->IdThread . '">' . $words->getBuffered('ForumDisable') . '</a>' . $words->flushBuffer() . PHP_EOL; } else {
private function LinkWithPicture($Username, $ParamPhoto = "", $Status = "") { $words = new MOD_words(); $Photo = $ParamPhoto; if ($Photo == "") { $query = $this->dao->query("\nSELECT SQL_CACHE\n *\nFROM\n members\nWHERE\n id = " . IdMember($Username)) . "\n "; $rr = $query->fetch(PDB::FETCH_OBJ); $Photo = $this->DummyPict($rr->Gender, $rr->HideGender); } $thumb = $this->getthumb($Photo, 100, 100); if ($thumb === null) { $thumb = ""; } if ($Status == 'map_style') { return "<a href=\"javascript:newWindow('{$Username}')\" title=\"" . $words->getBuffered("SeeProfileOf", $Username) . "\"><img class=\"framed\" style=\"float: left; margin: 4px\" src=\"" . $this->bwlink($thumb) . "\" height=\"50px\" width=\"50px\" alt=\"Profile\" /></a>"; } return "<a href=\"" . $this->bwlink("bw/member.php?cid={$Username}") . "\" title=\"" . $words->getBuffered("SeeProfileOf", $Username) . "\"><img class=\"framed\" src=\"" . $this->bwlink($thumb) . "\" height=\"50px\" width=\"50px\" alt=\"Profile\" /></a>"; }