起风了

“路海长 青夜旷 越过群山追斜阳”

ajax实现改变状态和删除无刷新

1.  01.php为主程序,调用smarty模板遍历输出: <?php     include './include/Mysql.class.php';     include './libs/Smarty.class.php';     $db=new Mysql;     $smarty=new Smarty;     $lists=$db->getALL('use...

使用smarty方式展示前台首页新闻分类

使用smarty展示前台分页类和列表(循环语句读出),模板校正如下: <!DOCTYPE html> <html> <head>     <meta charset="utf-8">     <title>新闻首页</title> </head> <body>     <table align='center'...

smarty模板引擎之变量的调用

        smarty模板引擎调用的变量大致可以分为三类:        1.是从PHP中连接数据库所获取来的动态数据;        2.是从自定义配置文件中读取出来的变量用来自定义模板的外观样式;    &nbs...

smarty模板引擎的基本语法

smarty的基本语法 1.smarty的注释:{*content*} 2.smarty输出变量的值     a.当变量是数组或者字符串时,如下输出:       变量的赋值与输出       $smarty->assign('articletitle','文章标题');       {$articletitle}  ...