本文整理汇总了PHP中iefixStart函数的典型用法代码示例。如果您正苦于以下问题:PHP iefixStart函数的具体用法?PHP iefixStart怎么用?PHP iefixStart使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了iefixStart函数的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getUserLink
?>
- <?php
echo getUserLink($modData["adcCreator"]);
?>
:
<?php
echo formatText($modData["adcText"]);
?>
</div>
<?php
}
mysql_free_result($modResult);
?>
<div class="sep a_center">
<?php
iefixStart();
$commentName = "modMessage";
$commentNoOptions = true;
$commentRows = 8;
include INCLUDES . "mod_comment.php";
iefixEnd();
?>
</div>
<div class="sep a_center">
<input class="submit" type="submit" name="submitLog" value="Add Message" />
</div>
</form>
<?php
echo iefixEnd();
?>
</div>
示例2: sprintf
<div class="header">
<div class="header_title">
<?php
echo _DONATIONS;
?>
<div class="subheader"><?php
echo sprintf(_DONATION_SUBTITLE, $_config["galName"]);
?>
</div>
</div>
</div>
<div class="container">
<?php
echo iefixStart();
?>
<div class="header f_left"><?php
echo _DONATION_ONETIME;
?>
</div>
<div class="header f_right a_right"><?php
echo _DONATION_SUBSCRIBE;
?>
</div>
<div class="clear"> </div>
<?php
echo iefixEnd();
?>
<div class="leftside">
示例3: showKeywordSubcatEdit
function showKeywordSubcatEdit($keywords, $listId, $parentId = 0, $parentKeyName = "", $parentLastKeyName = "")
{
global $requiredTabs, $firstKeywordId;
$noSubcats = true;
foreach ($keywords as $keyData) {
if (isset($keyData["subcats"])) {
$noSubcats = false;
break;
}
}
if ($parentId == 0) {
?>
<div class="clear"> </div>
<div class="sep notsowide mar_left mar_bottom">
Add more keyword groups to the Root separated by ;
<br />
<input class="notsowide" name="addKeywordsUnder<?php
echo $parentId;
?>
" type="text" />
</div>
<?php
}
foreach ($keywords as $keyData) {
$tabid = generateId("kwcache_tab");
$keyName = "• " . $parentKeyName . $keyData["keyWord"];
$nonSelectable = preg_match('/\\@$/', $keyData["keyWord"]);
$keyData["keyWord"] = preg_replace('/\\@$/', "", $keyData["keyWord"]);
?>
<div class="f_left">
<div class="tab normaltext" id="<?php
echo $tabid;
?>
"
onclick="open_tab(this,'keywords_<?php
echo $parentId;
?>
','keywordTab_<?php
echo $keyData["keyid"];
?>
')">
<a href="<?php
echo url("keywords", array("delete" => $keyData["keyid"]));
?>
">
<?php
echo getIMG(url() . "images/emoticons/keydelete.gif", 'alt="del" title="' . _KEYWORDS_DELETE . '" ' . 'onmouseout="this.style.background=\'none\'" ' . 'onmouseover="this.style.background=\'#fff\'"');
?>
</a>
<a href="<?php
echo url("keywords", array("edit" => $keyData["keyid"]));
?>
">
<?php
echo getIMG(url() . "images/emoticons/keyedit.gif", 'alt="edit" title="' . _KEYWORDS_EDIT . '" ' . 'onmouseout="this.style.background=\'none\'" ' . 'onmouseover="this.style.background=\'#fff\'"');
?>
</a>
<?php
echo htmlspecialchars($keyData["keyWord"]);
if ($nonSelectable) {
echo "@";
}
?>
</div>
</div>
<?php
}
?>
<div class="clear"> </div>
<?php
foreach ($keywords as $keyData) {
$keyData["keyWord"] = preg_replace('/\\@$/', "", $keyData["keyWord"]);
unset($requiredTabs[$keyData["keyid"]]);
?>
<div style="display: none" id="keywordTab_<?php
echo $keyData["keyid"];
?>
">
<?php
iefixStart();
?>
<div class="hline"> </div>
<div class="hline"> </div>
<div class="sep notsowide_fix mar_left mar_bottom">
Add more keywords to the group
<b><?php
echo $parentKeyName . htmlspecialchars($keyData["keyWord"]);
?>
</b>
separated by ;
<br />
<input class="notsowide_fix" name="addKeywordsUnder<?php
echo $keyData["keyid"];
?>
" type="text" />
</div>
<div class="clear"> </div>
<?php
iefixEnd();
//.........这里部分代码省略.........
示例4: putSidebarRandom
function putSidebarRandom()
{
global $_auth, $_config;
iefixStart();
$needRefresh = false;
$objid = 0;
$rndResult = sql_query("SELECT * FROM `randomObjects`" . dbWhere(array("rndFilterPtn" => $_auth["useObjFilters"])) . "LIMIT 1");
if ($rndData = mysql_fetch_assoc($rndResult)) {
if (time() > $rndData["rndTimeout"]) {
$needRefresh = true;
// Random object has timed-out
} else {
$objid = $rndData["rndObject"];
}
} else {
$needRefresh = true;
}
mysql_free_result($rndResult);
if ($needRefresh) {
$count = mysql_result(sql_query("SELECT MAX(`objid`) FROM `objects`"), 0);
$where = "`objPending` = '0' AND `objDeleted` = '0'";
applyObjFilters($where);
// We would give it 5 chances to pick a random submission :)
// Actually there's a 99.999% possibility it would pick the good
// one at first try.
$objid = 0;
for ($i = 1; $i <= 5; $i++) {
$id = mt_rand(1, $count);
$_tmpResult = sql_query("SELECT `objid` FROM `objects` " . "WHERE ({$where}) AND `objid` = '{$id}' LIMIT 1");
if (mysql_num_rows($_tmpResult) > 0) {
$objid = $id;
break;
}
}
$timeout = time() + 60;
// Will expire in 1 minute
sql_query("LOCK TABLES `randomObjects` WRITE");
//sql_query( "BEGIN" );
sql_query("DELETE FROM `randomObjects`" . dbWhere(array("rndFilterPtn" => $_auth["useObjFilters"])));
sql_query("INSERT INTO `randomObjects`" . dbValues(array("rndFilterPtn" => $_auth["useObjFilters"], "rndObject" => $objid, "rndTimeout" => $timeout)));
sql_query("UNLOCK TABLES");
//sql_query( "COMMIT" );
}
// Show the thumbnail of that `objid`.
$select = "SELECT * FROM `objects`";
$where = "`objid` = '{$objid}'";
$limit = 1;
unset($order);
include INCLUDES . "mod_minigallery.php";
iefixEnd();
}
示例5: showComment
function showComment($comData, $level, $showParent = false, $markAsReadId = '', $commentCountId = '', $markAsReadId2 = '')
{
global $_config, $_signatureCache, $_auth, $_cmd, $_currentPageURL;
// _HACKFIX - facsimilnym 2011-09-05
// Workaround for the "blank" useDateFormat that ~140,000 users have.
// Setting it up here, since there's like 5 code paths.
if (!isset($_auth["useDateFormat"]) || $_auth["useDateFormat"] == "") {
$_auth["useDateFormat"] = "Y-m-d \\@ g:i A";
}
if (isset($comData["pmsid"])) {
$comData["comid"] = $comData["pmsid"];
$comData["comCreator"] = $comData["pmsCreator"];
$comData["comNoEmoticons"] = $comData["pmsNoEmoticons"];
$comData["comNoSig"] = $comData["pmsNoSig"];
$comData["comNoBBCode"] = $comData["pmsNoBBCode"];
$comData["comSubject"] = $comData["pmsTitle"];
$comData["comSubjectDateHide"] = true;
$comData["comComment"] = $comData["pmsComment"];
$comData["comObj"] = $comData["pmsObj"];
$comData["comObjType"] = "pms";
$comData["comSubmitDate"] = $comData["pmsSubmitDate"];
$comData["comSubmitIp"] = $comData["pmsSubmitIp"];
$comData["comLastEdit"] = $comData["pmsLastEdit"];
$comData["comEditIp"] = $comData["pmsEditIp"];
$comData["comTotalEdits"] = $comData["pmsTotalEdits"];
$comData["comPmUser"] = $comData["pmsPmUser"];
}
if (isTwit($comData["comCreator"])) {
return;
}
if (!isLoggedIn()) {
$result = sql_query("SELECT `useGuestAccess` FROM `useExtData`" . dbWhere(array("useEid" => $comData["comCreator"])));
if (!mysql_result($result, 0)) {
return;
}
}
$commentID = "yg-cmt" . $comData["comid"];
$instantReplyOuterId = $commentID . "InstantReplyOuter";
$instantReplyId = $commentID . "InstantReplyId";
if (!isset($comData["comNoEmoticons"])) {
$comData["comNoEmoticons"] = false;
}
if (!isset($comData["comNoSig"])) {
$comData["comNoSig"] = false;
}
if (!isset($comData["comNoBBCode"])) {
$comData["comNoBBCode"] = false;
}
if (isset($comData["pmsid"])) {
if ($comData["comCreator"] != $_auth["useid"] && $comData["comPmUser"] != $_auth["useid"]) {
echo '<div class="container2">' . _PM_NO_ACCESS . '</div>';
return;
}
}
$levellim = $level < 8 ? $level : 8;
for ($i = 0; $i <= $levellim; $i++) {
?>
<div class="<?php
echo $i == $levellim ? "pad_top" : "";
echo $level > 0 && $i < $levellim ? "cmt_border_left" : "";
?>
">
<?php
}
// if($_cmd[0] != "comment")
echo '<a name="comment' . $comData["comid"] . '"></a>';
// echo '<div'.($markAsReadId != "" ? ' id="'.$markAsReadId.'"' : "" ).'>'; // Comment outer
// echo '<div'.($markAsReadId != "" ? ' id="'.$markAsReadId.'_"' : "" ).' class="container2">'; // Comment body
echo '<div class="container2">';
// Comment body
iefixStart();
// display parent comment
if ($showParent && isset($comData["comObjType"]) && $comData["comObjType"] == "com") {
$result = sql_query("SELECT * FROM `comments` WHERE `comid` = '" . $comData["comObj"] . "' LIMIT 1");
if ($parData = mysql_fetch_assoc($result)) {
?>
<div class="caption reminder_cap">
<?php
echo sprintf(_WROTE, getUserLink($parData["comCreator"]));
?>
:
</div>
<div class="reminder">
<?php
echo formatText($parData["comComment"], $parData["comNoEmoticons"], $parData["comNoBBCode"]);
?>
</div>
<?php
}
} elseif ($showParent && isset($comData["pmsid"])) {
$result = sql_query("SELECT * FROM `pms` WHERE `pmsid` = '" . $comData["comObj"] . "' LIMIT 1");
if ($parData = mysql_fetch_assoc($result)) {
if ($parData["pmsCreator"] == $_auth["useid"] || $parData["pmsPmUser"] == $_auth["useid"]) {
?>
<div class="caption reminder_cap">
<?php
echo sprintf(_WROTE, getUserLink($parData["pmsCreator"]));
?>
:
</div>
//.........这里部分代码省略.........
示例6: showThumbnails
//.........这里部分代码省略.........
}
$tmpOffset = $offset < 0 ? 0 : $offset;
$tmpLimit = $offset < 0 ? $limit + $offset : $limit;
$limit1 = $limit;
if ($params["countDisabled"]) {
$limit1++;
}
$query = "{$selectCmd} WHERE " . $params["where"] . " " . $params["having"] . " {$orderString} LIMIT {$tmpOffset}, {$limit1}";
/*
if( $_auth[ "useid" ] == 7 )
{
echo $query;
}
*/
$result = sql_query($query);
while ($objData = mysql_fetch_assoc($result)) {
$gallery[$objData["objid"]] = $objData;
}
// Calculate the total amount of submissions that's possible to browse
// through with the current options.
if ($params["countDisabled"]) {
$totalCount = $offset + $limit;
if (count($gallery) > $limit) {
$totalCount++;
}
} else {
$result = sql_query("SELECT FOUND_ROWS()");
$totalCount = $totalFolders + mysql_result($result, 0);
}
// Generate the navigation bar.
if ($_cmd[0] == "") {
$galleryNavs = "";
} else {
iefixStart();
ob_start();
$tmpOffset = isset($_GET["offset"]) ? intval($_GET["offset"]) : 0;
navControls($tmpOffset, $limit, $totalCount);
?>
<div class="a_center">
<?php
if ($params["quickSearch"]) {
?>
<form action="<?php
echo url("search");
?>
" method="get">
<?php
foreach ($_GET as $key => $value) {
if ($key != "keywordList" && $key != "offset") {
echo '<input name="' . htmlspecialchars($key) . '" type="hidden" value="' . htmlspecialchars($value) . '" />';
}
}
?>
<select name="keywordList" onchange="this.form.submit();">
<option value=""></option>
<option value=""><?php
echo _SEARCH;
?>
</option>
<?php
// By default, select the first root keyword group.
$result = sql_query("SELECT `keyid` FROM `keywords` " . "WHERE `keySubcat` = '0' ORDER BY `keyWord` LIMIT 1");
if (mysql_num_rows($result)) {
$mainSubcat = mysql_result($result, 0);
} else {
$mainSubcat = 0;