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


PHP ListView::MakeHtml方法代码示例

本文整理汇总了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");
开发者ID:iabing,项目名称:mzzyc,代码行数:31,代码来源:task_do.php

示例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("正在跳转到留言本&gt;&gt;", "{$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}'");
开发者ID:hensonvip,项目名称:ymroad,代码行数:31,代码来源:catalog_do.php

示例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;
开发者ID:BGCX262,项目名称:zyyhong-svn-to-git,代码行数:29,代码来源:makehtml_list_action.php

示例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);
开发者ID:soonfine,项目名称:leread,代码行数:31,代码来源:dedecollection.spidero.php

示例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();
开发者ID:hensonvip,项目名称:ymroad,代码行数:31,代码来源:timing_check.php


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