本文整理汇总了PHP中ListView::Display方法的典型用法代码示例。如果您正苦于以下问题:PHP ListView::Display方法的具体用法?PHP ListView::Display怎么用?PHP ListView::Display使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ListView
的用法示例。
在下文中一共展示了ListView::Display方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: on
$sql = "select a.* from sline_model_archive a left join sline_allorderlist b on(a.id=b.aid and b.typeid={$typeid} ) {$where} order by b.displayorder asc, a.modtime desc,a.addtime desc ";
}
$destinfo = TongYong::getDestSeoInfo($module_dest_table, $dest_id);
//目的地优化信息;
$seoinfo = TongYong::getSeoInfo($destinfo, $attrid, $typeid);
//组合搜索标题
//下级目的地
$destlist = Helper_Archive::getChildDest($dest_id, $typeid);
$pv = new ListView($typeid);
$pv->pagesize = 16;
//分页条数.
$pv->SetSql($sql);
//seo变量赋值
foreach ($destinfo as $k => $v) {
$pv->Fields[$k] = $v;
}
foreach ($seoinfo as $k => $v) {
$pv->Fields[$k] = $v;
}
$pv->Fields['typeid'] = $typeid;
$pv->Fields['modulename'] = $module_name;
$pv->Fields['modulepinyin'] = $module_pinyin;
$pv->SetParameter('destid', $dest_id);
$pv->SetParameter('attrid', $attrid);
$templet = Helper_Archive::getUseTemplet('line_list');
//获取使用模板
$templet = SLINETEMPLATE . "/" . $cfg_df_style . "/tongyong/tongyong_index.htm";
//默认模板
$pv->SetTemplet($templet);
$pv->Display();
exit;
示例2: SgListView
}
if (!empty($keyword)) {
$cArr['keyword'] = $keyword;
}
include DEDEINC . "/arc.sglistview.class.php";
$lv = new SgListView($tid, $cArr);
} else {
include DEDEINC . "/arc.listview.class.php";
$lv = new ListView($tid);
//对设置了会员级别的栏目进行处理
if (isset($lv->Fields['corank']) && $lv->Fields['corank'] > 0) {
require_once DEDEINC . '/memberlogin.class.php';
$cfg_ml = new MemberLogin();
if ($cfg_ml->M_Rank < $lv->Fields['corank']) {
$dsql->Execute('me', "SELECT * FROM `#@__arcrank` ");
while ($row = $dsql->GetObject('me')) {
$memberTypes[$row->rank] = $row->membername;
}
$memberTypes[0] = "游客或没权限会员";
$msgtitle = "你没有权限浏览栏目:{$lv->Fields['typename']} !";
$moremsg = "这个栏目需要 <font color='red'>" . $memberTypes[$lv->Fields['corank']] . "</font> 才能访问,你目前是:<font color='red'>" . $memberTypes[$cfg_ml->M_Rank] . "</font> !";
include_once DEDETEMPLATE . '/plus/view_msg_catalog.htm';
exit;
}
}
}
if ($lv->IsError) {
ParamError();
}
$lv->Display();