本文整理匯總了PHP中ListView::MakeHtml方法的典型用法代碼示例。如果您正苦於以下問題:PHP ListView::MakeHtml方法的具體用法?PHP ListView::MakeHtml怎麽用?PHP ListView::MakeHtml使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類ListView
的用法示例。
在下文中一共展示了ListView::MakeHtml方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: array
require_once DEDEINC . '/arc.listview.class.php';
$notallowArr = array('dopost', 'f', 'del', 'curpage', 'morejob');
$jumpurl = GetNextUrl($notallowArr);
if (empty($typeid)) {
ShowMsg("<b>完成欄目更新任務!完成所有更新任務!</b>", "close::tgtable");
exit;
}
$topids = explode(',', GetTopids($typeid));
if (empty($curpage)) {
$curpage = 0;
}
$tid = $topids[$curpage];
if (isset($cfg_Cs[$tid]) && $cfg_Cs[$tid][1] > 0) {
require_once DEDEINC . "/arc.listview.class.php";
$lv = new ListView($tid);
$lv->MakeHtml();
$lv->Close();
} else {
require_once DEDEINC . "/arc.sglistview.class.php";
$lv = new SgListView($tid);
$lv->MakeHtml();
$lv->Close();
}
if ($curpage >= count($topids) - 1) {
if (!empty($doposttmp)) {
$jumpurl = preg_replace("#doposttmp|nextdotmp#", 'del', $jumpurl);
$jumpurl .= "&dopost={$doposttmp}&nextdo={$nextdotmp}";
ShowMsg("完成欄目:{$tid} 更新!<br /><b>完成欄目更新任務,繼續執行後續任務...</b>", $jumpurl, 0, 500);
exit;
} else {
ShowMsg("完成欄目:{$tid} 更新!<br /><b>完成欄目更新任務,完成所有更新任務!</b>", "close::tgtable");
示例2: header
}
header("location:{$gurl}?channelid={$channelid}&cid={$cid}");
exit;
} else {
if ($dopost == "viewTemplet") {
header("location:tpl.php?path=/" . $cfg_df_style);
exit;
} else {
if ($dopost == "guestbook") {
ShowMsg("正在跳轉到留言本>>", "{$cfg_phpurl}/guestbook.php?gotopagerank=admin");
exit;
} else {
if ($dopost == "viewSgPage") {
require_once DEDEINC . "/arc.listview.class.php";
$lv = new ListView($cid);
$pageurl = $lv->MakeHtml();
ShowMsg("更新緩衝,請稍後...", $pageurl);
exit;
} else {
if ($dopost == "upRank") {
//檢查權限許可
CheckPurview('t_Edit,t_AccEdit');
//檢查欄目操作許可
CheckCatalog($cid, "你無權更改本欄目!");
$row = $dsql->GetOne("SELECT reid,sortrank FROM #@__arctype WHERE id='{$cid}'");
$reid = $row['reid'];
$sortrank = $row['sortrank'];
$row = $dsql->GetOne("SELECT sortrank FROM #@__arctype WHERE sortrank<={$sortrank} AND reid={$reid} ORDER BY sortrank DESC ");
if (is_array($row)) {
$sortrank = $row['sortrank'] - 1;
$dsql->ExecuteNoneQuery("UPDATE #@__arctype SET sortrank='{$sortrank}' WHERE id='{$cid}'");
示例3:
if($lv->TypeLink->TypeInfos['ispart']==0
&& $lv->TypeLink->TypeInfos['isdefault']!=-1)
{
$ntotalpage = $lv->TotalPage;
}else{
$ntotalpage = 1;
}
//如果欄目的文檔太多,分多批次更新
if($ntotalpage<=$maxpagesize || $lv->TypeLink->TypeInfos['ispart']!=0
|| $lv->TypeLink->TypeInfos['isdefault']==-1)
{
$lv->MakeHtml();
$finishType = true;
}
else
{
$lv->MakeHtml($mkpage,$maxpagesize);
$finishType = false;
$mkpage = $mkpage + $maxpagesize;
if( $mkpage >= ($ntotalpage+1) ) $finishType = true;
}
}//!empty
$nextpage = $pageno+1;
示例4: dirname
$homeFile = dirname(__FILE__) . "/../html/index.html";
$cfg_autoindex_time = intval($cfg_autoindex_time) >= 0 ? intval($cfg_autoindex_time) : 600;
if (abs(time() - @filemtime($homeFile)) > $cfg_autoindex_time) {
//生成首頁 by QISIP 2014-04-01
$tid = '';
$dsql->ExecuteNoneQuery("Delete From `#@__arccache`");
include_once DEDEINC . "/arc.partview.class.php";
$row = $dsql->GetOne("Select * From `#@__homepageset`");
$row['templet'] = MfTemplet($row['templet']);
$pv = new PartView();
$pv->SetTemplet($cfg_basedir . $cfg_templets_dir . "/" . $row['templet']);
$pv->SaveToHtml('../html/index.html');
$dsql->Close();
//生成sitemap by QISIP 2014-04-01
$sitemaptemplet = $cfg_df_style . "/sitemap.htm";
$pv2 = new PartView();
$pv2->SetTemplet($cfg_basedir . $cfg_templets_dir . "/" . $sitemaptemplet);
$sitemapFile = "../sitemap.html";
$pv2->SaveToHtml($sitemapFile);
//生成排行榜 by QISIP 2014-04-03
$tid = '375';
$paihangbangtemplet = $cfg_df_style . "/paihang.htm";
$paihangbangtemplet = $cfg_basedir . $cfg_templets_dir . "/" . $paihangbangtemplet;
if (file_exists($paihangbangtemplet)) {
$lv = new ListView($tid);
$reurl = $lv->MakeHtml();
$lv->Close();
}
}
}
setcookie("upflag", '1', time() + $co_oldpertime);
示例5: foreach
$pv->SetTemplet($cfg_basedir . $cfg_templets_dir . "/" . $row['templet']);
$pv->SaveToHtml(DEDEROOT . '/index.html');
//更新主頁
$query = "Update `#@__check_time` set check_time={$now} where id='" . $row1['id'] . "' ";
//更新審核時間
echo "更新審核時間……";
$dsql->ExecuteNoneQuery($query);
//ShowMsg("1");
}
//if
}
//if
}
//if
}
//while
//更新欄目開始
echo "更新欄目開始……";
if ($is_check == 1) {
require_once DEDEROOT . "/data/cache/inc_catalog_base.inc";
require_once DEDEINC . "/channelunit.func.php";
require_once DEDEINC . "/arc.listview.class.php";
foreach ($typediarr as $typeid) {
$lv = new ListView($typeid);
//$reurl = $lv->MakeHtml();
$reurl = $lv->MakeHtml(1, $maxpagesize);
}
}
//更新欄目結束
echo "更新欄目結束……";
AjaxHead();