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


PHP ContentBlockHead函数代码示例

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


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

示例1: htmlspecialchars_adv

    $iUser = htmlspecialchars_adv($_GET['iUser']);
}
if (isset($_POST['check']) && is_array($_POST['check'])) {
    foreach ($_POST['check'] as $iKey => $iVal) {
        switch (true) {
            case isset($_POST['Delete']):
                deleteItem((int) $iVal);
                break;
            case isset($_POST['Approve']):
                approveItem((int) $iVal);
                break;
        }
    }
}
TopCodeAdmin();
ContentBlockHead("Profile media");
echo getPostModMediaPage($sType, $sStatus, $iUser);
ContentBlockFoot();
BottomCode();
function getPostModMediaPage($sType = 'photo', $sStatus = 'passive', $iUser = 0)
{
    global $dir;
    global $site, $max_thumb_width, $max_thumb_height, $max_photo_width, $max_photo_height;
    $ret = '';
    $aFiles = getUnapprovedFilesArray($sType, $sStatus, $iUser);
    $style = '
		float:left;
		margin:5px 11px;
		padding:5px;
		border:1px solid silver;
		text-align:center;
开发者ID:BackupTheBerlios,项目名称:dolphin-dwbn-svn,代码行数:31,代码来源:post_mod_media.php

示例2: ContentBlockFoot

			<td align="right">
				<input name="s_nickname" type="submit" value="Search by Nickname" />
			</td>
		    <td align="center">
				<input name="s_mail" type="submit" value="Search by Email" />
			</td>
		    <td align="left">
				<input name="s_id" type="submit" value="Search by ID" />
			</td>
		</tr>
	</table>
</form>

<?php 
ContentBlockFoot();
ContentBlockHead("Profiles");
?>


<center>
	<?php 
echo ResNavigationRet('ProfilesUpper', 0);
?>
</center>

<form action="profiles.php<?php 
echo substr(get_vars(), 0, strlen($get_vars) - 1);
?>
" method="post" name="prf_form">
	<table cellspacing="1" cellpadding="0" class="small1" style="border: none; background-color: #eee; width: 590px; text-align: center;">
	
开发者ID:BackupTheBerlios,项目名称:dolphin-dwbn-svn,代码行数:30,代码来源:profiles.php

示例3: TopCodeAdmin

        $action_result .= "News deleting failed";
    }
}
$_page['header'] = "News";
$_page['header_text'] = "News compose";
TopCodeAdmin();
ContentBlockHead("News");
if (strlen($action_result)) {
    echo "<br><center><div class=\"err\">{$action_result}</div></center><br>\n";
}
MemberPrintNews();
if ((int) $_GET['edit_id'] != 0) {
    $news_arr = db_arr("SELECT `ID`, DATE_FORMAT(`Date`, '{$short_date_format}' ) AS 'Date', `Header`, `Snippet`, `Text` FROM `News` WHERE `ID` = " . (int) $_GET['edit_id']);
}
ContentBlockFoot();
ContentBlockHead("News compose");
?>

<form method="post" action="news.php">

<table style="border:1px solid gray;background-color:#EEEEEE;margin:0px auto;">
	<tr>
		<td style="text-align:right;font-weight:bold;padding:3px;">Header:</td>
		<td style="padding:3px;">
			<input name="header" style="width:380px;" value="<?php 
echo htmlspecialchars($news_arr['Header']);
?>
">
		</td>
	</tr>
开发者ID:BackupTheBerlios,项目名称:dolphin-dwbn-svn,代码行数:30,代码来源:news.php

示例4: ob_get_contents

	<div id="helpTypeId" style="position: relative; margin: 2px; padding: 1px; white-space: nowrap;">CONTENT</div>
	<div id="helpDescId" style="position: relative; margin: 2px; padding: 1px;">CONTENT</div>
	<div id="helpNoteId" style="position: relative; margin: 2px; padding: 1px; text-align: justify;">CONTENT</div>
</div>

<?php 
$helpDivCode = ob_get_contents();
ob_end_clean();
/*
if ( $logged['admin'] )
	TopCodeAdmin( $helpDivCode );
else
	TopCodeAff( $helpDivCode );
*/
TopCodeAdmin($helpDivCode);
ContentBlockHead("Finance " . $sHead);
if (strlen($tr['error_text'])) {
    echo "<br><center><div class=\"err\">{$tr['error_text']}</div></center><br>";
}
?>
<br>
<center>

<script type="text/javascript">
<!--
	function updateControls()
	{
		document.forms['calculations_form'].elements['tr_order_num'].disabled = !(document.getElementById('id_order').checked);
		document.forms['calculations_form'].elements['tr_last_days'].disabled = !(document.getElementById('id_last').checked);
		document.forms['calculations_form'].elements['tr_exact_date'].disabled = !(document.getElementById('id_date').checked);
		document.getElementById('exact_choose').disabled = !(document.getElementById('id_date').checked);
开发者ID:BackupTheBerlios,项目名称:dolphin-dwbn-svn,代码行数:31,代码来源:finance.php

示例5: ContentBlockFoot

echo $enable_recurring ? 'checked="checked"' : '';
?>
 />
			</td>
		</tr>
		<tr>
			<td align="center" colspan="2"><input type="submit" class="no" name="settings_save" value="Save" style="width: 60px;" /></td>
		</tr>
	</table>
</div>
</form>
</center>

<?php 
ContentBlockFoot();
ContentBlockHead("Manage payment providers");
if (strlen($status_text)) {
    echo "\r\n<center>\r\n\t<div class=\"err\">{$status_text}</div>\r\n</center>";
}
?>

<center>

<?php 
$payments_res = db_res("SELECT `ID`, `Name`, `Caption`, `Active`, `Mode`, `Debug`, `SupportsRecurring`, `LogoFilename` FROM `PaymentProviders`");
while ($payment_arr = mysql_fetch_assoc($payments_res)) {
    PPShowProviderBox($payment_arr);
}
?>

</center>
开发者ID:BackupTheBerlios,项目名称:dolphin-dwbn-svn,代码行数:31,代码来源:payment_providers.php

示例6: ContentBlockHead

ContentBlockHead('Version', 0, 'version');
echo "Installed - {$site['ver']}.{$site['build']}<br />\n";
echo "Latest - {$sDolVerLatest}<br />\n";
echo '<a href="http://www.boonex.com/products/dolphin/download/">Check For Updates</a>';
ContentBlockFoot();
ContentBlockHead('Links', 0, 'links');
showAdminLinks();
ContentBlockFoot();
?>
			</div>
			
			<div style="width:400px;float:left;">
	<?php 
if ($news_enable) {
    if ($oNews = new BxRSS('http://www.boonex.com/unity/blog/featured_posts/?rss=1')) {
        ContentBlockHead('BoonEx News Feed', 0, 'news_feed');
        $iNewsNum = 0;
        foreach ($oNews->items as $oItem) {
            ?>
				<div class="news_block">
					<div class="news_title"><a href="<?php 
            echo $oItem->link;
            ?>
"><?php 
            echo $oItem->title;
            ?>
</a></div>
					<div class="news_date"><?php 
            echo date('j F Y', strtotime($oItem->pubDate));
            ?>
</div>
开发者ID:BackupTheBerlios,项目名称:dolphin-dwbn-svn,代码行数:31,代码来源:index.php

示例7: ResNavigationRet

</table>
</center>
<?php 
}
?>
</form>

<center>
<?php 
echo ResNavigationRet('AffBannersLower', 0);
?>
</center>
<?php 
ContentBlockFoot();
if ((int) $_GET['EditBanner']) {
    ContentBlockHead("Edit Banner");
    ?>
<form method="POST" action="<?php 
    echo $_SERVER['PHP_SELF'];
    ?>
">
<table align="center" cellspacing=1 cellpadding=4 class="text" width=90%>
	<tr class=panel>
		<td align=center width=10%>&nbsp;ID&nbsp;</td>
		<td align=center width=10%>&nbsp;XSize&nbsp;</td>
		<td align=center width=10%>&nbsp;YSize&nbsp;</td>
		<td align=center width=50%>&nbsp;Banner file&nbsp;</td>
		<td align=center width=20%>&nbsp;Status&nbsp;</td>
	</tr>
	<tr>
		<td align=center width=10%><?php 
开发者ID:BackupTheBerlios,项目名称:dolphin-dwbn-svn,代码行数:31,代码来源:aff_banners.php

示例8: ceil

$iPerPage = 10;
$iTotalPages = ceil($iTotalNum / $iPerPage);
$iCurPage = (int) $_GET['page'];
if ($iCurPage > $iTotalPages) {
    $iCurPage = $iTotalPages;
}
if ($iCurPage < 1) {
    $iCurPage = 1;
}
$sLimitFrom = ($iCurPage - 1) * $iPerPage;
$sqlOrder = " ORDER BY `medDate` DESC ";
$sqlLimit = "LIMIT {$sLimitFrom}, {$iPerPage}";
$sQuery = "\r\n\tSELECT\r\n\t\t`a`.`medID`,\r\n\t\t`a`.`medProfId`,\r\n\t\t`a`.`medTitle`,\r\n\t\tUNIX_TIMESTAMP(`a`.`medDate`) as `medDate`,\r\n\t\t`a`.`medExt`,\r\n\t\t`a`.`medViews`,\r\n        `a`.`Approved`,\r\n\t\t`b`.`NickName`\r\n\tFROM `share" . $sType . "Files` as `a`\r\n\tLEFT JOIN `Profiles` `b` ON\r\n\t\t`b`.`ID` = `a`.`medProfId`\r\n\t{$sqlWhere}\r\n\t{$sqlOrder}\r\n\t{$sqlLimit}\r\n\t";
$rData = db_res($sQuery);
TopCodeAdmin();
ContentBlockHead("List of Photo files");
echo browseCode();
ContentBlockFoot();
BottomCode();
function browseCode()
{
    global $site;
    global $rData;
    global $iTotalPages;
    global $iCurPage;
    $sCode = '<div id = "browseMain">';
    $sCode .= '<form method="post" action="' . $_SERVER['PHP_SELF'] . '">';
    if (mysql_num_rows($rData)) {
        while ($aData = mysql_fetch_array($rData)) {
            $sStyle = $aData['Approved'] == 'true' ? ' style="border: 2px solid #00CC00;"' : ' style="border: 2px solid #CC0000;"';
            $sImage = $site['sharingImages'] . $aData['medID'] . '_t.' . $aData['medExt'];
开发者ID:BackupTheBerlios,项目名称:dolphin-dwbn-svn,代码行数:31,代码来源:browsePhoto.php

示例9: member_auth

* http://creativecommons.org/licenses/by/3.0/
*
* Dolphin is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the Creative Commons Attribution 3.0 License for more details. 
* You should have received a copy of the Creative Commons Attribution 3.0 License along with Dolphin, 
* see license.txt file; if not, write to marketing@boonex.com
***************************************************************************/
require_once '../inc/header.inc.php';
require_once BX_DIRECTORY_PATH_INC . 'design.inc.php';
require_once BX_DIRECTORY_PATH_INC . 'admin_design.inc.php';
require_once BX_DIRECTORY_PATH_INC . 'utils.inc.php';
$logged['admin'] = member_auth(1, true, true);
$_page['css_name'] = 'links.css';
TopCodeAdmin();
ContentBlockHead("Manage links");
if (!$demo_mode && 'add' == $_GET['action']) {
    echo GetLinkForm();
} elseif (!$demo_mode && 'addnew' == $_POST['action']) {
    if (1 > strlen($_POST['title'])) {
        echo GetActionText('Please enter title');
        echo GetLinkForm(false, 0, true);
    } elseif (1 > strlen($_POST['URL'])) {
        echo GetActionText('Please enter URL');
        echo GetLinkForm(false, 0, true);
    } elseif (1 > strlen($_POST['desc'])) {
        echo GetActionText('Please enter description');
        echo GetLinkForm(false, 0, true);
    } else {
        if (db_res("INSERT INTO `Links` SET `Title` = '" . $_POST['title'] . "', `URL` = '" . $_POST['URL'] . "', `Description` = '" . $_POST['desc'] . "';")) {
            echo GetActionText('link successfully added', 1);
开发者ID:BackupTheBerlios,项目名称:dolphin-dwbn-svn,代码行数:31,代码来源:links.php

示例10: array

    $iCurPage = $iTotalPages;
}
if ($iCurPage < 1) {
    $iCurPage = 1;
}
$sLimitFrom = ($iCurPage - 1) * $iPerPage;
$aSqlQuery['sqlLimit'] = "LIMIT {$sLimitFrom}, {$iPerPage}";
$aSqlQuery['sqlOrder'] = "ORDER BY `{$oNew->aTableFields['medDate']}` DESC";
$aManage = array('medID', 'medProfId', 'medTitle', 'medUri', 'medDate', 'medViews', 'medExt', 'Approved');
if ($iTotalNum > 0) {
    $aCount = array('total' => $iTotalPages, 'current' => $iCurPage, 'per_page' => $iPerPage);
    $rData = $oNew->getFilesList($aSqlQuery, $aManage);
    $sCode = browseCode($oNew, $rData, $aCount);
}
TopCodeAdmin();
ContentBlockHead("List of {$sBigType} files");
echo $sCode;
ContentBlockFoot();
BottomCode();
function browseCode($oNew, $rData, $aCount)
{
    $sCode = '<div id="browseMain"><form method="post" action="">';
    $iCount = mysql_num_rows($rData);
    $sCheckAll = $iCount > 1 ? '<input type="checkbox" name=\\"ch_all" onclick="checkAll( \'Check[]\', this.checked )" />Check all' : '';
    if ($iCount) {
        while ($aData = mysql_fetch_array($rData)) {
            $sCode .= $oNew->showBrowseUnit($aData, true);
        }
    } else {
        $sCode .= '<div>There is are files</div>';
    }
开发者ID:BackupTheBerlios,项目名称:dolphin-dwbn-svn,代码行数:31,代码来源:browseMedia.php

示例11: COUNT

    $p_per_page = 10;
}
// ------------------------------
$sql = "SELECT COUNT(*) FROM ProfilesPolls WHERE `poll_approval` = '0'";
$p_num = db_arr($sql);
$p_num = $p_num[0];
$pages_num = ceil($p_num / $p_per_page);
$real_first_p = (int) ($page - 1) * $p_per_page;
$page_first_p = $real_first_p + 1;
$result = db_res("SELECT `id_profile`, `id_poll` FROM ProfilesPolls WHERE `poll_approval` = 0 LIMIT {$real_first_p}, {$p_per_page};");
$_page['header'] = "Polls PostModeration";
$_page['header_text'] = "Polls that need to be checked by admin";
$_page['js'] = 1;
$_page['js_name'] = 'profile_poll.js';
TopCodeAdmin();
ContentBlockHead("Created (and not yet approved) profile polls:");
?>

<center>
<?php 
echo ResNavigationRet('PollsUpper', 0);
?>
</center>

<form name="prf_form" method="post" action="post_mod_ppolls.php<?php 
$get_vars = get_vars();
echo substr($get_vars, 0, strlen($get_vars) - 1);
?>
">

<?php 
开发者ID:BackupTheBerlios,项目名称:dolphin-dwbn-svn,代码行数:31,代码来源:post_mod_ppolls.php

示例12: TopCodeAdmin

}
$_page['header'] = "Polls administration";
$_page['header_text'] = "";
TopCodeAdmin();
ContentBlockHead("Polls administration");
if (strlen($action_result)) {
    echo "<br><center><div class=\"err\">{$action_result}</div></center><br>\n";
}
MemberPrintPolls();
$m_per_row = 1;
if ((int) $_GET['edit_id'] != 0) {
    $poll_arr = db_arr("SELECT * FROM `polls_q` WHERE `ID` = " . (int) $_GET['edit_id']);
    $res_answers = db_res("SELECT `IDanswer`, `ID`, `Answer`, `Votes` FROM `polls_a` WHERE `ID` = " . (int) $_GET['edit_id'] . " ORDER BY `IDanswer` ASC");
}
ContentBlockFoot();
ContentBlockHead("Polls");
?>

<form method=post action="polls.php">

<table border=0 cellspacing=1 cellpadding=0 width=100% class="text">
	<tr>
		<td colspan=<?php 
echo $m_per_row;
?>
>
			<table cellspacing=0 class=text width=100%>
				<td class=panel><img src="<?php 
echo $site['icons'];
?>
artic_papr.gif"></td>
开发者ID:BackupTheBerlios,项目名称:dolphin-dwbn-svn,代码行数:31,代码来源:polls.php

示例13: ceil

$iPerPage = 10;
$iTotalPages = ceil($iTotalNum / $iPerPage);
$iCurPage = (int) $_GET['page'];
if ($iCurPage > $iTotalPages) {
    $iCurPage = $iTotalPages;
}
if ($iCurPage < 1) {
    $iCurPage = 1;
}
$sLimitFrom = ($iCurPage - 1) * $iPerPage;
$sqlOrder = " ORDER BY `medDate` DESC ";
$sqlLimit = "LIMIT {$sLimitFrom}, {$iPerPage}";
$sQuery = "\r\n\tSELECT\r\n\t\t`a`.`ID` as `medID`,\r\n\t\t`a`.`Owner` as `medProfId`,\r\n\t\t`a`.`Title` as `medTitle`,\r\n\t\t`a`.`Date` as `medDate`,\r\n\t\t`a`.`Views` as `medViews`,\r\n        `a`.`Approved`,\r\n\t\t`b`.`NickName`\r\n\tFROM `RayMovieFiles` as `a`\r\n\tLEFT JOIN `Profiles` as `b` ON\r\n\t\t`b`.`ID` = `a`.`Owner`\r\n\t{$sqlWhere}\r\n\t{$sqlOrder}\r\n\t{$sqlLimit}\r\n\t";
$rData = db_res($sQuery);
TopCodeAdmin();
ContentBlockHead("List of Video files");
echo browseCode();
ContentBlockFoot();
BottomCode();
function browseCode()
{
    global $site;
    global $rData;
    global $iTotalPages;
    global $iCurPage;
    $sCode = '<div id = "browseMain">';
    $sCode .= '<form method="post" action="' . $_SERVER['PHP_SELF'] . '">';
    if (mysql_num_rows($rData)) {
        while ($aData = mysql_fetch_array($rData)) {
            $sStyle = $aData['Approved'] == 'true' ? ' style="border: 2px solid #00CC00;"' : ' style="border: 2px solid #CC0000;"';
            $sProf = '<a href="' . $site['url'] . 'profile_edit.php?ID=' . $aData['medProfId'] . '">' . $aData['NickName'] . '</a>';
开发者ID:BackupTheBerlios,项目名称:dolphin-dwbn-svn,代码行数:31,代码来源:browseVideo.php

示例14: delete_item

    // Process deleting
    delete_item($_GET['ID'], $res);
    compileMenus();
    header('location:' . $_SERVER['PHP_SELF']);
}
if (isset($_POST['Add'])) {
    add_or_edit_item();
    compileMenus();
}
if ('reset' == $_GET['action']) {
    reset_menu();
    compileMenus();
    header('location:' . $_SERVER['PHP_SELF']);
}
TopCodeAdmin();
ContentBlockHead("Member Menu");
// Get a list of all fields.
$query_str = "SELECT * FROM `MemberMenu` ORDER BY `MenuOrder` ASC";
$res = db_res($query_str);
if ($_GET['action'] == 'upload') {
    display_form((int) $_GET['ID']);
} else {
    echo "<p class=text><a href=\"{$_SERVER['PHP_SELF']}?action=upload\">Add new item</a></p>\n";
    echo "<p class=text><a href=\"{$_SERVER['PHP_SELF']}?action=reset\">Reset items</a></p>\n";
    display_menu($res);
}
ContentBlockFoot();
BottomCode();
//display all current menu items
function display_menu($res)
{
开发者ID:BackupTheBerlios,项目名称:dolphin-dwbn-svn,代码行数:31,代码来源:memb_menu.php

示例15: ResNavigationRet

</tr>
<tr>
    <td colspan=7 align="center"><input class=no type=submit name="prf_form_submit" value="Send Message"></td>
</tr>
</table>
</form>

<center>
<?php 
echo ResNavigationRet('ProfilesLower', 0);
?>
</center>

<?php 
ContentBlockFoot();
ContentBlockHead("Legend");
?>
		<center>
			<table cellpadding="1" cellspacing="2" border="0" width="40%" align="center" class="brd">
			  <tr><td colspan="2" class="panel" align="right">Status of profile</td></tr>
			  <tr>
				<td class="prof_stat_Unconfirmed" width="30" style="border: 1px solid silver;">&nbsp;</td>
				<td class="brd" align="right">Unconfirmed</td>
              </tr>
			  <tr>
				<td class="prof_stat_Approval" width="30" style="border: 1px solid silver;">&nbsp;</td>
				<td class="brd" align="right">Approval</td>
              </tr>
			  <tr>
				<td bgcolor="#ffffff" width="30" style="border: 1px solid silver;">&nbsp;</td>
				<td class="brd" align="right">Active</td>
开发者ID:BackupTheBerlios,项目名称:dolphin-dwbn-svn,代码行数:31,代码来源:profiles.php


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