linclude/lib_insert.php 加下面代码
/**
* 调用公告信息
*
*
@access public
* @return string
*/
function
insert_shop_notice(){
$sql = 'SELECT code AS number, value AS value'
.
' FROM ' . $GLOBALS['ecs']->table('shop_config') .
" WHERE code='shop_notice'";
$row =
$GLOBALS['db']->GetRow($sql);
if ($row)
{
return $row["value"];
}
}
调用方法:
在你想要的位置调用 {insert name='shop_notice'}