当前位置: 首页>>代码示例>>PHP>>正文


PHP get_member_icon函数代码示例

本文整理汇总了PHP中get_member_icon函数的典型用法代码示例。如果您正苦于以下问题:PHP get_member_icon函数的具体用法?PHP get_member_icon怎么用?PHP get_member_icon使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了get_member_icon函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: genSiteServiceMenu

 function genSiteServiceMenu()
 {
     $bLogged = isLogged();
     $aMenuItem = array();
     $sMenuPopupId = '';
     $sMenuPopupContent = '';
     if ($bLogged) {
         bx_import('BxTemplMenuService');
         $oMenu = new BxTemplMenuService();
         if ($oMenu->aMenuInfo['memberID'] != 0) {
             $aProfile = getProfileInfo($oMenu->aMenuInfo['memberID']);
         }
         $sThumbSetting = getParam('sys_member_info_thumb_icon');
         bx_import('BxDolMemberInfo');
         $o = BxDolMemberInfo::getObjectInstance($sThumbSetting);
         $sThumbUrl = $o ? $o->get($aProfile) : '';
         $o = BxDolMemberInfo::getObjectInstance($sThumbSetting . '_2x');
         $sThumbTwiceUrl = $o ? $o->get($aProfile) : '';
         if (!$sThumbTwiceUrl) {
             $sThumbTwiceUrl = $sThumbUrl;
         }
         $bThumb = !empty($sThumbUrl);
         $aMenuItem = array('bx_if:show_fu_thumb_image' => array('condition' => $bThumb, 'content' => array('image' => $sThumbUrl, 'image_2x' => $sThumbTwiceUrl)), 'bx_if:show_fu_thumb_icon' => array('condition' => !$bThumb, 'content' => array()), 'thumbnail' => get_member_icon($oMenu->aMenuInfo['memberID']), 'title' => getNickName($oMenu->aMenuInfo['memberID']));
         $sMenuPopupId = 'sys-service-menu-' . time();
         $sMenuPopupContent = $this->transBox($oMenu->getCode());
     }
     return $GLOBALS['oSysTemplate']->parseHtmlByName('extra_service_menu_wrapper.html', array('bx_if:show_for_visitor' => array('condition' => !$bLogged, 'content' => array()), 'bx_if:show_for_user' => array('condition' => $bLogged, 'content' => $aMenuItem), 'menu_popup_id' => $sMenuPopupId, 'menu_popup_content' => $sMenuPopupContent));
 }
开发者ID:Prashank25,项目名称:dolphin.pro,代码行数:28,代码来源:BxTemplFunctions.php

示例2: PageCompPageMainCode

/**
 * page code function
 */
function PageCompPageMainCode()
{
    global $site;
    global $prof;
    $query = "\n\t\tSELECT\n\t\t\t`id_poll`,\n\t\t\t`id_profile`,\n\t\t\t`poll_question`,\n\t\t\t`Profiles`.*\n\t\tFROM `ProfilesPolls`\n\t\tLEFT JOIN `Profiles` ON\n\t\t\t`id_profile` = `Profiles`.`ID`\n\t\tWHERE\n\t\t\t`poll_status` = 'active'\n\t\t\tAND `poll_approval`\n\t\tORDER BY `id_poll` DESC\n\t\t";
    //$query = "SELECT `ID`, `Question` FROM `polls_q` WHERE `Active` = 'on' ORDER BY `Question`";
    $res = db_res($query);
    if ($res and mysql_num_rows($res)) {
        $ret = '<div class="clear_both"></div>';
        while ($arr = mysql_fetch_array($res)) {
            $age_str = _t("_y/o", age($arr['DateOfBirth']));
            $y_o_sex = $age_str . '&nbsp;' . _t("_" . $arr['Sex']);
            $poll_coutry = _t("__" . $prof['countries'][$arr['Country']]);
            $ret .= '<div class="pollBody">';
            $ret .= '<div class="clear_both"></div>';
            $ret .= '<div class="pollInfo">';
            $ret .= get_member_icon($arr['id_profile'], 'left');
            $ret .= '<div class="pollInfo_nickname">';
            $ret .= _t('_Submitted by', $arr['NickName']);
            $ret .= '</div>';
            $ret .= '<div class="pollInfo_info">';
            $ret .= $y_o_sex . '<br />' . $poll_coutry;
            $ret .= '</div>';
            $ret .= '</div>';
            $ret .= '<div class="clear_both"></div>';
            $ret .= ShowPoll($arr['id_poll']);
            $ret .= '<div class="clear_both"></div>';
            $ret .= '</div>';
        }
        $ret .= '<div class="clear_both"></div>';
    } else {
        $ret = "<div align=center>" . _t("_No polls available") . "</div>\n";
    }
    return $ret;
}
开发者ID:BackupTheBerlios,项目名称:dolphin-dwbn-svn,代码行数:38,代码来源:mem_polls.php

示例3: displayItem

 function displayItem($aParams, &$aEntry)
 {
     $sSampleType = $aParams['sample_type'];
     $iViewerType = $aParams['viewer_type'];
     $iViewerId = isset($aParams['viewer_id']) ? (int) $aParams['viewer_id'] : 0;
     $bAdminPanel = $iViewerType == BX_TD_VIEWER_TYPE_ADMIN && (isset($aParams['admin_panel']) && $aParams['admin_panel'] || $sSampleType == 'admin');
     $sModuleUri = $this->_oConfig->getUri();
     $sLKLinkEdit = _t('_' . $sModuleUri . '_lcaption_edit');
     $aTmplVars = array('id' => $this->_oConfig->getSystemPrefix() . $aEntry['id'], 'author_icon' => get_member_icon($aEntry['author_id'], 'left'), 'author_url' => getProfileLink($aEntry['author_id']), 'author_username' => getNickName($aEntry['author_id']), 'caption' => str_replace("\$", "&#36;", $aEntry['caption']), 'class' => !in_array($sSampleType, array('view')) ? ' ' . $this->sCssPrefix . '-text-snippet' : '', 'date' => _format_when($aEntry['ago']), 'content' => str_replace("\$", "&#36;", $aEntry['content']), 'link' => BX_DOL_URL_ROOT . $this->_oConfig->getBaseUri() . 'view/' . $aEntry['uri'], 'bx_if:checkbox' => array('condition' => $bAdminPanel, 'content' => array('id' => $aEntry['id'])), 'bx_if:status' => array('condition' => $iViewerType == BX_TD_VIEWER_TYPE_MEMBER && $iViewerId == $aEntry['author_id'] || $iViewerType == BX_TD_VIEWER_TYPE_ADMIN, 'content' => array('status' => _t('_' . $sModuleUri . '_status_' . $aEntry['status']))), 'bx_if:edit_link' => array('condition' => $iViewerType == BX_TD_VIEWER_TYPE_MEMBER && $iViewerId == $aEntry['author_id'] || $iViewerType == BX_TD_VIEWER_TYPE_ADMIN, 'content' => array('edit_link_url' => BX_DOL_URL_ROOT . $this->_oConfig->getBaseUri() . 'post/' . $aEntry['uri'], 'edit_link_caption' => $sLKLinkEdit)));
     return $this->parseHtmlByName('item.html', $aTmplVars);
 }
开发者ID:noormcs,项目名称:studoro,代码行数:11,代码来源:BxFdbTemplate.php

示例4: getSystem

 /**
  * Common public methods.
  * Is used to display events on the Wall.
  */
 function getSystem($aEvent, $sDisplayType = BX_WALL_VIEW_TIMELINE)
 {
     $sHandler = $aEvent['type'] . '_' . $aEvent['action'];
     if (!$this->_oConfig->isHandler($sHandler)) {
         return '';
     }
     $aResult = $this->_getSystemData($aEvent, $sDisplayType);
     $bResult = !empty($aResult);
     if ($bResult && isset($aResult['perform_delete']) && $aResult['perform_delete'] == true) {
         $this->_oDb->deleteEvent(array('id' => $aEvent['id']));
         return '';
     } else {
         if (!$bResult || $bResult && empty($aResult['content'])) {
             return '';
         }
     }
     $sResult = "";
     switch ($sDisplayType) {
         case BX_WALL_VIEW_TIMELINE:
             if (empty($aEvent['title']) && !empty($aResult['title']) || empty($aEvent['description']) && !empty($aResult['description'])) {
                 $this->_oDb->updateEvent(array('title' => process_db_input($aResult['title'], BX_TAGS_STRIP), 'description' => process_db_input($aResult['description'], BX_TAGS_STRIP)), $aEvent['id']);
             }
             if (!in_array($aEvent['type'], array('profile', 'friend'))) {
                 $sType = $aEvent['type'];
                 $iObjectId = $aEvent['object_id'];
                 if ($aEvent['action'] == 'comment_add') {
                     $aContent = unserialize($aEvent['content']);
                     $iObjectId = (int) $aContent['object_id'];
                 }
                 if ($this->_oConfig->isGrouped($aEvent['type'], $aEvent['action'], $iObjectId)) {
                     $sType = isset($aResult['grouped']['group_cmts_name']) ? $aResult['grouped']['group_cmts_name'] : '';
                     $iObjectId = isset($aResult['grouped']['group_id']) ? (int) $aResult['grouped']['group_id'] : 0;
                 }
                 $oComments = new BxWallCmts($sType, $iObjectId);
                 if ($oComments->isEnabled()) {
                     $sComments = $oComments->getCommentsFirstSystem('comment', $aEvent['id']);
                 } else {
                     $sComments = $this->getDefaultComments($aEvent['id']);
                 }
             } else {
                 $sComments = $this->getDefaultComments($aEvent['id']);
             }
             $sResult = $this->parseHtmlByTemplateName('balloon', array('post_type' => $aEvent['type'], 'post_id' => $aEvent['id'], 'post_owner_icon' => get_member_thumbnail($aEvent['owner_id'], 'none'), 'post_content' => $aResult['content'], 'comments_content' => $sComments));
             break;
         case BX_WALL_VIEW_OUTLINE:
             $sResult = $this->parseHtmlByContent($aResult['content'], array('post_id' => $aEvent['id'], 'post_owner_icon' => get_member_icon($aEvent['owner_id'], 'none'), 'comments_content' => $sComments));
             break;
     }
     return $sResult;
 }
开发者ID:Gotgot59,项目名称:dolphin.pro,代码行数:54,代码来源:BxWallTemplate.php

示例5: getVendorInfoProfile

 function getVendorInfoProfile($iId)
 {
     $sCurrencyCode = $this->_oConfig->getCurrencyCode();
     $sCurrencySign = $this->_oConfig->getCurrencySign();
     if ($iId == BX_PMT_ADMINISTRATOR_ID) {
         $iSiteId = $this->_oConfig->getSiteId();
         return array('id' => BX_PMT_ADMINISTRATOR_ID, 'username' => BX_PMT_ADMINISTRATOR_USERNAME, 'profile_name' => getNickName($iSiteId), 'profile_icon' => get_member_icon($iSiteId), 'profile_url' => getProfileLink($iSiteId), 'status' => 'Active', 'currency_code' => $sCurrencyCode, 'currency_sign' => $sCurrencySign);
     }
     $sSql = "SELECT\n               `tp`.`ID` AS `id`,\n               `tp`.`NickName` AS `username`,\n               '' AS `profile_name`,\n               '' AS `profile_url`,\n               `tp`.`Status` AS `status`,\n               '" . $sCurrencyCode . "' AS `currency_code`,\n               '" . $sCurrencySign . "' AS `currency_sign`\n            FROM `Profiles` AS `tp`\n            WHERE `tp`.`ID`='" . $iId . "'\n            LIMIT 1";
     $aVendor = $this->getRow($sSql);
     if (!empty($aVendor)) {
         $aVendor['profile_name'] = getNickName($aVendor['id']);
         $aVendor['profile_icon'] = get_member_icon($aVendor['id']);
         $aVendor['profile_url'] = getProfileLink($aVendor['id']);
     }
     return $aVendor;
 }
开发者ID:Arvindvi,项目名称:dolphin,代码行数:17,代码来源:BxPmtDb.php

示例6: displayList

 function displayList($aParams)
 {
     $sSampleType = $aParams['sample_type'];
     $iViewerId = isset($aParams['viewer_id']) ? (int) $aParams['viewer_id'] : 0;
     $iViewerType = $aParams['viewer_type'];
     $iStart = isset($aParams['start']) ? (int) $aParams['start'] : -1;
     $iPerPage = isset($aParams['count']) ? (int) $aParams['count'] : -1;
     $bShowEmpty = isset($aParams['show_empty']) ? $aParams['show_empty'] : true;
     $bAdminPanel = $iViewerType == BX_TD_VIEWER_TYPE_ADMIN && (isset($aParams['admin_panel']) && $aParams['admin_panel'] || $sSampleType == 'admin');
     $sModuleUri = $this->_oConfig->getUri();
     $aEntries = $this->_oDb->getEntries($aParams);
     if (empty($aEntries)) {
         return $bShowEmpty ? MsgBox(_t('_' . $sModuleUri . '_msg_no_results')) : "";
     }
     $oTags = new BxDolTags();
     $oCategories = new BxDolCategories();
     //--- Language translations ---//
     $sLKLinkApprove = _t('_' . $sModuleUri . '_lcaption_approve');
     $sLKLinkReject = _t('_' . $sModuleUri . '_lcaption_reject');
     $sLKLinkEdit = _t('_' . $sModuleUri . '_lcaption_edit');
     $sLKLinkDelete = _t('_' . $sModuleUri . '_lcaption_delete');
     $sBaseUri = BX_DOL_URL_ROOT . $this->_oConfig->getBaseUri();
     $sJsMainObject = $this->_oConfig->getJsObject();
     $aResult['sample'] = $sSampleType;
     $aResult['bx_repeat:entries'] = array();
     foreach ($aEntries as $aEntry) {
         $sVotes = "";
         if ($this->_oConfig->isVotesEnabled() && $aEntry['is_vote'] == 1) {
             $oVotes = $this->_oModule->_createObjectVoting($aEntry['id']);
             $sVotes = $oVotes->getJustVotingElement(0, $aEntry['id']);
         }
         $aResult['bx_repeat:entries'][] = array('id' => $this->_oConfig->getSystemPrefix() . $aEntry['id'], 'author_icon' => get_member_icon($aEntry['author_id'], 'left'), 'caption' => str_replace("\$", "&#36;", $aEntry['caption']), 'class' => !in_array($sSampleType, array('view')) ? ' ' . $this->sCssPrefix . '-text-snippet' : '', 'date' => getLocaleDate($aEntry['date']), 'content' => str_replace("\$", "&#36;", $aEntry['content']), 'link' => BX_DOL_URL_ROOT . $this->_oConfig->getBaseUri() . 'view/' . $aEntry['uri'], 'voting' => $sVotes, 'bx_if:checkbox' => array('condition' => $bAdminPanel, 'content' => array('id' => $aEntry['id'])), 'bx_if:status' => array('condition' => $iViewerType == BX_TD_VIEWER_TYPE_MEMBER && $iViewerId == $aEntry['author_id'] || $iViewerType == BX_TD_VIEWER_TYPE_ADMIN, 'content' => array('status' => _t('_' . $sModuleUri . '_status_' . $aEntry['status']))), 'bx_if:edit_link' => array('condition' => $iViewerType == BX_TD_VIEWER_TYPE_MEMBER && $iViewerId == $aEntry['author_id'] || $iViewerType == BX_TD_VIEWER_TYPE_ADMIN, 'content' => array('edit_link_url' => BX_DOL_URL_ROOT . $this->_oConfig->getBaseUri() . 'post/' . $aEntry['uri'], 'edit_link_caption' => $sLKLinkEdit)));
     }
     $aResult['paginate'] = '';
     if (!in_array($sSampleType, array('id', 'uri', 'view', 'search_unit'))) {
         if (!empty($sSampleType)) {
             $this->_updatePaginate($aParams);
         }
         $aResult['paginate'] = $this->oPaginate->getPaginate($iStart, $iPerPage);
     }
     $aResult['loading'] = LoadingBox($sModuleUri . '-' . $sSampleType . '-loading');
     return $this->parseHtmlByName('list.html', $aResult);
 }
开发者ID:dalinhuang,项目名称:shopexts,代码行数:43,代码来源:BxFdbTemplate.php

示例7: displaySearchUnit

 function displaySearchUnit($aData)
 {
     $sFileLink = $this->getCurrentUrl('file', $aData['id'], $aData['uri']);
     $sCategoryLink = $this->getCurrentUrl('category', $aData['categoryId'], $aData['categoryUri'], array('ownerId' => $aData['ownerId'], 'ownerName' => $aData['ownerName']));
     // ownerPic
     $aUnit['ownerPic'] = get_member_icon($aData['ownerId'], 'left');
     // category
     $aUnit['category'] = isset($aData['categoryName']) ? _t('_In') . ' <a href="' . $sCategoryLink . '">' . $aData['categoryName'] . '</a>' : '';
     // comment(s)
     $aUnit['comment'] = isset($aData['countComment']) ? '<a href="' . $sFileLink . '">' . $aData['countComment'] . ' ' . _t('_comments') . '</a>' : '';
     // tag
     if (isset($aData['tag'])) {
         $aTags = explode(',', $aData['tag']);
         foreach ($aTags as $sValue) {
             $sLink = $this->getCurrentUrl('tag', 0, $sValue);
             $aUnit['tag'] .= '<a href="' . $sLink . '">' . $sValue . '</a>, ';
         }
     }
     $aUnit['tag'] .= trim($aUnit['tag'], ', ');
     // rate
     if (!is_null($this->oRate) && $this->oRate->isEnabled()) {
         $aUnit['rate'] = $this->oRate->getJustVotingElement(0, 0, $aData['voting_rate']);
     } else {
         $aUnit['rate'] = '';
     }
     // title
     $aUnit['title'] = isset($aData['title']) ? '<a href="' . $sFileLink . '">' . $aData['title'] . '</a>' : '';
     // when
     $aUnit['when'] = defineTimeInterval($aData['date']);
     // from
     $aUnit['from'] = $aData['ownerId'] != 0 ? _t('_By') . ': <a href="' . getProfileLink($aData['ownerId']) . '">' . $aData['ownerName'] . '</a>' : _t('_By') . ': ' . _t('_Admin');
     // view
     $aUnit['view'] = isset($aData['view']) ? _t("_Views") . ': ' . $aData['view'] : '';
     // body
     $aUnit['body'] = isset($aData['bodyText']) ? process_html_output(strmaxtextlen(strip_tags($aData['bodyText']), 200)) : '';
     return $GLOBALS['oSysTemplate']->parseHtmlByName('browseTextUnit.html', $aUnit, array('{', '}'));
 }
开发者ID:Prashank25,项目名称:dolphin.pro,代码行数:37,代码来源:BxBaseSearchResultText.php

示例8: PrintCommentSection

    /**
     * Generate Comments Section
     *
     * @param $iElementID - Post ID
     * @param $iOwnerID - Owner ID
     * @return HTML presentation of data
     */
    function PrintCommentSection($iElementID, $sCommentLbl = '')
    {
        global $prof;
        global $site;
        $sRetHtml = '';
        $sCommentsC = $sCommentLbl == '' ? _t('_comments') : $sCommentLbl;
        $sSbjN = _t('_Subject');
        $sPostedByC = _t('_Posted by');
        $sDateC = _t('_Date');
        $sLocationC = _t('_Location');
        $sAdminLocalAreaC = _t('_AdminArea');
        $sAdminC = _t('_Admin');
        $sSureC = _t("_Are you sure");
        $sPostCommentC = _t('_Post Comment');
        $sLeaveCommentC = _t('_LeaveComment');
        $sAddCommentC = _t('_Add comment');
        $sEditC = _t('_Edit');
        $sDeleteC = _t('_Delete');
        $sCommentFriendsOnlyC = _t('_commenting_this_blog_allowed_only_for_friends');
        $sReportC = _t('_Report');
        $sPostDataSQL = $this->SelectionObjectSQL($iElementID);
        $aPostData = db_arr($sPostDataSQL);
        $iOwnerID = $aPostData['OwnerID'];
        //$bFriend = is_friends( $this->iVisitorID, $aPostData['OwnerID'] );
        //$bOwner = ($this->iVisitorID==$aPostData['OwnerID']) ? true : false;
        $bCanPostComment = $this->GetPostNewCommentPermission($aPostData);
        $bCanPostCommentReport = $this->GetCommentReportPermission($aPostData);
        $sQuery = $this->SelectionCommentsObjectSQL($iElementID);
        $vSqlRes = db_res($sQuery);
        $sCommsHtml = '';
        while ($aSqlResStr = mysql_fetch_assoc($vSqlRes)) {
            $aCommentData = $this->FillCommentsData($aSqlResStr);
            $aProfileInfo = getProfileInfo($aCommentData['ProfID']);
            $sPostedBy = $aCommentData['ProfID'] == 0 ? $sAdminC : '<a href="' . getProfileLink($aCommentData['ProfID']) . '">' . $aProfileInfo['NickName'] . '</a>';
            $sCountryName = $aProfileInfo['Country'] == "" ? $sAdminLocalAreaC : _t('__' . $prof['countries'][$aProfileInfo['Country']]);
            $sCountryPic = $aProfileInfo['Country'] == '' ? '' : ' <img alt="' . $aProfileInfo['Country'] . '" src="' . ($site['flags'] . strtolower($aProfileInfo['Country'])) . '.gif"/>';
            $sUserIcon = get_member_icon($aCommentData['ProfID'], 'left', true);
            $aCommentData['Text'] = $aCommentData['Text'];
            $sTimeAgo = _format_when($aCommentData['Time']);
            $sMessageBR = $this->ActionPrepareForEdit($aCommentData['Text']);
            $sFullPermissions = $this->GetElementFullPermission($aPostData, $aCommentData);
            $sAdminActions = '';
            if ($sFullPermissions) {
                if ($this->iCType == 1) {
                    $sAdminActions = <<<EOF
<!-- <span class="comment_text_r"> -->
<div class="comment_actions">
\t<a href="{$this->sCurrBrowsedFile}" onclick="javascript: UpdateField('EditCommentID',{$aCommentData['ID']});UpdateField('EAdvID',{$iElementID}); UpdateFieldStyle('answer_form_to_1','block');UpdateFieldTiny('commentText','{$sMessageBR}'); return false;">{$sEditC}</a>|
\t<a href="{$_SERVER['PHP_SELF']}?ShowAdvertisementID={$aCommentData['ID']}" onclick="javascript: UpdateField('DeleteCommentID',{$aCommentData['ID']});UpdateField('DAdvID',{$iElementID});document.forms.command_delete_comment.submit(); return false;">{$sDeleteC}</a>
<!-- </span> -->
</div>
EOF;
                }
                if ($this->iCType == 2) {
                    $sAdminActions = <<<EOF
<span class="comment_text_r">
\t<a href="{$this->sCurrBrowsedFile}" onclick="javascript: UpdateField('EditCommentID',{$aCommentData['ID']});UpdateField('EPostID',{$iElementID});UpdateFieldStyle('answer_form_to_1','block');UpdateFieldTiny('commentText','{$sMessageBR}'); return false;">{$sEditC}</a>|
\t<a href="{$this->sCurrBrowsedFile}" onclick="javascript: UpdateField('DeleteCommentID',{$aCommentData['ID']});UpdateField('DPostID',{$iElementID});document.forms.command_delete_comment.submit(); return false;">{$sDeleteC}</a>
</span>
EOF;
                }
            }
            if ($bCanPostCommentReport) {
                if ($this->iCType == 1) {
                    $sReport = <<<EOF
<div class="comment_actions">
\t<a onclick="javascript: window.open( 'classifieds.php?commentID={$aCommentData['ID']}&clsID={$iElementID}&action=report', 'comment', 'width=500, height=380, menubar=no,status=no,resizable=yes,scrollbars=yes,toolbar=no,location=no' );return false;" href="#{$aCommentData['ID']}">{$sReportC}</a>
</div>
EOF;
                }
            }
            $sCommsHtml .= <<<EOF
<div class="comment_row">
\t{$sUserIcon}
\t{$sPostedBy} ({$sTimeAgo})<br />
\t{$aCommentData['Text']}<br />
\t{$sReport}<br />
\t{$sAdminActions}
\t<div class="clear_both"></div>
</div>
EOF;
        }
        $sPostNewComm = '';
        if ($bCanPostComment == true) {
            if ($this->iCType == 1) {
                $sPostNewComm = <<<EOF
<form action="{$this->sCurrBrowsedFile}" method="post" name="post_comment_adv_form">
\t<input type="hidden" name="CommAdvertisementID" value="{$iElementID}" />
\t<textarea name="message" id="postNewComm" rows="5" cols="30" class="classfiedsTextArea"></textarea>
\t<input id="postCommentAdv" name="postCommentAdv" type="submit" value="{$sPostCommentC}"/>
</form>
EOF;
            }
//.........这里部分代码省略.........
开发者ID:BackupTheBerlios,项目名称:dolphin-dwbn-svn,代码行数:101,代码来源:BxDolComments.php

示例9: showFileInfo

    function showFileInfo($aFile)
    {
        $sTitle = strlen($aFile['medTitle']) > 0 ? $aFile['medTitle'] : _t("_Untitled");
        $iTime = defineTimeInterval($aFile['medDate']);
        $sNumberAlt = _t("_Views");
        switch ($this->sType) {
            case 'photo':
                $sView = _t("_Photos");
                $sEmbedCode = $this->sFilesUrl . $aFile['medID'] . '.' . $aFile['medExt'];
                break;
            case 'music':
                $sView = _t("_Music files");
                $sNumberAlt = _t("_Playbacks");
                $sEmbedCode = getEmbedCode('music', 'player', array('id' => $aFile['medID'], 'song' => 'true'));
                break;
            case 'video':
                $sView = _t("_Videos");
                $sEmbedCode = getEmbedCode('movie', 'player', array('file' => $aFile['medID']));
                break;
        }
        if ($aFile['medCount'] - 1 > 0) {
            $sLinkMore = '<a href="' . $this->getMoreFilesUrl($aFile['medProfId'], $aFile['NickName']) . '">' . $aFile['medCount'] . '</a>';
        } else {
            $sLinkMore = $aFile['medCount'];
        }
        ob_start();
        ?>
		<div id="videoInfo">
			<div id="fileTop">
				<div class="fileTitle"><?php 
        echo $sTitle;
        ?>
</div>
				<div class="userPic">
					<?php 
        echo get_member_icon($aFile['medProfId'], 'left');
        ?>
				</div>
				<div class="fileUserInfo">
					<a href="<?php 
        echo getProfileLink($aFile['medProfId']);
        ?>
"><?php 
        echo $aFile['NickName'];
        ?>
</a>
				</div>
				<div>
					<?php 
        echo $sView;
        ?>
: <b><?php 
        echo $sLinkMore;
        ?>
</b>
				</div>
			</div>
			<div class="clear_both"></div>
			<div id="serviceInfo">
				<div>
					<?php 
        echo _t("_Added");
        ?>
: <b><?php 
        echo defineTimeInterval($aFile['medDate']);
        ?>
</b>
				</div>
				<div>
					<?php 
        echo $sNumberAlt;
        ?>
: <?php 
        echo $aFile['medViews'];
        ?>
				</div>
				<div>
					<?php 
        echo _t("_URL");
        ?>
: 
					<input type="text" onClick="this.focus(); this.select();" readonly="true" value="<?php 
        echo $this->getFileUrl($aFile['medID'], $aFile['medUri']);
        ?>
"/>
				</div>
				<div>
					<?php 
        echo _t("_Embed");
        ?>
: 
					<input type="text" onClick="this.focus(); this.select();" readonly="true" value="<?php 
        echo htmlspecialchars($sEmbedCode);
        ?>
"/>
				</div>
				<div>
					<?php 
        echo _t("_Tags");
        ?>
//.........这里部分代码省略.........
开发者ID:BackupTheBerlios,项目名称:dolphin-dwbn-svn,代码行数:101,代码来源:BxDolSharedMedia.php

示例10: displayCartContent

 function displayCartContent($aCartInfo, $iVendorId = BX_PMT_EMPTY_ID)
 {
     $iAdminId = $this->_oConfig->getAdminId();
     $sJsObject = $this->_oConfig->getJsObject('cart');
     if ($iVendorId != BX_PMT_EMPTY_ID) {
         $aCartInfo = array($aCartInfo);
     }
     $aVendors = array();
     foreach ($aCartInfo as $aVendor) {
         //--- Get Providers ---//
         $aProviders = array();
         $aVendorProviders = $this->_oDb->getVendorInfoProviders($aVendor['vendor_id']);
         foreach ($aVendorProviders as $aProvider) {
             $aProviders[] = array('name' => $aProvider['name'], 'caption' => $aProvider['caption'], 'checked' => empty($aProviders) ? 'checked="checked"' : '');
         }
         //--- Get Items ---//
         $aItems = array();
         foreach ($aVendor['items'] as $aItem) {
             $aItems[] = array('vendor_id' => $aVendor['vendor_id'], 'vendor_currency_code' => $aVendor['vendor_currency_code'], 'module_id' => $aItem['module_id'], 'item_id' => $aItem['id'], 'item_title' => $aItem['title'], 'item_url' => $aItem['url'], 'item_quantity' => $aItem['quantity'], 'item_price' => $aItem['quantity'] * $aItem['price'], 'js_object' => $sJsObject);
         }
         //--- Get Control Panel ---//
         $aButtons = array('pmt-checkout' => _t('_payment_btn_checkout'), 'pmt-delete' => _t('_payment_btn_delete'));
         $sControlPanel = BxTemplSearchResult::showAdminActionsPanel('items_from_' . $aVendor['vendor_id'], $aButtons, 'items', true, true);
         //--- Get General ---//
         $aVendors[] = array('box_width' => $aVendor['vendor_id'] == $iAdminId ? 260 : 310, 'vendor_id' => $aVendor['vendor_id'], 'bx_if:show_link' => array('condition' => !empty($aVendor['vendor_profile_url']), 'content' => array('vendor_username' => $aVendor['vendor_username'], 'vendor_url' => $aVendor['vendor_profile_url'], 'vendor_currency_code' => $aVendor['vendor_currency_code'], 'items_count' => $aVendor['items_count'], 'items_price' => $aVendor['items_price'])), 'bx_if:show_text' => array('condition' => empty($aVendor['vendor_profile_url']), 'content' => array('vendor_username' => $aVendor['vendor_username'], 'vendor_currency_code' => $aVendor['vendor_currency_code'], 'items_count' => $aVendor['items_count'], 'items_price' => $aVendor['items_price'])), 'vendor_icon' => get_member_icon($aVendor['vendor_id'] != -1 ? $aVendor['vendor_id'] : $this->_oDb->getFirstAdminId()), 'bx_repeat:providers' => $aProviders, 'bx_repeat:items' => $aItems, 'js_object' => $sJsObject, 'process_url' => BX_DOL_URL_ROOT . $this->_oConfig->getBaseUri() . 'act_cart_submit/', 'control_panel' => $sControlPanel);
     }
     $this->addCss('cart.css');
     $this->addJs('cart.js');
     return $this->parseHtmlByName('cart.html', array_merge($this->_getJsContentCart(), array('bx_repeat:vendors' => $aVendors)));
 }
开发者ID:dalinhuang,项目名称:shopexts,代码行数:30,代码来源:BxPmtTemplate.php

示例11: getBlockCode_LoginSection

    function getBlockCode_LoginSection($iBlockID, $sParams = '')
    {
        $sDolUrl = BX_DOL_URL_ROOT;
        $sAdminUrl = BX_DOL_URL_ADMIN;
        $sAdminPanelC = _t('_Admin Panel');
        $sLogoutC = _t('_Log Out');
        $sControlPanelC = _t('_Control Panel');
        $sHelloMemberC = _t('_Hello member', getNickName($this->iMemberID));
        $ret = '';
        if (isAdmin()) {
            $ret .= <<<EOF
<div class="logged_section_block">
    <span><a href="{$sAdminUrl}index.php" class="logout">{$sAdminPanelC}</a></span>
    <span> |&nbsp;| </span>
    <span><a href="{$sDolUrl}logout.php?action=admin_logout" class="logout">{$sLogoutC}</a></span>
</div>
EOF;
        } elseif (isMember()) {
            $sMemberIcon = get_member_icon($memberID, 'left');
            $ret .= <<<EOF
<div class="logged_member_block">
    {$sMemberIcon}
    <div class="hello_member bx-def-margin-sec-left">
        {$sHelloMemberC}<br />
        <a href="{$sDolUrl}member.php" class="logout">{$sControlPanelC}</a>&nbsp;
        <a href="{$sDolUrl}logout.php?action=member_logout" class="logout">{$sLogoutC}</a>
    </div>
</div>
EOF;
        } else {
            return getMemberLoginFormCode('login_box_form', $sParams);
        }
        return '<div class="dbContent bx-def-bc-margin">' . $ret . '</div>';
    }
开发者ID:toxalot,项目名称:dolphin.pro,代码行数:34,代码来源:BxDolPageView.php

示例12: getSystem

 /**
  * Common public methods.
  * Is used to display events on the Wall.
  */
 function getSystem($aEvent, $sDisplayType = BX_WALL_VIEW_TIMELINE)
 {
     $sHandler = $aEvent['type'] . '_' . $aEvent['action'];
     if (!$this->_oConfig->isHandler($sHandler)) {
         return '';
     }
     $aResult = $this->_getSystemData($aEvent, $sDisplayType);
     $bResult = !empty($aResult);
     if ($bResult && isset($aResult['perform_delete']) && $aResult['perform_delete'] == true) {
         $this->_oDb->deleteEvent(array('id' => $aEvent['id']));
         return '';
     } else {
         if (!$bResult || $bResult && empty($aResult['content'])) {
             return '';
         }
     }
     $sResult = "";
     switch ($sDisplayType) {
         case BX_WALL_VIEW_TIMELINE:
             if (empty($aEvent['title']) && !empty($aResult['title']) || empty($aEvent['description']) && !empty($aResult['description'])) {
                 $this->_oDb->updateEvent(array('title' => process_db_input($aResult['title'], BX_TAGS_STRIP), 'description' => process_db_input($aResult['description'], BX_TAGS_STRIP)), $aEvent['id']);
             }
             if (!in_array($aEvent['type'], array('profile', 'friend'))) {
                 $sType = $aEvent['type'];
                 $iObjectId = $aEvent['object_id'];
                 if ($aEvent['action'] == 'comment_add') {
                     $aContent = unserialize($aEvent['content']);
                     $iObjectId = (int) $aContent['object_id'];
                 }
                 if ($this->_oConfig->isGrouped($aEvent['type'], $aEvent['action'], $iObjectId)) {
                     $sType = isset($aResult['grouped']['group_cmts_name']) ? $aResult['grouped']['group_cmts_name'] : '';
                     $iObjectId = isset($aResult['grouped']['group_id']) ? (int) $aResult['grouped']['group_id'] : 0;
                 }
                 $oComments = new BxWallCmts($sType, $iObjectId);
                 if ($oComments->isEnabled()) {
                     $sComments = $oComments->getCommentsFirstSystem('comment', $aEvent['id']);
                 } else {
                     $sComments = $this->getDefaultComments($aEvent['id']);
                 }
             } else {
                 $sComments = $this->getDefaultComments($aEvent['id']);
             }
             $sResult = $this->parseHtmlByTemplateName('balloon', array('post_type' => $aEvent['type'], 'post_id' => $aEvent['id'], 'post_owner_icon' => get_member_thumbnail($aEvent['owner_id'], 'none'), 'post_content' => $aResult['content'], 'comments_content' => $sComments));
             break;
         case BX_WALL_VIEW_OUTLINE:
             //--- Votes
             $sVote = '';
             $oVote = $this->_oModule->_getObjectVoting($aEvent);
             if ($oVote->isVotingAllowed()) {
                 $sVote = $oVote->getVotingOutline();
             }
             //--- Repost
             $sRepost = '';
             if ($this->_oModule->_isRepostAllowed($aEvent)) {
                 $iOwnerId = $this->_oModule->_getAuthorId();
                 //--- in whose timeline the content will be shared
                 $iObjectId = $this->_oModule->_oConfig->isSystem($aEvent['type'], $aEvent['action']) ? $aEvent['object_id'] : $aEvent['id'];
                 $sRepost = $this->_oModule->serviceGetRepostElementBlock($iOwnerId, $aEvent['type'], $aEvent['action'], $iObjectId, array('show_do_repost_as_button_small' => true, 'show_do_repost_icon' => true, 'show_do_repost_label' => false));
             }
             $sResult = $this->parseHtmlByContent($aResult['content'], array('post_id' => $aEvent['id'], 'post_owner_icon' => get_member_icon($aEvent['owner_id'], 'none'), 'post_vote' => $sVote, 'post_repost' => $sRepost));
             break;
     }
     return $sResult;
 }
开发者ID:lolo3-sight,项目名称:dolphin.pro,代码行数:68,代码来源:BxWallTemplate.php

示例13: getBlockCode_LoginSection

 function getBlockCode_LoginSection()
 {
     global $logged;
     global $site;
     global $tmpl;
     $ret = '';
     if ($logged['member']) {
         $ret .= '<div class="logged_member_block">';
         $ret .= get_member_icon($memberID, 'none');
         $ret .= '<div class="hello_member">';
         $ret .= _t('_Hello member', getNickName($this->iMemberID));
         $ret .= "<br>";
         $ret .= '<a href="' . $site['url'] . 'member.php" class="logout">' . _t("_Control Panel") . '</a>';
         $ret .= ' &nbsp; ';
         $ret .= '<a href="' . $site['url'] . 'logout.php?action=member_logout" class="logout">' . _t("_Log Out") . '</a>';
         $ret .= '</div>';
         $ret .= '</div>';
     } elseif ($logged['admin']) {
         $ret .= '<div class="logged_section_block">';
         $ret .= '<span>';
         $ret .= '<a href="' . $site['url_admin'] . 'index.php" class="logout">Admin Panel</a>';
         $ret .= '</span>';
         $ret .= '<span>';
         $ret .= '|&nbsp;|';
         $ret .= '</span>';
         $ret .= '<span>';
         $ret .= '<a href="' . $site['url'] . 'logout.php?action=admin_logout" class="logout">' . _t("_Log Out") . '</a>';
         $ret .= '</span>';
         $ret .= '</div>';
     } elseif ($logged['aff']) {
         $ret .= '<div class="logged_section_block">';
         $ret .= '<span>';
         $ret .= '<a href="' . $site['url'] . 'aff/index.php" class="logout">Affiliate Panel</a>';
         $ret .= '</span>';
         $ret .= '<span>';
         $ret .= '|&nbsp;|';
         $ret .= '</span>';
         $ret .= '<span>';
         $ret .= '<a href="' . $site['url'] . 'logout.php?action=aff_logout" class="logout">' . _t("_Log Out") . '</a>';
         $ret .= '</span>';
         $ret .= '</div>';
     } elseif ($logged['moderator']) {
         $ret .= '<div class="logged_section_block">';
         $ret .= '<span>';
         $ret .= '<a href="' . $site['url'] . 'moderators/index.php" class="logout">Moderator Panel</a>';
         $ret .= '</span>';
         $ret .= '<span>';
         $ret .= '|&nbsp;|';
         $ret .= '</span>';
         $ret .= '<span>';
         $ret .= '<a href="' . $site['url'] . 'logout.php?action=moderator_logout" class="logout">' . _t("_Log Out") . '</a>';
         $ret .= '</span>';
         $ret .= '</div>';
     } else {
         $text = '';
         $mem = _t("_Member");
         $table = "Profiles";
         $login_page = "{$site['url']}member.php";
         $join_page = "{$site['url']}join.php";
         $forgot_page = "{$site['url']}forgot.php";
         $template = "{$dir['root']}templates/tmpl_{$tmpl}/login_form.html";
         $ret = PageCompLoginForm($text, $member, $mem, $table, $login_page, $join_page, $forgot_page, $template);
     }
     return $ret;
 }
开发者ID:BackupTheBerlios,项目名称:dolphin-dwbn-svn,代码行数:65,代码来源:BxBaseIndex.php

示例14: getItems

 function getItems()
 {
     $sContent = parent::getItems();
     return $GLOBALS['oSysTemplate']->parseHtmlByName('extra_sm_thumbnail.html', array('bx_if:show_thumbail' => array('condition' => $this->aMenuInfo['memberID'] != 0, 'content' => array('thumbnail' => get_member_icon($this->aMenuInfo['memberID'], 'left'))), 'content' => $sContent));
 }
开发者ID:Gotgot59,项目名称:dolphin.pro,代码行数:5,代码来源:BxBaseMenuService.php

示例15: getCommon

 function getCommon($aEvent)
 {
     $sPrefix = $this->_oConfig->getCommonPostPrefix();
     if (strpos($aEvent['type'], $sPrefix) !== 0) {
         return "";
     }
     if ((int) $aEvent['content'] > 0 && in_array($aEvent['type'], array($sPrefix . 'photos', $sPrefix . 'sounds', $sPrefix . 'videos'))) {
         $sMediaType = str_replace($sPrefix, '', $aEvent['type']);
         $aEvent = array_merge($aEvent, $this->_getCommonMedia($sMediaType, (int) $aEvent['content']));
         if ((int) $aEvent['content'] > 0) {
             $aEvent['content'] = _t('_wall_content_not_ready');
         } else {
             $this->_oDb->updateEvent(array('content' => process_db_input($aEvent['content'], BX_TAGS_VALIDATE), 'title' => process_db_input($aEvent['title'], BX_TAGS_STRIP), 'description' => process_db_input($aEvent['description'], BX_TAGS_STRIP)), $aEvent['id']);
         }
     }
     $aAuthor = $this->_oDb->getUser($aEvent['object_id']);
     $aVariables = array('author_thumbnail' => get_member_icon($aAuthor['id']), 'author_url' => getProfileLink($aAuthor['id']), 'author_username' => $aAuthor['username'], 'post_id' => $aEvent['id'], 'post_ago' => $aEvent['ago'], 'bx_if:post_delete' => array('condition' => $this->_isCommentDeleteAllowed(), 'content' => array('js_view_object' => $this->_sJsViewObject, 'post_id' => $aEvent['id'], 'post_delete_txt' => _t('_wall_post_delete'))), 'post_content' => $aEvent['content']);
     switch (str_replace($sPrefix, '', $aEvent['type'])) {
         case 'text':
             $aVariables = array_merge($aVariables, array('post_wrote' => _t("_wall_wrote"), 'post_content' => $aVariables['post_content']));
             break;
         case 'link':
             $aVariables = array_merge($aVariables, array('post_wrote' => _t("_wall_shared_link")));
             break;
         case 'photos':
             $aVariables = array_merge($aVariables, array('post_wrote' => _t("_wall_added_photo")));
             break;
         case 'videos':
             $aVariables = array_merge($aVariables, array('post_wrote' => _t("_wall_added_video")));
             break;
         case 'sounds':
             $aVariables = array_merge($aVariables, array('post_wrote' => _t("_wall_added_music")));
             break;
     }
     $sType = isset($aEvent['action']) && empty($aEvent['action']) ? 'reply' : 'comment';
     $oComments = new BxWallCmts($this->_oConfig->getCommentSystemName(), $aEvent['id']);
     $aVariables = array_merge($aVariables, array('comments_content' => $oComments->getCommentsFirst($sType)));
     return $this->_oTemplate->parseHtmlByTemplateName('balloon', $aVariables);
 }
开发者ID:dalinhuang,项目名称:shopexts,代码行数:39,代码来源:BxWallModule.php


注:本文中的get_member_icon函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。