本文整理汇总了PHP中ContentBlockFoot函数的典型用法代码示例。如果您正苦于以下问题:PHP ContentBlockFoot函数的具体用法?PHP ContentBlockFoot怎么用?PHP ContentBlockFoot使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了ContentBlockFoot函数的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: db_res
$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`.`Listens` as `medListens`,\r\n\t\t`a`.`Approved`,\r\n\t\t`b`.`NickName`\r\n\tFROM `Ray" . $sType . "Files` 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 music 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>';
$sCode .= '<div class="browseUnit"' . $sStyle . '>';
$sCode .= '<div class="browseCheckbox"><input type="checkbox" name="Check[]" value="' . $aData['medID'] . '"></div>';
示例2: panelSection
function panelSection($header, $content, $padding = 10)
{
ob_start();
ContentBlockHead("{$header}");
echo $content;
ContentBlockFoot();
$ret = ob_get_contents();
ob_end_clean();
return $ret;
}
示例3: Main
/**
* Generating Main page code
*
* @return ALL presentation of data
*/
function Main()
{
$oClassifieds = new BxDolClassifieds();
$oClassifieds->sCurrBrowsedFile = 'manage_classifieds.php';
$oClassifieds->bAdminMode = TRUE;
print $oClassifieds->PrintCommandForms();
if ($_REQUEST) {
if (isset($_REQUEST['action'])) {
if ((int) $_REQUEST['action'] == 3) {
print $oClassifieds->PrintFilterForm();
print $oClassifieds->PrintFilteredAllAdvertisements();
ContentBlockFoot();
BottomCode();
return;
} elseif ((int) $_REQUEST['action'] == 2) {
$iClassifiedSubID = (int) $_REQUEST['FilterSubCat'];
print $oClassifieds->PrintSubRecords($iClassifiedSubID, TRUE);
ContentBlockFoot();
BottomCode();
return;
} elseif ((int) $_REQUEST['action'] == 1) {
$iClassifiedID = (int) $_REQUEST['FilterCat'];
print $oClassifieds->PrintAllSubRecords($iClassifiedID);
ContentBlockFoot();
BottomCode();
return;
}
} elseif (isset($_GET['bClassifiedID'])) {
$iClassifiedID = (int) $_GET['bClassifiedID'];
if ($iClassifiedID > 0) {
print $oClassifieds->PrintAllSubRecords($iClassifiedID);
print $oClassifieds->PrintBackLink();
ContentBlockFoot();
BottomCode();
return;
}
} elseif (isset($_GET['bSubClassifiedID'])) {
$iSubClassifiedID = (int) $_GET['bSubClassifiedID'];
if ($iSubClassifiedID > 0) {
print $oClassifieds->PrintSubRecords($iSubClassifiedID, TRUE);
print $oClassifieds->PrintBackLink();
ContentBlockFoot();
BottomCode();
return;
}
} elseif (isset($_REQUEST['iAction'])) {
$sAddMainCatSuccC = MsgBox(_t('_AddMainCategory successfully added'));
$sAddMainCatFailC = MsgBox(_t('_Failed to Insert AddMainCategory'));
$sAddSubCatSuccC = MsgBox(_t('_AddSubCategory successfully added'));
$sAddSubCatFailC = MsgBox(_t('_Failed to Insert AddSubCategory'));
$sDelMainCatSuccC = MsgBox(_t('_DeleteMainCategory was successfully'));
$sDelMainCatFailC = MsgBox(_t('_Failed to DeleteMainCategory'));
$sDelSubCatSuccC = MsgBox(_t('_DeleteSubCategory was successfully'));
$sDelSubCatFailC = MsgBox(_t('_Failed to DeleteSubCategory'));
switch ($_REQUEST['iAction']) {
case 'AddMainCategory':
$sName = process_db_input($_REQUEST['name1']);
$sDescription = process_db_input($_REQUEST['description1']);
$sCustomName1 = process_db_input($_REQUEST['CustomName1']);
$sCustomName2 = process_db_input($_REQUEST['CustomName2']);
$sCustomAction1 = process_db_input($_REQUEST['CustomAction1']);
$sCustomAction2 = process_db_input($_REQUEST['CustomAction2']);
if ($sName == '') {
print $sAddMainCatFailC;
break;
}
$sqlRes = InsertC($sName, $sDescription, $sCustomName1, $sCustomName2, $sCustomAction1, $sCustomAction2);
print mysql_affected_rows() != 0 ? $sAddMainCatSuccC : $sAddMainCatFailC;
break;
case 'AddSubCategory':
if ($_REQUEST['FilterCat'] and isset($_REQUEST['name2'])) {
$sName = process_db_input($_REQUEST['name2']);
$sDescription = process_db_input($_REQUEST['description2']);
$sCategoryID = process_db_input($_REQUEST['FilterCat']);
if ((int) $sCategoryID < 1) {
print $sAddSubCatFailC;
break;
}
$sqlRes = InsertCS($sCategoryID, $sName, $sDescription);
print mysql_affected_rows() != 0 ? $sAddSubCatSuccC : $sAddSubCatFailC;
}
break;
case 'DeleteMainCategory':
if ($_REQUEST['FilterCat']) {
$sCategoryID = process_db_input($_REQUEST['FilterCat']);
$query = "DELETE FROM `Classifieds` WHERE `ID` = '{$sCategoryID}'";
$sqlRes = db_res($query);
print mysql_affected_rows() != 0 ? $sDelMainCatSuccC : $sDelMainCatFailC;
}
break;
case 'DeleteSubCategory':
if ($_REQUEST['SubClassified']) {
$sCategoryID = process_db_input($_REQUEST['SubClassified']);
$query = "DELETE FROM `ClassifiedsSubs` WHERE `ClassifiedsSubs`.`ID` = {$sCategoryID}";
$sqlRes = db_res($query);
//.........这里部分代码省略.........
示例4: PreviewMessage
function PreviewMessage()
{
global $site;
$body_html = process_pass_data($_POST['body_html']);
ContentBlockHead("Preview");
?>
<center>
<iframe id="IFramePreview" name="IFramePreview" frameborder="1" scrolling="yes" height="200" width="500" src="<?php
echo $site['url_admin'];
?>
notify_preview.php">
</iframe>
</center>
<form name="form_preview" action="<?php
echo $site['url_admin'];
?>
notify_preview.php" method="POST" target="IFramePreview">
<input type="hidden" name="post_data" value="<?php
echo htmlspecialchars($body_html);
?>
">
</form>
<script language="JavaScript">
<!--
document.forms['form_preview'].submit();
-->
</script>
<?php
ContentBlockFoot();
}
示例5: membershipActions
//.........这里部分代码省略.........
</td>
</tr>
</table>
</td>
</tr>
<?php
if (!is_null($arrAction['AdditionalParamName'])) {
?>
<tr>
<td class="caption"><?php
echo htmlspecialchars($arrAction['AdditionalParamName']);
?>
</td>
<td class="additionalParam">
<input style="width: 130px" type="text" name="additionalParamValue" value="<?php
echo htmlspecialchars($arrAction['AdditionalParamValue']);
?>
" />
</td>
</tr>
<?php
}
?>
<tr>
<td colspan="2" align="center">
<input style="width: 160px" type="submit" value="Save action settings" onclick="clearFormUnlimited('updateActionForm<?php
echo $ID;
?>
')"/>
</td>
</tr>
</table>
</div>
<script type="text/javascript">
//<![CDATA[
Zapatec.Calendar.setup({
firstDay : 1,
weekNumbers : true,
showOthers : true,
showsTime : true,
timeFormat : "24",
step : 2,
range : [1900.01, 2999.12],
electric : false,
singleClick : true,
inputField : "dateStart<?php
echo $ID;
?>
",
button : "dateStart<?php
echo $ID;
?>
trigger",
ifFormat : "%Y-%m-%d %H:%M:%S",
daFormat : "%Y/%m/%d",
align : "Br"
});
Zapatec.Calendar.setup({
firstDay : 1,
weekNumbers : true,
showOthers : true,
showsTime : true,
timeFormat : "24",
step : 2,
range : [1900.01, 2999.12],
electric : false,
singleClick : true,
inputField : "dateEnd<?php
echo $ID;
?>
",
button : "dateEnd<?php
echo $ID;
?>
trigger",
ifFormat : "%Y-%m-%d %H:%M:%S",
daFormat : "%Y/%m/%d",
align : "Br"
});
//]]>
</script>
</form>
<?php
}
if (!count($arrLevelActions)) {
?>
<div align="center">No actions allowed for this membership</div>
<?php
}
?>
<!--
</div></div>
<div style="padding: 0"><img src="images/foot_block_green.gif" height="6" width="602"></div>
-->
<?php
ContentBlockFoot();
$contents = ob_get_contents();
ob_end_clean();
return $contents;
}
示例6: PrintData
/**
* print list of the table date
*/
function PrintData()
{
global $fields_types;
global $fields_titles;
global $fields_sizes;
global $fields_align;
global $class_titles;
global $class_data;
global $class_error;
global $table_width;
global $use_table;
global $allow_delete;
global $allow_edit;
$query = "SELECT * FROM {$use_table}";
$res = db_res($query);
if (!mysql_num_rows($res)) {
echo "<div align=center class=\"err\">No data available</div>";
return;
}
echo "<table cellspacing=2 cellpadding=1 class=\"text\" width=\"{$table_width}\" align=\"center\">\n\n";
// print titles
echo "<tr class=\"{$class_titles}\">\n";
if ($allow_delete) {
echo "<form name=\"rows_form\" method=\"POST\" action=\"quotes.php\">";
echo "<td> </td>\n";
}
foreach ($fields_titles as $k => $v) {
echo "\t<td width=\"{$fields_sizes[$k]}\" align=\"{$fields_align[$k]}\">{$v}</td>\n";
}
if ($allow_edit) {
echo "<td> </td>\n";
}
echo "</tr>\n\n";
// print data
while ($row = mysql_fetch_array($res)) {
if ($row[get_index_fieldname()] == $_GET['index_field'] || $row[get_index_fieldname()] == $_POST['index_field']) {
echo "<tr class=\"{$class_error}\">\n";
} else {
echo "<tr class=\"{$class_data}\">\n";
}
// checkboxes
if ($allow_delete) {
echo "<td align=center><input type=checkbox name=\"" . $row[get_index_fieldname()] . "\"></td>\n";
}
// data
foreach ($fields_sizes as $k => $v) {
echo "\t<td width=\"{$v}\" align=\"{$fields_align[$k]}\">" . process_text_output($row[$k]) . "</td>\n";
}
// edit button
if ($allow_edit) {
echo "<td align=center><a href=\"?action=edit&index_field=" . $row[get_index_fieldname()] . "\">Edit</a></td>\n";
}
echo "</tr>\n\n";
}
echo "</table>\n\n";
if ($allow_delete) {
echo get_checkbox_menu() . "</form>";
}
ContentBlockFoot();
}