欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  php教程

xotpl框架

程序员文章站 2023-12-24 23:30:45
...

?php define(IN_ECS, true); require(dirname(dirname(__FILE__)) . /includes/init.php); $xoopsOption[template_main] = xotpl:mod_nv#nv_dapai.xotpl; $xoopsOption[xoops_pagetitle]=现在注册少一块-现金红包送给你哟 ; include XOOPS_ROOT_PATH./yheader

define('IN_ECS', true);
require(dirname(dirname(__FILE__)) . '/includes/init.php');

$xoopsOption['template_main'] = "xotpl:mod_nv#nv_dapai.xotpl";
$xoopsOption['xoops_pagetitle']="现在注册少一块-现金红包送给你哟" ;
include XOOPS_ROOT_PATH."/yheader.php";
$xoops->services['theme']->addStylesheet( 'css/red.css' );
$hnd = & xoops_getmodulehandler("goods","goods");

$crit = new CriteriaCompo(new Criteria('is_on_sale',1));
$crit->add(new Criteria('is_delete',0));

$crit->setSort('rand()');
$crit->setLimit(12);
$xoops_vars['goods'][0] = $hnd->getAll($crit,array('goods_name','goods_img','shop_price','market_price'),false);

$infos['goods'] = $xoops_vars['goods'];
$xoopsTpl->assign('infos', $infos); // 分类树
$xoopsTpl->assign('cart_show', insert_cartshow()); // 分类树
unset($xoops_vars);
include XOOPS_ROOT_PATH."/footer.php";
?>
services['theme']->addStylesheet( 'css/red.css' );
$hnd = & xoops_getmodulehandler("goods","goods");

$crit = new CriteriaCompo(new Criteria('is_on_sale',1));
$crit->add(new Criteria('is_delete',0));

$crit->setSort('rand()');
$crit->setLimit(12);
$xoops_vars['goods'][0] = $hnd->getAll($crit,array('goods_name','goods_img','shop_price','market_price'),false);

$infos['goods'] = $xoops_vars['goods'];
$xoopsTpl->assign('infos',      $infos); // 分类树
$xoopsTpl->assign('cart_show',      insert_cartshow()); // 分类树
unset($xoops_vars);
include XOOPS_ROOT_PATH."/footer.php";
?>

上一篇:

下一篇: