smarty foreach 函数**/
$tpl = new Smarty();
$tpl->template_dir = $cfg['path']['template'];
$tpl->compile_dir = $cfg['path']['root'] . 'www.111com.net/111cn/';
$tpl->compile_check = $cfg['debug'];
$tpl->debugging = false;
$tpl->caching = 0;
$tpl->cache_lifetime = 6000;
$tpl->left_delimiter = '';
//配置smarty
$Db = new Db();
try{
$query = $Db->query($sql);
if( $Db->rows( $query ) )
{
$array = $Db->fetch( $query,0 );
foreach( $array as $v =>$_v )
{
$List[$v]['id'] = $_v[0];
$List[$v]['cntitle'] = $_v[2];
$List[$v]['i'] = $i++;
}
}
}catch( Execption $e ){
MessAge('调用参失败!');
}
//php 处理与程序
tpl->assign('jsMenu_Deng', $List);
//下面为smarty模板处理foreach
subcat[] = new Array("","","");
var onecount=;
//其实很简单就是把数据用php保存到数据,然后再由smarty foreach 来实现。
?>
韩剧再婚皇后阿里云盘全集高清1080P资源链接-韩剧再婚皇后免费阿里云盘资源下载4K高清无删减版链接
poipiku网站如何打开-poipiku官网网页版访问入口
明日方舟:终末地-云游戏畅玩入口-明日方舟:终末地-网页版在线直连地址
poki在线小游戏网页版-poki免费游戏大全入口
poki游戏入口-点开即玩-poki游戏-在线免费畅玩
原神akt大佬资源viciNeko入口链接-原神akt大佬资源网页vicineko入口链接分享