• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP process_html_output函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: getLatestNews

    function getLatestNews()
    {
        $iNewsOnHome = $this->oTemplConfig->iMaxNewsOnIndex;
        $query = "\r\n\t\t\tSELECT\r\n\t\t\t\t`ID`,\r\n\t\t\t\t`Text`,\r\n\t\t\t\t`Header`,\r\n\t\t\t\t`Date`\r\n\t\t\tFROM\r\n\t\t\t\t`News`\r\n\t\t\tORDER BY `Date` DESC\r\n\r\n\t\t\tLIMIT {$iNewsOnHome}\r\n\t\t;";
        $rNews = $this->oDb->getAll($query);
        if (!is_array($rNews['0'])) {
            return _t_action('_No news available');
        }
        $ret = '';
        foreach ($rNews as $aNews) {
            $ret .= '
				<div class="indexNewsBlock">
					<div class="indexNewsHeader">
						<a href="' . $this->aSite['url'] . 'news_view.php?ID=' . process_line_output($aNews['ID']) . '">
							' . strmaxtextlen(process_line_output($aNews['Header']), $this->oTemplConfig->iNewsHeader) . '
						</a>
					</div>
					<div class="indexNewsText">
						' . strmaxtextlen(process_html_output($aNews['Text']), $this->oTemplConfig->iNewsPreview) . '
					</div>
					<div class="indexNewsDate">
						' . process_line_output($aNews['Date']) . '
					</div>
				</div>
			';
        }
        $ret .= '<div class="indexNewsArchive"><a href="' . $this->aSite['url'] . 'news.php">' . _t("_Read news in archive") . '</a></div>';
        return $ret;
    }
开发者ID:BackupTheBerlios,项目名称:dolphin-dwbn-svn,代码行数:29,代码来源:BxBaseIndex.php


示例2: PageCompPageMainCode

/**
 * page code function
 */
function PageCompPageMainCode()
{
    global $site;
    global $short_date_format;
    $messageID = (int) $_GET['message'];
    $memberID = (int) $_COOKIE['memberID'];
    $sender_sql = "SELECT `Sender` FROM `Messages` WHERE `Recipient` = '{$memberID}' AND `ID` = '{$messageID}'";
    $sender_arr = db_arr($sender_sql);
    $senderID = (int) $sender_arr['Sender'];
    $message_sql = "SELECT m.`Text`, m.`Subject`, DATE_FORMAT( m.`Date`, '{$short_date_format}' ) AS `Date`, p.Status FROM `Messages` AS m LEFT JOIN Profiles AS p ON m.Sender = p.ID  WHERE m.`ID` = '{$messageID}' AND `Recipient` = '{$memberID}'";
    // Did you find me, Smoge? I see you...
    $message_arr = db_arr($message_sql);
    $ret = '';
    $ret .= '<div class="profile_ditails_block">';
    $ret .= ProfileDetails($senderID);
    $ret .= '<div class="clear_both"></div>';
    $ret .= '</div>';
    $ret .= '<div class="m_block">';
    $ret .= '<div class="m_subject_date">';
    $ret .= '<div class="name">';
    $ret .= _t('_Date') . ':';
    $ret .= '</div>';
    $ret .= '<div class="value">';
    $ret .= $message_arr['Date'];
    $ret .= '</div>';
    $ret .= '<div class="name">';
    $ret .= _t('_Subject') . ':';
    $ret .= '</div>';
    $ret .= '<div class="value">';
    $ret .= process_smiles(process_line_output($message_arr['Subject']));
    $ret .= '</div>';
    $ret .= '</div>';
    $ret .= '<div class="m_text">';
    $ret .= process_html_output($message_arr['Text'], 150);
    $ret .= '</div>';
    $ret .= '<div class="clear_both"></div>';
    $ret .= '</div>';
    if ($message_arr['Status'] == 'Active') {
        $ret .= '<div class="reply">';
        $ret .= '<a href="' . $site['url'] . 'compose.php?ID=' . $senderID . '&messageID=' . $messageID . '&amp;subject=' . process_smiles(process_line_output($message_arr['Subject'])) . '">Reply</a>';
        $ret .= '</div>';
        $ret .= '<div class="reply">';
        $ret .= "<a onClick=\"javascript:window.open( 'list_pop.php?action=spam&ID=" . $senderID . "', '', 'width=500,height=200,menubar=no,status=no,resizeable=no,scrollbars=no,toolbar=no,location=no' );\" href=\"javascript:void(0)\">" . _t('_Spam report') . "</a>";
        $ret .= '</div>';
        $ret .= '<div class="reply">';
        $ret .= '<a href="messages_inbox.php?action=delete&message=' . $messageID . '">' . _t('_Delete') . '</a>';
        $ret .= '</div>';
        $ret .= '<div class="clear_both"></div>';
    } else {
        $ret .= '';
    }
    //$ret .= '</div>';
    //####################################################
    $ret .= '<div style="position:relative; height:20px;"></div>';
    $ret .= PageCorespondence($memberID, $senderID);
    $ret .= '<div class="clear_both"></div>';
    return $ret;
}
开发者ID:BackupTheBerlios,项目名称:dolphin-dwbn-svn,代码行数:61,代码来源:messages_inbox.php


示例3: PageCompPageMainCode

/**
 * page code function
 */
function PageCompPageMainCode()
{
    global $site;
    $messageID = (int) $_GET['message'];
    $memberID = (int) $_COOKIE['memberID'];
    $sender_sql = "SELECT `Recipient` FROM `Messages` WHERE `Sender` = '{$memberID}' AND `ID` = '{$messageID}'";
    $sender_arr = db_arr($sender_sql);
    $senderID = $sender_arr['Recipient'];
    $message_sql = "SELECT m.`Text`, m.`Subject`, DATE_FORMAT( m.`Date`, '%Y-%m-%d' ) AS `Date`, p.Status FROM `Messages` AS m LEFT JOIN Profiles AS p ON m.Recipient = p.ID WHERE m.`ID` = '{$messageID}'";
    // AND`Sender` = '$senderID'";
    $message_arr = db_arr($message_sql);
    $ret = '';
    $ret .= '<div class="profile_ditails_block">';
    $ret .= ProfileDetails($senderID);
    $ret .= '<div class="clear_both"></div>';
    $ret .= '</div>';
    $ret .= '<div class="m_block">';
    $ret .= '<div class="m_subject_date">';
    $ret .= '<div class="name">';
    $ret .= _t('_Date') . ':';
    $ret .= '</div>';
    $ret .= '<div class="value">';
    $ret .= $message_arr['Date'];
    $ret .= '</div>';
    $ret .= '<div class="name">';
    $ret .= _t('_Subject') . ':';
    $ret .= '</div>';
    $ret .= '<div class="value">';
    $ret .= process_smiles(process_line_output($message_arr['Subject']));
    $ret .= '</div>';
    $ret .= '</div>';
    $ret .= '<div class="m_text">';
    $ret .= process_html_output($message_arr['Text'], 80);
    $ret .= '</div>';
    $ret .= '<div class="clear_both"></div>';
    $ret .= '</div>';
    //$ret .= '<div class="reply_block">';
    if ($message_arr['Status'] == 'Active') {
        $ret .= '<div class="reply">';
        $ret .= '<a href="' . $site['url'] . 'compose.php?ID=' . $senderID . '">Write new Message</a>';
        $ret .= '</div>';
        $ret .= '<div class="clear_both"></div>';
    } else {
        $ret .= '';
    }
    //####################################################
    $ret .= '<div style="position:relative; height:20px;"></div>';
    $ret .= PageCorespondence($memberID, $senderID);
    $ret .= '<div class="clear_both"></div>';
    return $ret;
}
开发者ID:BackupTheBerlios,项目名称:dolphin-dwbn-svn,代码行数:54,代码来源:messages_outbox.php


示例4: PageCompPageMainCode

/**
 * page code function
 */
function PageCompPageMainCode()
{
    global $short_date_format;
    $story_id = (int) $_GET['ID'];
    $out = "";
    $query = "SELECT `Profiles`.`ID`, DATE_FORMAT(`Stories`.`Date`,  '{$short_date_format}' ) AS 'Date', `Stories`.`Header`, `Stories`.`Text`, `Profiles`.`NickName` FROM `Stories` LEFT JOIN `Profiles` ON (`Stories`.`Sender` = `Profiles`.`ID`) WHERE `Stories`.`ID` = {$story_id} ORDER BY  `Stories`.`Date` DESC";
    $arr = db_arr($query);
    if (!$arr) {
        return "<center>" . _t("_No success story available.") . "</center>";
    }
    $story_header = process_text_output($arr['Header']);
    $story_text = process_html_output($arr['Text']);
    $out .= "\r\n\t\t<table width=\"100%\" cellpadding=4 cellspacing=4><td align=center class=text2>\r\n\t\t\t<td>\r\n\t\t\t\t<table cellspacing=1 cellpadding=2 class=small width=100%>\r\n\t\t\t\t\t<tr class=panel>\r\n\t\t\t\t\t\t<td align=center width=15%>{$arr['Date']}</td>\r\n\t\t\t\t\t\t<td align=center width=15%><a href='" . getProfileLink($arr['ID']) . "'>{$arr['NickName']}</td>\r\n\t\t\t\t\t\t<td aling=left>&nbsp;<b>{$story_header}</b></td>\r\n\t\t\t\t\t</tr>\r\n\t\t\t\t</table>\r\n\t\t\t\t<table cellspacing=1 cellpadding=2 class=small width=100%>\r\n\t\t\t\t\t<tr class=panel>\r\n\t\t\t\t\t\t<td aling=left>{$story_text}</td>\r\n\t\t\t\t\t</tr>\r\n\t\t\t\t</table>\r\n\t\t\t</td>\r\n\t\t</table>\n";
    return $out;
}
开发者ID:BackupTheBerlios,项目名称:dolphin-dwbn-svn,代码行数:18,代码来源:story_view.php


示例5: GenIPBlackListTable

 function GenIPBlackListTable()
 {
     $sSQL = "SELECT *, FROM_UNIXTIME(`LastDT`) AS `LastDT_U` FROM `sys_ip_list` ORDER BY `From` ASC";
     $rIPList = db_res($sSQL);
     $aTmplVarsItems = array();
     while ($aIPList = mysql_fetch_assoc($rIPList)) {
         $iID = (int) $aIPList['ID'];
         $sFrom = long2ip($aIPList['From']);
         $sTo = $aIPList['To'] == 0 ? '' : long2ip($aIPList['To']);
         $sType = process_html_output($aIPList['Type']);
         $sLastDT_Formatted = getLocaleDate($aIPList['LastDT'], BX_DOL_LOCALE_DATE);
         $sLastDT = preg_replace('/([\\d]{2}):([\\d]{2}):([\\d]{2})/', '$1:$2', $aIPList['LastDT_U']);
         $sDesc = process_html_output($aIPList['Desc']);
         $sDescAttr = bx_html_attribute(bx_js_string($aIPList['Desc'], BX_ESCAPE_STR_APOS));
         $aTmplVarsItems[] = array('id' => $iID, 'from' => $sFrom, 'to' => $sTo, 'type' => $sType, 'date' => $sLastDT, 'date_uf' => $sLastDT_Formatted, 'description' => $sDesc, 'description_attr' => $sDescAttr, 'delete_action_url' => bx_append_url_params($this->_sActionUrl, array('action' => 'apply_delete', 'id' => $iID)));
     }
     if (empty($aTmplVarsItems)) {
         return MsgBox(_t('_Empty'));
     }
     return $GLOBALS['oAdmTemplate']->parseHtmlByName('ip_blacklist_list_filters.html', array('bx_repeat:items' => $aTmplVarsItems));
 }
开发者ID:Gotgot59,项目名称:dolphin.pro,代码行数:21,代码来源:BxDolAdminIpBlockList.php


示例6: printNewsPanel

function printNewsPanel($iLimit = 0, $iPreview = 128)
{
    global $site;
    $php_date_format = getParam('php_date_format');
    // news
    $news_limit_chars = getParam("max_news_preview");
    $bNewsFriendly = getParam('permalinks_news') == 'on' ? true : false;
    $news_res = getNewsList($iLimit);
    $news_count = db_arr("SELECT COUNT(*) FROM `News`");
    $news_counter = $news_count['0'];
    $ret = '';
    if ($news_counter > 0) {
        while ($news_arr = mysql_fetch_assoc($news_res)) {
            $ret .= '<div class="newsWrap">';
            $ret .= '<div class="newsHead">';
            $ret .= '<a href="' . getNewsUrl($news_arr['newsID'], $news_arr['NewsUri'], $bNewsFriendly) . '">';
            $ret .= process_line_output($news_arr['Header']);
            $ret .= '</a>';
            $ret .= '</div>';
            //$ret .= '<div class="newsInfo"><img src="' . getTemplateIcon( 'clock.gif' ) . '" />' . date( $php_date_format, $news_arr['Date'] ) . '</div>';
            $ret .= '<div class="newsInfo"><img src="' . getTemplateIcon('clock.gif') . '" />' . LocaledDataTime($news_arr['Date']) . '</div>';
            $ret .= '<div class="newsText">';
            //$ret .= process_text_withlinks_output( $news_arr['Snippet'] );
            $ret .= process_html_output($news_arr['Snippet']);
            $ret .= '</div>';
            $ret .= '</div>';
        }
        if ($news_counter > $max_news_on_home) {
            $sNewsLink = $bNewsFriendly ? $site['url'] . 'news/' : $site['url'] . 'news.php';
            $ret .= '<div class="newsReadMore">';
            $ret .= '<a href="' . $sNewsLink . '">' . _t("_Read news in archive") . '</a>';
            $ret .= '</div>';
        }
    } else {
        $ret .= '<div class="no_result"><div>' . _t("_No news available") . '</div></div>';
    }
    return $ret;
}
开发者ID:BackupTheBerlios,项目名称:dolphin-dwbn-svn,代码行数:38,代码来源:news.inc.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: getArticle

function getArticle($iArticleID)
{
    global $short_date_format;
    if (!(int) $iArticleID) {
        return '';
    } else {
        $sArticleQuery = "\n\t\t\t\tSELECT\n\t\t\t\t\t\t`Title`,\n\t\t\t\t\t\t`Text`,\n\t\t\t\t\t\t`Articles`.`CategoryID`,\n\t\t\t\t\t\tDATE_FORMAT( `Date`, '{$short_date_format}' ) AS Date,\n\t\t\t\t\t\t`ArticlesID`,\n\t\t\t\t\t\t`CategoryName`,\n\t\t\t\t\t\t`ArticleFlag`\n\t\t\t\tFROM\n\t\t\t\t\t\t`Articles`\n\t\t\t\tINNER JOIN `ArticlesCategory` ON `Articles`.`CategoryID` = `ArticlesCategory`.`CategoryID`\n\t\t\t\tWHERE\n\t\t\t\t\t\t`ArticlesID` = '{$iArticleID}'\n\t\t\t\tLIMIT 1;\n\n\t\t";
    }
    $aArticle = db_arr($sArticleQuery);
    $ret = '';
    $ret .= '<div class="navigationLinks">' . "\n";
    $ret .= '<span>' . "\n";
    $ret .= '<a href="articles.php">' . "\n";
    $ret .= 'Articles' . "\n";
    $ret .= '</a>' . "\n";
    $ret .= '</span>' . "\n";
    $ret .= '<span>' . "\n";
    $ret .= '&gt;' . "\n";
    $ret .= '</span>' . "\n";
    $ret .= '<span>' . "\n";
    $ret .= '<a href="articles.php?catID=' . $aArticle['CategoryID'] . '&amp;action=viewcategory">' . "\n";
    $ret .= process_line_output($aArticle['CategoryName']) . "\n";
    $ret .= '</a>' . "\n";
    $ret .= '</span>' . "\n";
    $ret .= '<span>' . "\n";
    $ret .= '&gt;' . "\n";
    $ret .= '</span>' . "\n";
    $ret .= '<span>' . "\n";
    $ret .= process_line_output($aArticle['Title']) . "\n";
    $ret .= '</span>' . "\n";
    $ret .= '</div>' . "\n";
    $ret .= '<div class="articleBlock">' . "\n";
    $ret .= '<div class="mainTitle">' . "\n";
    $ret .= process_line_output($aArticle['Title']) . "\n";
    $ret .= '</div>' . "\n";
    $ret .= '<div class="date">' . "\n";
    $ret .= $aArticle['Date'] . "\n";
    $ret .= '</div>' . "\n";
    $ret .= '<div>' . "\n";
    if ($aArticle['ArticleFlag'] == 'HTML') {
        $ret .= process_html_output($aArticle['Text']) . "\n";
    } else {
        $ret .= process_text_output($aArticle['Text']) . "\n";
    }
    $ret .= '</div>' . "\n";
    $ret .= '</div>' . "\n";
    return $ret;
}
开发者ID:BackupTheBerlios,项目名称:dolphin-dwbn-svn,代码行数:48,代码来源:articles.inc.php


示例9: getArticle

    function getArticle($iArticleID)
    {
        global $short_date_format;
        $sArticlesC = _t('_Articles');
        if (!(int) $iArticleID) {
            return '';
        } else {
            $sArticleQuery = "\r\n\t\t\t\t\tSELECT `Title`, `Text`, `Articles`.`CategoryID`, DATE_FORMAT( `Date`, '{$short_date_format}' ) AS Date,\r\n\t\t\t\t\t\t\t`ArticlesID`, `CategoryName`, `ArticleFlag`, `ownerID`\r\n\t\t\t\t\tFROM `Articles`\r\n\t\t\t\t\tINNER JOIN `ArticlesCategory` ON `Articles`.`CategoryID` = `ArticlesCategory`.`CategoryID`\r\n\t\t\t\t\tWHERE `ArticlesID` = '{$iArticleID}'\r\n\t\t\t\t\tLIMIT 1;\r\n\t\t\t";
        }
        $aArticle = db_arr($sArticleQuery);
        $sCategoryName = process_line_output($aArticle['CategoryName']);
        $sTitle = process_line_output($aArticle['Title']);
        $sText = '';
        if ($aArticle['ArticleFlag'] == 'HTML') {
            $sText = process_html_output($aArticle['Text']) . "\n";
        } else {
            $sText = process_text_output($aArticle['Text']) . "\n";
        }
        $ret = <<<EOF
<div class="navigationLinks">
\t<span><a href="articles.php">{$sArticlesC}</a></span>
\t<span>&gt;</span>
\t<span><a href="articles.php?catID={$aArticle['CategoryID']}&amp;action=viewcategory">{$sCategoryName}</a></span>
\t<span>&gt;</span>
\t<span>{$sTitle}</span>
</div>
<div class="articleBlock">
\t<div class="mainTitle">{$sTitle}</div>
\t<div class="date">{$aArticle['Date']}</div>
\t<div>{$sText}</div>
</div>
EOF;
        return $ret;
    }
开发者ID:BackupTheBerlios,项目名称:dolphin-dwbn-svn,代码行数:34,代码来源:BxDolArticles.php


示例10: getPostOverviewBlock

 function getPostOverviewBlock()
 {
     $iMemberID = (int) $this->aViewingPostInfo['OwnerID'];
     $aBlogInfo = $this->_oDb->getBlogInfo($iMemberID);
     $sBlogDescription = '<div class="blog_desc bx-def-margin-sec-top">' . process_html_output($aBlogInfo['Description']) . '</div>';
     $aAuthor = getProfileInfo($iMemberID);
     $aVars = array('author_unit' => get_member_thumbnail($aAuthor['ID'], 'none', true), 'fields' => $sBlogDescription);
     if ($this->iPostViewType == 3 && $this->iViewingPostID > 0) {
         require_once $this->_oConfig->getClassPath() . 'BxBlogsSearchUnit.php';
         $oBlogSearch = new BxBlogsSearchUnit();
         bx_import('BxDolCategories');
         bx_import('BxDolTags');
         $oCategories = new BxDolCategories();
         $oTags = new BxDolTags();
         $sCats = '';
         $aCategories = $oCategories->explodeTags($this->aViewingPostInfo['Categories']);
         $aCatLinks = array();
         if (count($aCategories) > 0) {
             foreach ($aCategories as $iKey => $sCatValue) {
                 $sCatLink = $oBlogSearch->getCurrentUrl('category', title2uri(trim($sCatValue)), title2uri(trim($sCatValue)), array('ownerId' => $iMemberID, 'blogOwnerName' => $aAuthor['NickName']));
                 $aCatLinks[] = '<a href="' . $sCatLink . '" rel="nofollow">' . $sCatValue . '</a>';
             }
             $sCats = implode(", ", $aCatLinks);
         }
         $sTags = '';
         $aTags = $oTags->explodeTags($this->aViewingPostInfo['Tags']);
         $aTagLinks = array();
         if (count($aTags) > 0) {
             foreach ($aTags as $sTagKey) {
                 if ($sTagKey != '') {
                     $sTagLink = $oBlogSearch->getCurrentUrl('tag', $iPostID, title2uri(trim($sTagKey)));
                     $aTagLinks[] = '<a href="' . $sTagLink . '" title="' . $sTagKey . '" rel="nofollow">' . $sTagKey . '</a>';
                 }
             }
             $sTags = implode(", ", $aTagLinks);
         }
         $aVars['date'] = getLocaleDate($this->aViewingPostInfo['PostDate'], BX_DOL_LOCALE_DATE_SHORT);
         $aVars['date_ago'] = defineTimeInterval($this->aViewingPostInfo['PostDate'], false);
         $aVars['cats'] = $sCats;
         $aVars['tags'] = $sTags;
         $aVars['fields'] = '';
         return $this->_oTemplate->parseHtmlByName('entry_view_block_info.html', $aVars);
     }
     return $this->_oTemplate->parseHtmlByName('entry_view_empty_block_info.html', $aVars);
 }
开发者ID:Gotgot59,项目名称:dolphin.pro,代码行数:45,代码来源:BxBlogsModule.php


示例11: ActionPrintAdvertisement


//.........这里部分代码省略.........
    <input type="hidden" name="recipient_id" value="{$aSqlResStr['IDProfile']}" />
    <input type="hidden" name="subject" value="{$aSqlResStr['Subject']}" />
</form>
EOF;
            }
            $sEntryUrl = $this->genUrl($iAdvertisementID, $aSqlResStr['EntryUri'], 'entry');
            $sMediaIDs = $this->_oDb->getMediaOfAd($iAdvertisementID);
            if ($sMediaIDs != '') {
                $aReadyMedia = explode(',', $sMediaIDs);
                $sPictureSectContent = $this->_blockPhoto($aReadyMedia, $iOwnerID);
            }
            $sPictureSect = $sPictureSectContent != '' ? DesignBoxContent(_t('_bx_ads_Ad_photos'), $sPictureSectContent, 1) : '';
            $this->sTAPhotosContent = $sPictureSectContent;
            bx_import('BxDolSubscription');
            $oSubscription = BxDolSubscription::getInstance();
            $aButton = $oSubscription->getButton($this->_iVisitorID, $this->_oConfig->getUri(), '', $iAdvertisementID);
            $aActionKeys = array('BaseUri' => $this->_oConfig->getBaseUri(), 'visitor_id' => $this->_iVisitorID, 'owner_id' => $aNameRet['ID'], 'admin_mode' => "'" . $this->bAdminMode . "'", 'ads_id' => $iAdvertisementID, 'ads_status' => $aSqlResStr['Status'], 'ads_act_type' => $aSqlResStr['Status'] == 'active' ? 'inactive' : 'active', 'ads_featured' => (int) $aSqlResStr['Featured'], 'sure_label' => $sSureC, 'ads_entry_url' => $sEntryUrl, 'only_menu' => 0, 'sbs_ads_title' => $aButton['title'], 'sbs_ads_script' => $aButton['script'], 'TitleShare' => $this->isAllowedShare($aSqlResStr) ? _t('_Share') : '');
            $sActionsTable = $GLOBALS['oFunctions']->genObjectsActions($aActionKeys, 'bx_ads', false);
            $sSubsAddon = $oSubscription->getData();
            $sActionsSectContent = $sSubsAddon . $sMemberActionForms . $sActionsTable;
            $sActionsSect = $this->_iVisitorID > 0 || $this->bAdminMode ? DesignBoxContent($sActionsC, $sActionsSectContent, 1) : '';
            $this->sTAActionsContent = $this->_iVisitorID > 0 || $this->bAdminMode ? $sActionsSectContent : '';
            bx_import('Cmts', $this->_aModule);
            $this->oCmtsView = new BxAdsCmts($this->_oConfig->getCommentSystemName(), $iAdvertisementID);
            $sCommentsSectContent = $this->oCmtsView->getExtraCss();
            $sCommentsSectContent .= $this->oCmtsView->getExtraJs();
            $sCommentsSectContent .= !$this->oCmtsView->isEnabled() ? '' : $this->oCmtsView->getCommentsFirst();
            $this->sTACommentsContent = $sCommentsSectContent;
            $sCommSect = DesignBoxContent($aCaptions['Comments'], $sCommentsSectContent, 1);
            $sUserOtherListing = $this->getMemberAds($aSqlResStr['IDProfile'], 2, $iAdvertisementID);
            $sDataTimeFormatted = getLocaleDate($aSqlResStr['DateTime_UTS']);
            $iViews = (int) $aSqlResStr['Views'];
            $sOwnerThumb = get_member_thumbnail($aSqlResStr['IDProfile'], 'none', true);
            $sAdsMessage = process_html_output($aSqlResStr['Message']);
            $sCategLink = $this->bUseFriendlyLinks ? BX_DOL_URL_ROOT . 'ads/cat/' . $aSqlResStr['CEntryUri'] : "{$this->sCurrBrowsedFile}?bClassifiedID={$aSqlResStr['CatID']}";
            $sSCategLink = $this->bUseFriendlyLinks ? BX_DOL_URL_ROOT . 'ads/subcat/' . $aSqlResStr['SEntryUri'] : "{$this->sCurrBrowsedFile}?bSubClassifiedID={$aSqlResStr['SubID']}";
            $aSubjVariables = array('author_unit' => $sOwnerThumb, 'date' => $sDataTimeFormatted, 'date_ago' => $sTimeAgo, 'cats' => $this->_oTemplate->parseHtmlByTemplateName('category', array('cat_link' => $sCategLink, 'sub_cat_link' => $sSCategLink, 'cat_name' => $aSqlResStr['Name'], 'sub_cat_name' => $aSqlResStr['NameSub'])), 'tags' => $sTags, 'fields' => '');
            $sSubjectSectContent = $this->_oTemplate->parseHtmlByName('entry_view_block_info.html', $aSubjVariables);
            $sSubjectSect = DesignBoxContent(_t('_Info'), $sSubjectSectContent, 1);
            $this->sTAInfoContent = $sSubjectSectContent;
            $sDescriptionContent = '<div class="dbContent bx-def-bc-margin bx-def-font-large">' . $sAdsMessage . '</div>';
            $sDescriptionSect = DesignBoxContent(_t('_Description'), $sDescriptionContent, 1);
            $this->sTADescription = $sDescriptionContent;
            //adding form
            $aForm = array('form_attrs' => array('name' => 'custom_values_form', 'action' => $oAds->sCurrBrowsedFile), 'inputs' => array('Country' => array('type' => 'value', 'name' => 'Country', 'caption' => _t('_Country'), 'value' => $sCountryName . $sCountryPic), 'City' => array('type' => 'value', 'name' => 'City', 'caption' => _t('_City'), 'value' => $aSqlResStr['City'])));
            if ($aSqlResStr['CustomFieldName1'] && $aSqlResStr['CustomFieldValue1']) {
                $aForm['inputs']['Custom1'] = array('type' => 'value', 'name' => 'Custom1', 'caption' => $aSqlResStr['CustomFieldName1'], 'value' => $aSqlResStr['Unit1'] . $aSqlResStr['CustomFieldValue1']);
            }
            if ($aSqlResStr['CustomFieldName2'] && $aSqlResStr['CustomFieldValue2']) {
                $aForm['inputs']['Custom2'] = array('type' => 'value', 'name' => 'Custom2', 'caption' => $aSqlResStr['CustomFieldName2'], 'value' => $aSqlResStr['Unit2'] . $aSqlResStr['CustomFieldValue2']);
            }
            $oForm = new BxTemplFormView($aForm);
            $sOtherInfoContent = $oForm->getCode();
            $sOtherInfoSect = DesignBoxContent(_t('_bx_ads_Custom_Values'), $sOtherInfoContent, 1);
            $this->sTAOtherInfo = $sOtherInfoContent;
            $bPossibleToRate = $this->oPrivacy->check('rate', $iAdvertisementID, $this->_iVisitorID);
            $oVotingView = new BxTemplVotingView('ads', $iAdvertisementID);
            $iVote = $oVotingView && $oVotingView->isEnabled() && $bPossibleToRate ? 1 : 0;
            $sVotePostRating = $oVotingView->getBigVoting($iVote);
            $sRatingSect = DesignBoxContent(_t('_Rate'), $sVotePostRating, 1);
            $this->sTARateContent = '<div class="bx-def-bc-margin">' . $sVotePostRating . '</div>';
            $sOtherListingContent = <<<EOF
<div class="dbContent">
    {$sUserOtherListing}
</div>
EOF;
开发者ID:newton27,项目名称:dolphin.pro,代码行数:67,代码来源:BxAdsModule.php


示例12: PPShowHelp

/**
 * Prints payment provider setup help message
 *
 * @param int $providerID				- payment provider ID
 *
 * @return string 						- HTML content of help body
 *
 *
 */
function PPShowHelp($providerID)
{
    $styles = <<<EOS
\tp.help_text
\t{
\t\tfont-family: Arial;
\t\tfont-size: small;
\t\tfont-weight: normal;
\t\tcolor: black;
\t\ttext-align: justify;
\t}

\tp.help_caption
\t{
\t\tfont-family: Arial;
\t\tfont-size: medium;
\t\tfont-weight: bold;
\t\tcolor: black;
\t\ttext-align: left;
\t}
EOS;
    ob_start();
    $providerRes = db_res("SELECT `Caption`, `Help` FROM `PaymentProviders` WHERE `ID` = {$providerID}");
    $providerArr = mysql_fetch_assoc($providerRes);
    ?>
<h3 style="font-family: Arial; font-size: large; font-weight: normal; color: black;"><b><?php 
    echo process_line_output($providerArr['Caption']);
    ?>
</b> setup instructions</h3>
<?php 
    echo process_html_output($providerArr['Help'], 255);
    $content = ob_get_contents();
    ob_end_clean();
    return PopupPageTemplate('Payment provider setup instructions', $content, '', $styles);
}
开发者ID:BackupTheBerlios,项目名称:dolphin-dwbn-svn,代码行数:44,代码来源:payment_providers.php


示例13: GenIPBlackListTable

    function GenIPBlackListTable()
    {
        $sSitePluginsUrl = BX_DOL_URL_PLUGINS;
        $sFromC = _t('_From');
        $sToC = _t('_To');
        $sTypeC = _t('_adm_ipbl_IP_Role');
        $sDescriptionC = _t('_Description');
        $sDatatimeC = _t('_adm_ipbl_Date_of_finish');
        $sActionC = _t('_Action');
        $sEditC = _t('_Edit');
        $sDeleteC = _t('_Delete');
        $sSQL = "SELECT *, FROM_UNIXTIME(`LastDT`) AS `LastDT_U` FROM `sys_ip_list` ORDER BY `From` ASC";
        $rIPList = db_res($sSQL);
        $sRows = '';
        while ($aIPList = mysql_fetch_assoc($rIPList)) {
            $iID = (int) $aIPList['ID'];
            $sFrom = long2ip($aIPList['From']);
            $sTo = $aIPList['To'] == 0 ? '' : long2ip($aIPList['To']);
            $sType = process_html_output($aIPList['Type']);
            $sLastDT_Formatted = getLocaleDate($aIPList['LastDT'], BX_DOL_LOCALE_DATE);
            $sLastDT = preg_replace('/([\\d]{2}):([\\d]{2}):([\\d]{2})/', '$1:$2', $aIPList['LastDT_U']);
            $sDesc = process_html_output($aIPList['Desc']);
            $sRows .= <<<EOF
<tr>
    <td class="bx-def-border">{$sFrom}</td>
    <td class="bx-def-border">{$sTo}</td>
    <td class="bx-def-border">{$sType}</td>
    <td class="bx-def-border">{$sLastDT_Formatted}</td>
    <td class="bx-def-border">{$sDesc}</td>
    <td class="bx-def-border">
        <a href="javascript:void(0)" onclick="ip_accept_values_to_form('{$iID}', '{$sFrom}', '{$sTo}', '{$sType}', '{$sLastDT}', '{$sDesc}'); return false;">{$sEditC}</a> |
        <a href="{$this->_sActionUrl}?action=apply_delete&id={$iID}">{$sDeleteC}</a>
    </td>
</tr>
EOF;
        }
        if (!$sRows) {
            return MsgBox(_t('_Empty'));
        }
        return <<<EOF
<table style="width:99%; border-collapse:collapse;" cellpadding="4">
    <tr>
        <td class="bx-def-border">{$sFromC}</td>
        <td class="bx-def-border">{$sToC}</td>
        <td class="bx-def-border">{$sTypeC}</td>
        <td class="bx-def-border">{$sDatatimeC}</td>
        <td class="bx-def-border">{$sDescriptionC}</td>
        <td class="bx-def-border">{$sActionC}</td>
    </tr>
    {$sRows}
</table>
<div class="clear_both"></div>

<script type="text/javascript">
    function ip_accept_values_to_form(id_val, from_val, to_val, type_val, lastdt_val, desc_val)
    {
        \$('.form_input_hidden[name="id"]').val(id_val);
        \$('.form_input_text[name="from"]').val(from_val);
        \$('.form_input_text[name="to"]').val(to_val);
        \$('.form_input_select[name="type"]').val(type_val);
        \$('.form_input_datetime[name="LastDT"]').val(lastdt_val);
        \$('.form_input_text[name="desc"]').val(desc_val);
    }
</script>
EOF;
    }
开发者ID:noormcs,项目名称:studoro,代码行数:66,代码来源:BxDolAdminIpBlockList.php


示例14: PageCompGroupsContent

function PageCompGroupsContent($sCaption)
{
    global $site;
    global $date_format;
    $php_date_format = getParam('php_date_format');
    $mode = $_REQUEST['groups_mode'];
    if ($mode != 'rand' and $mode != 'latest') {
        $mode = 'latest';
    }
    $menu = '<div class="dbTopMenu">';
    foreach (array('latest', 'rand') as $myMode) {
        switch ($myMode) {
            case 'latest':
                $OrderBy = '`created` DESC';
                $sTabTitle = _t('_Latest');
                break;
            case 'rand':
                $OrderBy = 'RAND()';
                $sTabTitle = _t('_Random');
                break;
        }
        if ($mode == $myMode) {
            $sqlOrderBy = $OrderBy;
            $menu .= "\r\n\t\t\t<div class=\"active\">{$sTabTitle}</div>";
        } else {
            $menu .= "\r\n\t\t\t<div class=\"notActive\">\r\n\t\t\t\t<a href=\"{$_SERVER['PHP_SELF']}?groups_mode={$myMode}\" class=\"top_members_menu\" onclick=\"getHtmlData( 'show_groups', this.href+'&amp;show_only=groups'); return false;\">{$sTabTitle}</a>\r\n\t\t\t</div>";
        }
    }
    $menu .= '
			<div class="clear_both"></div>
		</div>';
    $aTotalNum = db_arr("\r\n\t\tSELECT\r\n\t\t\tCOUNT(*) FROM `Groups`\r\n\t\tWHERE\r\n\t\t\t`status` = 'Active'\r\n\t\t");
    $iTotalNum = $aTotalNum[0];
    if ($iTotalNum) {
        //$iResPerPage = (int)getParam("max_groups_on_home");
        $iResPerPage = (int) getParam("max_blogs_on_home");
        //$iResPerPage = 3;
        $iTotalPages = ceil($iTotalNum / $iResPerPage);
        $page = (int) $_REQUEST['groups_page'];
        if ($page < 1 or $mode == 'rand') {
            $page = 1;
        }
        if ($page > $iTotalPages) {
            $page = $iTotalPages;
        }
        $sqlLimitFrom = ($page - 1) * $iResPerPage;
        //$iBlogLimitChars = (int)getParam("max_classified_preview");
        $iBlogLimitChars = (int) getParam("max_blog_preview");
        //$iBlogLimitChars = 50;
        $sBlogQuery = "\r\n\t\t\tSELECT DISTINCT `Groups`.`ID`, `Groups`.`Name`,\r\n\t\t\tLEFT(`Groups`.`Desc`, {$iBlogLimitChars}) as 'Desc_f', \r\n\t\t\tUNIX_TIMESTAMP( `Groups`.`created` ) as `DateTime_f`,\r\n\t\t\t`Profiles`.`NickName`,\r\n\t\t\t`GroupsCateg`.`Name` AS 'CategName', `GroupsCateg`.`ID` AS `CategID`\r\n\t\t\tFROM `Groups`\r\n\t\t\tLEFT JOIN `GroupsCateg` ON `GroupsCateg`.`ID` = `Groups`.`categID` \r\n\t\t\tLEFT JOIN `Profiles` ON `Profiles`.`ID` = `Groups`.`creatorID` \r\n\t\t\tWHERE\r\n\t\t\t`Groups`.`Status` = 'Active'\r\n\t\t\tORDER BY {$sqlOrderBy}\r\n\t\t\tLIMIT {$sqlLimitFrom}, {$iResPerPage}\r\n\t\t";
        $rBlog = db_res($sBlogQuery);
        $ret = '';
        $oEvents = new BxDolEvents();
        $ret .= '<div class="clear_both"></div>';
        while ($arr = mysql_fetch_array($rBlog)) {
            $sPic = $oEvents->GetGroupPicture($arr['ID']);
            $sLinkMore = '';
            if (strlen($arr['Desc']) == $iBlogLimitChars) {
                $sLinkMore = "... <a href=\"" . $site['url'] . "group.php?ID=" . $arr['ID'] . "\">" . _t('_Read more') . "</a>";
            }
            $ret .= '
			<div class="icon_block">
				' . $sPic . '
			</div>
			<div class="blog_wrapper_n">
				<div class="blog_subject_n">
					<a href="' . $site['url'] . 'group.php?ID=' . $arr['ID'] . '" class="bottom_text">' . process_line_output($arr['Name']) . '</a>
				</div>
				<div class="blog_author">' . '<span>' . _t('_By Author', $arr['NickName'], $arr['NickName']) . '</span>' . '<span><img src="' . getTemplateIcon('clock.gif') . '" />' . date($php_date_format, $arr['DateTime_f']) . '</span>' . '<span>' . _t('_in Category', getTemplateIcon('folder_small.png'), 'groups_browse.php?categID=' . $arr['CategID'], process_line_output($arr['CategName'])) . '</span>' . '</div>
				<div class="blog_text">' . strip_tags(process_html_output($arr['Desc_f'])) . $sLinkMore . '</div>
			</div>';
        }
        $ret .= '<div class="clear_both"></div>';
    } else {
        $ret .= '<div class="no_result"><div>' . _t("_No groups available") . '</div></div>';
    }
    if ($iTotalPages > 1) {
        $ret .= '
		<div class="dbBottomMenu">';
        if ($page > 1) {
            $prevPage = $page - 1;
            $ret .= "\r\n\t\t\t\t<a href=\"{$_SERVER['PHP_SELF']}?groups_mode={$mode}&amp;groups_page={$prevPage}\"\r\n\t\t\t\t  class=\"backMembers\"\r\n\t\t\t\t  onclick=\"getHtmlData( 'show_groups', this.href+'&amp;show_only=groups'); return false;\">" . _t('_Back') . "</a>\r\n\t\t\t";
        }
        if ($page < $iTotalPages) {
            $nextPage = $page + 1;
            $ret .= "\r\n\t\t\t\t<a href=\"{$_SERVER['PHP_SELF']}?groups_mode={$mode}&amp;groups_page={$nextPage}\"\r\n\t\t\t\t  class=\"moreMembers\"\r\n\t\t\t\t  onclick=\"getHtmlData( 'show_groups', this.href+'&amp;show_only=groups'); return false;\">" . _t('_Next') . "</a>\r\n\t\t\t";
        }
        $ret .= '
			<div class="clear_both"></div>
		</div>';
    }
    return DesignBoxContent(_t($sCaption), $ret, 1, $menu);
}
开发者ID:BackupTheBerlios,项目名称:dolphin-dwbn-svn,代码行数:93,代码来源:index.php


示例15: displaySearchUnit

    function displaySearchUnit($aResSQL)
    {
        $iVisitorID = (int) $_COOKIE['memberID'];
        $oMain = $this->getBlogsMain();
        $sTagsSmallIcon = $sClockIcon = $sCommentsIcon = $sCategoryIcon = '';
        if ($oMain->_oTemplate) {
            $sTagsSmallIcon = $oMain->_oTemplate->getIconUrl('tgs.png');
            $sClockIcon = $oMain->_oTemplate->getIconUrl('clock.png');
            $sCommentsIcon = $oMain->_oTemplate->getIconUrl('comments.png');
            $sCategoryIcon = $oMain->_oTemplate->getIconUrl('folder_small.png');
        }
        $iPostID = (int) $aResSQL['id'];
        $sBlogsImagesUrl = BX_BLOGS_IMAGES_URL;
        $bPossibleToView = $oMain->oPrivacy->check('view', $iPostID, $oMain->_iVisitorID);
        if (!$bPossibleToView) {
            return $oMain->_oTemplate->parseHtmlByName('browse_unit_private.html', array('extra_css_class' => ''));
        }
        $sCategories = $aResSQL['Categories'];
        $aCategories = $oMain->getTagLinks($aResSQL['Categories'], 'category', CATEGORIES_DIVIDER);
        $sFriendStyle = '';
        $sPostVote = '';
        $sPostMode = '';
        $sVotePostRating = $this->oRate->getJustVotingElement(0, 0, $aResSQL['Rate']);
        $aProfileInfo = getProfileInfo($aResSQL['ownerId']);
        $sOwnerNickname = process_line_output($aProfileInfo['NickName']);
        $sCategoryName = $aResSQL['Categories'];
        $sPostLink = $this->getCurrentUrl('file', $iPostID, $aResSQL['uri']) . $sCategoryUrlAdd;
        $sAllCategoriesLinks = '';
        if (count($aCategories) > 0) {
            foreach ($aCategories as $iKey => $sCatValue) {
                $sCatLink = $this->getCurrentUrl('category', title2uri($sCatValue), title2uri($sCatValue), array('ownerId' => $aResSQL['ownerId'], 'ownerName' => $sOwnerNickname));
                $sCatName = process_line_output($sCatValue);
                $aAllCategoriesLinks[] = '<a href="' . $sCatLink . '">' . $sCatName . '</a>';
            }
            $aAllCategoriesLinkHrefs = implode(", ", $aAllCategoriesLinks);
            $sAllCategoriesLinks = <<<EOF
<span class="margined">
\t<span>{$aAllCategoriesLinkHrefs}</span>
</span>
EOF;
        }
        $sAdminCheck = $sAdminStatus = '';
        if ($this->bShowCheckboxes) {
            $sAdminCheck = <<<EOF
<div class="browseCheckbox"><input id="ch{$iPostID}" type="checkbox" name="bposts[]" value="{$iPostID}" /></div>
EOF;
            $sPostStatus = process_line_output($aResSQL['PostStatus']);
            $sAdminStatus = <<<EOF
&nbsp;({$sPostStatus})
EOF;
        }
        $sPostCaption = process_line_output($aResSQL['title']);
        $sPostCaptionHref = <<<EOF
<a class="actions" href="{$sPostLink}">{$sPostCaption}</a>{$sAdminStatus}
EOF;
        if ($this->iPostViewType == 3) {
            $sFriendStyle = "2";
            $sPostMode = '_post';
            $sPostCaptionHref = '<div class="actions">' . $sPostCaption . '</div>';
        }
        $sDateTime = defineTimeInterval($aResSQL['date']);
        //$oCmtsView = new BxTemplCmtsView ('blogposts', (int)$iPostID);
        $iCommentsCnt = (int) $aResSQL['CommentsCount'];
        $sAuthor = '';
        if ($this->iPostViewType == 2) {
            $sAuthor = getProfileLink($aResSQL['ownerId']);
            $sAuthor = '<a href="' . $sAuthor . '">' . $sOwnerNickname . '</a>';
        }
        $sTagsCommas = $aResSQL['tag'];
        //$aTags = split(',', $sTagsCommas);
        $aTags = preg_split("/[;,]/", $sTagsCommas);
        //search by tag skiping
        if ($this->sSearchedTag != '' && in_array($this->sSearchedTag, $aTags) == false) {
            return;
        }
        $sTagsHrefs = '';
        $aTagsHrefs = array();
        foreach ($aTags as $sTagKey) {
            if ($sTagKey != '') {
                $sTagLink = $this->getCurrentUrl('tag', $iPostID, htmlspecialchars(title2uri($sTagKey)));
                $sTagsHrefAny = <<<EOF
<a href="{$sTagLink}" title="{$sTagKey}">{$sTagKey}</a>
EOF;
                $aTagsHrefs[] = $sTagsHrefAny;
            }
        }
        $sTagsHrefs = implode(", ", $aTagsHrefs);
        $sTags = <<<EOF
<span class="margined">
\t<span>{$sTagsHrefs}</span>
</span> 

鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP process_image函数代码示例发布时间:2022-05-15
下一篇:
PHP process_form函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap