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

PHP process_line_output函数代码示例

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

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



在下文中一共展示了process_line_output函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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: getPageMainCode

function getPageMainCode()
{
    global $oTemplConfig;
    $ret = '';
    $aPhotoConf = array();
    $aPhotoConf['profileID'] = (int) $_REQUEST['ID'];
    $aPhotoConf['visitorID'] = (int) $_COOKIE['memberID'];
    $aPhotoConf['isOwner'] = $aPhotoConf['profileID'] == $aPhotoConf['visitorID'] ? true : false;
    $check_res = checkAction($aPhotoConf['visitorID'], ACTION_ID_USE_GALLERY);
    if ($check_res[CHECK_ACTION_RESULT] != CHECK_ACTION_RESULT_ALLOWED) {
        $ret = '
			<table width="100%" cellpadding="4" cellspacing="4" border="0">
				<tr>
					<td align="center">' . $check_res[CHECK_ACTION_MESSAGE] . '</td>
				</tr>
			</table>';
        return $ret;
    }
    $oMedia = new BxDolMedia();
    $oMedia->iProfileID = $aPhotoConf['profileID'];
    $oMedia->sMediaType = isset($_REQUEST['show']) ? $_REQUEST['show'] : 'video';
    $oMedia->BxDolMedia();
    $oMedia->getActiveMediaArray();
    $ret .= ProfileDetails($oMedia->iProfileID);
    $ret .= '<div class="clear_both"></div>';
    if ($oTemplConfig->customize['media_gallery']['showMediaTabs']) {
        $ret .= '<div class="choiseBlock">';
        $ret .= getMediaTabs($oMedia->sMediaType, $oMedia->aMediaConfig);
        $ret .= '</div>';
    }
    //print_r( $oMedia -> aMedia);
    $i = 1;
    foreach ($oMedia->aMedia as $aValue) {
        $ret .= '<div class="mediaBlock">';
        $ret .= '<div class="mediaTitleVA">';
        $ret .= process_line_output($aValue['med_title']);
        $ret .= '</div>' . "\n";
        $ret .= '<div class="mediaActions">';
        $ret .= '<span>';
        $ret .= '<a href="' . $oMedia->getMediaLink($aValue) . '">';
        $ret .= _t('_download');
        $ret .= '</a>';
        $ret .= '</span>';
        /*
        $ret .= '<span>';
        	$ret .= '<a href="' . $_SERVER['PHP_SELF'] . '?show=' . $oMedia -> sMediaType . '&amp;action=delete&amp;mediaID=' . $aValue['med_id'] . '">';
        		$ret .= _t('_delete');
        	$ret .= '</a>';
        $ret .= '</span>';
        */
        $ret .= '</div>' . "\n";
        $ret .= '</div>' . "\n";
        if ($i >= $oMedia->aMediaConfig['max'][$oMedia->sMediaType]) {
            break;
        }
        $i++;
    }
    $ret .= '';
    return $ret;
}
开发者ID:BackupTheBerlios,项目名称:dolphin-dwbn-svn,代码行数:60,代码来源:media_gallery.php


示例3: getMediaPage

 function getMediaPage()
 {
     global $dir;
     global $tmpl;
     require_once BX_DIRECTORY_PATH_INC . 'profiles.inc.php';
     $this->getMediaArray();
     $ret = '<div class="clear_both"></div>';
     $tmplBlock = file_get_contents("{$dir['root']}templates/tmpl_{$tmpl}/media_page_block.html");
     $i = 1;
     foreach ($this->aMedia as $aValue) {
         $block = $tmplBlock;
         $aReplace['media_title'] = process_line_output($aValue['med_title']);
         $aReplace['media_icon'] = '<img src="' . getTemplateIcon($this->sMediaType . '.jpg') . '" />';
         $aReplace['nickname'] = '';
         $aReplace['download'] = '<a href="' . $this->getMediaLink($aValue) . '">' . _t('_download') . '</a>';
         $aReplace['delete'] = '<a href="' . $_SERVER['PHP_SELF'] . '?show=' . $this->sMediaType . '&amp;action=delete&amp;mediaID=' . $aValue['med_id'] . '" onclick="return confirm(\'' . _t('_are you sure?') . '\');">' . _t('_delete') . '</a>';
         foreach ($aReplace as $key => $val) {
             $block = str_replace("__{$key}__", $val, $block);
         }
         $ret .= $block;
         if ($i++ >= $this->aMediaConfig['max'][$this->sMediaType]) {
             break;
         }
     }
     $ret .= '<div class="clear_both"></div>';
     return $ret;
 }
开发者ID:BackupTheBerlios,项目名称:dolphin-dwbn-svn,代码行数:27,代码来源:BxDolMedia.php


示例4: getStatusField

 /**
  * Function will generate field for input memeber's status text;
  *
  * @param  : $iMemberID (integer) - logged member's Id;
  * @return : Html presentation data;
  */
 function getStatusField($iMemberId)
 {
     global $oSysTemplate;
     $aMemberInfo = getProfileInfo($iMemberId);
     $sStatusMessage = process_line_output($aMemberInfo['UserStatusMessage']);
     $aTemplateKeys = array('status_message' => $sStatusMessage);
     return $oSysTemplate->parseHtmlByName('member_menu_status_text_field.html', $aTemplateKeys);
 }
开发者ID:dalinhuang,项目名称:shopexts,代码行数:14,代码来源:BxDolUserStatusView.php


示例5: quote_get

/**
 * get a quote from the database
 * returns HTML text that represents quote - text and author
 */
function quote_get()
{
    global $quote_table;
    global $quote_html;
    $arr = db_arr("SELECT `Text`, `Author` FROM {$quote_table} ORDER BY RAND() LIMIT 1");
    $ret = $quote_html;
    $ret = str_replace('%Text%', process_text_output($arr['Text']), $ret);
    $ret = str_replace('%Author%', process_line_output($arr['Author']), $ret);
    return $ret;
}
开发者ID:BackupTheBerlios,项目名称:dolphin-dwbn-svn,代码行数:14,代码来源:quotes.inc.php


示例6: MemberPrintNewsList

/**
 * Print news
 */
function MemberPrintNewsList()
{
    global $news_limit_chars;
    global $short_date_format;
    global $tmpl;
    $query = "\n\t\tSELECT\n\t\t\t`ID`,\n\t\t\t`Header`,\n\t\t\t`Snippet`,\n\t\t\tDATE_FORMAT(`Date`, '{$short_date_format}' ) AS 'Date'\n\t\tFROM `News`\n\t\tORDER BY `Date` DESC\n\t\t";
    $res = db_res($query);
    ob_start();
    if (!mysql_num_rows($res)) {
        ?>
			<div class="no_news">
				<?php 
        echo _t("_No news available");
        ?>
			</div>
		<?php 
    } else {
        while ($news_arr = mysql_fetch_array($res)) {
            ?>
			<div class="news_cont">
				<div class="clear_both"></div>
				<div class="news_header">
					<a href="<?php 
            echo "{$site['url']}news_view.php?ID={$news_arr['ID']}";
            ?>
">
						<?php 
            echo process_line_output($news_arr['Header']);
            ?>
					</a>
				</div>
				<div class="news_date"><?php 
            echo $news_arr['Date'];
            ?>
</div>
				<div class="news_snippet">
					<?php 
            echo process_text_output($news_arr['Snippet']);
            ?>
				</div>
				<div class="clear_both"></div>
			</div>
			<?php 
        }
    }
    return ob_get_clean();
}
开发者ID:BackupTheBerlios,项目名称:dolphin-dwbn-svn,代码行数:50,代码来源:news.php


示例7: MemberPrintNews

function MemberPrintNews()
{
    global $site;
    global $short_date_format;
    $res = db_res("SELECT `ID`, DATE_FORMAT(`Date`, '{$short_date_format}' ) AS 'Date', `Header`, `Text` FROM `News` ORDER BY `Date` DESC");
    if (!$res) {
        return;
    }
    echo "<table cellspacing=1 cellpadding=2 class=small width='100%'>\n";
    if (!mysql_num_rows($res)) {
        echo "<tr class=panel><td align=center>No news available.</td></tr>\n";
    }
    while ($news_arr = mysql_fetch_array($res)) {
        $news_header = process_line_output($news_arr['Header']);
        echo "\n\t\t\t<tr >\n\t\t\t\t<td align=center width=15%>\n\t\t\t\t\t<a href=\"news.php?edit_id={$news_arr['ID']}\">Edit</a> |\n\t\t\t\t\t<a href=\"news.php?action=delete&delete_id={$news_arr['ID']}\">Delete</a>\n\t\t\t\t</td>\n\t\t\t\t<td align=center width=15%>{$news_arr['Date']}</td>\n\t\t\t\t<td aling=left>&nbsp;<a target='_blank' href='{$site['url']}news_view.php?ID={$news_arr['ID']}'>{$news_header}</a></td>\n\t\t\t</tr>\n";
    }
    echo "</table>\n";
}
开发者ID:BackupTheBerlios,项目名称:dolphin-dwbn-svn,代码行数:18,代码来源:news.php


示例8: getMediaPage

    function getMediaPage($iMediaID = 0)
    {
        global $votes_pic;
        $ret = '';
        //$ret .= $this -> getJSCode();
        if (0 < $this->iMediaCount) {
            $iMediaID = 0 < $iMediaID ? $iMediaID : $this->aMedia['0']['PrimPhoto'];
            $aCurPhoto = $this->getElementArrayByID($iMediaID);
            if (empty($aCurPhoto)) {
                $sPhotoUrl = getTemplateIcon($this->sSexPic);
            } else {
                $ret .= '<div class="mediaTitle" id="sTitleDiv">';
                $ret .= stripcslashes(process_line_output($aCurPhoto['med_title']));
                $ret .= '</div>';
                $iPhotoID = $aCurPhoto['med_id'];
                $sPhotoUrl = $this->sMediaUrl . 'photo_' . $aCurPhoto['med_file'];
                $iPhotoRating = $this->getRating($aCurPhoto['med_rating_sum'], $aCurPhoto['med_rating_count']);
            }
        } else {
            $sPhotoUrl = getTemplateIcon($this->sSexPic);
        }
        $ret .= $this->getJSCode($aCurPhoto);
        $ret .= '<div class="photoBlock" id="photoKeeper">';
        $style = '
				width:' . $this->aMediaConfig['size']['photoWidth'] . 'px;' . 'height:' . $this->aMediaConfig['size']['photoHeight'] . 'px;' . 'background-image:url(' . $sPhotoUrl . ');';
        $ret .= '<img src="' . getTemplateIcon('spacer.gif') . '" style="' . $style . '" class="photo" alt="" id="temPhotoID" />';
        //$ret .= '<img src="' . getTemplateIcon('spacer.gif') . '" style="' . $style . '"                                          class="photo" alt="" onload="return setImage();" id="temPhotoID" />';
        $ret .= '</div>';
        $sJsArray = '';
        $iPhotosCount = 0;
        $sIconsList = $this->_getIconsList($sJsArray, $iPhotosCount);
        $oVotingView = new BxTemplVotingView('media', (int) $aCurPhoto['med_id']);
        //if( $iPhotosCount && getParam('votes_pic') == 'on' && $oVotingView->isEnabled())
        if ($iPhotosCount && $votes_pic && $oVotingView->isEnabled()) {
            $ret .= '<div class="votingBlock">' . $oVotingView->getBigVoting() . '</div>';
        }
        $ret .= '<div class="iconBlock">';
        $ret .= $sIconsList;
        $ret .= '</div>';
        $ret .= '<script type="text/javascript">' . $sJsArray . '</script>';
        return $ret;
    }
开发者ID:BackupTheBerlios,项目名称:dolphin-dwbn-svn,代码行数:42,代码来源:profilePhotos.php


示例9: MemberPrintNews

function MemberPrintNews()
{
    global $site;
    global $short_date_format;
    $bNewsFriendly = getParam('permalinks_news') == 'on' ? true : false;
    $res = getNewsList();
    if (!$res) {
        return;
    }
    echo "<table cellspacing=1 cellpadding=2 class=small width='100%'>\n";
    if (!mysql_num_rows($res)) {
        echo "<tr class=panel><td align=center>No news available.</td></tr>\n";
    }
    while ($news_arr = mysql_fetch_array($res)) {
        $news_header = process_line_output($news_arr['Header']);
        $sNewsUrl = getNewsUrl($news_arr['newsID'], $news_arr['NewsUri'], $bNewsFriendly);
        echo "\r\n\t\t\t<tr >\r\n\t\t\t\t<td align=center width=15%>\r\n\t\t\t\t\t<a href=\"news.php?edit_id={$news_arr['newsID']}\">Edit</a> |\r\n\t\t\t\t\t<a href=\"news.php?action=delete&delete_id={$news_arr['newsID']}\">Delete</a>\r\n\t\t\t\t</td>\r\n\t\t\t\t<td align=center width=15%>" . date(str_replace('%', '', $short_date_format), $news_arr['Date']) . "</td>\r\n\t\t\t\t<td aling=left>&nbsp;<a target='_blank' href='{$sNewsUrl}'>{$news_header}</a></td>\r\n\t\t\t</tr>\n";
    }
    echo "</table>\n";
}
开发者ID:BackupTheBerlios,项目名称:dolphin-dwbn-svn,代码行数:20,代码来源:news.php


示例10: PageCompPageMainCode

/**
 * page code function
 */
function PageCompPageMainCode()
{
    global $tmpl;
    $links_res = db_res("SELECT * FROM `Links`");
    if (!mysql_num_rows($links_res)) {
        $out .= "<div class=\"no_links\">" . _t("_NO_LINKS") . "</div>\n";
    } else {
        while ($link_arr = mysql_fetch_array($links_res)) {
            $link_url = process_line_output($link_arr['URL'], 1000);
            $link_title = process_line_output($link_arr['Title']);
            $link_desc = process_text_output($link_arr['Description']);
            $out .= "<div class=\"links_cont\">\n";
            $out .= "<div class=\"clear_both\"></div>\n";
            $out .= "<div class=\"links_header\">";
            $out .= "<a href=\"{$link_url}\">{$link_title}</a></div>\n";
            $out .= "<div class=\"links_snippet\">{$link_desc}</div>\n";
            $out .= "<div class=\"clear_both\"></div></div>\n";
        }
    }
    return $out;
}
开发者ID:BackupTheBerlios,项目名称:dolphin-dwbn-svn,代码行数:24,代码来源:links.php


示例11: MemberPrintPolls

function MemberPrintPolls()
{
    global $site;
    $res = db_res("SELECT `ID`, `Question`, `Active` FROM `polls_q` ORDER BY `Active`, `Question` DESC");
    if (!$res) {
        return;
    }
    echo "<table cellspacing=1 cellpadding=2 class=small width='100%'>\n";
    if (!mysql_num_rows($res)) {
        echo "<tr class=panel><td align=center>No polls available.</td></tr>\n";
    }
    while ($poll_arr = mysql_fetch_array($res)) {
        if ($poll_arr['Active'] == 'on') {
            $active = "<td width=15 bgcolor=green>&nbsp;</td>";
        } else {
            $active = "<td width=15 bgcolor=red>&nbsp;</td>";
        }
        $poll_question = process_line_output($poll_arr['Question']);
        echo "\n\t\t\t<tr class=panel>\n\t\t\t\t{$active}\n\t\t\t\t<td align=center width=15%>\n\t\t\t\t\t<a href=\"polls.php?edit_id={$poll_arr['ID']}\">Edit</a> |\n\t\t\t\t\t<a href=\"polls.php?action=delete&delete_id={$poll_arr['ID']}\">Delete</a>\n\t\t\t\t</td>\n\t\t\t\t<td aling=left>&nbsp;<a target='_blank' href='{$site['url']}poll.php?ID={$poll_arr['ID']}'>{$poll_question}</a></td>\n\t\t\t</tr>\n";
    }
    echo "</table>\n";
}
开发者ID:BackupTheBerlios,项目名称:dolphin-dwbn-svn,代码行数:22,代码来源:polls.php


示例12: 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


示例13: PageCompPageMainCode

/**
 * page code function
 */
function PageCompPageMainCode()
{
    global $site;
    global $short_date_format;
    $out = "";
    $query = "SELECT `Stories`.`ID`, `Profiles`.`ID` as `MembID`, DATE_FORMAT(`Stories`.`Date`,  '{$short_date_format}' ) AS 'Date', `Stories`.`Header`, `Stories`.`Text`, `Profiles`.`ID` as `prID`, `Profiles`.`NickName` FROM `Stories` INNER JOIN `Profiles` ON (`Stories`.`Sender` = `Profiles`.`ID`) WHERE `Stories`.`active` = 'on' ORDER BY `Stories`.`Date` DESC";
    $res = db_res($query);
    if (!$res) {
        return 0;
    }
    $out .= "\n\t\t<br />\n\t\t<div align=left>&nbsp;&nbsp;<a href=\"" . $site['url'] . "story.php\">" . _t("_post my feedback") . "</a></div>\n\t\t<br />\n\t\t<table width=\"100%\" cellspacing=1 cellpadding=2 class=small width=100%>";
    $num = mysql_num_rows($res);
    if (!$num) {
        $out .= "\n\t\t\t\t<tr>\n\t\t\t\t\t<td><center>" . _t("_NO_STORIES") . "</center></td>\n\t\t\t\t</tr>";
    } else {
        while ($arr = mysql_fetch_array($res)) {
            $story_header = process_line_output($arr['Header']);
            $out .= "\n\t\t\t\t<tr class=panel>\n\t\t\t\t\t<td align=center width=15%>{$arr['Date']}</td>\n\t\t\t\t\t<td align=center width=15%><a href=\"" . getProfileLink($arr['prID']) . "\">{$arr['NickName']}</a></td>\n\t\t\t\t\t<td aling=left>&nbsp;<a href='story_view.php?ID={$arr['ID']}'>{$story_header}</a></td>\n\t\t\t\t</tr>";
        }
    }
    $out .= "\n\t\t</table>\n";
    return $out;
}
开发者ID:BackupTheBerlios,项目名称:dolphin-dwbn-svn,代码行数:26,代码来源:stories.php


示例14: getExistedBannersBlock

function getExistedBannersBlock()
{
    $sClicksC = _t('_adm_bann_clicks');
    $sImpressionsC = _t('_adm_bann_impressions');
    $sPreviewC = _t('_Preview');
    $sEditC = _t('_Edit');
    $sDeleteC = _t('_Delete');
    // Get banner info from database.
    $banners_res = db_res("SELECT * FROM `sys_banners` ORDER BY `ID` DESC");
    $sExistedBanners = MsgBox(_t('_Empty'));
    if (mysql_num_rows($banners_res)) {
        $sExistedBanners = "<table cellspacing=1 cellpadding=2 border=0 class=small1 width=100%>";
        while ($banns_arr = mysql_fetch_array($banners_res)) {
            $imp = db_arr("SELECT COUNT(*) FROM `sys_banners_shows` WHERE `ID` = '{$banns_arr['ID']}'");
            $clicks = db_arr("SELECT COUNT(*) FROM `sys_banners_clicks` WHERE `ID` = '{$banns_arr['ID']}'");
            $class = !$banns_arr['Active'] ? 'table_err' : 'panel';
            $sBannerTitle = process_line_output($banns_arr['Title']);
            $sExistedBanners .= <<<EOF
<tr class={$class}>
\t<td>
\t\t(<a href="banners.php?action=preview&banner_id={$banns_arr['ID']}">{$sPreviewC}</a> | 
\t\t\t<a href="banners.php?banner_id={$banns_arr['ID']}">{$sEditC}</a> | 
\t\t\t<a href="banners.php?banner_id={$banns_arr['ID']}&action=delete">{$sDeleteC}</a>)&nbsp;
\t\t\t{$sBannerTitle}
\t\t</a>
\t</td>
\t<td><b>{$clicks[0]}</b> {$sClicksC} </td>
\t<td><b>{$imp[0]}</b> {$sImpressionsC} </td>
</tr>
EOF;
        }
        $sExistedBanners .= "</table>";
    }
    $sResult = $GLOBALS['oAdmTemplate']->parseHtmlByName('design_box_content.html', array('content' => $sExistedBanners));
    return DesignBoxContent(_t('_adm_mmi_banners'), $sResult, 1);
}
开发者ID:dalinhuang,项目名称:shopexts,代码行数:36,代码来源:banners.php


示例15: getRatingPhoto

function getRatingPhoto($aPhoto)
{
    global $max_photo_width, $max_photo_height, $dir, $site;
    $sFileSrc = $dir['profileImage'] . $aPhoto['med_prof_id'] . '/photo_' . $aPhoto['med_file'];
    if (extFileExists($sFileSrc)) {
        $sPhotoUrl = $site['profileImage'] . $aPhoto['med_prof_id'] . '/photo_' . $aPhoto['med_file'];
    } else {
        header('Location:' . $_SERVER['PHP_SELF']);
    }
    $ret = '';
    $ret .= '<div class="mediaTitle">';
    $ret .= process_line_output($aPhoto['med_title']);
    $ret .= '</div>';
    $ret .= '<div class="photoBlock" style="text-align:center;">';
    $ret .= '<img src="' . getTemplateIcon('spacer.gif') . '" style="width:' . $max_photo_width . 'px; height:' . $max_photo_height . 'px; background-image:url(' . $sPhotoUrl . ');" class="photo" />';
    $ret .= '</div>';
    return $ret;
}
开发者ID:BackupTheBerlios,项目名称:dolphin-dwbn-svn,代码行数:18,代码来源:rate.php


示例16: get_member_icon

function get_member_icon($ID, $float = 'none', $bDrawMargin = FALSE)
{
    global $site;
    require_once BX_DIRECTORY_PATH_ROOT . 'profilePhotos.php';
    //$sSexSql = "SELECT `Sex` FROM `Profiles` WHERE `ID` = '{$ID}'";
    $aSexSql = getProfileInfo($ID);
    //db_arr( $sSexSql );
    $oPhoto = new ProfilePhotos($ID);
    $oPhoto->getActiveMediaArray();
    $aFile = $oPhoto->getPrimaryPhotoArray();
    if (extFileExists($oPhoto->sMediaDir . 'icon_' . $aFile['med_file'])) {
        $sFileName = $oPhoto->sMediaUrl . 'icon_' . $aFile['med_file'];
    } else {
        if ($aSexSql['Sex'] == 'female' or $aSexSql['Sex'] == 'Female') {
            $sSexPic = 'woman_small.gif';
        } elseif ($aSexSql['Sex'] == 'male' or $aSexSql['Sex'] == 'Male') {
            $sSexPic = 'man_small.gif';
        } else {
            $sSexPic = 'visitor_small.gif';
        }
        $sFileName = getTemplateIcon($sSexPic);
    }
    $sMarginsAddon = $bDrawMargin ? " margin-right:10px;margin-bottom:10px; " : '';
    $style = 'width:' . $oPhoto->aMediaConfig['size']['iconWidth'] . 'px;' . 'height:' . $oPhoto->aMediaConfig['size']['iconHeight'] . 'px;' . 'background-image:url(' . $sFileName . ');';
    $ret = '';
    $ret .= '<div class="thumbnail_block" style="float:' . $float . '; position:relative; ">';
    $ret .= "<a href=\"" . getProfileLink($ID) . "\">";
    $ret .= '<img src="' . getTemplateIcon('spacer.gif') . '" style="' . $sMarginsAddon . $style . '" alt="' . process_line_output($aFileName['med_title']) . '" />';
    $ret .= '</a>';
    $ret .= '</div>';
    return $ret;
}
开发者ID:BackupTheBerlios,项目名称:dolphin-dwbn-svn,代码行数:32,代码来源:design.inc.php


示例17: PageCodeOutbox

function PageCodeOutbox()
{
    global $memberID;
    global $dir;
    global $site;
    global $tmpl;
    global $date_format;
    $query = "\r\n\t\tSELECT\r\n\t\t\t`Messages`.`ID`,\r\n\t\t\tUNIX_TIMESTAMP( `Date` ) AS `timestamp`,\r\n\t\t\tDATE_FORMAT(`Date`, '{$date_format}') AS `Date`,\r\n\t\t\t`Recipient`,\r\n\t\t\t`Profiles`.`NickName` AS `RecipientNickName`,\r\n\t\t\t`Subject`,\r\n\t\t\t`New`\r\n\t\tFROM `Messages`\r\n\t\tLEFT JOIN `Profiles` ON\r\n\t\t\t`Profiles`.`ID` = `Recipient`\r\n\t\tWHERE `Sender` = {$memberID}\r\n\t\tORDER BY `Date` DESC\r\n\t\t";
    $rMsgs = db_res($query);
    if (!mysql_num_rows($rMsgs)) {
        return '<div class="no_result"><div>' . _t("_No messages in Outbox") . '</div></div>';
    }
    // --- get template and replace headers ---
    $aReplace = array();
    $aReplace['mailbox_header_img'] = '<img src="' . getTemplateIcon('outbox.gif') . '" class="mailbox_header_img" />';
    //$aReplace['summary'] = _t(
    $aReplace['flag'] = _t('_Flag');
    $aReplace['from'] = _t('_Recipient');
    $aReplace['date'] = _t('_Date');
    $aReplace['subject'] = _t('_Subject');
    $aReplace['click_to_sort'] = _t('_Click to sort');
    $aReplace['actions_l'] = '';
    $aReplace['actions'] = '';
    $ret = file_get_contents("{$dir['root']}templates/tmpl_{$tmpl}/mail_box.html");
    foreach ($aReplace as $key => $val) {
        $ret = str_replace("__{$key}__", $val, $ret);
    }
    $aMyTmpl = preg_split("/\\{\\/?InsertRows\\}/", $ret);
    $tmplRow = $aMyTmpl[1];
    $ret = "{$aMyTmpl[0]}{InsertRows /}{$aMyTmpl[2]}";
    $InsertRows = '';
    $tr_class = 'odd';
    while ($aMsg = mysql_fetch_assoc($rMsgs)) {
        $sSubject = process_line_output(html2txt($aMsg['Subject']));
        $aReplace = array();
        $aReplace['tr_class'] = $tr_class;
        $aReplace['new_add'] = $aMsg['New'] ? 'new' : '';
        $aReplace['ID'] = $aMsg['ID'];
        $aReplace['CheckBox'] = '';
        $aReplace['Flag'] = '<img class="mailbox_flag_img" src="' . getTemplateIcon($aMsg['New'] ? 'not_readed.gif' : 'readed.gif') . '" title="' . _t($aMsg['New'] ? '_Not Readed' : '_Readed') . '" />';
        $aReplace['From'] = "<!--{$aMsg['RecipientNickName']}--> <a href=\"{$site['url']}{$aMsg['RecipientNickName']}\">{$aMsg['RecipientNickName']}</a>";
        $aReplace['Date'] = "<!--{$aMsg['timestamp']}--> {$aMsg['Date']}";
        $aReplace['Subject'] = "<!--{$sSubject}--> <a href=\"{$site['url']}messages_outbox.php?message={$aMsg['ID']}\">{$sSubject}</a>";
        $sInsertRow = $tmplRow;
        foreach ($aReplace as $key => $val) {
            $sInsertRow = str_replace("{{$key}}", $val, $sInsertRow);
        }
        $sInsertRows .= $sInsertRow;
        $tr_class = $tr_class == 'odd' ? 'even' : 'odd';
    }
    $ret = str_replace("{InsertRows /}", $sInsertRows, $ret);
    return $ret;
}
开发者ID:BackupTheBerlios,项目名称:dolphin-dwbn-svn,代码行数:53,代码来源:mail.php


示例18: parseSystemKey

 /**
  * Parse system keys.
  *
  * @param  string $sKey key
  * @return string value associated with the key.
  */
 function parseSystemKey($sKey, $mixedKeyWrapperHtml = null)
 {
     global $site;
     global $_page;
     global $oFunctions;
     global $oTemplConfig;
     global $logged;
     $aKeyWrappers = $this->_getKeyWrappers($mixedKeyWrapperHtml);
     $sRet = '';
     switch ($sKey) {
         case 'page_charset':
             $sRet = 'UTF-8';
             break;
         case 'page_keywords':
             if (!empty($GLOBALS[$this->_sPrefix . 'PageKeywords']) && is_array($GLOBALS[$this->_sPrefix . 'PageKeywords'])) {
                 $sRet = '<meta name="keywords" content="' . bx_html_attribute(implode(',', $GLOBALS[$this->_sPrefix . 'PageKeywords'])) . '" />';
             }
             break;
         case 'page_description':
             if (!empty($GLOBALS[$this->_sPrefix . 'PageDescription']) && is_string($GLOBALS[$this->_sPrefix . 'PageDescription'])) {
                 $sRet = '<meta name="description" content="' . bx_html_attribute($GLOBALS[$this->_sPrefix . 'PageDescription']) . '" />';
             }
             break;
         case 'page_header':
             if (!empty($GLOBALS[$this->_sPrefix . 'PageTitle'])) {
                 $sRet = $GLOBALS[$this->_sPrefix . 'PageTitle'];
             } else {
                 if (isset($_page['header'])) {
                     $sRet = $_page['header'];
                 }
             }
             //$sRet = process_line_output($sRet);
             break;
         case 'page_header_text':
             if (!empty($GLOBALS[$this->_sPrefix . 'PageMainBoxTitle'])) {
                 $sRet = $GLOBALS[$this->_sPrefix . 'PageMainBoxTitle'];
             } else {
                 if (isset($_page['header_text'])) {
                     $sRet = $_page['header_text'];
                 }
             }
             //$sRet = process_line_output($sRet);
             break;
         case 'main_div_width':
             if (!empty($GLOBALS[$this->_sPrefix . 'PageWidth'])) {
                 $sRet = process_line_output($GLOBALS[$this->_sPrefix . 'PageWidth']);
             }
             break;
         case 'main_logo':
             $sRet = $GLOBALS['oFunctions']->genSiteLogo();
             break;
         case 'main_splash':
             $sRet = $GLOBALS['oFunctions']->genSiteSplash();
             break;
         case 'top_menu':
             $sRet = $GLOBALS['oTopMenu']->getCode();
             break;
         case 'top_menu_breadcrumb':
             $sRet = !empty($GLOBALS['oTopMenu']->sBreadCrumb) ? $GLOBALS['oTopMenu']->sBreadCrumb : $GLOBALS['oTopMenu']->genBreadcrumb();
             break;
         case 'extra_top_menu':
             $iProfileId = getLoggedId();
             if ($iProfileId && getParam('ext_nav_menu_enabled')) {
                 bx_import('BxTemplMemberMenu');
                 $oMemberMenu = new BxTemplMemberMenu();
                 $sRet = $oMemberMenu->genMemberMenu($iProfileId);
             }
             break;
         case 'bottom_links':
             $sRet = $oFunctions->genSiteBottomMenu();
             break;
         case 'switch_skin_block':
             $sRet = getParam("enable_template") ? templates_select_txt() : '';
             break;
         case 'dol_images':
             $sRet = $this->_processJsImages();
             break;
         case 'dol_lang':
             $sRet = $this->_processJsTranslations();
             break;
         case 'dol_options':
             $sRet = $this->_processJsOptions();
             break;
         case 'bottom_text':
             $sRet = _t('_bottom_text', date('Y'));
             break;
         case 'copyright':
             $sRet = _t('_copyright', date('Y')) . getVersionComment();
             break;
         case 'flush_header':
             //TODO: add some variable to disable it if needed
             //flush();
             break;
         case 'extra_js':
//.........这里部分代码省略.........
开发者ID:noormcs,项目名称:studoro,代码行数:101,代码来源:BxDolTemplate.php


示例19: getPostFeatureBlock

    function getPostFeatureBlock()
    {
        $iMemberID = (int) $this->aViewingPostInfo['OwnerID'];
        $aOwnerInfo = getProfileInfo($iMemberID);
        $aUser = array('Permalink' => $aOwnerInfo['NickName'], 'Link' => $iMemberID);
        $sFeaturedSect = '';
        $vFeaturedPosts = $this->_oDb->getFeaturedPosts($iMemberID);
        if (mysql_num_rows($vFeaturedPosts)) {
            $sFeatured = '';
            while ($aFeaturedPost = mysql_fetch_assoc($vFeaturedPosts)) {
                $iPostID = (int) $aFeaturedPost['PostID'];
                $aPost = array('Permalink' => $aFeaturedPost['PostUri'], 'Link' => $iPostID);
                $sPostLink = $this->genBlogLink('show_member_post', $aUser, '', $aPost);
                $sFeaturedPostTitle = process_line_output($aFeaturedPost['PostCaption']);
                $sFeatured .= <<<EOF
<div class="cls_result_row bx-def-margin-sec-top-auto">
    <div class="cls_categ_name">
        <i class="sys-icon star-o"></i>
        <a href="{$sPostLink}" title="{$sFeaturedPostTitle}">{$sFeaturedPostTitle}</a>
    </div>
</div>
EOF;
            }
            return <<<EOF
<div class="bx-def-bc-padding">
    {$sFeatured}
</div>
EOF;
        }
    }
开发者ID:Gotgot59,项目名称:dolphin.pro,代码行数:30,代码来源:BxBlogsModule.php


示例20: parseSystemKey

 /**
  * Parse system keys.
  *
  * @param  string $sKey key
  * @return string value associated with the key.
  */
 function parseSystemKey($sKey, $mixedKeyWrapperHtml = null)
 {
     global $logged;
     $aKeyWrappers = $this->_getKeyWrappers($mixedKeyWrapperHtml);
     $sRet = '';
     switch ($sKey) {
         case 'version':
             $sRet = $GLOBALS['site']['ver'];
             break;
         case 'current_version':
             $sRet = $GLOBALS['site']['ver'] . '.' . $GLOBALS['site']['build'];
             break;
         case 'page_charset':
             $sRet = 'UTF-8';
             break;
         case 'page_keywords':
             if (!empty($GLOBALS[$this->_sPrefix . 'PageKeywords']) && is_array($GLOBALS[$this->_sPrefix . 'PageKeywords'])) {
                 $sRet = '<meta name="keywords" content="' . process_line_output(implode(',', $GLOBALS[$this->_sPrefix . 'PageKeywords'])) . '" />';
             }
             break;
         case 'page_description':
             if (!empty($GLOBALS[$this->_sPrefix . 'PageDescription']) && is_string($GLOBALS[$this->_sPrefix . 'PageDescription'])) {
                 $sRet = '<meta name="description" content="' . process_line_output($GLOBALS[$this->_sPrefix . 'PageDescription']) . '" />';
             }
             break;
         case 'page_header':
             if (!empty($GLOBALS[$this->_sPrefix . 'PageTitle'])) {
                 $sRet = $GLOBALS[$this->_sPrefix . 'PageTitle'];
             } else {
                 if (isset($GLOBALS['_page']['header'])) {
                     $sRet = $GLOBALS['_page']['header'];
                 }
             }
             $sRet = process_line_output($sRet);
             break;
         case 'page_header_text':
             if (!empty($GLOBALS[$this->_sPrefix . 'PageMainBoxTitle'])) {
                 $sRet = process_line_output($GLOBALS[$this->_sPrefix . 'PageMainBoxTitle']);
             } else {
                 if (isset($GLOBALS['_page']['header_text'])) {
                     $sRet = $GLOBALS['_page']['header_text'];
                 }
             }
             $sRet = process_line_output($sRet);
             break;
         case 'main_div_width':
             if (!empty($GLOBALS[$this->_sPrefix . 'PageWidth'])) {
                 $sRet = process_line_output($GLOBALS[$this->_sPrefix . 'PageWidth']);
             }
             break;
         case 'top_menu':
             $sRet = BxDolAdminMenu::getTopMenu();
             break;
         case 'main_menu':
             $sRet = BxDolAdminMenu::getMainMenu();
             break;
         case 'dol_images':
             $sRet = $this->_processJsImages();
             break;
         case 'dol_lang':
             $sRet = $this->_processJsTranslations();
             break;
         case 'dol_options':
             $sRet = $this->_processJsOptions();
             break;
         case 'promo_code':
             if (defined('BX_PROMO_CODE')) {
                 $sRet = BX_PROMO_CODE;
             } else {
                 $sRet = ' ';
             }
             break;
         case 'copyright':
             $sRet = _t('_copyright', date('Y')) . getVersionComment();
             break;
     }
     $sRet = BxDolTemplate::processInjection($GLOBALS['_page']['name_index'], $sKey, $sRet);
     return $sRet;
 }
开发者ID:noormcs,项目名称:studoro,代码行数:85,代码来源:BxDolTemplateAdmin.php



注:本文中的process_line_output函数示例整理自Github/MSDocs等源码及文档管理平台,相关


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
PHP process_new_icon函数代码示例发布时间:2022-05-15
下一篇:
PHP process_image函数代码示例发布时间: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