本文整理汇总了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();