<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/">
<channel>
<title><![CDATA[PHP开发园地]]></title>
<link><![CDATA[http://www.itivy.com/php]]></link>
<description><![CDATA[做一个勇于分享的php园丁]]></description>
<language><![CDATA[zh-cn]]></language>
<copyright><![CDATA[]]></copyright>
<webMaster><![CDATA[]]></webMaster>
<generator><![CDATA[]]></generator>
<Image><![CDATA[]]></Image>
<item>
<link><![CDATA[http://www.itivy.com/php/archive/2012/5/22/634732894596979392.html]]></link>
<title><![CDATA[Python 数据库接口模块]]></title>
<author><![CDATA[php园丁]]></author>
<category><![CDATA[]]></category>
<pubDate>Tue, 22 May 2012 13:49:30 GMT</pubDate>
<guid><![CDATA[]]></guid>
<description><![CDATA[
            
<h3 id="A.2BThN1KGVwY25ek4.2FeY6VqIVdX-">转自：<a href="http://wiki.woodpecker.org.cn/moin/DatabaseModules">http://wiki.woodpecker.org.cn/moin/DatabaseModules</a><br>
</h3>
<h3 id="A.2BThN1KGVwY25ek4.2FeY6VqIVdX-">专用数据库连接模块</h3>
<span class="anchor" id="line-10"></span>
<p class="line867"></p>
<h4 id="MySQL">MySQL</h4>
<span class="anchor" id="line-11"></span>
<ul>
<li>
<p class="line891"><a class="http" href="http://www.mysql.com/">MySQL</a> -- 最流行的开源数据库
<span class="anchor" id="line-12"></span></p>
</li><li>
<p class="line891"><a class="http" href="http://sourceforge.net/projects/mysql-python">MySQL-Python</a> -- MySQL 的 Python 接口
<span class="anchor" id="line-13"></span></p>
<ul>
<li>
<p class="line891"><a class="http" href="http://dustman.net/andy/python/python-and-mysql">http://dustman.net/andy/python/python-and-mysql</a> -- MySQL-Python 作者的 Presentation
<span class="anchor" id="line-14"></span></p>
</li></ul>
</li></ul>
<p class="line867"></p>
<h4 id="SQLite">SQLite</h4>
<span class="anchor" id="line-15"></span>
<ul>
<li>
<p class="line891"><a class="http" href="http://sqlite.org/">SQLite</a> -- 小巧轻便的嵌入式数据库
<span class="anchor" id="line-16"></span></p>
</li><li>
<p class="line891"><a class="http" href="http://pysqlite.org/">pysqlite</a> -- SQLite 的半官方性质 Python 接口，Python 2.5 之后已成为标准库 sqlite3
<span class="anchor" id="line-17"></span></p>
<ul>
<li>
<p class="line891"><a href="http://wiki.woodpecker.org.cn/moin/pySqlite">pysqlite文档资料收集</a>
<span class="anchor" id="line-18"></span></p>
</li></ul>
</li></ul>
<p class="line867"></p>
<h4 id="PostgreSQL">PostgreSQL</h4>
<span class="anchor" id="line-19"></span>
<ul>
<li>
<p class="line891"><a class="http" href="http://www.postgresql.org/">PostgreSQL</a> -- 比 MySQL 功能更强大、历史更悠久的开源数据库
<span class="anchor" id="line-20"></span></p>
<ul>
<li>
<p class="line891"><a class="http" href="http://www.pgsqldb.org/">PostgreSQL中文网</a>
<span class="anchor" id="line-21"></span></p>
</li></ul>
</li><li>
<p class="line891"><a class="http" href="http://www.pygresql.org/">PyGreSQL</a> -- 历史最悠久，最流行的 PostgreSQL 接口
<span class="anchor" id="line-22"></span></p>
</li><li>
<p class="line891"><a class="http" href="http://initd.org/projects/psycopg2">psycopg2</a> -- 特别为高并发环境设计的 PostgreSQL 驱动
<span class="anchor" id="line-23"></span></p>
</li><li>
<p class="line891"><a class="http" href="http://pypgsql.sourceforge.net/">pyPgSQL</a> -- Python世界里的另一个 PostgreSQL 接口
<span class="anchor" id="line-24"></span></p>
</li></ul>
<p class="line867"></p>
<h4 id="Oracle">Oracle</h4>
<span class="anchor" id="line-25"></span>
<ul>
<li>
<p class="line891"><a class="http" href="http://www.oracle.com/">Oracle</a> -- 数据库领域中的巨鳄，最为强大先进的商业数据库产品
<span class="anchor" id="line-26"></span></p>
</li><li>
<p class="line891"><a class="http" href="http://www.zope.org/Members/matt/dco2">DCOracle2</a> -- Zope 出品的 Oracle 驱动
<span class="anchor" id="line-27"></span></p>
</li><li>
<p class="line891"><a class="http" href="http://www.cxtools.net/default.aspx?nav=cxorlb">cx_Oracle</a> -- 另一个 Oracle 接口模块
<span class="anchor" id="line-28"></span></p>
</li></ul>
<p class="line867"></p>
<h4 id="IBM_DB2">IBM DB2</h4>
<span class="anchor" id="line-29"></span>
<ul>
<li>
<p class="line891"><a class="http" href="http://sourceforge.net/projects/pydb2">pydb2</a> -- DB2 的 Python 接口，此外还包括了若干小工具
<span class="anchor" id="line-30"></span></p>
</li></ul>
<p class="line867"></p>
<h4 id="SAP_DB">SAP DB</h4>
<span class="anchor" id="line-31"></span>
<ul>
<li>
<p class="line891"><a class="http" href="http://www.sapdb.org/sapdbapi.html">sapdbapi</a> -- SAP DB 的 Python 接口
<span class="anchor" id="line-32"></span></p>
</li></ul>
<p class="line867"></p>
<h4 id="Infomix">Infomix</h4>
<span class="anchor" id="line-33"></span>
<ul>
<li>
<p class="line891"><a class="http" href="http://sourceforge.net/projects/informixdb/">informixdb</a>
<span class="anchor" id="line-34"></span></p>
</li></ul>
<p class="line867"></p>
<h4 id="Interbase">Interbase</h4>
<span class="anchor" id="line-35"></span>
<ul>
<li>
<p class="line891"><a class="http" href="http://kinterbasdb.sourceforge.net/">kinterbasdb</a> -- Interbase 4.0 和 5.0 的 Python接口
<span class="anchor" id="line-36"></span></p>
</li></ul>
<p class="line867"></p>
<h4 id="Ingres">Ingres</h4>
<span class="anchor" id="line-37"></span>
<ul>
<li>
<p class="line891"><a class="http" href="http://www.informatik.uni-rostock.de/%7Ehme/software/">ingmod</a>
<span class="anchor" id="line-38"></span></p>
</li></ul>
<p class="line867"></p>
<h4 id="Sybase">Sybase</h4>
<span class="anchor" id="line-39"></span>
<ul>
<li>
<p class="line891"><a class="http" href="http://www.object-craft.com.au/projects/sybase/">Sybase module for Python</a> -- Sybase 的 DB-API 2.0 接口
<span class="anchor" id="line-40"></span></p>
</li></ul>
<p class="line867"></p>
<h4 id="SQL_Server">SQL Server</h4>
<span class="anchor" id="line-41"></span>
<ul>
<li>
<p class="line891"><a class="http" href="http://pymssql.sourceforge.net/">MicroSoft SQL Server module for Python</a> -- SQLServer 的 DB-API 2.0 接口
<span class="anchor" id="line-42"></span></p>
</li><li>pymssql 0.7.1 已经在 FreeBSD 5.4, 6.0, NetBSD 2.0.2, Linux with kernel 2.6, Solaris 10/x86, Mac OS X, Windows XP等多种平台上测试通过.
<span class="anchor" id="line-43"></span></li><li>pymssql 0.7.4 经测试支持 SQL Server 2000, all service pack levels. <span class="anchor" id="line-44">
</span>pymssql 0.7.4 on Windows 经测试支持 SQL Server 2000 RTM, SP3a and SP4,SQL Server 2005 RTM.
<span class="anchor" id="line-45"></span></li><li>其他版本的SQL Server也可能被支持. <span class="anchor" id="line-46"></span></li><li>
<p class="line862">在Windows平台下使用MS SQL DB-Library, 在Linux等平台使用<a class="http" href="http://www.freetds.org/">Freetds</a>连接SQL Server.
<span class="anchor" id="line-47"></span></p>
</li><li>
<p class="line862">目前常见的一些问题: 不支持SQL Server的ntext数据类型,请把ntext类型的字段修改为nvarchar.<a class="http" href="http://pymssql.sourceforge.net/troubleshooting.html#unicode">--nEO</a>
<span class="anchor" id="line-48"></span></p>
</li></ul>
<p class="line867"></p>
<h4 id="ThinkSQL">ThinkSQL</h4>
<span class="anchor" id="line-49"></span>
<ul>
<li>
<p class="line891"><a class="http" href="http://www.thinksql.co.uk/">ThinkSQL</a> -- 一个内置了Python接口的商业数据库产品
<span class="anchor" id="line-50"></span></p>
</li></ul>
<p class="line867"></p>
<h4 id="Matisse">Matisse</h4>
<span class="anchor" id="line-51"></span>
<ul>
<li>
<p class="line891"><a class="http" href="http://www.matisse.com/product_information/language_bindings/lang_python.html">Matisse</a> -- 商业数据库产品Matisse，内置 Python 绑定支持，非 DB-API兼容。
<span class="anchor" id="line-52"></span></p>
</li></ul>
<p class="line867"></p>
<h3 id="A.2BkBp1KGVwY25ek2OlU.2BNqIVdX-">通用数据库接口模块</h3>
<span class="anchor" id="line-53"></span>
<p class="line867"></p>
<h4 id="ODBC">ODBC</h4>
<span class="anchor" id="line-54"></span>
<ul>
<li>
<p class="line891"><a class="http" href="http://www.egenix.com/files/python/mxODBC.html">mxODBC</a> -- 流行的 mx 系列工具包中的一部分，也是其中唯一的商业产品（用于非商业开发不需付费）。实现了绝大部分 DB-API 2.0 接口。
<span class="anchor" id="line-55"></span></p>
</li><li>
<p class="line891"><a class="http" href="http://pyodbc.sourceforge.net/">pyodbc</a> -- 开源的 Python ODBC 接口，完整实现了 DB-API 2.0 接口
<span class="anchor" id="line-56"></span></p>
</li><li>
<p class="line862">ODBC Interface -- 随 <a class="http" href="http://sourceforge.net/projects/pywin32/">
PythonWin</a> 附带发行的模块，文档和维护缺乏 <span class="anchor" id="line-57"></span></p>
</li></ul>
<p class="line867"></p>
<h4 id="JDBC">JDBC</h4>
<span class="anchor" id="line-58"></span>
<ul>
<li>
<p class="line891"><a class="http" href="http://www.ziclix.com/zxjdbc/">zxJDBC</a> -- 专为 Jython 设计的 DB-API 2.0 接口，建立在底层的 JDBC 接口之上。已经包含在 Jython 2.1 以后的发行版中。
<span class="anchor" id="line-59"></span></p>
</li></ul>
<p class="line867"></p>
<h4 id="SQLRelay">SQLRelay</h4>
<span class="anchor" id="line-60"></span>
<ul>
<li>
<p class="line891"><a class="http" href="http://sqlrelay.sourceforge.net/">SQLRelay</a> -- Unix 环境下的通用数据库连接池，支持多种数据库和编程语言，提供了自己的 Python 接口，非 DB-API 兼容。
<span class="anchor" id="line-61"></span></p>
</li></ul>
<p class="line867"></p>
<h3 id="A.2BUXZbg2ohV1c-">其它模块</h3>
<span class="anchor" id="line-62"></span>
<p class="line867"></p>
<h4 id="Gadfly">Gadfly</h4>
<p><span class="anchor" id="line-63"></span><a href="http://wiki.woodpecker.org.cn/moin/Gadfly">Gadfly</a> 是 Python 实现的一个轻型 in-memory 关系数据库，本身即提供 DB-API 兼容的访问接口。
<br>
</p>
<p><br>
</p>
<br>

            
                    <div>来源：http://blog.csdn.net/lovingprince/article/details/7071209</div>]]></description>
</item>

<item>
<link><![CDATA[http://www.itivy.com/php/archive/2012/5/22/634732843695145851.html]]></link>
<title><![CDATA[ecshop模板smarty foreach详解]]></title>
<author><![CDATA[php园丁]]></author>
<category><![CDATA[]]></category>
<pubDate>Tue, 22 May 2012 12:20:17 GMT</pubDate>
<guid><![CDATA[]]></guid>
<description><![CDATA[
            <span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"></span><p style="font: 14px/normal Arial; color: rgb(102, 102, 102); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">Smarty目录:<br style="line-height: normal;" />/libs Smarty的功能类目录<br style="line-height: normal;" />/tempalates 模板文件目录<br style="line-height: normal;" />/templates_c 模板缓存文件目录<br style="line-height: normal;" />/configs 配置文件目录<br style="line-height: normal;" />/cache 缓存文件目录</p><p style="font: 14px/normal Arial; color: rgb(102, 102, 102); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">载入Smarty功能类：<br style="line-height: normal;" />require(’路径/Smarty.class.php’);<br style="line-height: normal;" />$smarty = new Smarty;<br style="line-height: normal;" />自定义Smarty工作目录:<br style="line-height: normal;" />$smarty-&gt;template_dir = ‘路径/templates/’;<br style="line-height: normal;" />$smarty-&gt;compile_dir = ‘路径/templates_c/’;<br style="line-height: normal;" />$smarty-&gt;config_dir = ‘路径/configs/’;<br style="line-height: normal;" />$smarty-&gt;cache_dir = ‘路径/cache/’;</p><p style="font: 14px/normal Arial; color: rgb(102, 102, 102); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">常用语法:<br style="line-height: normal;" />$smarty-&gt;assign(’模板中的变量名’, 值); //给模板中的变量赋值(可以是数组或对象)<br style="line-height: normal;" />$smarty-&gt;display(’模板文件名’); //输出模板</p><p style="font: 14px/normal Arial; color: rgb(102, 102, 102); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">常用标签语法：<br style="line-height: normal;" />所有的smarty模板标签都被加上了定界符, 默认情况下是 { 和 }</p><p style="font: 14px/normal Arial; color: rgb(102, 102, 102); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">注释：{* 注释内容 *}<br style="line-height: normal;" />函数：{函数名称[ 参数名1=值1[ 参数名2=值2]]}<br style="line-height: normal;" />变量: {$变量名}<br style="line-height: normal;" />数组: {$数组名.元素名} 或 {$数组名.[元素索引]}<br style="line-height: normal;" />对象：{$对象名-&gt;属性名}</p><p style="font: 14px/normal Arial; color: rgb(102, 102, 102); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">从配置文件引用的变量:<br style="line-height: normal;" />配置文件名为: *.conf<br style="line-height: normal;" />在模板中引入：{config_load file=”配置文件名.conf”}<br style="line-height: normal;" />在模板中的变理标签：{#变量名#}</p><p style="font: 14px/normal Arial; color: rgb(102, 102, 102); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">变量调节器:<br style="line-height: normal;" />{$变量名|调节器名} //用于变量<br style="line-height: normal;" />{”字符串”|调节器名} //用于字符串<br style="line-height: normal;" />{函数名|调节器名 函数的参数名=值} //用于函数<br style="line-height: normal;" />{$变量名|调节器名1[|调节器名2|...]} //使用多个调节器</p><p style="font: 14px/normal Arial; color: rgb(102, 102, 102); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">‘{’字符: {ldelim}<br style="line-height: normal;" />‘}’字符: {rdelim}</p><p style="font: 14px/normal Arial; color: rgb(102, 102, 102); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">原文输出：{literal}{/literal} 里面的文本内容将不会被模板引擎解析,原样输出</p><p style="font: 14px/normal Arial; color: rgb(102, 102, 102); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">在模板中直接写PHP语句: {php}php语句;{/php}</p><p style="font: 14px/normal Arial; color: rgb(102, 102, 102); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">条件:<br style="line-height: normal;" />为了简单，条件表达式与PHP中相同即可.<br style="line-height: normal;" />{if 条件表达式1}<br style="line-height: normal;" />内容1<br style="line-height: normal;" />[{elseif 条件表达式2}<br style="line-height: normal;" />内容2<br style="line-height: normal;" />{else}<br style="line-height: normal;" />内容3]<br style="line-height: normal;" />{/if}</p><p style="font: 14px/normal Arial; color: rgb(102, 102, 102); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">循环:<br style="line-height: normal;" />{foreach from=$数组名 item=当前处理元素的变量名称[ key=当前处理元素的键名][ name=用于嵌套中的名称必须唯一]}<br style="line-height: normal;" />循环体…<br style="line-height: normal;" />{$当前处理元素的变量名称} {* //遍历数组时元素的引用 *}<br style="line-height: normal;" />{/foreach}</p><p style="font: 14px/normal Arial; color: rgb(102, 102, 102); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">缓存:<br style="line-height: normal;" />$smarty = new Smarty;<br style="line-height: normal;" />$smarty-&gt;caching = 2; //缓存设置,值为: 0,关闭缓存(默认) 1,开启缓存(缓存默认时间为3600秒) 2,指定缓存的时间<br style="line-height: normal;" />$smarty-&gt;cache_lifetime = 3600; //设置缓存时间,单位秒。<br style="line-height: normal;" />$smarty-&gt;display(’index.tpl’);</p><p><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">ecshop模板smarty foreach详解</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">{foreach},{foreachelse}</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">{foreach} 用于像循环访问一个数字索引数组一样循环访问一个关联数组，与仅能访问数字索引数组的{section}不同，{foreach}的语法比 {section}的语法简单得多，但是作为一个折衷方案也仅能用于单个数组。每个{foreach}标记必须与关闭标记{/foreach}成对出现。</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">属性</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">1、from&nbsp;&nbsp;&nbsp; 类型：array数组 必要性：Yes必要 默认值：n/a&nbsp;&nbsp;&nbsp; 描述：循环访问的数组</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">2、item&nbsp;&nbsp;&nbsp;&nbsp; 类型：string字符串&nbsp;&nbsp;&nbsp;&nbsp; 必要性：Yes必要&nbsp;&nbsp;&nbsp;&nbsp; 默认值：n/a&nbsp;&nbsp;&nbsp;&nbsp; 描述：当前元素的变量名</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">3、key&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 类型：string字符串&nbsp;&nbsp;&nbsp;&nbsp; 必要性：No可选&nbsp;&nbsp;&nbsp;&nbsp; 默认值：n/a&nbsp;&nbsp;&nbsp;&nbsp; 描述：当前键名的变量名</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">4、name&nbsp;&nbsp; 类型：string字符串&nbsp;&nbsp;&nbsp;&nbsp; 必要性：No可选&nbsp;&nbsp;&nbsp;&nbsp; 默认值：n/a&nbsp;&nbsp;&nbsp;&nbsp; 描述：用于访问foreach属性的foreach循环的名称</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">from和item是必要属性</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">{foreach}循环的name可以是任何字母，数组，下划线的组合，参考PHP变量。</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">{foreach}循环可以嵌套，嵌套的{foreach}的名称应当互不相同。</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">from属性通常是值数组，被用于判断{foreach}的循环次数。</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">在from变量中没有值时，将执行{foreachelse}。</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">{foreach}循环也有自身属性的变量，可以通过{</span><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 215, 0); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">$smarty.foreach</span><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">.name.property}访问，其中&quot;name&quot;是name属性。</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">注意：name属性仅在需要访问{foreach}属性时有效，与{section}不同。访问未定义name的{foreach}属性不会抛出一个错误，但将导致不可预知的结果。</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">{foreach}属性有index, iteration, first, last, show, total.</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">示例：</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">例一. item属性</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&lt;?php</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">$arr = array(1000, 1001, 1002);</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">$smarty-&gt;assign('myArray', $arr);</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">?&gt;</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">用模板以无序列表输出$myArray</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&lt;ul&gt;</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">{foreach from=$myArray item=foo}</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&lt;li&gt;{$foo}&lt;/li&gt;</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">{/foreach}</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&lt;/ul&gt;</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">上例将输出：</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&lt;ul&gt;</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&lt;li&gt;1000&lt;/li&gt;</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&lt;li&gt;1001&lt;/li&gt;</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&lt;li&gt;1002&lt;/li&gt;</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&lt;/ul&gt;</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">例二. 演示item和key属性</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&lt;?php</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">$arr = array(9 =&gt; 'Tennis', 3 =&gt; 'Swimming', 8 =&gt; 'Coding');</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">$smarty-&gt;assign('myArray', $arr);</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">?&gt;</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">用模板按键名/键值对的形式输出$myArray, 类似于PHP的foreach。</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&lt;ul&gt;</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">{foreach from=$myArray key=k item=v}</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&lt;li&gt;{$k}: {$v}&lt;/li&gt;</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">{/foreach}</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&lt;/ul&gt;</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">上例将输出：</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&lt;ul&gt;</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&lt;li&gt;9: Tennis&lt;/li&gt;</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&lt;li&gt;3: Swimming&lt;/li&gt;</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&lt;li&gt;8: Coding&lt;/li&gt;</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&lt;/ul&gt;</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">例三. {foreach}的item属性是关联数组</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&lt;?php</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">$items_list = array(23 =&gt; array('no' =&gt; 2456, 'label' =&gt; 'Salad'),</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">96 =&gt; array('no' =&gt; 4889, 'label' =&gt; 'Cream')</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">);</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">$smarty-&gt;assign('items', $items_list);</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">?&gt;</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">模板中，url通过$myId输出$items</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&lt;ul&gt;</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">{foreach from=$items key=myId item=i}</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&lt;li&gt;&lt;a href=&quot;item.php?id={$myId}&quot;&gt;{$i.no}: {$i.label}&lt;/li&gt;</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">{/foreach}</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&lt;/ul&gt;</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">上例将输出：</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&lt;ul&gt;</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&lt;li&gt;&lt;a href=&quot;item.php?id=23&quot;&gt;2456: Salad&lt;/li&gt;</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&lt;li&gt;&lt;a href=&quot;item.php?id=96&quot;&gt;4889: Cream&lt;/li&gt;</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&lt;/ul&gt;</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">例四. {foreach}使用嵌套的item和key</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">向Smarty设置一个数组，对于每个键名对应的每个循环值都包括键。</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&lt;?php</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">$smarty-&gt;assign('contacts', array(</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">array('phone' =&gt; '1',</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">'fax' =&gt; '2',</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">'cell' =&gt; '3'),</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">array('phone' =&gt; '555-4444',</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">'fax' =&gt; '555-3333',</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">'cell' =&gt; '760-1234')</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">));</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">?&gt;</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">用于输出$contact的模板。</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">{foreach name=outer item=contact from=$contacts}</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&lt;hr /&gt;</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">{foreach key=key item=item from=$contact}</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">{$key}: {$item}&lt;br /&gt;</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">{/foreach}</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">{/foreach}</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">上例将输出：</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&lt;hr /&gt;</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">phone: 1&lt;br /&gt;</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">fax: 2&lt;br /&gt;</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">cell: 3&lt;br /&gt;</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&lt;hr /&gt;</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">phone: 555-4444&lt;br /&gt;</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">fax: 555-3333&lt;br /&gt;</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">cell: 760-1234&lt;br /&gt;</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">例五. 使用{foreachelse}的数据库示例</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">一个数据库（例如PEAR或ADODB）的搜索脚本示例，</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&lt;?php</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">$search_condition = &quot;where name like '$foo%' &quot;;</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">$sql = 'select contact_id, name, nick from contacts '.$search_condition.' order by name';</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">$smarty-&gt;assign('results', $db-&gt;getAssoc($sql) );</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">?&gt;</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">借助{foreachelse}标记在没有结果时模板输出&quot;None found&quot;字样。</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">{foreach key=cid item=con from=$results}</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&lt;a href=&quot;contact.php?contact_id={$cid}&quot;&gt;{$con.name} - {$con.nick}&lt;/a&gt;&lt;br /&gt;</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">{foreachelse}</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">No items were found in the search</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">{/foreach}</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">.index包含当前数组索引，从零开始。</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">例六. index示例</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">{* 每五行输出一次头部区块 *}</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&lt;table&gt;</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">{foreach from=$items key=myId item=i name=foo}</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">{if</span><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 215, 0); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">$smarty.foreach</span><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">.foo.index % 5 == 0}</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&lt;tr&gt;&lt;th&gt;Title&lt;/th&gt;&lt;/tr&gt;</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">{/if}</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&lt;tr&gt;&lt;td&gt;{$i.label}&lt;/td&gt;&lt;/tr&gt;</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">{/foreach}</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&lt;/table&gt;</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">iteration包含当前循环次数，与index不同，从1开始，每次循环增长1。</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">例七. iteration和index示例</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">{* this will output 0|1, 1|2, 2|3, ... etc *}</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">{* 该例将输出0|1, 1|2, 2|3, ... 等等 *}</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">{foreach from=$myArray item=i name=foo}</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">{</span><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 215, 0); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">$smarty.foreach</span><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">.foo.index}|{</span><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 215, 0); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">$smarty.foreach</span><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">.foo.iteration},</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">{/foreach}</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">first在当前{foreach}循环处于初始位置时值为TRUE。</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">例八. first属性示例</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">{* 对于第一个条目显示LATEST而不是id *}</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&lt;table&gt;</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">{foreach from=$items key=myId item=i name=foo}</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&lt;tr&gt;</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&lt;td&gt;{if</span><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 215, 0); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">$smarty.foreach</span><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">.foo.first}LATEST{else}{$myId}{/if}&lt;/td&gt;</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&lt;td&gt;{$i.label}&lt;/td&gt;</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&lt;/tr&gt;</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">{/foreach}</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&lt;/table&gt;</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">last在当前{foreach}循环处于最终位置是值为TRUE。</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">例九. last属性示例</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">{* 在列表结束时增加一个水平标记 *})</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">{foreach from=$items key=part_id item=prod name=products}</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&lt;a href=&quot;#{$part_id}&quot;&gt;{$prod}&lt;/a&gt;{if</span><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 215, 0); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">$smarty.foreach</span><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">.products.last}&lt;hr&gt;{else},{/if}</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">{foreachelse}</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">... content ...</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">{/foreach}</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">show是{foreach}的参数. show是一个布尔值。如果值为FALSE，{foreach}将不被显示。如果有对应的{foreachelse}，将被显示。</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">total包括{foreach}将循环的次数，既可以在{foreach}中使用，也可以在之后使用。</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">例十. total属性示例</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">{* 在结束位置显示行数 *}</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">{foreach from=$items key=part_id item=prod name=foo}</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">{$prod.name&gt;&lt;hr/&gt;</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">{if</span><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 215, 0); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">$smarty.foreach</span><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">.foo.last}</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&lt;div id=&quot;total&quot;&gt;{</span><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 215, 0); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">$smarty.foreach</span><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">.foo.total} items&lt;/div&gt;</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">{/if}</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">{foreachelse}</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">... something else ...</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">{/foreach}</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">问题</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">{foreach from=$custid item=curr_id key=num}</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">{if num is odd}</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">干啥</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">{else}</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">干其他的</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">{/if}</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">{/foreach}</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">与以下的代码的区别，odd和enen的意义？</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">{foreach from=$custid item=curr_id key=num}</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">{if num%2==0}</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">干啥</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">{else}</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">干其他的</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">{/if}</span><br style="font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; color: rgb(61, 61, 61); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#3d3d3d;font: 14px/25px Arial, Helvetica, simsun, u5b8bu4f53; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">{/foreach}</span></p><p><span style="color:#3d3d3d;"></span>&nbsp;</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">使用ecshop比较核心的其实就是变量的使用，因为这些就是数据的根本，想从数据库里获取数据并显示在界面就必须使用smarty来展示，下面是关于smarty的介绍和使用。</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">Smarty是一个php模板引擎,它分开了逻辑程序和外在的内容,提供了一种易于管理的方法.</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">Smarty要求web服务器运行php4.0.6和以上版本.</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">smarty安装需要smarty库文件。可以去官方网站<a style="color: rgb(255, 153, 0); text-decoration: none;" href="http://smarty.php.net/">http://smarty.php.net</a>下载。</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">网上讲了很多安装的教程，但是我都没有成功，所以直接把整个目录名改为smarty直接复制到了网站所在的目录下，然后打开</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">http://网站路径/smarty/demo/index.php，显示正常，应该算是安装成功了。</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">基本语法</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">所有的smarty标签都被加上了定界符.在smarty里,所有定界符以外的内容都是静态的,当smarty遇到了模板标签,将尝试解释他们,然后再以恰当的方式输出.</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">默认情况下是 {和},但它们是可定制的.定制方法是：</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">$smarty-&gt;left_delimiter = '&lt;!--{';</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">$smarty-&gt;right_delimiter = '}--&gt;';</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">1.注释</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">模板注释被*号包围,例如 {* this is a comment *}</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">smarty注释将不被输出.它是模板内在的注释.</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">2.变量</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">模板变量以$开头，可以包含数字，字母和下划线。</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">config_file变量是例外要用#变量名#的方法引用</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">3.函数</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">smarty标签输出一个变量或者调用某种函数.</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">在定界符内函数和其属性将被处理和输出.例如:</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">{funcname attr1=&quot;val&quot; attr2=&quot;val&quot;}.</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">funcname为函数的名称比如：include等，attr1，attr2为属性名，val为属性相应的值。</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">在模板里无论是内建函数还是自定义函数都有相同的语法.</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">内建函数将在smarty内部工作,例如 {if}, {section} 和{strip}.他们不能被修改.</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">自定义函数通过插件机制起作用,它们是附加函数,可以随意修改，自行添加.</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">例如 {html_options} and {html_select_date}</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">4.属性</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">静态数值不需要加引号,布尔值(真或假)也不需要引号,可以是true,on,yes或者false,off,no. 但是字符串例外.变量同样被用到了,它们也不能加引号.</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">5.在字符串中插入变量</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">只能识别数字，字母，下划线和[]的组合，如果为复杂的形式需要用``将变量隔起来。比如{func var=&quot;test $foo.bar test&quot;} 中只能识别变量$foo,要识别$foo.bar,需要写成{func var=&quot;test `$foo.bar` test&quot;}的格式。</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">6.一些保留字的显示方法</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">在模板中如果要将smarty的一些保留字作为语言的内容显示出来，比如显示分隔符，默认为{}的方法是： {ldelim},{rdelim} 或者{$smarty.ldelim},{$smarty.rdelim} 或者可以把{}放在{literal} .. {/literal} 中间输出。</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">smarty的保留变量</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">{$smarty}保留变量可以被用于访问一些特殊的模板变量.</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">以下是全部.</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">页面请求变量</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">以下是访问页面请求变量诸如get,post,cookies,server,enviroment和session变量的例子. 例如{$smarty.server.SERVER_NAME}取得服务器变量，{$smarty.env.PATH}取得系统环境变量path, {$smarty.request.username}取得get/post/cookies/server/env的复合变量。</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">{$smarty.now}变量用于访问当前时间戳.</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">可以用 date_format调节器格式化输出. 例如{$smarty.now|date_format:&quot;%Y-%m-%d %H:%M:%S&quot;}</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">{$smarty.const}</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">你可以直接访问PHP常量. 例如{$smarty.const._MY_CONST_VAL}</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">{$smarty.capture}</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">可以通过 {capture}..{/capture}结构 截取的输出可以使用{$smarty} 变量访问.</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">{$smarty.config}</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">{$smarty}变量 可以访问已经加载的config变量.</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">例如 {$smarty.config.foo}就可以表示 {#foo#}.</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">{$smarty.section}, {$smarty.foreach}</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">{$smarty} 变量可以访问'section'和'foreach'循环的属性.</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">{$smarty.template}</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">显示当前被处理的模板的名字.</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">{$smarty.version}</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">显示smarty模板的版本</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">{$smarty.ldelim}</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">显示左分隔符</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">{$smarty.rdelim}</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">显示右分隔符</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">变量调节器</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">变量调节器用于变量,自定义函数和字符串.</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">可以使用'|'符号和调节器名称应用调节器.</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">变量调节器由赋予的参数值决定其行为.</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">参数由':'符号分开.</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">如果你用变量调节器调节数组变量,结果是数组的每个值都被调节.如果你想要调节器调节整个数组,你必须在调节器名字前加上@符号.</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">例如: {$articleTitle|@count}(这将会在输出 $articleTitle 数组里的数目)</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">capitalize</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">将变量里的所有单词首字大写. 参数值boolean型决定带数字的词是否首字大写。默认不大写</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">count_characters</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">计算变量值里的字符数.参数值boolean型决定是否计算空格数。默认不计算空格</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">cat</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">将cat里的参数值连接到给定的变量后面.默认为空。</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">count_paragraphs</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">计算变量里的段落数量</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">count_sentences</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">计算变量里句子的数量</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">count_words</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">计算变量里的词数</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">date_format</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">日期格式</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">第一个参数控制日期格式.</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">如果传给date_format的数据是空的,将使用第二个参数作为默认时间</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">%a - 星期几的简写</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">%A - 星期几的全写</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">%b - 月份的简写</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">%B - 月份的全写</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">%c - 日期时间06/12/05 11:15:10</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">%C - 世纪时间</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">%d - 一个月的第几号(从 01 到 31)</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">%D - 同 %m/%d/%y</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">%e - 一个月的第几号，号为单数则前面加一空格 (从 1 到 31)</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">%g - 世纪</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">%G - 世纪 [0000,9999]</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">%h - 同%b</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">%H - 24小时形式的小时(从00到23)</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">%I - 12小时形式的小时(从01到 12)</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">%j - 一年中的第几天(从 001 到 366)</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">%k - 24小时形式的小时，单数字前面加空格. (从 0 到 23)</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">%l - 12小时形式的小时，单数字前面加空格.(range 1 to 12)</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">%m - 月份 (range 01 to 12)</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">%M - 分</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">%n - 换行符</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">%p - 显示早上还是下午`am' 或 `pm'</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">%r - a.m. 或 p.m.形式的时间</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">%R - 24小时形式的时间</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">%S - 秒</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">%t - tab符号</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">%T - 同%H:%M:%S</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">%u - 用 [1,7],表示星期几</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">%U - 计算是该年的第几个星期，从该年的第一个星期天开始计算</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">%V - 计算是该年的第几个星期, 从 01 到 53, 第一个星期必须至少有4天在这一年, 星期天作为这个星期的第一天</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">%w - 用数字的形式表示是星期的第几天, 星期天 为 0</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">%W - 用数字的形式是该年的第几个星期,从该年的第一个星期一开始计算</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">%x - 显示日期：月/日/年</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">%X - 显示时间：小时：分钟：秒</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">%y - 不包括世纪的年份</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">%Y - 包括世纪的年份</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">%Z - 时区</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">%% - 输出%</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">其中有些有时不能正常输出。</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">default</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">默认</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">为空变量设置一个默认值.</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">当变量为空或者未分配的时候,将由给定的默认值替代输出.</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">escape</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">转码</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">参数值为html,htmlall,url,quotes,hex,hexentity,javas<wbr>cript。默认是html转码</wbr></p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">indent</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">缩进</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">在每行缩进字符串,第一个参数指定缩进多少个字符，默认是4个字符.第二个参数,指定缩进用什么字符代替。</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">lower</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">小写</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">This is used to lowercase a variable.</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">将变量字符串小写</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">nl2br</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">换行符替换成&lt;br /&gt;</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">regex_replace</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">正则替换</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">寻找和替换正则表达式.必须有两个参数，参数1是替换正则表达式. 参数2使用什么文本字串来替换</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">replace</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">替换</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">简单的搜索和替换字符串必须有两个参数，参数1是将被替换的字符串. 参数2是用来替换的文本</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">spacify</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">spacify是在字符串的每个字符之间插入空格或者其他的字符串. 参数表示将在两个字符之间插入的字符串，默认为一个空格。</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">string_format 字符串格式化</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">是一种格式化浮点数的方法.例如十进制数.使用sprintf语法格式化。参数是必须的，规定使用的格式化方式。%d表示显示整数，%.2f表示截取两个浮点数。</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">strip 去除(多余空格)</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">替换所有重复的空格,换行和tab为单个或者指定的字符串. 如果有参数则是指定的字符串。</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">strip_tags 去除所有html标签</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">truncate 截取</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">参数1，规定截取的字符数.默认是80个.</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">第二个参数指定在截取的那段字符串后加上什么字符.默认为...</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">第三个参数决定是否精确截取，默认情况下为false,则smarty不会分割单词。</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">upper 将变量改为大写</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">wordwrap 行宽约束</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">第一个参数指定段落的宽度(也就是多少个字符一行,超过这个字符数换行).默认80.</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">第二个参数指定在约束点使用什么字符(默认是换行符\n).</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">第三个参数决定是否精确截取字符，默认情况下是不精确截取，就是截取时不能分开单词。</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">内建函数</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">内建函数不能擅自修改。</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">capture</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">capture函数的作用是收集模板输出的数据到一个变量里,而不是把它们输出到页面.例如任何在 {capture name=&quot;foo&quot;}和{/capture}之间的数据都被收到了由函数的名称属性指定的变量{$foo}里，或者{$smarty.capture.foo}里。如果函数没有名字属性,将使用&quot;default&quot;.每个{capture}都必须对应{/capture},也不能嵌套使用capture函数。</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">config_load</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">引用配置文件</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">file是必须的，说明要包含进来的配置文件名称，section说明要加载的部分的名称，scope被处理的变量的作用域.必须是local,parent或者global.</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">local的意思是变量将在本模板里被加载.</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">parent 的意思是变量将在本模板和上级模板被加载.</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">global的意思是变量将应用到所有的模板.默认为local。变量是否在上级模板可视,默认为no。如果scope属性已经有了,这个值将被忽略.</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">foreach,foreachelse</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">foreach循环是选择性的section循环.用于遍历关联数组.foreach的语法比section简单的多,但是作为一个折中它只能用于简单数组.</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">foreach必须的参数是from和item. from变量表示需要循环的数组的名称，item表示当前元素的变量名，key表示当前关键字的变量名，name表示访问foreach属性的foreach循环名。循环可以互相嵌套,被嵌套的循环之间的名字必须是独立的.foreachelse 在from变量没有值的时候被执行</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">include</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">用来引用其他的模板。</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">file属性是必须的用来表示所引用模板的名字，assign表示include文件将要分配的输出的变量。你可以自行用属性名=&quot;属性值&quot;的方式定义任意个局部变量。</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">include_php</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">用来在模板中引入php脚本。file是必须的用来表示php脚本的路径，on<wbr>ce确定如果在模板中引用了php脚本多次，是否只装载一次。默认为true。</wbr></p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">insert</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">用来包含php脚本中的函数，name是必须的，表示所插入的脚本的名称，注意如果名称是name，则包含的函数则是insert_name(),所以所有要插入的函数要有前缀insert_ 。如果用了assign属性，则insert的输出将会分配给模板变量而不会显示。 script表示要引用的脚本路径。这个程序产生的内容将不会被缓存，在每次调用该页时重新执行，适用于广告，投票，查询结果等互动的地方。</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">if,elseif,else</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">if语句和和条件同php差不多，但每个词之间必须用空格分割开。也有一些新的条件语句，列举如下：eq相等，ne、neq不相等，gt大于，lt小于，gte、ge大于等于，lte、le 小于等于，not非，mod求模。is [not] div by是否能被某数整除，is [not] even是否为偶数，$a is [not] even by $b即($a / $b) % 2 == 0，is [not] odd是否为奇，$a is not odd by $b即($a / $b) % 2 != 0</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">php</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">php标记可以让模板中能直接使用php语言。</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">section,sectionelse</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">section用来循环显示数组的数据，name和loop是必须的参数。name表示嵌套名. section 可以嵌套使用,但是名字必须各不相同。loop表示循环的次数. sectionelse在loop参数为空的输出。start用来规定循环开始的指针,如果值为负则从数组尾部计算开始的指针,默认为0.step表示循环的步数,为负则反向循环,默认为1.max设定循环的最大步数.show决定是否显示section.</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">section也有自己的变量处理section属性,用{$smarty.section.sectionname.varname} 来显示.</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">index</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">index用来显示当前循环的指针,从0开始.</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">index_prev</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">用来显示前一次循环的指针,从-1开始</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">index_next</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">用来显示后一次循环的指针.</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">iteration</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">显示当前循环的次数,从1开始.</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">first</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">如果当前循环为第一个循环,则值为true.</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">last</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">如果当前循环为最后一个循环,则值为true.</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">rownum</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">同iteration.</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">loop</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">显示最后一次循环的指针,可以用在section中间的任何地方,也可以用在section之后.</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">show</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">show 决定是否显示section.</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">total</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">显示总共循环的次数,可以用在section中间的任何地方,也可以用在section之后.</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">strip</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">去掉多余的空格</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">常规函数</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">assign</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">assign用来在执行模板时分配变量值.var,value是必须的参数.var为要分配值的变量名,value为分配的值.</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">counter</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">counter用来输出一个计数. 可以用多个计数,但是名字必须各不相同.name表示计数器名,默认为default.start表示计数的初始值,默认为1.skip计数的间隔,默认为1.direction表示计数方向,up或down,默认为up.print表示是否打印该值,默认为true.assign定义模板变量,计数器的输出将被分配到assign定义的变量中.</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">cycle</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">Cycle用来循环显示一组数值.name表示cycle名,values(&quot;值1&quot;,&quot;值2&quot;,...)表示循环显示的一组数值.print表示是否显示.advance决定是否显示下一个数值. delimiter决定value的分隔符,默认为逗号. assign定义模板变量,cycle的输出将被分配到assign定义的变量中.</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">debug</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">debug可以显示所有分配了值的变量,但是不显示模板内容,output属性决定显示的格式html或javas<wbr>cript,默认是html.</wbr></p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">ev<wbr>al</wbr></p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">ev<wbr>al用来在变量里插入变量。var是插入的变量名，assign把输出分配给一个变量。</wbr></p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">fetch</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">用来取得文件内容，并输出文件内容，可以取得本地文件，http文件和ftp文件，file是取得文件的路径， assign把输出分配给一个变量。</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">html_checkboxes</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">html_checkbox用来用给定的数据创建checkbox。name表示checkbox的名称，values表示checkbox的值，output表示checkbox的显示，selected表示被选选项的值，options表示一组checkbox的值和显示，separator表示分割每个checkbox的符号，labels表示给输出添加标签，默认为true。</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">html_image</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">html_image用来为一个图片创建html标签，如果height和width不分配值将会自动生成。file是图片的路径，height，width，alt同html标签，basedir是图片相对路径开始的目录的路径，默认为服务器根目录。href定义图片的链接。</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">html_options</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">输出下拉列表，参数有name，values，output，selected，options。</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">html_radios</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">输出单选框，参数同复选框。</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">html_select_date</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">prefix定义各个下拉列表名字的前缀，默认为Date_。time决定使用的时间，默认是当前时间。start_year决定下拉列表开始的年份，可以用年份表示，也可以用与当前年份的相对年数来表示。默认是当前年份。end_year决定下拉列表结束的年份，可以用年份表示，也可以用与当前年份的相对年数来表示。默认是当前年份。display_days决定是否显示日期。display_months决定是否显示月份。display_years决定是否显示年份。month_format决定显示月份的格式，默认为%B。day_format决定显示日期的格式，默认为%02d。day_value_format决定日期值的格式，默认为%d。month_value_format决定月份值的格式，默认为%m。year_as_text决定是否将年份按文本格式输出。reverse_years决定是否反向输出各年份。field_array用来取得一组变量，可以用name[Day],name[Month],name[Year]的方式从form取得获得的值。day_size，month_size，year_size添加大小标签。all_extra，day_extra，month_extra，year_extra添加额外的属性到select或input标签。field_order决定年月日下拉列表的顺序，默认为MDY。field_separator不同下拉列表之间的分隔符，默认是\n。year_empty，month_empty，day_empty是在各下拉列表第一栏显示的内容。</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">html_select_time</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">prefix定义各个下拉列表名字的前缀，默认为Time_。time决定使用的时间，默认是当前时间。display_hours决定是否显示小时。display_minutes决定是否显示分钟。display_seconds决定是否显示秒数。display_meridian 决定是否显示上午或下午，即显示am/pm。use_24_hours 决定是否24小时制。minute_interval 决定分钟之间的间隔。second_interval 决定秒数之间的间隔。field_array用来取得一组变量，可以用name[Hour],name[Minute],name[Second]的方式从form取得获得的值。all_extra，hour_extra，minute_extra，second_extra ，meridian_extra添加额外的属性到select或input标签。</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">html_table</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">loop定义用于循环的一组数据。cols决定列的数目，rows决定行的数目，如果其中一个为空，另一个有值，则根据元素个数和有值的属性来计算另一个的值，两者的默认值为3。inner决定元素的列举方向cols则列跟着列排列，rows则行跟着行排列，默认为cols。table_attr，tr_attr，td_attr分别为table，tr，td增加标签，如果tr_attr，td_attr是数组，将会循环增加标签。trailpad用来填充最后一行没有值的单元格，默认是 。hdir决定每行元素的排列方向，从左到右right或从右到左left，默认为right。vdir决定每列的排列方向，从上到下down或从下到上up，默认为down。</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">math</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">进行数字运算操作。equation和var是必须的。equation定义运算式，可以使用的运算符有+, -, /, *, abs, ceil, cos, exp, floor, log, log10, max, min, pi, pow, rand, round, sin, sqrt, srans and tan。var给运算变量赋值。format确定结果的格式。assign将输出赋给一个参数。</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">mailto</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">使用mailto函数能使网络蜘蛛很难获取你的email地址，但是能在网页上正常显示，因为他把email地址进行了加密处理。address是必须的，定义email地址。text是显示在页面上的文本内容，默认是email地址。encode是加密email地址的方式，可以是none，hex或javas<wbr>cript，默认是none。如果要把邮件发给其他的邮箱，可以用cc抄送，email地址之间用,分割。bcc则为密件抄送。subject是邮件主题。newsgroups是发表内容的新闻组，新闻组之间用，隔开。extra添加附加标签。followupto意思不知。</wbr></p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">textformat</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">textformat用来格式化文本，他会去掉空格和特殊字符，和规定行宽和缩进。style规定当前的格式，indent规定缩进的位数。indent_first规定第一行的缩进。indent_char用来缩进的字符，默认是一个空格。wrap规定行宽，即一行的字符数，默认是80。wrap_char规定每行的分隔符，默认是\n。wrap_cut决定是否分割单词。assign将输出分配给变量。</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">常量</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">SMARTY_DIR</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">是到smarty类目录的完全路径，必须以/结束。如果没有定义，将会自动决定路径.</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">SMARTY_CORE_DIR</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">是到smarty类core文件目录的完全路径，必须以/结束。如果没有定义，将会自动定义为smarty_dir路径下面的子目录.</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">变量</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">$template_dir</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">默认的模板目录名，默认为&quot;./templates&quot;.</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">$compile_dir</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">默认的编译模板目录名，默认为&quot;./templates_c&quot;</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">$config_dir</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">默认的config文件目录名，默认为&quot;./configs&quot;.</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">$plugins_dir</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">默认的插件目录名，默认为&quot;plugins&quot;.</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">$debugging</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">debugging控制台。即一个显示变量的窗口.</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">$debug_tpl</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">debug窗口的模板</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">$debugging_ctrl</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">另一种控制debugging的方法。</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">$autoload_filters</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">对所有的模板使用过滤程序，这个变量是一个数组，其中关键字是过滤的类型，值是过滤的名字。</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">$compile_check</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">每次php执行将是否查看模板的内容是否改变。</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">$caching</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">决定是否缓存文件执行生成的文件。</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">$cache_dir</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">默认的模板缓存目录名，默认为&quot;./cache&quot;.</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">$cache_lifetime</p><p style="font: 14px/26px Arial; margin: 0px; padding: 0px; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 2em; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">缓存的模板的过期时间，以秒计算. $caching值为-1则缓存的模板永不过期.</p>
            
                    <div>来源：http://blog.csdn.net/21aspnet/article/details/7590422</div>]]></description>
</item>

<item>
<link><![CDATA[http://www.itivy.com/php/archive/2012/5/22/634732843669766455.html]]></link>
<title><![CDATA[SMARTY核心]]></title>
<author><![CDATA[php园丁]]></author>
<category><![CDATA[]]></category>
<pubDate>Tue, 22 May 2012 12:20:14 GMT</pubDate>
<guid><![CDATA[]]></guid>
<description><![CDATA[
            <span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">http://www.smarty.net/</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">http://smarty.php.net/manual/en/</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">1.配置</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; define(&quot;ROOTPATH&quot;,dirname(__FILE__).&quot;/../&quot;);</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; require_on</span><wbr style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">ce(&quot;smarty/Smarty.class.php&quot;);</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /**</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; * Smarty Template Class Initializtion</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; */</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if( @constant( &quot;ENABLED_TPL&quot; ) ) {</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $obj_smarty = new Smarty();</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $obj_smarty-&gt;compile_check = true; //Open Compile Check</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $obj_smarty-&gt;debugging = false;// false || DEBUG || DEBUG_TPL; //debug On-off</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $obj_smarty-&gt;template_dir = ROOT_PATH.&quot;html&quot;; //Set Template Document Root</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $obj_smarty-&gt;compile_dir = ROOT_PATH.&quot;cache&quot;; //Set Template Cache File Document Root</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $obj_smarty-&gt;left_delimiter = &quot;&lt;!!&quot;; //Set Template Left Delimiter</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $obj_smarty-&gt;right_delimiter = &quot;!!&gt;&quot;; //Set Template Right Delimiter</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /**</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; * 0：Smarty默认值，表示不对模板进行缓存</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; * 1：表示Smarty将使用当前定义的cache_lifetime来决定是否结束cache</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; * 2：表示Smarty将使用在cache被建立时使用cache_lifetime这个值</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; * 习惯上使用true与false来表示是否进行缓存</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; */</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $obj_smarty-&gt;caching = true;</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $obj_smarty-&gt;cache_lifetime = 60 * 60 * 24;//-1:缓存从不过期,0:每次执行缓存总是被重新建立</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">2.循环,section,sectionelse</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!!sectionelse!!&gt; 用来表示传入的数组变量为空时对模板进行的处理。</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!!section name=on</span><wbr style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">e loop=$arr_result start=5 step=2 max=3 show=$show_customer_info!!&gt;</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!!$arr_result[on</span><wbr style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">e].name!!&gt;</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!!$smarty.section.on</span><wbr style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">e.iteration!!&gt; //display the current loop iteration</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!!$smarty.section.on</span><wbr style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">e.index!!&gt;&nbsp;&nbsp;&nbsp;&nbsp; //display the current loop index, starting with zero</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!!$smarty.section.on</span><wbr style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">e.first!!&gt;&nbsp;&nbsp;&nbsp;&nbsp; //first is set to true if the current section iteration is the first on</span><wbr style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">e</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!!$smarty.section.on</span><wbr style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">e.last!!&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //last is set to true if the current section iteration is the last on</span><wbr style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">e.</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!!$smarty.section.on</span><wbr style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">e.loop!!&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //display the last index number that this section looped</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!!$smarty.section.on</span><wbr style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">e.show!!&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //show is a boolean value, true or false</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!!$smarty.section.on</span><wbr style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">e.total!!&gt;&nbsp;&nbsp;&nbsp;&nbsp; //display the number of iterations that this section will loop&nbsp;&nbsp; &nbsp;&nbsp;</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!!$smarty.section.name.rownum+$offset!!&gt;//display the current loop iteration, starting with on</span><wbr style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">e $offset为基值</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!!/section!!&gt;</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!!section name=on</span><wbr style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">e loop=$arr_result!!&gt;</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;input type=&quot;checkbox&quot; name=&quot;&lt;!!$name!!&gt;[]&quot; id=&quot;&lt;!!$name!!&gt;_&lt;!!$smarty.section.on</span><wbr style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">e.index+1!!&gt;&quot; value=&quot;&lt;!!$arr_result[on</span><wbr style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">e].value!!&gt;&quot;</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!!if ($arr_result[on</span><wbr style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">e].value|inarray:$arr_values) !!&gt;checked&lt;!!/if!!&gt;/&gt;&lt;!!$arr_result[on</span><wbr style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">e].value!!&gt;</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!!/section!!&gt;</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!!section name=on</span><wbr style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">e loop=$arr_result!!&gt;</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;option value=&quot;&lt;!!$arr_result[opt].value!!&gt;&quot; &lt;!!if $arr_result[on</span><wbr style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">e].value==$selectedvalue !!&gt;selected&lt;!!/if!!&gt;&gt;&lt;!!$arr_result[on</span><wbr style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">e].option!!&gt;&lt;/option&gt;</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!!/section!!&gt;</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 表格排版 1行2列</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!!if $smarty.section.on</span><wbr style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">e.index%2 eq 0 !!&gt;</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!!if $smarty.section.on</span><wbr style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">e.index%2 eq 1 !!&gt;</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 奇偶数用于斑马线效果</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!!if $smarty.section.on</span><wbr style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">e.rownum%2 eq '0'!!&gt;...&lt;!!else!!&gt;...&lt;!!/if!!&gt;</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 生成斑马线</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;div style=&quot;background:&lt;!!cycle values='#F0F8FF,#F0FFFF,#FFFAF0,#F0FFF0'!!&gt;&quot; id=&quot;div_msg_&lt;!!$smarty.section.on</span><wbr style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">e.rownum!!&gt;&quot;&gt;</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ...</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/div&gt;</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">3.表格,html_table table_foreach</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!!html_table cols=4 table_attr=' width=&quot;95%&quot; border=&quot;0&quot; cellspacing=&quot;0&quot;</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cellpadding=&quot;2&quot; ' tr_attr=' align=&quot;left&quot; valign=&quot;top&quot; ' td_attr=' width=&quot;25%&quot; ' loop=$arr_result!!&gt;</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!!table_foreach from=$addproducts item=sam key=id cols=4 table_attr='width=&quot;100%&quot; border=&quot;0&quot; cellspacing=&quot;4&quot;</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cellpadding=&quot;0&quot;' tr_attr='' td_attr=' width=&quot;25%&quot;align=&quot;center&quot; valign=&quot;&quot;'!!&gt;</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;a href=&quot;&lt;!!$sam.adurl!!&gt;&quot;&gt;</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;img src=&quot;upload/images/&lt;!!$sam.adpic!!&gt;&quot; alt=&quot;&lt;!!$sam.adalt!!&gt;&quot;</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; width=&quot;100&quot; height=&quot;100&quot; border=&quot;0&quot; class='picline'&gt;&lt;/a&gt;</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;a href=&quot;&lt;!!$sam.adurl!!&gt;&quot; title=&quot;&lt;!!$sam.adalt!!&gt;&quot;&gt;&lt;!!$sam.adtitle|substrgb:'0':'20':''!!&gt;&lt;/a&gt;</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!!/table_foreach!!&gt;</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">4.包含文件,include &nbsp;&nbsp;&nbsp;</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!!include file=&quot;header.tpl&quot;!!&gt;</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">5.不解析,literal &nbsp;&nbsp;&nbsp;</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!!literal!!&gt; 这里是js或css,模板不解析 &lt;!!/literal!!&gt;</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">6.条件判断,if,elseif,else &nbsp;&nbsp;&nbsp;</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!!if $name eq &quot;Fred&quot; and ($type eq '1' || $type eq '2')!!&gt;</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Welcome Sir.</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!!elseif $name eq &quot;Wilma&quot;!!&gt;</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Welcome Ma'am.</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!!else!!&gt;</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Welcome, whatever you are.</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!!/if!!&gt;</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;eq&quot;, &quot;ne&quot;,&quot;neq&quot;, &quot;gt&quot;, &quot;lt&quot;, &quot;lte&quot;, &quot;le&quot;, &quot;gte&quot; &quot;ge&quot;,&quot;is even&quot;,&quot;is odd&quot;,</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;is not even&quot;,&quot;is not odd&quot;,&quot;not&quot;,&quot;mod&quot;,&quot;div by&quot;,&quot;even by&quot;,&quot;odd by&quot;,&quot;==&quot;,&quot;!=&quot;,&quot;&gt;&quot;, &quot;&lt;&quot;,&quot;&lt;=&quot;,&quot;&gt;=&quot;</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">7:字符替换,replace &nbsp;&nbsp;&nbsp;</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |replace:&quot;1&quot;:&quot;2&quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1--将被替换的字符串 2--用来替换的文本</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!!$articleTitle|replace:&quot;pear&quot;:&quot;apple&quot;!!&gt;</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">8:去除Html标签,strip_tags &nbsp;&nbsp;</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 去除Html标签 去除在&lt;和&gt;之间的所有标签,包括&lt;和&gt;.</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!!$articleTitle|strip_tags!!&gt;</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">8:字符截取,truncate,substrgb,mbstrutf8 &nbsp;&nbsp;</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 截取|truncate:&quot;1&quot;:&quot;2&quot;:&quot;3&quot;&nbsp;&nbsp; 1--指定截取多少字符 2--截取后加在截取词后的字符串&nbsp;&nbsp; 3--检查是否截取到词的边界 Default(false)</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!!$articleTitle|truncate:30:&quot;...&quot;:true!!&gt;</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!!$articleTitle|substrgb:&quot;0&quot;:&quot;23&quot;:&quot;..&quot;!!&gt;</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!!$arr_story[$top18].rm_title|mbstrutf8:&quot;0&quot;:&quot;34&quot;:&quot;...&quot;!!&gt;</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!!$arr_result[on</span><wbr style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">e].SP_CONTENTS|substrgb:&quot;0&quot;:&quot;16&quot;:&quot;...&quot;!!&gt; 可以解决中文截取乱码问题</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">9:注释,Comments &nbsp;&nbsp;</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 注释</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!!* this is a comment *!!&gt;</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">10:日期格式,date_format &nbsp;&nbsp;</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 日期格式</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!!$smarty.now|date_format!!&gt;</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!!$smarty.now|date_format:&quot;%Y/%m/%d&quot;!!&gt;</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!!$smarty.now|date_format:&quot;%Y-%m-%d&quot;!!&gt;</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; %y：显示两位数字年份, 00 至 99</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; %Y：显示四位数字年份</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; %m：显示数字月份,01-31</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; %b：显示英文月份,简称</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; %B：显示英文月份,全称</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; %d 显示数字日份,01-31</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; %D 显示英文日份,简称3 个字母 Mon 到 Sun</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">11:日期下拉列表,html_select_date &nbsp;&nbsp;</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 日期下拉列表</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!!html_select_date prefix=&quot;StartDate&quot; start_year=&quot;-5&quot; end_year=&quot;+5&quot; field_order=&quot;YMD&quot; month_format=&quot;%m&quot; display_days=false time=&quot;$time&quot;!!&gt;</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; time=&quot;2006-06-06&quot; 可以给定输出想要的值</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">12:循环,foreach,foreachelse</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 选择性的section循环</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from 需要循环的数组的名称</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; item 当前元素的变量名</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; key&nbsp;&nbsp; 当前关键字的变量名</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; name 访问foreache属性的foreach循环名</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $smarty-&gt;assign(&quot;arr_result&quot;, array(array(&quot;phone&quot; =&gt; &quot;1&quot;, &quot;fax&quot; =&gt; &quot;2&quot;, &quot;cell&quot; =&gt; &quot;3&quot;),</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; array(&quot;phone&quot; =&gt; &quot;555-4444&quot;, &quot;fax&quot; =&gt; &quot;555-3333&quot;, &quot;cell&quot; =&gt; &quot;760-1234&quot;)));</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!!foreach name=outer item=contact from=$arr_result!!&gt;</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!!foreach key=key item=item from=$contact!!&gt;</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!!$key!!&gt;: &lt;!!$item!!&gt;</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!!/foreach!!&gt;</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!!/foreach!!&gt;</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!!foreachelse!!&gt; 在from变量没有值的时候被执行</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">13:下拉列表,html_options &nbsp;&nbsp;</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 输出下拉列表</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; name of select group</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; values&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; an array of values for dropdown</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; output&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; an array of output for dropdown</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; selected&nbsp;&nbsp;&nbsp;&nbsp; the selected option element(s)</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; options&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; an associative array of values and output</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;select name=customer_id&gt;</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!!html_options values=$cust_ids selected=$customer_id options=$cust_options output=$cust_names!!&gt;</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/select&gt;</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">14:换行替换,nl2br &nbsp;&nbsp;</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 换行符替换成&lt;br /&gt;</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!!$articleTitle|nl2br!!&gt;</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">15:默认值,default &nbsp;&nbsp;</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 当变量为空或者未分配的时候,将由给定的默认值替代输出.</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!!$articleTitle|default:&quot;no title&quot;!!&gt;</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">16:字符处理,capitalize,ucwords &nbsp;&nbsp;</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 将变量里的所有单词首字大写</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!!$articleTitle|capitalize!!&gt;</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!!$articleTitle|ucwords!!&gt;</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">17:字符串连接,cat &nbsp;&nbsp;</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 字符串连接 将cat里的值连接到给定的变量后面.</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!!$articleTitle|cat:&quot; yesterday.&quot;!!&gt;</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">18:字符处理,strtolower &nbsp;&nbsp;</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 将变量里的所有单词小写.</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!!$articleTitle|strtolower!!&gt;</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">19:获取字符串,fetch</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 获取字符串</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $str_html = $obj_smarty-&gt;fetch(&quot;index.html&quot;);</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">20:capture</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; capture函数的作用是收集模板输出的数据到一个变量里,而不是把它们输出到页面.</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 任何在 {capture name=&quot;foo&quot;}和{/capture}之间的数据都被收到了由函数的名称属性指定的变量里($foo).</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 收集的信息可以用在特殊变量$smarty里.</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 例如capture.foo就收集了以上数据.如果函数没有名字属性,将使用&quot;default&quot;.</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 每个{capture}都必须对应{/capture},也不能嵌套使用capture函数</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {capture name=banner}</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {/capture}</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {capture name=banner2}</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {/capture}</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {if $smarty.capture.banner ne &quot;&quot;}</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;tr&gt;</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;td&gt;</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {$smarty.capture.banner}</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/td&gt;</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;td&gt;</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {$smarty.capture.banner2}</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/td&gt;</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/tr&gt;</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {/if}</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 抓取数据存放在变量中 可以在一个页面中重复使用</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">21:include_php,php</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; include_php</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 在模板里加载php文件</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; php</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 可以直接使用php代码 相当于&lt;?php&nbsp;&nbsp;&nbsp;&nbsp; ?&gt;</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!!include_php file=&quot;phpinfo.php&quot;!!&gt;</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!!php!!&gt;</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; include(&quot;phpinfo.php&quot;);</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo date(&quot;h:i:s&quot;);</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!!/php!!&gt;</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">22:insert</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 使模板的一部分不被缓存</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //demo.php</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $int_cache_id = sprintf('%X', crc32(&quot;index.html&quot;));</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if( !$obj_smarty-&gt;is_cached('index.html', $int_cache_id) ) {</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $obj_smarty-&gt;assign(&quot;str_date&quot;,date(&quot;h:i:s&quot;));</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $obj_smarty-&gt;display(&quot;index.html&quot;,$int_cache_id);</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; function insert_getBanner( $arrParams ) {</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return $arrParams[&quot;lid&quot;].&quot;-andy-&quot;.$arrParams[&quot;sid&quot;];</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //index.html</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!!$str_date!!&gt;</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!!insert name=&quot;getBanner&quot; lid=&quot;1&quot; sid=&quot;2&quot; !!&gt;</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">23:ldelim,rdelim</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ldelim and rdelim are used for displaying the literal delimiter, in our case &quot;{&quot; or &quot;}&quot;.</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 输出变量 不做解析</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!!ldelim!!&gt;funcname&lt;!!rdelim!!&gt; is how functions look in Smarty!</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OUTPUT:</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!!funcname!!&gt; is how functions look in Smarty!</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">24:strip</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 去除&lt;!!strip}&lt;!!/strip!!&gt;间的所有空格</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">25:{$smarty}保留变量</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 页面请求变量</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {* display value of page from URL (GET) http://www.domain.com/index.php?page=foo *}</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {$smarty.get.page}</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {* display the variable &quot;page&quot; from a form a form (POST) *}</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {$smarty.post.page}</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {* display the value of the cookie &quot;username&quot; *}</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {$smarty.cookies.username}</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {* display the server variable &quot;SERVER_NAME&quot; *}</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {$smarty.server.SERVER_NAME}</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {* display the system environment variable &quot;PATH&quot; *}</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {$smarty.env.PATH}</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {* display the php session variable &quot;id&quot; *}</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {$smarty.session.id}</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {* display the variable &quot;username&quot; from merged get/post/cookies/server/env *}</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {$smarty.request.username}</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {$smarty.now}变量用于访问 当前时间戳.</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 可以用 date_format调节器格式化输出.</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {* use the date_format modifier to show current date and time *}</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {$smarty.now|date_format:&quot;%Y-%m-%d %H:%M:%S&quot;}</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {$smarty.const}</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 可以直接访问PHP常量.</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {$smarty.const._MY_CONST_VAL}</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {$smarty.template}</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 当前被处理的模板的名字</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">26:组合使用调节器 |</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!!$articleTitle!!&gt;</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!!$articleTitle|upper|spacify!!&gt;</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!!$articleTitle|lower|spacify|truncate!!&gt;</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!!$articleTitle|lower|truncate:30|spacify!!&gt;</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!!$articleTitle|lower|spacify|truncate:30:&quot;. . .&quot;!!&gt;</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">27:fetch</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 抓取数据</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {* include some javas</span><wbr style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">cript in your template *}</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {fetch file=&quot;/export/httpd/www.domain.com/docs/navbar.js&quot;}</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {* embed some weather text in your template from another web site *}</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {fetch file=&quot;http://www.myweather.com/68502/&quot;}</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {* fetch a news headline file via ftp *}</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {fetch file=&quot;ftp://user:password@ftp.domain.com/path/to/currentheadlines.txt&quot;}</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {* assign the fetched contents to a template variable *}</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {fetch file=&quot;http://www.myweather.com/68502/&quot; assign=&quot;weather&quot;}</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {if $weather ne &quot;&quot;}</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {$weather}</span><br style="font: 14px/26px Arial; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /><span style="color:#000000;font: 14px/26px Arial; text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {/if}</span></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr>
            
                    <div>来源：http://blog.csdn.net/21aspnet/article/details/7590428</div>]]></description>
</item>

<item>
<link><![CDATA[http://www.itivy.com/php/archive/2012/5/22/634732785281183350.html]]></link>
<title><![CDATA[使用ecshop电子商务系统的100个小问题]]></title>
<author><![CDATA[php园丁]]></author>
<category><![CDATA[]]></category>
<pubDate>Tue, 22 May 2012 10:37:54 GMT</pubDate>
<guid><![CDATA[]]></guid>
<description><![CDATA[
            <p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">总结100条关于操作ecshop电子商务系统的小问题。</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp; 1:如何修改网站&quot;欢迎光临本店&quot;</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp; 回答:languages\zh_cn\common.php文件中， $_LANG['welcome'] = '欢迎光临本店';将他修改成你需要的字样。</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp; 2:如何修改首页&quot;热门搜索关键字&quot;</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp; 回答:后台-&gt;系统设置-&gt;网店设置-&gt;显示设置-&gt;首页<a style="margin: 0px; padding: 0px; color: rgb(51, 102, 204); text-decoration: none;" href="http://www.chinab4c.com/html/shangchengchengxu/ecshopchangjianwenti/2009/0623/60.html">搜索关键字</a>，修改他的内容，然后保存</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp; 3:如何修改首页标题&nbsp;&quot;<strong style="margin: 0px; padding: 0px;"><a style="margin: 0px; padding: 0px; color: rgb(51, 102, 204); text-decoration: none;" href="http://www.chinab4c.com/html/shangchengchengxu/ecshopchangjianwenti/2009/0612/37.html">Powered by ECShop</a></strong>&quot;</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp; 回答：includes/lib_main.php,找到$page_title = $GLOBALS['_CFG']['shop_title'] . ' - ' . 'Powered by ECShop';修改成$page_title = $GLOBALS['_CFG']['shop_title']就可以了。</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp; 4:如何去除cshop底部查询信息的显示</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp; 回答：library/page_footer.lbi中，删除&nbsp; {insert name='query_info'}</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">　5:如何发布首页公告</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp; 回答:后台-&gt;系统设置-&gt;商店设置-&gt;网店信息-&gt;商店公告.填写你需要的公告就可以了．</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp; 6:如何发布站内新闻</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">　回答:参考<a style="margin: 0px; padding: 0px; color: rgb(51, 102, 204); text-decoration: none;" href="http://www.chinab4c.com/html/shangchengchengxu/ecshopchangjianwenti/2009/0615/42.html">http://www.chinab4c.com/html/shangchengchengxu/ecshopchangjianwenti/2009/0615/42.html</a></p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp; 7:如何修改网站logo</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp; 回答:用你的logo图片替换/themes/default/images/logo.gif中图片就可以了</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp; 8:如何修改产品图片的大小</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 回答:在ecshop/themes/default/style.css中，找到.goodsItem .goodsimg{width:100px; height:100px; border:4px solid #eef8ff; margin-bottom:4px;}就可以控制产品图片的大小．</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp; 9:如何管理首页flash播放器</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 回答:后台 -&gt;&nbsp; flash播放器管理 -&gt;&nbsp; 增加自定义，你就可以上传和控制图片的位置&nbsp;&nbsp;</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp; 10:如何修改首页＂精品推荐＂栏目的more小图片</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">　回答:模板文件中library/recommend_best.lbi中，&lt;div class=&quot;more&quot;&gt;&lt;a href=&quot;../search.php?intro=best&quot;&gt;&lt;img src=&quot;images/more.gif&quot; /&gt;&lt;/a&gt;&lt;/div&gt;<br style="margin: 0px; padding: 0px;" />&nbsp; 中more.gif图片换成你要的图片，或者将图片换成你需要的文字．</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp; 11:如何修改首页&quot;新品上市&quot;栏目的more小图片</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp; 回答：模板文件library/recommend_new.lbi中，&lt;div class=&quot;more&quot;&gt;&lt;a href=&quot;../search.php?intro=new&quot;&gt;&lt;img src=&quot;images/more.gif&quot; /&gt;&lt;/a&gt;&lt;/div&gt;<br style="margin: 0px; padding: 0px;" />&nbsp; more.gif修改成你需要的图片或者是换成你需要的文字．</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp; 12:如何手动修改支付方式排列顺序</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp; 回答：数据库表中，找到payment表，pay_order字段就是用来控制顺序的，你如果想让A支付方式排在第一，那么你需要修改该字段的值稍微大一些。</p><div style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"><p style="margin: 0px; padding: 0px; text-align: left;">&nbsp;&nbsp; 13:如何去除ecshop产品详细页产品电击率</p><p style="margin: 0px; padding: 0px; text-align: left;">　回答：模板文件中，打开goods.dwt，删除&lt;strong&gt;{$lang.goods_click_count}：&lt;/strong&gt;{$goods.click_count}</p></div><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp; 14:首页模板在哪个文件，头部模板，底部模板个什么文件名称</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp; 回答：首页模板在为index.dwt, 头部模板在library/page_header.lbi,底部文件在library/page_footer.lbi</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp; 15:网站关闭了注册，如何修改“该网店暂停注册”字样</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp; 回答：languages\zh_cn\common.php 中$_LANG['shop_register_closed'] = '该网店暂停注册';修改该文字就可以了<br style="margin: 0px; padding: 0px;" />&nbsp;</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp; 16:收货人详细信息js弹出框的提示脚本在哪个文件</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp; 回答：languages\zh_cn\shopping_flow.php&nbsp;[比如 $_LANG['flow_js']['country_not_null'] = '请您选择收货人所在国家！';]<br style="margin: 0px; padding: 0px;" />&nbsp;</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp; 17:网站<strong style="margin: 0px; padding: 0px;"><a style="margin: 0px; padding: 0px; color: rgb(51, 102, 204); text-decoration: none;" href="http://www.chinab4c.com/html/shangchengchengxu/ecshopchangjianwenti/2009/0610/32.html">公告</a></strong>代码段在那里</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp; 回答: index.php文件中, $smarty-&gt;assign('shop_notice',&nbsp;&nbsp;&nbsp;&nbsp; $_CFG['shop_notice']);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // 商店公告代码段控制公告</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp; 18:网站首页＂精品推荐＂显示数量在那里设置</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">　回答：请参考<a style="margin: 0px; padding: 0px; color: rgb(51, 102, 204); text-decoration: none;" href="http://www.chinab4c.com/html/shangchengchengxu/ecshopchangjianwenti/2009/0613/39.html">http://www.chinab4c.com/html/shangchengchengxu/ecshopchangjianwenti/2009/0613/39.html</a>文章里面第三点</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp; 19:网站首页＂新品上市＂显示数量在那里设置</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">　回答：参照<a style="margin: 0px; padding: 0px; color: rgb(51, 102, 204); text-decoration: none;" href="http://www.chinab4c.com/html/shangchengchengxu/ecshopchangjianwenti/2009/0613/39.html">http://www.chinab4c.com/html/shangchengchengxu/ecshopchangjianwenti/2009/0613/39.html</a>里面第二点</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp; 20:如何修改产品的库存</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp; 回答:商品管理 -&gt; 商品列表 -&gt;&nbsp; 选中(库存),编辑就可以了.</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp; 21:如何修改ecshop表的前缀</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp; 回答:修改data/config.php下的$prefix&nbsp;&nbsp;&nbsp; = &quot;ecs_&quot;;将ecs_修改成你需要的前缀.其次,在数据库中，修改表名比如ecs_goods修改为&quot;xxx_goods&quot;;</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp; 22:如何去除首页flash下面的空白区域</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp; 回答:参照<a style="margin: 0px; padding: 0px; color: rgb(51, 102, 204); text-decoration: none;" href="http://www.chinab4c.com/html/shangchengchengxu/ecshopchangjianwenti/2009/0616/46.html">http://www.chinab4c.com/html/shangchengchengxu/ecshopchangjianwenti/2009/0616/46.html</a></p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp; 23:如何修改ecshop导航栏目名称</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;回答:后台 -&gt; 系统设置 -&gt; 自定义导航栏 -&gt; 编辑 -&gt; 修改导航栏名称</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;24:如何将最新产品栏目显示在导航栏里面？</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">　回答：后台 -&gt; 系统设置 -&gt; 自定义导航栏 -&gt; 增加自定义导航,在链接的栏目中输入&quot;search.php?intro=new&quot;</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;25:如何更换ecshop模板</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp; 回答：比如新模板“test”,你将放在themes目录下，形成的路径为themes/test,然后在后台 -&gt; 模板管理 -&gt; 模板选择 ，起用你新加的模板就OK了。</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;26:ecshop产品相关的图片有那几种</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp; 回答：$goods_img&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = '';&nbsp; // 初始化商品图片<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;&nbsp; $goods_thumb&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = '';&nbsp; // 初始化商品缩略图<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;&nbsp; $original_img&nbsp;&nbsp;&nbsp;&nbsp; = '';&nbsp; // 初始化原始图片<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;&nbsp; $old_original_img = '';&nbsp; // 初始化原始图片旧图</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;27：ecshop首页如何设置“新品”，“精品”，“热卖”商品</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp; 回答：参照<a style="margin: 0px; padding: 0px; color: rgb(51, 102, 204); text-decoration: none;" href="http://www.chinab4c.com/html/shangchengchengxu/ecshopchangjianwenti/2009/0706/82.html">http://www.chinab4c.com/html/shangchengchengxu/ecshopchangjianwenti/2009/0706/82.html</a></p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;28:如何修改“支付方式”显示顺序</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp; 回答：打开ecs_payment表,如果你想让他显示在前面，你将设置pay_order值小一些，比如想让“支付宝”排第一，“快钱”排第二，你就可以设置支付宝pay_order=1,快钱pay_order=2</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp; 29:详细页面的积分</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">　回答：详细页面的积分在模板&lt;strong&gt;{$lang.goods_give_integral}&lt;/strong&gt;&lt;font class=&quot;f4&quot;&gt;{$goods.give_integral} {$points_name}&lt;/font&gt;中来控制的</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp; 30:如何修改产品缩略图大小</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp; 回答：后台 -&gt; 系统设置 -&gt; 网店设置 -&gt; 显示设置 -&gt; 缩略图宽度.,当然你也可以设置缩略图高度</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp; 31:如何设置ecshop货币格式和日期格式。</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp; 回答：后台 -&gt; 系统设置 -&gt; 网店设置 -&gt; 显示设置 -&gt; 货币格式(￥%s元)或者时间格式(Y-m-d H:i:s)</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp; 32:如何开取和关闭ecshop登陆验证码</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp; 回答:后台&nbsp; -&gt; 系统设置 -&gt; 验证码管理&nbsp; ,在这里你可以操作各种验证码,开启和关闭</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp; 33:如何修改个人帐户信息里面，出生年月的范围</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp; {html_select_date field_order=YMD prefix=birthday start_year=-60 end_year=+1 display_days=true month_format=%m day_value_format=%02d time=$profile.birthday}</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;start_year=-60意思是从今天开始，推前面60年。 end_year+=1就是今年开始，往后推一年。就是表示这个范围。如果你需要更大的范围，将他们修改的更大一些。比如start_year=-100,end_year+=100。这样范围够大了把。呵呵</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp; 34:ecshop中的模板中如何包含模板</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp; 回答:查看includes/cls_template.php中，发现php中的include方式在smarty中依然有用. {include file='library/dd.lbi'}所以,你用include方式,就可以在ecshop中的lbi中包含lbi</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp; 35:如何调整ecshop flash播放器播放速度</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp; 回答：// 0xffffff:文字颜色|1:文字位置|0x0066ff:文字背景颜色|60:文字背景透明度|0xffffff:按键文字颜色|0x0066ff:按键默认颜色|0x000033:按键当前颜色|8:自动播放时间(秒)|2:图片过渡效果|1:是否显示按钮|_blank:打开窗口<br style="margin: 0px; padding: 0px;" />&nbsp; var swf_config = &quot;|2|||0xFFFFFF|0xFF6600||2|3|1|_blank&quot;</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp; 以上表明，后面的2是控制速度的，如果你感觉他快了。你就把2修改成比2大的数。这样<strong style="margin: 0px; padding: 0px;"><a style="margin: 0px; padding: 0px; color: rgb(51, 102, 204); text-decoration: none;" href="http://www.chinab4c.com/html/shangchengchengxu/ecshopchangjianwenti/2009/0708/87.html">ecshop flash播放器</a></strong>速度就会慢些</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp; 36:ecshop2.7.0首页轮换图片如何管理</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;回答：后台&nbsp; -&gt; 系统设置 -&gt; 首页主广告管理 -&gt; 系统默认，自定义。。。在这里。你可以进行首页flash图片管理&nbsp;</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp; 37.ecshop订单中，哪个字段是控制折扣的</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp; 回答：order_info表格中，discount字段控制折扣。</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;38:如何显示销售排行:</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp; 回答:显示销售排行，首先你需要有交易的定单,而且该定单已经交易完成,并且该定单中的产品库存不为零.如果库存为零,还是不能显示.</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;39:<strong style="margin: 0px; padding: 0px;">Notice</strong>: Undefined variable: _LANG in<strong style="margin: 0px; padding: 0px;">D:\cms\new\includes\init.php</strong>on line<strong style="margin: 0px; padding: 0px;">179错误如何解决</strong><br style="margin: 0px; padding: 0px;" />　回答：认真检查语言包require(ROOT_PATH . 'languages/' . $_CFG['lang'] . '/common.php');文件是否存在，或者遗漏</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">40:ecshop<strong style="margin: 0px; padding: 0px;"><a style="margin: 0px; padding: 0px; color: rgb(51, 102, 204); text-decoration: none;" href="http://www.chinab4c.com/html/shangchengchengxu/ecshopchangjianwenti/2009/0623/61.html">flash播放器</a></strong>文件和图片在哪个文件夹里面</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">　回答：flash播放器程序在data\flashdata，图片在data\afficheimg里面</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">50:如果不小心把ecshop 的install.lock文件删除了怎么办</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">　回答：很简单．在data 目录下，建立一个名字为install.lock的文件就好了。甚至内容都不需要．</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;51:如何设置快递单的打印模板</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp; 回答：系统设置 -&gt; 配送方式 -&gt; 编辑打印模板</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;52:ecshop如何删除“注册用户”，“VIP用户”价格</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp; 回答：会员管理 -&gt; 会员等级 -&gt; 删除或者不显示对应会员等级的价格</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp; 53：如何调整分类列表也分页显示产品的个数。</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;回答：后台 -&gt; 系统设置 -&gt; 商店设置 -&gt; 显示设置 -&gt; 商品分类页列表的数量</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;54:用户中心，产品推荐，分成细节文字在那里修改：</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;回答：languages\zh_cn\user.php&nbsp;文件中的 $_LANG['affiliate_intro'][0] 内容，进行修改　　<br style="margin: 0px; padding: 0px;" />&nbsp;</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">55:购物车中的文字信息如何修改“您的购物车中有 0 件商品，总计金额 ￥0.00元”</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">回答：languages\zh_cn\common.php 文件中，修改$_LANG['cart_info'] = '您的购物车中有 %d 件商品，总计金额 %s。';文字修改成你需要的文字<br style="margin: 0px; padding: 0px;" />&nbsp;56:如何控制ecshop文件的编码。</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">回答：<span style="font-family:Courier New;margin: 0px; padding: 0px;">header<span style="margin: 0px; padding: 0px;" class="php_007700">(</span><span style="margin: 0px; padding: 0px;" class="php_DD0000">&quot;Content-type: text/html; charset=UTF-8&quot;</span><span style="margin: 0px; padding: 0px;" class="php_007700">);</span></span></p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;57:如何修改调整ecshop用户中心左侧栏目</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;回答：模板文件library/user_menu.lbi中。修改和去除一些栏目，就可以了</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;58:如何设置网站首页最新新闻的数量</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">回答：后台 -&gt; 系统设置　-&gt;　网店设置　-&gt; 显示设置 -&gt; 最新文章显示数量</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">59:ecshop smarty模板中and 语法如何使用</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">回答：{if $smarty.foreach.table_name.iteration &gt; 1 and ($smarty.foreach.table_name.iteration-1) % 4 eq 0}</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">60:<strong style="margin: 0px; padding: 0px;"><a style="margin: 0px; padding: 0px; color: rgb(51, 102, 204); text-decoration: none;" href="http://www.chinab4c.com/html/shangchengchengxu/ecshopchangjianwenti/2009/0819/141.html">ecshop<strong style="margin: 0px; padding: 0px;">积分商城</strong></a></strong>的产品放在哪个表里面？</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">回答：ecs_exchange_goods里面存储了积分商城的产品信息</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">61:ecshop后台如何设置产品价格格式</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">回答:后台-&gt;系统设置-&gt;网店设置-&gt;显示设置-&gt;商品价格显示规则</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">62:如何删除ecshop底部查询</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">回答：模板文件中library/page_footer.lbi中，删除{insert name='query_info'}</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">63：如何给网站底部增加第三方统计代码</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">回答：后台-&gt;系统设置-&gt;基本设置-&gt;统计代码。点保存</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;64:页面标题和中间导航,程序在那里?</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">回答:includes/lib_main.php中的assign_ur_here()函数中</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;65:如何手动调节一个<strong style="margin: 0px; padding: 0px;"><a style="margin: 0px; padding: 0px; color: rgb(51, 102, 204); text-decoration: none;" href="http://www.chinab4c.com/html/shangchengchengxu/ecshopchangjianwenti/2009/0805/119.html">ecshop会员的等级</a></strong></p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">回答:后台-&gt;会员管理-&gt;会员列表-&gt;选中某个会员 -&gt; 查看帐目明细 -&gt; 调节会员帐户 -&gt; 等级积分帐户(增加或者减少)相对应的分,调节到需要调节的会员等级的积分。就能达到手动调节会员等级的效果</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">66:如何改变<strong style="margin: 0px; padding: 0px;"><a style="margin: 0px; padding: 0px; color: rgb(51, 102, 204); text-decoration: none;" href="http://www.chinab4c.com/html/shangchengchengxu/ecshopchangjianwenti/2009/0708/87.html">ecshop首页flash</a></strong>显示的大小</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">回答：模板文件中，index.dwt.</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&lt;script type=&quot;text/javascript&quot;&gt;<br style="margin: 0px; padding: 0px;" />&nbsp; var swf_width=534;<br style="margin: 0px; padding: 0px;" />&nbsp; var swf_height=218;<br style="margin: 0px; padding: 0px;" />&nbsp; &lt;/script&gt;</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">修改他的值就可以了</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">67:如何修改网站关闭后的提示信息？</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">回答：languages\zh_cn\common.php 中，把这句中文，修改成你要的文字$_LANG['shop_closed'] = '本店盘点中，请您稍后再来...';<br style="margin: 0px; padding: 0px;" />&nbsp;68:js如何取select的值</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">回答：var t = document.getElementById(&quot;typeController&quot;);<br style="margin: 0px; padding: 0px;" />alert(t.options[t.selectedIndex].value);</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">69:让<strong style="margin: 0px; padding: 0px;"><a style="margin: 0px; padding: 0px; color: rgb(51, 102, 204); text-decoration: none;" href="http://www.chinab4c.com/html/shangchengchengxu/ecshopdianzishangwu/index.html">ecshop属性</a></strong>下拉格式显示</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">回答：后台－系统设置－商店设置－商品显示设置&nbsp; &nbsp; 第六行&nbsp;&nbsp;商品属性显示样式:&nbsp;&nbsp;单选按钮 下拉列表</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;70:如何控制评论的审核状态</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">回答：后台-&gt;系统设置-&gt;商店设置-&gt;基本设置-&gt;用户评论是否需要审核</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">71:ecshop中奇兵夺宝的时间和信息在哪个表</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">回答：ecs_snatch_log里面装着出价的时间和价格。还有用户ID,出价时间是bid_time</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">71:ecshop模板如何控制字符长度</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">回答：{$article.short_title|truncate:10:&quot;...&quot;:true}这样就可以截取字符串长度了</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">好忙啊。。。。。待叙。。。。争取早日完成100条。。。</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">72:如何编辑“ecshop用户协议”</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">回答：后台-&gt;<strong style="margin: 0px; padding: 0px;"><a style="margin: 0px; padding: 0px; color: rgb(51, 102, 204); text-decoration: none;" href="http://www.chinab4c.com/html/shangchengchengxu/ecshopchangjianwenti/2009/0615/42.html">文章管理</a></strong>-&gt;文章列表-&gt;编辑“用户协议”那篇文章。</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">73:如何修改后台操作栏目条</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">回答：languages\zh_cn\admin\common.php中修改</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">74:如何在ecshop自定义导航栏增加<strong style="margin: 0px; padding: 0px;"><a style="margin: 0px; padding: 0px; color: rgb(51, 102, 204); text-decoration: none;" href="http://www.chinab4c.com/plus/view.php?aid=141">ecshop积分商城</a></strong></p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">回答：exchange.php增加进去，就可以了。&nbsp;&nbsp;</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">75:ecshop数据库备份的文件放在哪个目录</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">回答：data\sqldata目录下面</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">76L如何加强ecshop搜索</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">回答:</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"><span style="font-family:Courier New;margin: 0px; padding: 0px;">&nbsp;&nbsp; word_list = explode(' ', $keyword);<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;foreach ($word_list as $word)<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$conditions .= &quot; AND (g.goods_name LIKE '%&quot; . trim($word) . &quot;%')&quot;;<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;&nbsp;}</span></p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"><span style="font-family:Courier New;margin: 0px; padding: 0px;">&nbsp;根据ecmall论坛上朋友的思路，可以更加方便搜索.</span></p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">77:如何增加在ecshop中增加和&quot;中国&quot;同一级别的地区地址。</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">回答：insert into ecs_region values('','0','美国','0','0');在根据该region_id.插入不同级别地区。</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">78:如何修改ur_here.lbi中的信息</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">回答：includes/lib_main.php函数中，修改assign_ur_here()函数</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">79:如何修复mysql的myd文件。</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">回答：执行REPAIR TABLE 命令</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;80:如何控制ECSHOP商品浏览历史数量</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">回答：系统设置-&gt;商店设置-&gt;显示设置-&gt;浏览历史数量设置</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">81:Can't Connect MySQL Server(localhost:3306)! 如何修改</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;回答：当你换了空间，或者是换了密码之后，你需要修改data/config.php文件。修改成目前现在的密码</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">82:V2.7.1 beta1 admin目录怎么修改</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">回答：data/config.php里面修改$admin_dir = &quot;xx&quot;;</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">83:ecshop.2.7.1里面，如何将其他栏目增加到导航栏</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">回答：系统设置-&gt;自定义导航栏-&gt;(填写栏目名称，地址，以及位置)</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">84:如何将分类商品推荐到首页</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">回答：后台-&gt;商品管理-&gt;商品分类-&gt;编辑.-&gt;设置为首页推荐:在里面勾选就可以了。</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">85:ECSHOP中admin/sitemap.php 这个<span style="margin: 0px; padding: 0px;" class="t_tag" href="tag.php?name=%CE%C4%BC%FE">文件</span>是用来做什么的？ 它生成的sitemap.xml 文件有什么用？？</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">回答：他是生成<strong style="margin: 0px; padding: 0px;"><a style="margin: 0px; padding: 0px; color: rgb(51, 102, 204); text-decoration: none;" href="http://www.chinab4c.com/html/dianzishangwuseo/2009/0703/80.html">ecshop网站地图</a></strong>,生成的地图文件，可以用来帮助商城的SEO方面的用途</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">86:新下载的ecshop模板如何使用</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">回答:解压后，把他直接拷贝到themes目录里面。然后在后台模板设置里面，起用该模板就可以了。</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">87:<strong style="margin: 0px; padding: 0px;"><a style="margin: 0px; padding: 0px; color: rgb(51, 102, 204); text-decoration: none;" href="http://www.chinab4c.com/html/shangchengchengxu/ecshopchangjianwenti/2009/0611/36.html">ecshop后台商品详细页面</a></strong>编辑器在那里定义和实例化的</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">回答：admin/includes/lib_main.php中的create_html_editor($input_name, $input_value = '')函数。。进行编辑器定义。</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">88:如何获取某个商品某个属性的值</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">回答：利用以下函数</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">function get_zhiding_attr_value($aid,$gid){<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;global $ecs;<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;global $db;<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;return $db -&gt; getOne(&quot;select attr_value from &quot;.$ecs-&gt;table('goods_attr').&quot; where goods_id = $gid and attr_id = $aid&quot;);<br style="margin: 0px; padding: 0px;" />&nbsp;}</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">89:文章分类每页显示的数量</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">回答:后台-&gt;显示设置-&gt;文章分类页列表的数量.这里设置每个页面显示的数量.</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">90:ecshop商品扩展分类存储在哪个表里面</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">回答：存储在ecs_goods_cat表里面</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">91:ecshop模板中$smarty.get.act确实有用。</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">回答：例子就是这样，效果不错location.href += 'order.php?act={$smarty.get.act}&amp;order_id={$smarty.get.order_id}&amp;step={$smarty.get.step}&amp;address_id=' + addressId;</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">92:ecshop中的自定义导航程序,出自哪个<strong style="margin: 0px; padding: 0px;"><a style="margin: 0px; padding: 0px; color: rgb(51, 102, 204); text-decoration: none;" href="http://www.chinab4c.com/html/shangchengchengxu/ecshophanshu/index.html">ecshop函数</a></strong></p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">回答:includes/lib_main.php中的get_navigator($ctype = '', $catlist = array())</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">93:如何手动设置ecshop缓存时间</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">回答：includes/cls_templates.php里面设置&nbsp;&nbsp;var $cache_lifetime = 3600; // 缓存更新时间, 默认 3600 秒的值得</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">94:如何优化ecshop手机号码格式验证</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">回答：使用该方法</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"><span style="color:#000000;margin: 0px; padding: 0px;">var reg =/^[1]([3][0-9]{1}|50|53|59|58|56|86|80|89|87|88|85|86|55|51|52|57)[0-9]{8}$/;<br style="margin: 0px; padding: 0px;" />&nbsp;reg.test(mobile_phone)</span></p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"><span style="color:#000000;margin: 0px; padding: 0px;">95:做好了的快递插件放什么位置</span></p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"><span style="color:#000000;margin: 0px; padding: 0px;">回答：\includes\modules\shipping这个目录就是存储配送插件目录的</span></p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"><span style="color:#000000;margin: 0px; padding: 0px;">96:会员注册怎么送积分</span></p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"><span style="color:#000000;margin: 0px; padding: 0px;">回答：商店设置-&gt;基本设置-&gt;会员注册赠送积分</span></p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">97:<strong style="margin: 0px; padding: 0px;"><a style="margin: 0px; padding: 0px; color: rgb(51, 102, 204); text-decoration: none;" href="http://www.chinab4c.com/html/chajian/ecshopchajian/200912/30-384.html">EC如何验证注册</a></strong>email是否重复</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">回答:js/user.js的function checkEmail(email)方法通过调用ajax验证</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">98:ecshop模板中如何赋值给新变量</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">回答:{assign var=&quot;cat_goods&quot; value=&quot;x&quot;}</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">99:ecshop订单表里面。哪个字段是已经付款金额</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">回答：formated_money_paid字段是用来控制已付金额的</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">100:ecshop后台如何增加统计代码</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">回答：后台-&gt;系统设置-&gt;商店设置-&gt;基本设置-&gt;统计代码.在这里可以放统计代码</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">总结50条<strong style="margin: 0px; padding: 0px;"><a style="margin: 0px; padding: 0px; color: rgb(51, 102, 204); text-decoration: none;" href="http://www.chinab4c.com/html/shangchengchengxu/ecshopchangjianwenti/index.html">ecshop二次开</a></strong>发小技巧。希望对大家有所帮助。我将尽力快速的完成完善本文．但是有一点，不会说的太详细，也不会有完整的代码。只提供思路给大家．</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp; 1:如何统计ecshop商品在订单中出现的次数</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp; 回答:$count = $db -&gt; getOne(&quot;select sum(goods_number) from &quot;.$ecs-&gt;table('order_goods').&quot; where goods_id = '$goods[goods_id]'&quot;);</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp; 2:<strong style="margin: 0px; padding: 0px;"><a style="margin: 0px; padding: 0px; color: rgb(51, 102, 204); text-decoration: none;" href="http://www.chinab4c.com/html/chajian/ecshopchajian/201004/27-616.html">ecshop详细页面</a></strong>如何通过onclick点击事件来控制购买，特别用在批发，批发存在一个最小购买量控制．</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp; 回答:</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;script&gt;<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; function adgtz(){<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var number = document.getElementById(&quot;ordernumber&quot;).value;<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var min_number = {$goods.min_number};<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var goods_num = 1000;<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if(number &gt; goods_num - min_number){<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;alert(&quot;最多能买&quot;+goods_number+&quot;件&quot;);<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; number=parseInt(number)+min_number;<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; document.getElementById(&quot;ordernumber&quot;).value = number;<br style="margin: 0px; padding: 0px;" />&nbsp;}<br style="margin: 0px; padding: 0px;" />&nbsp;function adgtzmm(){<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;&nbsp; var number = document.getElementById(&quot;ordernumber&quot;).value;<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;&nbsp;&nbsp; var min_number = {$goods.min_number};<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;&nbsp; if (number&gt;min_number){<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; number=parseInt(number)-min_number;<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;&nbsp; }<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;&nbsp; document.getElementById(&quot;ordernumber&quot;).value = number;<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;&nbsp;<br style="margin: 0px; padding: 0px;" />&nbsp;}<br style="margin: 0px; padding: 0px;" />&nbsp;&lt;/script&gt;</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp; 3:如何用js去验证手机号码．</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp; 回答：var reg =/^[1]([3][0-9]{1}|50|53|59|58|56|86|80|89|87|88|85|86|55|51|52|57)[0-9]{8}$/;</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp; 4:ecshop中如何取得每个月的1号时间?</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp; 回答:local_mktime(0,0,0,date(&quot;m&quot;),0,date(&quot;Y&quot;));使用ecshop的local_mktime函数.&nbsp;&nbsp;<a style="margin: 0px; padding: 0px; color: rgb(51, 102, 204); text-decoration: none;" href="http://www.chinab4c.com/html/shangchengchengxu/ecshophanshu/2009/0629/70.html">http://www.chinab4c.com/html/shangchengchengxu/ecshophanshu/2009/0629/70.html</a></p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp; 5:ecshop如何直接关闭窗口而不弹出提示</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp; 回答:&lt;a href=&quot;javascript:window.opener=null;window.close();&quot;&gt;</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp; 6:如何统计ecshop某商品下被审核过的评论数量。</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp; 回答：$ccount = $db -&gt; getOne(&quot;select count(*) cc from &quot;.$ecs-&gt;table('comment').&quot; where id_value = '$goods_id' and comment_type = '0' and status = '1' and parent_id = '0'&quot;);</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp; 有关ecshop评论，请参考本文<a style="margin: 0px; padding: 0px; color: rgb(51, 102, 204); text-decoration: none;" href="http://www.chinab4c.com/html/shangchengchengxu/ecshopchangjianwenti/2009/0811/129.html">http://www.chinab4c.com/html/shangchengchengxu/ecshopchangjianwenti/2009/0811/129.html</a></p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp; 7:ecshop中js如何将时间格式互转</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp; 回答：date1 = new Date();<br style="margin: 0px; padding: 0px;" />&nbsp;var b = Date.UTC(date1.getYear(),date1.getMonth()+1,date1.getDate(),0,0,0)<br style="margin: 0px; padding: 0px;" />&nbsp;time1 = frm.elements['best_time'].value;<br style="margin: 0px; padding: 0px;" />&nbsp;<br style="margin: 0px; padding: 0px;" />&nbsp;y = time1.substring(0,4);<br style="margin: 0px; padding: 0px;" />&nbsp;m = time1.substring(5,7);<br style="margin: 0px; padding: 0px;" />&nbsp;d = time1.substring(8,10);<br style="margin: 0px; padding: 0px;" />&nbsp;var b2 = Date.UTC(y,m,d,0,0,0)</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp; 8:如何解析ecshop flash的xml</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp; 回答：</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp; &nbsp;$str = @file_get_contents(&quot;data/flash_data.xml&quot;);<br style="margin: 0px; padding: 0px;" />&nbsp;if($str){<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;preg_match_all(&quot;/item_url=\&quot;(.*?)\&quot;/&quot;,$str,$url);<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;preg_match_all(&quot;/text=\&quot;(.*?)\&quot;/&quot;,$str,$text);<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;preg_match_all(&quot;/link=\&quot;(.*?)\&quot;/&quot;,$str,$link);<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;$ar_flash = array();<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;if(sizeof($url[1])){<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;&nbsp;for($i=0;$i&lt;sizeof($url[1]);$i++){<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;&nbsp;&nbsp;$ar_flash[$i]['url']&nbsp; = $url[1][$i];<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;&nbsp;&nbsp;$ar_flash[$i]['text'] = $text[1][$i];<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;&nbsp;&nbsp;$ar_flash[$i]['link'] = $link[1][$i];</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;}<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;&nbsp;$smarty-&gt;assign('ar_flash',$ar_flash);<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;}<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;<br style="margin: 0px; padding: 0px;" />&nbsp;}<br style="margin: 0px; padding: 0px;" />&nbsp;9:ecshop中如何正则提取中文</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;回答:preg_match(&quot;/[&quot;.chr(0xa1).&quot;-&quot;.chr(0xff).&quot;]+/&quot;,ecs_iconv(&quot;UTF-8&quot;,&quot;GBK&quot;,$v['brand_name']),$cn);</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;10:ecshop如何取得订单中所属区域</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">$p = $GLOBALS['db']-&gt;getOne(&quot;select region_name from &quot;.$GLOBALS['ecs']-&gt;table('region').&quot; where region_id = '&quot;.$re1['province'].&quot;'&quot;);<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;&nbsp;&nbsp;$c = $GLOBALS['db']-&gt;getOne(&quot;select region_name from &quot;.$GLOBALS['ecs']-&gt;table('region').&quot; where region_id = '&quot;.$re1['city'].&quot;'&quot;);<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;&nbsp;&nbsp;$d = $GLOBALS['db']-&gt;getOne(&quot;select region_name from &quot;.$GLOBALS['ecs']-&gt;table('region').&quot; where region_id = '&quot;.$re1['district'].&quot;'&quot;);</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">11:ecshop中如何分别提取中文和英文</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">回答:utf下面</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">$pregstr = &quot;/[\x{4e00}-\x{9fa5}]+/u&quot;;<br style="margin: 0px; padding: 0px;" />&nbsp;preg_match($pregstr,$v['brand_name'],$ch);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">gbk下面</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0cm 0cm 0pt 36pt; padding: 0px; color: rgb(51, 51, 51); text-transform: none; text-indent: 0cm; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="MsoListParagraph"><span style="margin: 0px; padding: 0px;"><span style="font-family:Calibri;margin: 0px; padding: 0px;">$strtest = “yyg</span></span><span style="margin: 0px; padding: 0px;">中文字符</span><span style="margin: 0px; padding: 0px;"><span style="font-family:Calibri;margin: 0px; padding: 0px;">yyg”;</span></span></p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0cm 0cm 0pt 36pt; padding: 0px; color: rgb(51, 51, 51); text-transform: none; text-indent: 0cm; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="MsoListParagraph"><span style="margin: 0px; padding: 0px;"><span style="font-family:Calibri;margin: 0px; padding: 0px;">$pregstr = &quot;/([&quot;.chr(0xb0).&quot;-&quot;.chr(0xf7).&quot;][&quot;.chr(0xa1).&quot;-&quot;.chr(0xfe).&quot;])+/i&quot;;</span></span></p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0cm 0cm 0pt 36pt; padding: 0px; color: rgb(51, 51, 51); text-transform: none; text-indent: 0cm; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="MsoListParagraph"><span style="margin: 0px; padding: 0px;"><span style="font-family:Calibri;margin: 0px; padding: 0px;">if(preg_match($pregstr,$strtest,$matchArray)){</span></span></p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0cm 0cm 0pt 36pt; padding: 0px; color: rgb(51, 51, 51); text-transform: none; text-indent: 5.25pt; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="MsoListParagraph"><span style="margin: 0px; padding: 0px;"><span style="font-family:Calibri;margin: 0px; padding: 0px;">echo $matchArray[0];</span></span></p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0cm 0cm 0pt 36pt; padding: 0px; color: rgb(51, 51, 51); text-transform: none; text-indent: 0cm; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="MsoListParagraph"><span style="margin: 0px; padding: 0px;"><span style="font-family:Calibri;margin: 0px; padding: 0px;">}</span></span></p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0cm 0cm 0pt 36pt; padding: 0px; color: rgb(51, 51, 51); text-transform: none; text-indent: 0cm; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="MsoListParagraph">&nbsp;</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0cm 0cm 0pt 36pt; padding: 0px; color: rgb(51, 51, 51); text-transform: none; text-indent: 0cm; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="MsoListParagraph"><span style="margin: 0px; padding: 0px;"><span style="font-family:Calibri;margin: 0px; padding: 0px;">12:如何控制<a style="margin: 0px; padding: 0px; color: rgb(51, 102, 204); text-decoration: none;" href="http://www.chinab4c.com/html/shangchengchengxu/ecshopchangjianwenti/2010/0601/647.html"><strong style="margin: 0px; padding: 0px;">ecshop商品</strong></a>总价格只有ecshop会员特殊等级才能查看</span></span></p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0cm 0cm 0pt 36pt; padding: 0px; color: rgb(51, 51, 51); text-transform: none; text-indent: 0cm; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="MsoListParagraph"><span style="margin: 0px; padding: 0px;"><span style="font-family:Calibri;margin: 0px; padding: 0px;">回答：ecshop的goods.php</span></span></p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0cm 0cm 0pt 36pt; padding: 0px; color: rgb(51, 51, 51); text-transform: none; text-indent: 0cm; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="MsoListParagraph"><span style="margin: 0px; padding: 0px;"><span style="font-family:Calibri;margin: 0px; padding: 0px;">$is_spe = $GLOBALS['db'] -&gt; getOne(&quot;select special_rank from &quot;.$GLOBALS['ecs']-&gt;table('user_rank').&quot; where rank_id = '&quot;.$_SESSION['user_rank'].&quot;'&quot;);<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;if($is_spe){<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;&nbsp; $res['result'] = price_format($shop_price * $number);<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;}else{<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;&nbsp; $string = &quot;&lt;a href=article-21-%E6%80%8E%E4%B9%88%E6%B3%A8%E5%86%8C.html&gt;请联系客服&lt;/a&gt;&quot;;<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;&nbsp; $res['result'] = $string;<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;}</span></span></p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0cm 0cm 0pt 36pt; padding: 0px; color: rgb(51, 51, 51); text-transform: none; text-indent: 0cm; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="MsoListParagraph">&nbsp;</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0cm 0cm 0pt 36pt; padding: 0px; color: rgb(51, 51, 51); text-transform: none; text-indent: 0cm; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="MsoListParagraph">13:调试ecshop程序出现以下错误<strong style="margin: 0px; padding: 0px;">Fatal error</strong>: Cannot redeclare是什么意思？</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0cm 0cm 0pt 36pt; padding: 0px; color: rgb(51, 51, 51); text-transform: none; text-indent: 0cm; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="MsoListParagraph">&nbsp;</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0cm 0cm 0pt 36pt; padding: 0px; color: rgb(51, 51, 51); text-transform: none; text-indent: 0cm; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="MsoListParagraph">回答：<strong style="margin: 0px; padding: 0px;">Fatal error</strong>: Cannot redeclare,意思是你运行的程序中，某函数重新申明了两次，要删除其中一个同名函数．</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0cm 0cm 0pt 36pt; padding: 0px; color: rgb(51, 51, 51); text-transform: none; text-indent: 0cm; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="MsoListParagraph">&nbsp;</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0cm 0cm 0pt 36pt; padding: 0px; color: rgb(51, 51, 51); text-transform: none; text-indent: 0cm; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="MsoListParagraph">&nbsp;14:<a style="margin: 0px; padding: 0px; color: rgb(51, 102, 204); text-decoration: none;" href="http://www.chinab4c.com/">ecshop</a>如何判断是否当天登陆，并赠送积分.</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0cm 0cm 0pt 36pt; padding: 0px; color: rgb(51, 51, 51); text-transform: none; text-indent: 0cm; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="MsoListParagraph">&nbsp;回答:/* 赠送积分 */<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;$day = local_mktime(0,0,0,date(&quot;m&quot;),date(&quot;d&quot;),date(&quot;Y&quot;));<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;$last_time = $db -&gt; getOne(&quot;select last_login from &quot;.$ecs-&gt;table('users').&quot; where user_name = '&quot;.$username.&quot;'&quot;);<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;if($last_time &lt; $day){<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;&nbsp;log_account_change($_SESSION['user_id'], 0, 0, 0, 10, '每天登陆送积分', ACT_OTHER);<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;}<br style="margin: 0px; padding: 0px;" />&nbsp;</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0cm 0cm 0pt 36pt; padding: 0px; color: rgb(51, 51, 51); text-transform: none; text-indent: 0cm; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="MsoListParagraph">15:如何在<a style="margin: 0px; padding: 0px; color: rgb(51, 102, 204); text-decoration: none;" href="http://www.chinab4c.com/html/chajian/ecshopchajian/201003/25-557.html">ecshop订单</a>列表中列表出订单中所包含的商品编号.</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0cm 0cm 0pt 36pt; padding: 0px; color: rgb(51, 51, 51); text-transform: none; text-indent: 0cm; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="MsoListParagraph">&nbsp;回答:</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0cm 0cm 0pt 36pt; padding: 0px; color: rgb(51, 51, 51); text-transform: none; text-indent: 0cm; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="MsoListParagraph">&nbsp;&nbsp;&nbsp; function get_user_orders($user_id, $num = 10, $start = 0)<br style="margin: 0px; padding: 0px;" />{<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;&nbsp; /* 取得订单列表 */<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;&nbsp; $arr&nbsp;&nbsp;&nbsp; = array();<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;&nbsp; global $ecs;<br style="margin: 0px; padding: 0px;" />&nbsp;global&nbsp; $db;<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;&nbsp; $sql = &quot;SELECT order_id, order_sn, order_status,consignee, shipping_status, pay_status, add_time, &quot; .<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;(goods_amount + shipping_fee + insure_fee + pay_fee + pack_fee + card_fee + tax - discount) AS total_fee &quot;.<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot; FROM &quot; .$GLOBALS['ecs']-&gt;table('order_info') .<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot; WHERE user_id = '$user_id' ORDER BY add_time DESC&quot;;<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;&nbsp; $res = $GLOBALS['db']-&gt;SelectLimit($sql, $num, $start);</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0cm 0cm 0pt 36pt; padding: 0px; color: rgb(51, 51, 51); text-transform: none; text-indent: 0cm; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="MsoListParagraph">&nbsp;&nbsp;&nbsp; while ($row = $GLOBALS['db']-&gt;fetchRow($res))<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;&nbsp; {<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if ($row['order_status'] == OS_UNCONFIRMED)<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $row['handler'] = &quot;&lt;a href=\&quot;user.php?act=cancel_order&amp;order_id=&quot; .$row['order_id']. &quot;\&quot; onclick=\&quot;if (!confirm('&quot;.$GLOBALS['_LANG']['confirm_cancel'].&quot;')) return false;\&quot;&gt;&quot;.$GLOBALS['_LANG']['cancel'].&quot;&lt;/a&gt;&quot;;<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; else if ($row['order_status'] == OS_SPLITED)<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /* 对配送状态的处理 */<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if ($row['shipping_status'] == SS_SHIPPED)<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; @$row['handler'] = &quot;&lt;a href=\&quot;user.php?act=affirm_received&amp;order_id=&quot; .$row['order_id']. &quot;\&quot; onclick=\&quot;if (!confirm('&quot;.$GLOBALS['_LANG']['confirm_received'].&quot;')) return false;\&quot;&gt;&quot;.$GLOBALS['_LANG']['received'].&quot;&lt;/a&gt;&quot;;<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; elseif ($row['shipping_status'] == SS_RECEIVED)<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; @$row['handler'] = '&lt;span style=&quot;color:red&quot;&gt;'.$GLOBALS['_LANG']['ss_received'] .'&lt;/span&gt;';<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; else<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if ($row['pay_status'] == PS_UNPAYED)<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; @$row['handler'] = &quot;&lt;a href=\&quot;user.php?act=order_detail&amp;order_id=&quot; .$row['order_id']. '&quot;&gt;' .$GLOBALS['_LANG']['pay_money']. '&lt;/a&gt;';<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; else<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; @$row['handler'] = &quot;&lt;a href=\&quot;user.php?act=order_detail&amp;order_id=&quot; .$row['order_id']. '&quot;&gt;' .$GLOBALS['_LANG']['view_order']. '&lt;/a&gt;';<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0cm 0cm 0pt 36pt; padding: 0px; color: rgb(51, 51, 51); text-transform: none; text-indent: 0cm; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="MsoListParagraph">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; else<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $row['handler'] = '&lt;span style=&quot;color:red&quot;&gt;'.$GLOBALS['_LANG']['os'][$row['order_status']] .'&lt;/span&gt;';<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $row2 = $db -&gt; getAll(&quot;select goods_id ,goods_sn from &quot;.$ecs-&gt;table('order_goods').&quot; where order_id = '&quot;.$row['order_id'].&quot;'&quot;);<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $row['shipping_status'] = ($row['shipping_status'] == SS_SHIPPED_ING) ? SS_PREPARING : $row['shipping_status'];<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $row['order_status'] = $GLOBALS['_LANG']['os'][$row['order_status']] . ',' . $GLOBALS['_LANG']['ps'][$row['pay_status']] . ',' . $GLOBALS['_LANG']['ss'][$row['shipping_status']];</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0cm 0cm 0pt 36pt; padding: 0px; color: rgb(51, 51, 51); text-transform: none; text-indent: 0cm; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="MsoListParagraph">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $arr[] = array('order_id'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =&gt; $row['order_id'],<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'order_sn'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =&gt; $row['order_sn'],<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'order_time'&nbsp;&nbsp;&nbsp;&nbsp; =&gt; local_date($GLOBALS['_CFG']['time_format'], $row['add_time']),<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'order_status'&nbsp;&nbsp; =&gt; $row['order_status'],<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'consignee'&nbsp;&nbsp; =&gt; $row['consignee'],<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'total_fee'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =&gt; price_format($row['total_fee'], false),<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'goodslist'&nbsp;&nbsp; =&gt; $row2,<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'handler'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =&gt; $row['handler']);<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;&nbsp; }</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0cm 0cm 0pt 36pt; padding: 0px; color: rgb(51, 51, 51); text-transform: none; text-indent: 0cm; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="MsoListParagraph">&nbsp;&nbsp;&nbsp; return $arr;<br style="margin: 0px; padding: 0px;" />}</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0cm 0cm 0pt 36pt; padding: 0px; color: rgb(51, 51, 51); text-transform: none; text-indent: 0cm; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="MsoListParagraph">&nbsp;</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0cm 0cm 0pt 36pt; padding: 0px; color: rgb(51, 51, 51); text-transform: none; text-indent: 0cm; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="MsoListParagraph">16:如何取得<a style="margin: 0px; padding: 0px; color: rgb(51, 102, 204); text-decoration: none;" href="http://www.chinab4c.com/">ecshop</a>会员一天内的评论条数</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0cm 0cm 0pt 36pt; padding: 0px; color: rgb(51, 51, 51); text-transform: none; text-indent: 0cm; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="MsoListParagraph">&nbsp;回答:</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0cm 0cm 0pt 36pt; padding: 0px; color: rgb(51, 51, 51); text-transform: none; text-indent: 0cm; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="MsoListParagraph">function get_day_count_comment($user_id = ''){<br style="margin: 0px; padding: 0px;" />&nbsp;<br style="margin: 0px; padding: 0px;" />&nbsp;global $db;<br style="margin: 0px; padding: 0px;" />&nbsp;global $ecs;<br style="margin: 0px; padding: 0px;" />&nbsp;$pre = local_mktime(0,0,0,date(&quot;m&quot;),date(&quot;d&quot;),date(&quot;y&quot;));<br style="margin: 0px; padding: 0px;" />&nbsp;$next = local_mktime(0,0,0,date(&quot;m&quot;),date(&quot;d&quot;)+2,date(&quot;y&quot;));<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;<br style="margin: 0px; padding: 0px;" />&nbsp;$count = $db -&gt; getOne(&quot;select count(*) from &quot;.$ecs-&gt;table('comment').&quot; where user_id = '$user_id' and add_time &gt; '$pre' and add_time &lt; '$next' &quot;);<br style="margin: 0px; padding: 0px;" />&nbsp;<br style="margin: 0px; padding: 0px;" />&nbsp;if($count &gt; 5){<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;return false;<br style="margin: 0px; padding: 0px;" />&nbsp;}else{<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;return true;<br style="margin: 0px; padding: 0px;" />&nbsp;}<br style="margin: 0px; padding: 0px;" />}</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0cm 0cm 0pt 36pt; padding: 0px; color: rgb(51, 51, 51); text-transform: none; text-indent: 0cm; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="MsoListParagraph">&nbsp;</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0cm 0cm 0pt 36pt; padding: 0px; color: rgb(51, 51, 51); text-transform: none; text-indent: 0cm; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="MsoListParagraph">17:ecshop中js是如何验证radio选择．</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0cm 0cm 0pt 36pt; padding: 0px; color: rgb(51, 51, 51); text-transform: none; text-indent: 0cm; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="MsoListParagraph">&nbsp;回答：类似以下代码</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0cm 0cm 0pt 36pt; padding: 0px; color: rgb(51, 51, 51); text-transform: none; text-indent: 0cm; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="MsoListParagraph">&nbsp; /*<br style="margin: 0px; padding: 0px;" />&nbsp; var businesstype = false;<br style="margin: 0px; padding: 0px;" />&nbsp; var job_title = false;<br style="margin: 0px; padding: 0px;" />&nbsp; var number_of_employees = false;</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0cm 0cm 0pt 36pt; padding: 0px; color: rgb(51, 51, 51); text-transform: none; text-indent: 0cm; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="MsoListParagraph"><br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp; for (i = 0; i &lt; frm.elements.length; i ++ )<br style="margin: 0px; padding: 0px;" />&nbsp; {<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;&nbsp; if (frm.elements[i].name == 'businesstype' &amp;&amp; frm.elements[i].checked)<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;&nbsp; {<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; businesstype = true;<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;&nbsp; }</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0cm 0cm 0pt 36pt; padding: 0px; color: rgb(51, 51, 51); text-transform: none; text-indent: 0cm; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="MsoListParagraph">&nbsp;&nbsp;&nbsp; if (frm.elements[i].name == 'job_title' &amp;&amp; frm.elements[i].checked)<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;&nbsp; {<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; job_title = true;<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;&nbsp; }<br style="margin: 0px; padding: 0px;" />&nbsp; if (frm.elements[i].name == 'number_of_employees' &amp;&amp; frm.elements[i].checked)<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;&nbsp; {<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; number_of_employees = true;<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;&nbsp; }</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0cm 0cm 0pt 36pt; padding: 0px; color: rgb(51, 51, 51); text-transform: none; text-indent: 0cm; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="MsoListParagraph">&nbsp; if (frm.elements[i].name == 'number_of_employees' &amp;&amp; frm.elements[i].checked)<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;&nbsp; {<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; number_of_employees = true;<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;&nbsp; }<br style="margin: 0px; padding: 0px;" />&nbsp; }<br style="margin: 0px; padding: 0px;" />&nbsp; */</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0cm 0cm 0pt 36pt; padding: 0px; color: rgb(51, 51, 51); text-transform: none; text-indent: 0cm; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="MsoListParagraph">&nbsp;</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0cm 0cm 0pt 36pt; padding: 0px; color: rgb(51, 51, 51); text-transform: none; text-indent: 0cm; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="MsoListParagraph">18:如何增加mysql的连接数量。让ecshop更稳定.</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0cm 0cm 0pt 36pt; padding: 0px; color: rgb(51, 51, 51); text-transform: none; text-indent: 0cm; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="MsoListParagraph">&nbsp; 回答:进入mysql命令模式下。执行该SQL语句</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0cm 0cm 0pt 36pt; padding: 0px; color: rgb(51, 51, 51); text-transform: none; text-indent: 0cm; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="MsoListParagraph">&nbsp;&nbsp; set global max_connections=500;<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;&nbsp;&nbsp; show variables;</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0cm 0cm 0pt 36pt; padding: 0px; color: rgb(51, 51, 51); text-transform: none; text-indent: 0cm; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="MsoListParagraph">&nbsp;</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0cm 0cm 0pt 36pt; padding: 0px; color: rgb(51, 51, 51); text-transform: none; text-indent: 0cm; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="MsoListParagraph">&nbsp; 19:如何让<a style="margin: 0px; padding: 0px; color: rgb(51, 102, 204); text-decoration: none;" href="http://www.chinab4c.com/html/dianzishangwujiaocheng/ecshoptemplate/index.html">ecshop模板</a>中的table文字处置居中</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0cm 0cm 0pt 36pt; padding: 0px; color: rgb(51, 51, 51); text-transform: none; text-indent: 0cm; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="MsoListParagraph">&nbsp;</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0cm 0cm 0pt 36pt; padding: 0px; color: rgb(51, 51, 51); text-transform: none; text-indent: 0cm; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="MsoListParagraph">回答: style=&quot;vertical-align:middle; &quot; 属性就可以了</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0cm 0cm 0pt 36pt; padding: 0px; color: rgb(51, 51, 51); text-transform: none; text-indent: 0cm; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="MsoListParagraph">&nbsp;</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0cm 0cm 0pt 36pt; padding: 0px; color: rgb(51, 51, 51); text-transform: none; text-indent: 0cm; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="MsoListParagraph">&nbsp; 20:如何建立msyql一默认字段为时间格式.默认为系统时间.</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0cm 0cm 0pt 36pt; padding: 0px; color: rgb(51, 51, 51); text-transform: none; text-indent: 0cm; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="MsoListParagraph">&nbsp;回答：<span style="font-family:宋体;font-size:12px;margin: 0px; padding: 0px;">alter&nbsp;table&nbsp;ecs_b&nbsp;add&nbsp;column&nbsp;age&nbsp;timestamp&nbsp;DEFAULT&nbsp;now()</span><br style="margin: 0px; padding: 0px;" />&nbsp;</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0cm 0cm 0pt 36pt; padding: 0px; color: rgb(51, 51, 51); text-transform: none; text-indent: 0cm; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="MsoListParagraph">&nbsp;21:如何控制js只输入数字．</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0cm 0cm 0pt 36pt; padding: 0px; color: rgb(51, 51, 51); text-transform: none; text-indent: 0cm; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="MsoListParagraph">&nbsp;回答：&lt;input name=&quot;quatity&quot; type=&quot;text&quot; class=&quot;input2&quot; value=&quot;0&quot; size=&quot;6&quot; onKeyUp=&quot;value=value.replace(/[^\d]/g,'')&quot;&gt;</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0cm 0cm 0pt 36pt; padding: 0px; color: rgb(51, 51, 51); text-transform: none; text-indent: 0cm; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="MsoListParagraph">&nbsp;</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0cm 0cm 0pt 36pt; padding: 0px; color: rgb(51, 51, 51); text-transform: none; text-indent: 0cm; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="MsoListParagraph">&nbsp; 22:ecshop中如何用正则去匹配sql语句.</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0cm 0cm 0pt 36pt; padding: 0px; color: rgb(51, 51, 51); text-transform: none; text-indent: 0cm; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="MsoListParagraph">&nbsp; 回答:return preg_replace(&quot;/\s*select\s+(\*|[\w_]+(\s*,\s*[\w_]+)*)\s+from\s+[\w_]+(\s+where\s+[\w_]+\s*=\s*\S+)?(\s+order\s+by\s+[\w_]+ (\s+(ASC|DESC))?)?\s*$/i&quot;,&quot;&quot;,$sql);</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 23:如何删除ecshop中url特殊字符</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 回答: if ($rewrite == 2 &amp;&amp; !empty($append))<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //$uri .= '-' . urlencode(preg_replace('/[\.|\/|\?|&amp;|\+|\\\|\'|&quot;|,]+/', '', $append));<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;&nbsp;//$uri=str_replace('+','-',$uri);<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;&nbsp;$str = preg_replace('/[\.|\/|\?|&amp;|\+|\\\|\'|&quot;|,]+/', '', $append);<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;&nbsp;$ar&nbsp; = array('('=&gt;'',')'=&gt;'','#'=&gt;'','+'=&gt;'-');<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;&nbsp;$str = strtr($str,$ar);<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;&nbsp;$str = preg_replace(&quot;/\s+/&quot;,&quot;-&quot;,$str);<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;&nbsp;$uri.=$str;<br style="margin: 0px; padding: 0px;" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">来源：<a style="margin: 0px; padding: 0px; color: rgb(51, 102, 204); text-decoration: none;" href="http://www.chinab4c.com/">http://www.chinab4c.com</a></p><p style="font: 14px/25px Verdana, Arial, Tahoma; margin: 0px; padding: 0px; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;</p>
            
                    <div>来源：http://blog.csdn.net/21aspnet/article/details/7589859</div>]]></description>
</item>

<item>
<link><![CDATA[http://www.itivy.com/php/archive/2012/5/21/634732098244049662.html]]></link>
<title><![CDATA[ECSHOP学习笔记]]></title>
<author><![CDATA[php园丁]]></author>
<category><![CDATA[]]></category>
<pubDate>Mon, 21 May 2012 15:48:01 GMT</pubDate>
<guid><![CDATA[]]></guid>
<description><![CDATA[
            <p><strong>ECSHOP各文件夹功能说明</strong></p><p>1、根目录：前台程序文件<br />2、admin：后台程序文件夹<br />&nbsp;&nbsp; --根目录：后台程序文件&nbsp; *.php文件<br />&nbsp;&nbsp; --help\zh_cn：各功能的帮助文件 *.xml文件<br />&nbsp;&nbsp; --images：后台页面用图片<br />&nbsp;&nbsp; --includes：后台公用文件和函数<br />&nbsp;&nbsp; --js：后台用js脚本<br />&nbsp;&nbsp; --styles：后台用样式表<br />&nbsp;&nbsp; --templates：后台页面模板&nbsp; *.htm文件<br />3、api：调用API的系统公用函数<br />4、cert：存放证书的文件夹<br />5、data：数据连接设置等，包括各种广告的上传图片等<br />&nbsp;&nbsp; --afficheimg：首页flash广告图片<br />&nbsp;&nbsp; --brandlogo：品牌logo<br />6、images：上传商品图片文件夹，按日期分目录<br />&nbsp;&nbsp; --200902：按月份划分商品图片<br />&nbsp;&nbsp; --upload：上传文件夹，包括file、flash、image和media<br />7、includes：前台公用文件和函数<br />&nbsp;&nbsp; --codetable：语言对应的代码表<br />&nbsp;&nbsp; --fckeditor：开源html文本编辑器<br />&nbsp;&nbsp; --modules\convert：shopex转换文件<br />&nbsp;&nbsp; --modules\cron：如自动上下架、ip删除等函数<br />&nbsp;&nbsp; --modules\integrates：整合各种插件和函数基础类<br />&nbsp;&nbsp; --modules\payment：各种支付接口插件<br />&nbsp;&nbsp; --modules\shipping：各种送货方式插件<br />8、install：系统安装文件夹，用后请删除<br />9、js：前台用js脚本<br />&nbsp;&nbsp; --calendar：日历控件<br />10、languages：语言文件<br />&nbsp;&nbsp; --zh_cn：简体中文语言文件，存储简体中文下使用的函数变量等<br />&nbsp;&nbsp; --zh_tw：繁体中文语言文件，存储繁体中文下使用的函数变量等<br />11、temp：存放临时缓存等文件<br />12、themes：模板文件夹，可以随意拷贝模板样式<br />13、wap：手机浏览程序<br />&nbsp;&nbsp; --includes；公用文件和函数<br />&nbsp;&nbsp; --templates：页面模板&nbsp; *.wml文件。</p><p>&nbsp;&nbsp;&nbsp;&nbsp; <span style="color:#222222;">无限标记语言WML(Wireless Markup Language)</span>是一种基于扩展标记语言XML(Extension Markup Language)的语言，是XML的子集。它可以显示各种文字、图像等数据，是由WAP论坛（http://www.wapforum.org）提出并专为无线设备用户提供交互界面而设计的，目前版本为1.1版。<br />14、widget：搜狐博客小插件<br /></p><p><strong>编码选择</strong></p><p>UTF8是国际编码，它的通用性比较好，外国人也可以浏览论坛，GBK是国家编码，通用性比UTF8差，不过UTF8占用的<span class="t_tag" href="tag.php?name=%CA%FD%BE%DD%BF%E2">数据库</span>比GBK大~</p><p style="margin: 0px; padding: 0px;">做中文站。如果不是特别需要,我会<span class="t_tag" href="tag.php?name=%CD%C6%BC%F6">推荐</span>朋友用GBK编码,如果是做一些英文站,客户群体包括了国外.我感觉我会推荐他们用UTF8编码.</p><p style="margin: 0px; padding: 0px;">从个人偏好角度看，我建议大家使用UTF-8的为好。</p><p style="margin: 0px; padding: 0px;">&nbsp;</p><p style="margin: 0px; padding: 0px;">&nbsp;</p><p><strong>ECShop 2.5.1 的结构图及各文件相应功能介绍</strong></p><p>ECShop2.5.1_Beta upload 的目录<br />┣ activity.php 活动列表<br />┣ affiche.php 广告处理文件<br />┣ affiliate.php 生成商品列表<br />┣ article.php 文章内容<br />┣ article_cat.php文章分类<br />┣ auction.php 拍卖前台文件<br />┣ brand.php 品牌列表<br />┣ captcha.php 生成验证码<br />┣ catalog.php 列出所以分类及品牌<br />┣ category.php 商品分类<br />┣ comment.php 提交用户评论<br />┣ compare.php 商品比较程序<br />┣ cycle_image.php 轮播图片程序<br />┣ feed.php RSS Feed 生成程序<br />┣ flow.php 购物流程<br />┣ gallery.php 商品相册<br />┣ goods.php 商品详情<br />┣ goods_script.php 生成商品列表<br />┣ group_buy.php 团购商品前台文件<br />┣ index.php 首页文件<br />┣ myship.php 支付配送DEMO<br />┣ pick_out.php 选购中心<br />┣ receive.php 处理收回确认的页面<br />┣ region.php 地区切换程序<br />┣ respond.php 支付响应页面<br />┣ robots.txt<br />┣ search.php 搜索程序<br />┣ sitemaps.php google sitemap 文件<br />┣ snatch.php 夺宝奇兵前台页面<br />┣ tag_cloud.php 标签云<br />┣ topic.php 专题前台<br />┣ user.php 会员中心<br />┣ vote.php 调查程序<br />┣ wholesale.php 批发前台文件<br />┣ admin文件夹<br />┃ ┣ account_log.php 管理中心帐户变动记录<br />┃ ┣ admin_logs.php 记录管理员操作日志<br />┃ ┣ ads.php 广告管理程序<br />┃ ┣ adsense.php 站外JS投放的统计程序<br />┃ ┣ ad_position.php广告位置管理程序<br />┃ ┣ affiliate.php 程序说明<br />┃ ┣ affiliate_ck.php 程序说明<br />┃ ┣ agency.php 管理中心办事处管理<br />┃ ┣ area_manage.php 地区列表管理文件<br />┃ ┣ article.php 管理中心文章处理程序文件<br />┃ ┣ articlecat.php 文章分类管理程序<br />┃ ┣ article_auto.php<br />┃ ┣ attention_list.php<br />┃ ┣ attribute.php 属性规格管理<br />┃ ┣ auction.php 管理中心拍卖活动管理<br />┃ ┣ bonus.php 红包类型的处理<br />┃ ┣ brand.php管理中心品牌管理<br />┃ ┣ captcha_manage.php<br />┃ ┣ card.php 贺卡管理程序<br />┃ ┣ category.php 商品分类管理程序<br />┃ ┣ check_file_priv.php 系统文件检测<br />┃ ┣ comment_manage.php 用户评论管理程序<br />┃ ┣ convert.php 转换程序<br />┃ ┣ cron.php 计划任务<br />┃ ┣ database.php 数据库管理<br />┃ ┣ ebao_commend.php 易宝推荐<br />┃ ┣ edit_languages.php 管理中心语言项编辑(前台语言项)<br />┃ ┣ email_list.php 邮件列表管理<br />┃ ┣ favourable.php 管理中心优惠活动管理</p><p>┃ ┣ flashplay.php<br />┃ ┣ flow_stats.php 综合流量统计<br />┃ ┣ friend_link.php 友情链接管理<br />┃ ┣ gen_goods_script.php 生成显示商品的js代码<br />┃ ┣ get_password.php 找回管理员密码<br />┃ ┣ goods.php 商品管理程序<br />┃ ┣ goods_auto.php<br />┃ ┣ goods_batch.php 商品批量上传、修改<br />┃ ┣ goods_booking.php 缺货处理管理程序<br />┃ ┣ goods_export.php<br />┃ ┣ goods_type.php 商品类型管理程序<br />┃ ┣ group_buy.php 管理中心团购商品管理<br />┃ ┣ guest_stats.php 客户统计<br />┃ ┣ index.php 控制台首页<br />┃ ┣ integrate.php 第三方程序会员数据整合插件管理程序<br />┃ ┣ magazine_list.php<br />┃ ┣ mail_template.php 管理中心模版管理程序<br />┃ ┣ message.php 管理中心管理员留言程序<br />┃ ┣ navigator.php</p><p>┃ ┣ order.php 订单管理<br />┃ ┣ order_stats.php 订单统计<br />┃ ┣ pack.php 包装管理程序<br />┃ ┣ payment.php 支付方式管理程序<br />┃ ┣ picture_batch.php 图片批量处理程序<br />┃ ┣ privilege.php 管理员信息以及权限管理程序<br />┃ ┣ sale_general.php 销售概况<br />┃ ┣ sale_list.php 销售明细列表程序<br />┃ ┣ sale_order.php 商品销售排行<br />┃ ┣ searchengine_stats.php 搜索引擎关键字统计<br />┃ ┣ search_log.php<br />┃ ┣ shipping.php 配送方式管理程序<br />┃ ┣ shipping_area.php 配送区域管理程序<br />┃ ┣ shophelp.php 帮助信息管理程序<br />┃ ┣ shopinfo.php 网店信息管理页面<br />┃ ┣ shop_config.php 管理中心商店设置<br />┃ ┣ sitemap.php 站点地图生成程序<br />┃ ┣ sms.php 短信模块 之 控制器<br />┃ ┣ snatch.php 夺宝奇兵管理程序<br />┃ ┣ sql.php sql管理程序<br />┃ ┣ tag_manage.php 后台标签管理<br />┃ ┣ template.php 管理中心模版管理程序<br />┃ ┣ topic.php 专题管理<br />┃ ┣ users.php 会员管理程序<br />┃ ┣ users_order.php 会员排行统计程序<br />┃ ┣ user_account.php 会员帐目管理(包括预付款，余额)<br />┃ ┣ user_msg.php 客户留言<br />┃ ┣ user_rank.php 会员等级管理程序<br />┃ ┣ view_sendlist.php<br />┃ ┣ virtual_card.php 虚拟卡商品管理程序<br />┃ ┣ visit_sold.php 访问购买比例<br />┃ ┣ vote.php 调查管理程序<br />┃ ┣ wholesale.php 管理中心批发管理<br />┃ ┣ help 的目录 后台操作帮助文件<br />┃ ┣ images 的目录<br />┃ ┣ includes 的目录<br />┃ ┃ ┣ cls_exchange.php 后台自动操作数据库的类文件<br />┃ ┃ ┣ cls_google_sitemap.php Google sitemap 类<br />┃ ┃ ┣ cls_phpzip.php ZIP 处理类<br />┃ ┃ ┣ cls_sql_dump.php 数据库导出类<br />┃ ┃ ┣ inc_menu.php 管理中心菜单数组<br />&amp;<br />#160; ┃ ┃ ┣ init.php 管理中心公用文件<br />┃ ┃ ┣ lib_goods.php 管理中心商品相关函数<br />┃ ┃ ┣ lib_main.php 管理中心公用函数库<br />┃ ┃ ┗ lib_template.php 管理中心模版相关公用函数库<br />┃ ┣ styles 的目录<br />┃ ┣ templates 的目录<br />┃ ┗ js 的目录<br />┃ ┣ colorselector.js<br />┃ ┣ common.js<br />┃ ┣ listtable.js<br />┃ ┣ md5.js<br />┃ ┣ selectzone.js<br />┃ ┣ tab.js<br />┃ ┣ todolist.js<br />┃ ┣ topbar.js<br />┃ ┗ validator.js 表单验证类<br />┣ api 的目录<br />┃ ┣ checkorder.php 检查订单 API<br />┃ ┣ cron.php<br />┃ ┗ init.php API 公用初始化文件<br />┣ cert 的目录<br />┣ data 的目录<br />┃ ┣ ffiliate.html<br />┃ ┣ goods_script.html<br />┃ ┣ order_print.html<br />┃ ┣ afficheimg 的目录<br />┃ ┣ brandlogo 的目录<br />┃ ┣ captcha 的目录 验证码背景图片存放位置<br />┃ ┣ cardimg 的目录<br />┃ ┣ feedbackimg 的目录<br />┃ ┣ images 的目录<br />┃ ┣ packimg 的目录<br />┃ ┗ sqldata 的目录<br />┣ images 的目录<br />┃ ┗ upload 的目录<br />┃ ┣ File 文件上传存放处<br />┃ ┣ Flash flash上传存放处<br />┃ ┣ Image 图片上传存放处<br />┃ ┗ Media 视频上传存放处<br />┣ includes 的目录<br />┃ ┣ cls_captcha.php 验证码图片类<br />┃ ┣ cls_ecshop.php 基础类<br />┃ ┣ cls_error.php 用户级错误处理类<br />┃ ┣ cls_iconv.php 字符集转换类<br />┃ ┣ cls_image.php 后台对上传文件的处理类(实现图片上传，图片缩小， 增加水印)<br />┃ ┣ cls_json.php JSON 类<br />┃ ┣ cls_mysql.php MYSQL 公用类库<br />┃ ┣ cls_rss.php RSS 类<br />┃ ┣ cls_session.php SESSION 公用类库<br />┃ ┣ cls_sms.php 短信模块 之 模型（类库）<br />┃ ┣ cls_smtp.php SMTP 邮件类<br />┃ ┣ cls_sql_executor.php SQL语句执行类。<br />┃ ┣ cls_template.php 模版类<br />┃ ┣ cls_transport.php 服务器之间数据传输器<br />┃ ┣ inc_constant.php 常量<br />┃ ┣ init.php 前台公用文件<br />┃ ┣ lib.debug.php<br />┃ ┣ lib_article.php 文章及文章分类相关函数库<br />┃ ┣ lib_clips.php ECSHOP 用户相关函数库<br />┃ ┣ lib_code.php 加密解密类<br />┃ ┣ lib_common.php 公用函数库<br />&amp;#<br />160; ┃ ┣ lib_goods.php 商品相关函数库<br />┃ ┣ lib_insert.php 动态内容函数库<br />┃ ┣ lib_main.php 前台公用函数库<br />┃ ┣ lib_order.php 购物流程函数库<br />┃ ┣ lib_passport.php 用户帐号相关函数库<br />┃ ┣ lib_payment.php 支付接口函数库<br />┃ ┣ lib_time.php 时间函数<br />┃ ┣ lib_transaction.php ECSHOP 用户交易相关函数库<br />┃ ┣ codetable 的目录<br />┃ ┃ ┣ big5-gb.table<br />┃ ┃ ┣ big5_utf8.php<br />┃ ┃ ┣ gb-big5.table<br />┃ ┃ ┣ gb_utf8.php<br />┃ ┃ ┗ ipdata.dat<br />┃ ┣ fckeditor 的目录 fckeditor编辑器目录<br />┃ ┗ modules 的目录<br />┃ ┣ convert 的目录<br />┃ ┃ ┣ shopex46.php vshopex4.6转换程序插件<br />┃ ┃ ┗ shopex47.php shopex4.7转换程序插件<br />┃ ┣ cron 的目录<br />┃ ┃ ┣ auto_manage.php 自动上下架管理<br />┃ ┃ ┗ ipdel.php 定期删除<br />┃ ┣ integrates 的目录<br />┃ ┃ ┣ bmforum.php 会员数据处理类<br />┃ ┃ ┣ discuz.php<br />┃ ┃ ┣ discuz55.php<br />┃ ┃ ┣ dvbbs.php<br />┃ ┃ ┣ ecshop.php<br />┃ ┃ ┣ integrate.php<br />┃ ┃ ┣ ipb.php<br />┃ ┃ ┣ molyx.php<br />┃ ┃ ┣ phpbb.php<br />┃ ┃ ┣ phpwind.php<br />┃ ┃ ┣ phpwind5.php<br />┃ ┃ ┗ vbb.php<br />┃ ┣ payment 的目录<br />┃ ┃ ┣ alipay.php 支付宝插件<br />┃ ┃ ┣ balance.php 余额支付插件<br />┃ ┃ ┣ bank.php 银行汇款（转帐）插件<br />┃ ┃ ┣ cappay.php 首信易支付插件<br />┃ ┃ ┣ chinabank.php 网银在线插件<br />┃ ┃ ┣ cncard.php 云网支付插件<br />┃ ┃ ┣ cod.php 货到付款插件<br />┃ ┃ ┣ ctopay.php Ctopay 支付插件<br />┃ ┃ ┣ express.php express支付系统插件<br />┃ ┃ ┣ ips.php ips支付系统插件<br />┃ ┃ ┣ kuaiqian.php 快钱插件<br />┃ ┃ ┣ nps.php NPS支付插件<br />┃ ┃ ┣ pay800.php 800pay 支付宝插件<br />┃&amp;<br />#160; ┃ ┣ paypal.php 贝宝插件<br />┃ ┃ ┣ paypalcn.php 贝宝中国插件<br />┃ ┃ ┣ post.php 邮局汇款插件<br />┃ ┃ ┣ tenpay.php 财付通插件<br />┃ ┃ ┣ udpay.php 网汇通插件<br />┃ ┃ ┣ xpay.php 易付通插件<br />┃ ┃ ┗ yeepay.php YeePay易宝插件<br />┃ ┗ shipping 的目录<br />┃ ┣ cac.php 上门取货插件<br />┃ ┣ city_express.php 城际快递插件<br />┃ ┣ ems.php EMS插件<br />┃ ┣ flat.php 邮政包裹插件<br />┃ ┣ fpd.php 到付运费插件<br />┃ ┣ post_express.php 邮政包裹插件<br />┃ ┣ post_mail.php 邮局平邮插件<br />┃ ┣ presswork.php 挂号印刷品插件<br />┃ ┣ sf_express.php 顺丰速运 配送方式插件<br />┃ ┣ sto_express.php 申通快递 配送方式插件<br />┃ ┣ yto.php 圆通速递插件<br />┃ ┗ zto.php 中通速递插件<br />┣ install 的目录 安装文件目录<br />┣ js 的目录<br />┃ ┣ auto_complete.js<br />┃ ┣ calendar.php<br />┃ ┣ common.js<br />┃ ┣ compare.js<br />┃ ┣ global.js<br />┃ ┣ lefttime.js<br />┃ ┣ myship.js<br />┃ ┣ region.js<br />┃ ┣ shopping_flow.js<br />┃ ┣ transport.js<br />┃ ┣ user.js<br />┃ ┣ utils.js<br />┃ ┗ calendar 的目录<br />┣ languages 的目录 语言风格文件<br />┃ ┣ zh_cn 的目录<br />┃ ┃ ┣<br />┃ ┃ ┣ admin 的目录<br />┃ ┃ ┣ convert 的目录<br />┃ ┃ ┣ cron 的目录<br />┃ ┃ ┣ payment 的目录<br />┃ ┃ ┗ shipping 的目录<br />┃ ┗ zh_tw 的目录<br />┃ ┣ admin 的目录<br />┃ ┣ convert 的目录<br />┃ ┣ cron 的目录<br />┃ ┣ payment 的目录<br />┃ ┗ shipping 的目录<br />┣ plugins 的目录<br />┣ templates 的目录<br />┃ ┣ backup 的目录<br />┃ ┃ ┗ ibrary 的目录<br />┃ ┣ caches 的目录<br />┃ ┗ compiled 的目录</p><p>/&gt; ┃ ┗ admin 的目录</p><p>┣ themes 的目录<br />┃ ┣ default 的目录<br />┃ ┃ ┣ images 的目录<br />┃ ┃ ┗ library 的目录<br />┃ ┗ sport 的目录<br />┣ wap 的目录<br />┃ ┣ article.php<br />┃ ┣ brands.php<br />┃ ┣ buy.php<br />┃ ┣ category.php<br />┃ ┣ comment.php<br />┃ ┣ goods.php<br />┃ ┣ goods_list.php<br />┃ ┣ index.php<br />┃ ┣ user.php<br />┃ ┣ includes 的目录<br />┃ ┃ ┣ init.php<br />┃ ┃ ┣ lib_main.php<br />┃ ┗ templates 的目录<br />┃ ┣ article.wml<br />┃ ┣ article_list.wml<br />┃ ┣ brands.wml<br />┃ ┣ buy.wml<br />┃ ┣ category.wml<br />┃ ┣ comment.wml<br />┃ ┣ goods.wml<br />┃ ┣ goods_img.wml<br />┃ ┣ goods_list.wml<br />┃ ┣ index.wml<br />┃ ┣ login.wml<br />┃ ┣ order_list.wml<br />┃ ┗ user.wml<br />┗ widget 的目录<br />┣ blog_sohu.php<br />┣ blog_sohu.xhtml<br />┗ images 的目录</p><p style="margin: 0px; padding: 0px;">&nbsp;</p><p>&nbsp;数据库</p><p>define('IN_ECS', true);</p><p>define('IN_ECS', true);这里是对 常量 IN_ECS 进行赋值！~在以后的PHP页面中 都会给IN_ECS常量进行判断！~如果为 FALSE 就不执行下面的任何语句。 此方法是为了防止盗链和黑客行为。如果你想建立一个新的网页，可以在模板文件中。 创建一个新的DWT 文件！~还需要在根目录下 创建一个PHP 文件！~两者文件名可以一样！~再模板文件夹中 library 文件中创建 lib文件.在DWT 直接调用lib 文件！~并需要修改一些原来ECSHOP中已有的文件 PHP 语句！</p><p>参考网站：<a href="http://www.ecshop120.com/">http://www.ecshop120.com/</a></p>
            
                    <div>来源：http://blog.csdn.net/21aspnet/article/details/7587132</div>]]></description>
</item>

<item>
<link><![CDATA[http://www.itivy.com/php/archive/2012/5/20/634731484821101219.html]]></link>
<title><![CDATA[Ubuntu下JDK+Tomcat+MySql环境的搭建]]></title>
<author><![CDATA[php园丁]]></author>
<category><![CDATA[]]></category>
<pubDate>Sun, 20 May 2012 23:07:12 GMT</pubDate>
<guid><![CDATA[]]></guid>
<description><![CDATA[
            <h1 style="text-align: center;">Ubuntu 下 JDK+Tomcat+MySql 环境的搭建</h1>
<h2>1.&nbsp;&nbsp;&nbsp; 安装 Ubuntu-server-10.04.1</h2>
<h3>1.1&nbsp;&nbsp;&nbsp; 安装</h3>
<p style="padding-left: 30px;">安装过程中，记下输入的用户名与密码。</p>
<h3>1.2&nbsp; 设置IP</h3>
<p style="padding-left: 30px;">安装完成之后，设置 IP ，终端输入：<br />
<span style="color: #ff0000;">sudo vi /etc/network/interfaces</span>
<br />
替换成一下内容：<br />
<span style="color: #3366ff;">auto lo<br />
iface lo inet loopback<br />
auto eth0<br />
iface eth0 inet static<br />
address 192.168.1.134<br />
netmask 255.255.255.0<br />
gateway 192.168.1.1</span>
<br />
保存并退出. <br />
&nbsp;&nbsp;&nbsp; <br />
本文假定：<br />
用户名为 test ，密码为 1234 ， IP 为 : 192.168.1.134 。</p>
<h3>1.3&nbsp;&nbsp;&nbsp; 安装SSH</h3>
<p style="padding-left: 30px;">使用如下方式安装，终端输入：<br />
<span style="color: #ff0000;">apt-get install openssh-server</span>
<br /></p>
<h2>2.&nbsp;&nbsp;&nbsp; 安装 WinSCP + Putty</h2>
<h3>2.1&nbsp;&nbsp;&nbsp; WinSCP</h3>
<p style="padding-left: 30px;">WinSCP 是一个 Windows 环境下使用 SSH 的开源图形化 SFTP 客户端 ， 同时支持 SCP 协议。它的主要功能就是在本地与远程计算机间安全的复制文件。<br />
下载地址（绿色版）： http://www.xdowns.com/soft/1/98/2008/Soft_40219.html<br />
无需安装，解压即可使用。</p>
<h3>2.2&nbsp;&nbsp;&nbsp; Putty</h3>
<p style="padding-left: 30px;">Putty 是一个免费的、Windows 32 平台下的telnet 、rlogin 和ssh 客户端 ，可以集成到WinSCP 中。<br />
下载地址（绿色版） ： http://www.onlinedown.net/soft/2186.htm<br />
无需安装，解压即可使用。</p>
<h3>2.3&nbsp;&nbsp;&nbsp; 集成</h3>
<p style="padding-left: 30px;">集成方法：<br />
打开WinSCP ，菜单：选项-&gt; 选项-&gt; 集成/ 应用程序-&gt; 选择Putty 路径即可, 如下图：<br />
<img src="/Upload/EditorImage/image/php/201205/6347315202611249200_1308216117bBlL.gif" alt="" />
&nbsp;&nbsp;&nbsp; <br />
集成之后，可以在WinSCP 菜单的&ldquo;命令&mdash;&gt; 在Putty 中打开&rdquo;，如下图：<br />
<img src="/Upload/EditorImage/image/php/201205/6347315202679829770_1308216129xtXC.gif" alt="" />
&nbsp;&nbsp;&nbsp; <br />
出现Putty 窗口，如下图：<br />
<img src="/Upload/EditorImage/image/php/201205/6347315202776160800_1308216146zd88.gif" alt="" />
&nbsp;&nbsp;&nbsp; <br />
从图中可以可出，已经自动登录ubuntu 了。<br /></p>
<h2>3.&nbsp;&nbsp;&nbsp; 安装 MySql</h2>
<h3>3.1&nbsp;&nbsp;&nbsp; 安装</h3>
<p style="padding-left: 30px;">使用 apt-get install 方式安装，终端输入：<br />
<span style="color: #ff0000;">sudo apt-get install mysql-server-5.1</span>
<br />
（<br />
小提示：<br />
搜索软件： apt-cache search 软件名关键字，支持模糊查询，<br />
譬如： apt-cache search mysql<br />
）<br />
安装过程中，有两次提示输入 mysql 的 root 账号的密码，这里输入 root ，确定，直至安装完成。</p>
<h3>3.2&nbsp;&nbsp;&nbsp; 创建用户</h3>
<p style="padding-left: 30px;">Mysql 安装完之后，已自动启动，且默认就开机自启动了。<br />
终端输入：<br />
<span style="color: #ff0000;">mysql &ndash;uroot &ndash;proot</span>
<br />
进入 mysql 的控制台。创建一个用户（用户名为： test ，密码为： 123456 ），并授权，以便远程访问 mysql （如果需要的话）：<br />
<span style="color: #ff0000;">grant all privileges on *.* to test@&quot;%&quot; identified by &quot;123456&quot; with grant option;</span>
<br />
输入 :<br />
<span style="color: #ff0000;">exit</span>
<br />
退出 mysql<br />
终端输入 :<br />
<span style="color: #ff0000;">mysql &ndash;utest &ndash;p123456</span>
<br />
测试刚才创建的账号是否能正常登录 mysql</p>
<h3>3.3&nbsp;&nbsp;&nbsp; 修改mysql文件</h3>
<p style="padding-left: 30px;">终端输入：<br />
<span style="color: #ff0000;">sudo vi /etc/mysql/my.cnf</span>
<br />
打开 /etc/mysql/my.cnf 文件，找到如下行：<br />
<span style="color: #3366ff;">bind-address&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 127.0.0.1</span>
<br />
注释掉这一行，否则 MySql 远程可能还是无法访问。<br />
保存并退出。</p>
<h3>3.4&nbsp;&nbsp;&nbsp; 测试是否可以远程访问</h3>
<p style="padding-left: 30px;">在 windows 下打开 SQLyog &ndash; MySQL GUI 工具，输入 Ubuntu 机器的 IP 和上面创建的 mysql 用户名和密码，测试是否能连接成功。如下图：<br />
<img src="/Upload/EditorImage/image/php/201205/6347315202917852310_13082161608gFJ.gif" alt="" />
<br /></p>
<h2>4.&nbsp;&nbsp;&nbsp; 安装 JDK</h2>
<h3>4.1&nbsp;&nbsp;&nbsp; 拷贝JDK 安装文件</h3>
<p style="padding-left: 30px;">使用 WinSCP 拷贝本地 jdk6.bin 文件到 Ubuntu ，将其放到 /home/test/software 目录下（也可以放到别的目录）</p>
<h3>4.2&nbsp;&nbsp;&nbsp; 安装JDK</h3>
<p style="padding-left: 30px;">jdk 安装到 /usr/local 目录下， cd 进入 /usr/local 目录，终端输入：<br />
<span style="color: #ff0000;">cd /usr/local</span>
<br />
安装 jdk ，终端输入：<br />
<span style="color: #ff0000;">chmod u+x /home/test/software/jdk6.bin&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -- 将这个 bin 文件赋予执行权限<br />
sudo /home/test/software/jdk6.bin&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -- 在当前目录执行这个 bin 文件<br />
sudo mv jdk1.6.0_26 jdk6&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -- 重命名， jdk1.6.0_26 &mdash; &gt; jdk6 </span></p>
<h3>4.3&nbsp;&nbsp;&nbsp; 设置环境变量</h3>
<p style="padding-left: 30px;">使用 vi 命令打开 /etc/profile 文件，终端输入：<br />
<span style="color: #ff0000;">sudo vi /etc/profile</span>
<br />
在最后一行之前加入：<br />
<span style="color: #3366ff;">export JAVA_HOME=/usr/local/jdk6<br />
export JRE_HOME=/usr/local/jdk6/jre<br />
export CLASSPATH=.:$JAVA_HOME/lib:$JRE_HOME/lib:$CLASSPATH<br />
export PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$PATH</span>
<br />
保存并退出。</p>
<h3>4.4&nbsp;&nbsp;&nbsp; 测试是否安装成功</h3>
<p style="padding-left: 30px;">终端输入：<br />
<span style="color: #ff0000;">java -version&nbsp;&nbsp; </span>
<br />
看是否能输出 jdk 版本<br /></p>
<h2>5.&nbsp;&nbsp;&nbsp; 安装 Tomcat</h2>
<h3>5.1&nbsp;&nbsp;&nbsp; 拷贝Tomcat 安装文件</h3>
<p style="padding-left: 30px;">使用 WinSCP 拷贝本地 tomcat6.tar.gz 文件到 Ubuntu ，将其放到 /home/test/software 目录下（也可以放到别的目录）</p>
<h3>5.2&nbsp;&nbsp;&nbsp; 安装Tomcat</h3>
<p style="padding-left: 30px;">此安装文件为解压版的 tomcat ，使用如下命令进行解压即可，终端输入：<br />
<span style="color: #ff0000;">sudo tar xvf /home/test/software/tomcat6.tar.gz -C /usr/local&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -- 解压<br />
sudo mv apache-tomcat-6.0.32 tomcat6&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -- 重命名<br />
sudo chown -R test:test /usr/local/tomcat6&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -- 授权<br />
sudo chmod 775 -R /usr/local/tomcat6&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -- 授权</span></p>
<h3>5.3&nbsp;&nbsp;&nbsp; 设置环境变量</h3>
<p style="padding-left: 30px;">使用 vi 命令打开 /etc/profile 文件，终端输入：<br />
<span style="color: #ff0000;">sudo vi /etc/profile</span>
<br />
在最后一行之前加入：<br />
<span style="color: #3366ff;">export CATALINA_HOME=/usr/local/tomcat6<br />
export PATH=$CATALINA_HOME/bin:$PATH</span>
<br />
保存并退出。</p>
<h3>5.4&nbsp;&nbsp;&nbsp; 启动tomcat</h3>
<p style="padding-left: 30px;">终端输入：<br />
<span style="color: #ff0000;">startup.sh</span>
<br />
在浏览器地址栏中输入 http://192.168.1.134:8080/<br />
看是否出现 tomcat 的页面：<br />
<img src="/Upload/EditorImage/image/php/201205/6347315203035547060_1308216198kgaW.gif" alt="" /></p>
<h3>5.5&nbsp;&nbsp;&nbsp; 设置Tomcat 开机自启动</h3>
<p style="padding-left: 30px;">使用 vi 命令打开 /etc/init.d/tomcat 文件，终端输入：<br />
<span style="color: #ff0000;">sudo vi /etc/init.d/tomcat</span>
<br />
这是新建的一个文件，输入如下内容：<br />
<span style="color: #3366ff;">export JAVA_HOME=/usr/local/jdk6<br />
[ -f /usr/local/tomcat6/bin/startup.sh ] || exit 0 [ -f /usr/local/tomcat6/bin/shutdown.sh ] || exit 0<br />
case &quot;$1&quot; in<br />
&nbsp;&nbsp;&nbsp; start)<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo -n &quot;Starting Tomcat: &quot;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /usr/local/tomcat6/bin/startup.sh<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RETVAL=$?<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [ $RETVAL = 0 ] &amp;&amp; touch /var/lock/tomcat ;;<br />
&nbsp;&nbsp;&nbsp; stop)<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo -n &quot;Shutting down Tomcat: &quot;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /usr/local/tomcat6/bin/shutdown.sh<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RETVAL=$?<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [ $RETVAL = 0 ] &amp;&amp; rm -f /var/lock/tomcat ;;<br />
&nbsp;&nbsp;&nbsp; restart)<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $0 stop<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $0 start<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ;;<br />
&nbsp;&nbsp;&nbsp; condrestart)<br />
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; [ -e /var/lock/tomcat ] &amp;&amp; $0 restart ;;<br />
&nbsp;&nbsp;&nbsp; status)<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $0 stop<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $0 start<br />
&nbsp;&nbsp;&nbsp; ;;<br />
&nbsp;&nbsp;&nbsp; condrestart)<br />
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; [ -e /var/lock/tomcat ] &amp;&amp; $0 restart ;;<br />
&nbsp;&nbsp;&nbsp; status)<br />
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; status tomcat<br />
&nbsp;&nbsp;&nbsp; ;;<br />
&nbsp;&nbsp;&nbsp; *)<br />
&nbsp;&nbsp;&nbsp; &nbsp; &nbsp;&nbsp; echo &quot;Usage: $0 {start|stop|restart|status}&quot;</span>
</p>
<p style="padding-left: 30px;"><span style="color: #3366ff;">&nbsp;&nbsp;&nbsp; exit 1<br />
esac<br />
&nbsp;&nbsp;&nbsp; exit 0</span>
<br />
保存并退出。 <br />
&nbsp;&nbsp;&nbsp; <br />
修改权限、让配置生效，终端输入：<br />
<span style="color: #ff0000;">sudo chmod 755 /etc/init.d/tomcat<br />
sudo update-rc.d tomcat defaults 85</span>
<br />
重启 ubuntu ，在浏览器地址栏中输入 http://192.168.1.134:8080/<br />
看是否出现 tomcat 的页面：<br />
<img src="/Upload/EditorImage/image/php/201205/6347315203035547060_1308216198kgaW.gif" alt="" />
<br /></p>
<h2>6.&nbsp;&nbsp;&nbsp; 部分命令使用</h2>
<h3>6.1&nbsp;&nbsp;&nbsp; vi</h3>
<p style="padding-left: 30px;">参见： http://baike.baidu.com/view/27682.htm#sub5889285</p>
<h3>6.2&nbsp;&nbsp;&nbsp; apt-get</h3>
<p style="padding-left: 30px;">参见： http://baike.baidu.com/view/1580236.htm</p>
<h3>6.3&nbsp;&nbsp;&nbsp; chmod</h3>
<p style="padding-left: 30px;">参见： http://baike.baidu.com/view/1229012.htm#2</p>
<h3>6.4&nbsp;&nbsp;&nbsp; tar</h3>
<p style="padding-left: 30px;">参见： http://baike.baidu.com/view/209679.htm#1</p>
<h3>6.5&nbsp;&nbsp;&nbsp; chown</h3>
<p style="padding-left: 30px;">参见： http://baike.baidu.com/view/1229019.htm</p>
<h3>6.6&nbsp;&nbsp;&nbsp; 设置IP</h3>
<p style="padding-left: 30px;">参见： http://blog.csdn.net/fibbery/archive/2009/05/16/4191634.aspx</p>
            
                    <div>来源：http://blog.csdn.net/senton/article/details/6548649</div>]]></description>
</item>

<item>
<link><![CDATA[http://www.itivy.com/php/archive/2012/5/20/634731484610419498.html]]></link>
<title><![CDATA[Ubuntu10.10中安装Macbuntu后的一些Fix]]></title>
<author><![CDATA[php园丁]]></author>
<category><![CDATA[]]></category>
<pubDate>Sun, 20 May 2012 23:06:50 GMT</pubDate>
<guid><![CDATA[]]></guid>
<description><![CDATA[
            
<span style="color:rgb(75,75,75); font-family:Verdana,Geneva,Arial,Helvetica,sans-serif; font-size:13px; line-height:19px"></span>
<div class="postTitle" style="font-size:14.7px; font-weight:bold; margin-bottom:10px">
<a id="viewpost1_TitleUrl" class="postTitle2" href="http://www.cppblog.com/mildforest/archive/2011/04/03/143340.html" style="text-decoration:none; color:rgb(26,139,200)">Ubuntu10.10中安装Macbuntu后的一些Fix</a></div>
主要改善了以下问题：<br>
<br>
1. Eclipse等gtk2程序中，工具栏图标背景色太深，与周边空白区域的颜色非常不协调。<br>
&nbsp;&nbsp; &nbsp;<br>
解决方法（可能会有副作用，对其他程序有影响）：<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 用gedit打开 ~/.themes/Macbuntu/gtk-2.0/gtkrc，找到如下两行：<br>
<div style="background-color:rgb(238,238,238); font-size:13px; border-top-width:1px; border-right-width:1px; border-bottom-width:1px; border-left-width:1px; border-top-style:solid; border-right-style:solid; border-bottom-style:solid; border-left-style:solid; border-top-color:rgb(204,204,204); border-right-color:rgb(204,204,204); border-bottom-color:rgb(204,204,204); border-left-color:rgb(204,204,204); padding-top:4px; padding-right:5px; padding-bottom:4px; padding-left:4px; width:1008px">
<span style="color:rgb(0,0,0)">class&nbsp;</span><span style="color:rgb(0,0,0)">&quot;</span><span style="color:rgb(0,0,0)">*Toolbar</span><span style="color:rgb(0,0,0)">&quot;</span><span style="color:rgb(0,0,0)">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;style&nbsp;</span><span style="color:rgb(0,0,0)">&quot;</span><span style="color:rgb(0,0,0)">toolbar</span><span style="color:rgb(0,0,0)">&quot;</span><span style="color:rgb(0,0,0)"><br>
widget_class&nbsp;</span><span style="color:rgb(0,0,0)">&quot;</span><span style="color:rgb(0,0,0)">*Toolbar</span><span style="color:rgb(0,0,0)">&quot;</span><span style="color:rgb(0,0,0)">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;style&nbsp;</span><span style="color:rgb(0,0,0)">&quot;</span><span style="color:rgb(0,0,0)">toolbar</span><span style="color:rgb(0,0,0)">&quot;</span></div>
<br>
将其注释，如下：<br>
<br>
<div style="background-color:rgb(238,238,238); font-size:13px; border-top-width:1px; border-right-width:1px; border-bottom-width:1px; border-left-width:1px; border-top-style:solid; border-right-style:solid; border-bottom-style:solid; border-left-style:solid; border-top-color:rgb(204,204,204); border-right-color:rgb(204,204,204); border-bottom-color:rgb(204,204,204); border-left-color:rgb(204,204,204); padding-top:4px; padding-right:5px; padding-bottom:4px; padding-left:4px; width:1008px">
<span style="color:rgb(128,0,0)">#&nbsp;workrounds&nbsp;for&nbsp;eclipse&nbsp;icon&nbsp;backgroud&nbsp;wrong.<br>
#&nbsp;class&nbsp;&quot;*Toolbar&quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;style&nbsp;&quot;toolbar&quot;<br>
#&nbsp;widget_class&nbsp;&quot;*Toolbar&quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;style&nbsp;&quot;toolbar&quot;</span></div>
<br>
2. Eclipse与Firefox的菜单没有出现在全局菜单中。<br>
<br>
解决办法：<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1、禁用Ubuntu10.10的Indicator Applet Appmenu；<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2、安装gnome2-globalmenu<br>
在<a href="http://gnome-look.org/content/show.php?content=129021&amp;forumpage=0" style="color:rgb(26,139,200); text-decoration:none">http://gnome-look.org/content/show.php?content=129021&amp;forumpage=0</a>中提供了一个安装gnome2-globalmenu的补丁，<a href="http://gnome-look.org/content/download.php?content=129021&amp;id=3&amp;tan=47084992" style="color:rgb(26,139,200); text-decoration:none">这是链接</a>。<br>
PS，上面图标背景色过深的解决方案也是在这条贴中的评论中找到的，见<a href="http://gnome-look.org/content/show.php?content=129021&amp;forumpage=11&amp;PHPSESSID=98ec9053b2aea614fc54b7bb5ae30867" style="color:rgb(26,139,200); text-decoration:none">这里</a>&nbsp;。<br>
<br>
<div style="background-color:rgb(238,238,238); font-size:13px; border-top-width:1px; border-right-width:1px; border-bottom-width:1px; border-left-width:1px; border-top-style:solid; border-right-style:solid; border-bottom-style:solid; border-left-style:solid; border-top-color:rgb(204,204,204); border-right-color:rgb(204,204,204); border-bottom-color:rgb(204,204,204); border-left-color:rgb(204,204,204); padding-top:4px; padding-right:5px; padding-bottom:4px; padding-left:4px; width:1008px">
<span style="color:rgb(0,0,0)">Re:&nbsp;Eclipse&nbsp;IDE&nbsp;tool&nbsp;bar&nbsp;problem&nbsp;&nbsp;-&nbsp;&nbsp;by&nbsp;bagley&nbsp;on:&nbsp;Oct&nbsp;18&nbsp;2010&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;<br>
GTK&nbsp;theme&nbsp;is&nbsp;eligible&nbsp;for&nbsp;a&nbsp;full&nbsp;rebuild.&nbsp;Meanwhile,&nbsp;you&nbsp;can&nbsp;hash&nbsp;the&nbsp;following&nbsp;lines&nbsp;in&nbsp;the&nbsp;gtkrc&nbsp;(~/.themes/Macbuntu/gtk-2.0/gtkrc).<br>
<br>
class&nbsp;&quot;*Toolbar&quot;&nbsp;style&nbsp;&quot;toolbar&quot;<br>
widget_class&nbsp;&quot;*Toolbar&quot;&nbsp;style&nbsp;&quot;toolbar&quot;<br>
<br>
Unfortunately,&nbsp;it&nbsp;affects&nbsp;other&nbsp;applications.<br>
</span></div>
<br>
<br>
3. openoffice/libreoffice的全局菜单问题 --&nbsp; 未解决。<br>
<br>
4. openoffice/libreoffice的菜单字体过粗。<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 安装macbuntu后，系统的application font会更改为lucidaGrande，而这会导致openoffice/libreoppenoffice菜单字体过粗。比较无奈的解决办法是把application font改回原来Sans。

            
                    <div>来源：http://blog.csdn.net/senton/article/details/6627844</div>]]></description>
</item>

<item>
<link><![CDATA[http://www.itivy.com/php/archive/2012/5/20/634731484600431850.html]]></link>
<title><![CDATA[使用 APACHE COMMON DBCP +COMMON POOL+MYSQL连接无效的问题]]></title>
<author><![CDATA[php园丁]]></author>
<category><![CDATA[]]></category>
<pubDate>Sun, 20 May 2012 23:06:49 GMT</pubDate>
<guid><![CDATA[]]></guid>
<description><![CDATA[
            <h2 style="font-family: verdana, arial, sans-serif; color: rgb(204, 204, 204); text-transform: uppercase; margin-top: 8px; background-color: rgb(51, 51, 51); "><a id="viewpost1_TitleUrl" href="http://www.blogjava.net/super/archive/2010/09/15/332102.html" style="text-decoration: none; color: rgb(204, 204, 204); "><span style="font-size:18px;"></span></a></h2><span style="font-size:18px;"></span><div style="text-align: center;">使用 APACHE COMMON DBCP +COMMON POOL+MYSQL连接无效的问题</div><br /><br /><span style="font-size:16px;color:#3333ff;">Throwable occurred: org.springframework.transaction.CannotCreateTransactionException: Could not open JDBC Connection for transaction; nested exception is com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: The last packet successfully received from the server was 50,123,505 milliseconds ago. &nbsp;The last packet sent successfully to the server was 50,123,505 milliseconds ago. is longer than the server configured value of 'wait_timeout'. You should consider either expiring and/or testing connection validity before use in your application, increasing the server configured values for client timeouts, or using the Connector/J connection property 'autoReconnect=true' to avoid this problem.</span><br /><br /><span style="font-size:16px;">这主要是由两个原因引起来的:<br />1.mysql 会自动关闭长时间不用的connection,一个连接如果处于sleep状态达到mysql的参数wait_timeout指定的时间(默认为8小时),就是自动关闭这个连接<br />2.common pool中没有指定相应的连接检查参数<br /><br />解决办法:从common pool的配置参数来解决:<br /><br />&nbsp;&lt;bean id=&quot;dataSource&quot; class=&quot;org.apache.commons.dbcp.BasicDataSource&quot; destroy-method=&quot;close&quot;&gt;<br />&nbsp; &lt;property name=&quot;driverClassName&quot;&gt;<br />&nbsp; &nbsp;&lt;value&gt;${db.driver}&lt;/value&gt;<br />&nbsp; &lt;/property&gt;<br />&nbsp; &lt;property name=&quot;url&quot;&gt;<br />&nbsp; &nbsp;&lt;value&gt;${db.url}&lt;/value&gt;<br />&nbsp; &lt;/property&gt;<br />&nbsp; &lt;property name=&quot;username&quot;&gt;<br />&nbsp; &nbsp;&lt;value&gt;${db.user}&lt;/value&gt;<br />&nbsp; &lt;/property&gt;<br />&nbsp; &lt;property name=&quot;password&quot;&gt;<br />&nbsp; &nbsp;&lt;value&gt;${db.password}&lt;/value&gt;<br />&nbsp; &lt;/property&gt;<br />&nbsp; &lt;property name=&quot;maxActive&quot;&gt;<br />&nbsp; &nbsp;&lt;value&gt;100&lt;/value&gt;<br />&nbsp; &lt;/property&gt;<br />&nbsp; &lt;property name=&quot;maxIdle&quot;&gt;<br />&nbsp; &nbsp;&lt;value&gt;50&lt;/value&gt;<br />&nbsp; &lt;/property&gt;<br />&nbsp; &lt;property name=&quot;maxWait&quot;&gt;<br />&nbsp; &nbsp;&lt;value&gt;10000&lt;/value&gt;<br />&nbsp; &lt;/property&gt;<br /><br /><span style="color:#ff0000;">&nbsp; &lt;property name=&quot;timeBetweenEvictionRunsMillis&quot;&gt;<br />&nbsp; &nbsp;&lt;value&gt;3600000&lt;/value&gt;&lt;!--1 hours--&gt;<br />&nbsp; &lt;/property&gt;</span><br />&lt;!--<br />&nbsp; &lt;property name=&quot;minEvictableIdleTimeMillis&quot;&gt;<br />&nbsp; &nbsp;&lt;value&gt;20000&lt;/value&gt;<br />&nbsp; &lt;/property&gt;<br />--&gt;<br />&nbsp;&nbsp;<br /><span style="color:#ff0000;">&nbsp; &lt;property name=&quot;testWhileIdle&quot;&gt;<br />&nbsp; &nbsp;&lt;value&gt;true&lt;/value&gt;<br />&nbsp; &lt;/property&gt;<br />&nbsp; &lt;property name=&quot;validationQuery&quot;&gt;<br />&nbsp; &nbsp;&lt;value&gt;select 1 from dual&lt;/value&gt;<br />&nbsp; &lt;/property&gt;</span><br />&nbsp;&lt;/bean&gt;<br />使用上述的三个红色的参数,就可以避免这个问题.这三个参数的意义:<br /><br />timeBetweenEvictionRunsMillis:启动connection校验定时器,定时器运行时间间隔就是timeBetweenEvictionRunsMillis的值.默认为-1,表示不启动定时器,这里设定为1小时,只要小于mysql的wait_timeout就可以了<br /><br />testWhileIdle: true,表示检查idle的connection,false为不检查<br /><br />validationQuery:用于检查connection的sql语句.<br /><br />这只是一种方法,另外的几种方法:<br /><br />timeBetweenEvictionRunsMillis+minEvictableIdleTimeMillis:这种方式不检查Connection的有效性,而是检查连接的空闲时间,大于minEvictableIdleTimeMillis就清除.<br /><br />&nbsp; &lt;property name=&quot;timeBetweenEvictionRunsMillis&quot;&gt;<br />&nbsp; &nbsp;&lt;value&gt;3600000&lt;/value&gt;&lt;!--1 hours--&gt;<br />&nbsp; &lt;/property&gt;<br /><br />&nbsp; &lt;property name=&quot;minEvictableIdleTimeMillis&quot;&gt;<br />&nbsp; &nbsp;&lt;value&gt;120000&lt;/value&gt;&lt;!--connection的空闲时间大于这个值,就直接被关闭,并从连接池中删除--&gt;<br />&nbsp; &lt;/property&gt;<br /><br />如果不喜欢用定时器,也可以配置testOnBorrow+validationQuery参数:每次从连接池取参数都会校验连接的有效性.实际上这种方式性能会比定时器差些.<br />&nbsp; &lt;property name=&quot;testOnBorrow&quot;&gt;<br />&nbsp; &nbsp;&lt;value&gt;true&lt;/value&gt;<br />&nbsp; &lt;/property&gt;<br />&nbsp; &lt;property name=&quot;validationQuery&quot;&gt;<br />&nbsp; &nbsp;&lt;value&gt;select 1 from dual&lt;/value&gt;<br />&nbsp; &lt;/property&gt;<br /><br />另外,也可以用testOnReturn+validationQuery,不过未必会解决问题:这表示每次使用完连接,归还连接池的时候检查连接的有效性,这有可能导致使用一次无效的连接,最好不要用.<br /><br />上面的几种方法可以合并使用,只是检查的点多了,未必是好事.</span><span style="font-size:18px;"><span style="color: rgb(204, 204, 204); font-family: verdana, arial, sans-serif; background-color: rgb(51, 51, 51); "></span></span>
            
                    <div>来源：http://blog.csdn.net/senton/article/details/7160853</div>]]></description>
</item>

<item>
<link><![CDATA[http://www.itivy.com/php/archive/2012/5/16/634727976848200672.html]]></link>
<title><![CDATA[发布一个查看PHP opcode的扩展模块及Web服务]]></title>
<author><![CDATA[php园丁]]></author>
<category><![CDATA[]]></category>
<pubDate>Wed, 16 May 2012 20:42:30 GMT</pubDate>
<guid><![CDATA[]]></guid>
<description><![CDATA[<p>最近花了大约一星期的时间写了一个PHP扩展模块<a href="https://github.com/ericzhang-cn/opdumper" target="_blank">Opdumer</a>，并封装成了Web服务（<a href="http://supercompiler.com/app/opcode_dumper" target="_blank">点击这里访问</a>）。这个模块的主要内容是输出PHP代码对应的opcode。其实之前已经有一些用于查看opcode的扩展模块，如比较有名的<a href="http://pecl.php.net/package/vld" target="_blank">vld</a>。之所以重新实现一个这样的模块，主要是因为vld不支持PHP_FUNCTION API，也就是说vld只能用于CLI形式，而Opdumer同时拥有CLI API和PHP_FUNCTION API，另外，也想借助编写这个模块的机会学习Zend Engine中opcode的编译和执行机制。个人打算后面专门针对opcode的编译执行机制写一篇文章，而本文主要描述Opcode的使用方法及对应Web服务的使用。<span id="more-402"></span><br />
<h1>Opdumper</h1>
<h2>安装</h2>
<p>Opdumper的源码已经托管在github上，其地址为：<a href="https://github.com/ericzhang-cn/opdumper" target="_blank">https://github.com/ericzhang-cn/opdumper</a>。可以通过以下命令克隆源代码：</p>
<pre class="brush:bash;">git clone https://github.com/ericzhang-cn/opdumper.git</pre>
<p>Opdumper是一个标准的PHP Extension，安装方法如下：<br />
首先将Opdumper源码放到PHP源码包的ext/opdumper目录下，进入此目录执行如下命令：</p>
<pre class="brush:bash;">phpize
./configure
make
make install</pre>
<p>然后在php.ini中添加一行配置：</p>
<pre class="brush:bash;">extension=opdumper.so</pre>
<p>目前opdumper支持PHP>=5.3，在Linux和MacOS下测试通过，Windows下未做测试。</p>
<h2>CLI API</h2>
<p>Opdumper支持类似vld的命令行方式输出opcode，只需在执行php命令时通过-d参数将opdumper.active=1传入。例如我们有一个foo.php：</p>
<pre class="brush:php;">&lt;?php
$a = 'hello';
echo $a;
?&gt;</pre>
<p>执行如下命令：</p>
<pre class="brush:bash;">php -d opdumper.active=1 foo.php</pre>
<p>结果如下：<br />
<img style="display:block; margin-left:auto; margin-right:auto;" src="/Upload/EditorImage/image/php/201205/634727977491676256Snip20120516_4.png" alt="Snip20120516 4" title="Snip20120516_4.png" border="0" width="575" height="593" /></p>
<h2>PHP_FUNCTION API</h2>
<p>Opdumper还支持vld不支持的PHP_FUNCTION API，Opdumper提供了两个PHP函数：od_dump_opcodes_string和od_dump_opcodes_file。前者接受一个字符串作为产生，字符串是一段PHP代码；后者接受一个PHP文件作为参数，返回值均是一个存有opcode结果的PHP数组。以od_dump_opcodes_file为例，我们在foo.php同一目录下再写一个bar.php：</p>
<pre class="brush:php;">&lt;?php
$opcodes = od_dump_opcodes_file('./foo.php');
var_dump($opcodes);
?&gt;</pre>
<p>执行结果如下：</p>
<pre class="brush:bash;">array(3) {
  [0]=>
  array(8) {
    ["lineno"]=>
    int(2)
    ["opcode"]=>
    string(11) "ZEND_ASSIGN"
    ["op1_type"]=>
    string(2) "CV"
    ["op2_type"]=>
    string(5) "CONST"
    ["result_type"]=>
    string(0) ""
    ["op1"]=>
    string(2) "~0"
    ["op2"]=>
    string(5) "hello"
    ["result"]=>
    string(0) ""
  }
  [1]=>
  array(8) {
    ["lineno"]=>
    int(3)
    ["opcode"]=>
    string(9) "ZEND_ECHO"
    ["op1_type"]=>
    string(2) "CV"
    ["op2_type"]=>
    string(6) "UNUSED"
    ["result_type"]=>
    string(6) "UNUSED"
    ["op1"]=>
    string(2) "~0"
    ["op2"]=>
    string(6) "UNUSED"
    ["result"]=>
    string(6) "UNUSED"
  }
  [2]=>
  array(8) {
    ["lineno"]=>
    int(5)
    ["opcode"]=>
    string(11) "ZEND_RETURN"
    ["op1_type"]=>
    string(5) "CONST"
    ["op2_type"]=>
    string(6) "UNUSED"
    ["result_type"]=>
    string(6) "UNUSED"
    ["op1"]=>
    string(1) "1"
    ["op2"]=>
    string(6) "UNUSED"
    ["result"]=>
    string(6) "UNUSED"
  }
}</pre>
<h1>Opdumper的Web服务：Opcode Dumper</h1>
<p>坦白说，安装PHP模块还是挺麻烦的。所以为了方便朋友们查看opcode，我为Opdumper搭建了一个在线Web服务：<a href="http://supercompiler.com/app/opcode_dumper" target="_blank">http://supercompiler.com/app/opcode_dumper</a>。</p>
<h2>Web页面访问</h2>
<p>只要访问这个页面，在编辑框中输入或粘贴进PHP代码，就可以快速看到相应的opcode：<br />
<img style="display:block; margin-left:auto; margin-right:auto;" src="/Upload/EditorImage/image/php/201205/634727977500953927Snip20120516_5.png" alt="Snip20120516 5" title="Snip20120516_5.png" border="0" width="600" height="398" /><br />
同时，也可以将结果下载到本地（CSV文件格式）。</p>
<h2>HTTP API方式访问</h2>
<p>您可以通过访问如下API获取PHP代码的opcode：</p>
<p>URI:    <b>http://supercompiler.com/api/dump_opcodes</b></p>
<p>Method: <b>POST</b></p>
<p>Params: <b>php_script=[您的PHP代码]</b></p>
<p>返回值为JSON格式，成功时success字段为”true”，data字段存储opcodes；失败时success字段为”false”，msg字段存放失败原因。</p>
<p>由于跨越的关系，目前只能使用Curl而不能使用Ajax方式调用这个API，后续会为其增加JSONP接口。</p>
<h1>结语</h1>
<p>目前这个模块还比较初级，有很多需要完善的地方。也欢迎有兴趣的朋友通过github贡献代码。</p>
<div>来源：http://www.codinglabs.org/html/opdumper-and-web-opcode-dumper.html</div>]]></description>
</item>

<item>
<link><![CDATA[http://www.itivy.com/php/archive/2012/5/16/634727854975030685.html]]></link>
<title><![CDATA[TDH_Socket与HandlerSocket和MySQL的特性优缺点对比]]></title>
<author><![CDATA[php园丁]]></author>
<category><![CDATA[]]></category>
<pubDate>Wed, 16 May 2012 17:22:09 GMT</pubDate>
<guid><![CDATA[]]></guid>
<description><![CDATA[<div class="entry-content">
<div>
<table border="1px solid" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td></td>
<td>
<p lang="en-US">TDH_SOCKET</p>
</td>
<td>
<p lang="en-US">HandlerSocket</p>
</td>
<td>
<p lang="en-US">SQL</p>
</td>
</tr>
<tr>
<td>IO策略</td>
<td>
<p lang="en-US">Dynamic IOStrategy</p>
</td>
<td>
<p lang="en-US">Same-thread IOStrategy</p>
</td>
<td>
<p lang="en-US">one-thread-per-connection</p>
</td>
</tr>
<tr>
<td>优点</td>
<td>worker线程只处理与DB相关的逻辑最大化DB的操作吞吐量</td>
<td>上下文切换真心很少</td>
<td>资源分离 不太会相互干扰</td>
</tr>
<tr>
<td>缺点</td>
<td>上下文切换一般,测试时最高在10w,但可以接受</td>
<td>IO逻辑对DB逻辑影响较大一旦io处理的慢了,会导致QPS下降很多(比如说较多的连接数并发请求导致io处理变慢也会是整体QPS下降)</td>
<td>线程资源浪费严重,太多的线程会导致高并发是上下文切换多,从而影响性能,测试时最高60w</td>
</tr>
<tr>
<td>读策略</td>
<td>
<ul>
<li>
<ol type="1">
<li>无需SQL解析</li>
<li>可在THD上cache open过的table(可配置关闭)</li>
<li>一次轮询只lock一次table</li>
<li>请求按table的hash值平均分配到可活动的线程上</li>
<li>如果有table被过多访问,那么此table的请求可被分配到多个线程上</li>
<li>在带io请求少时,可以用较少的线程work.来减少锁征用导致的上下文切换</li>
<li>有一定量带io请求时,能调整worker线程数来充分利用io资源.</li>
<li>当带io请求巨多时,将区分带io的请求和不带io的请求.分别用两个线程池来执行,防止带io的请求堵住不带io的请求.</li>
<li>还可以设置流控带io的请求数来防止client的堵塞情况,能使DB继续输出较高的QPS</li>
<li>如果返回大批量数据可以以stream的方式返回,避免过多占用内存</li>
</ol>
</li>
</ul>
</td>
<td>
<ul>
<li>
<ol type="1">
<li>无需SQL解析</li>
<li>可在THD上cache open过的table(不可配置关闭)</li>
<li>一次轮询只lock一次table</li>
<li>worker线程数固定,且无法做请求数的平衡,只能做连接数的平衡</li>
</ol>
</li>
</ul>
</td>
<td>
<ul>
<li>
<ol type="1">
<li>可global的做table的cache</li>
<li>每次请求都lock一次table</li>
</ol>
</li>
</ul>
</td>
</tr>
<tr>
<td>优点</td>
<td>多种策略配合能一直输出较高的QPS</td>
<td>在全缓存的请求下,输出的QPS很高</td>
<td>由于是一个连接一个请求,不会出现由带io的请求堵塞不带io的请求的情况出现</td>
</tr>
<tr>
<td>缺点</td>
<td>流控会丢失一部分请求,预测请求带不带io不是非常准确(如果使用row cache就能较精确的预测了)</td>
<td>一旦有带io的请求出现,就很容易堵塞住不带io的请求出现,所以缓存命中率下降后QPS下降的非常厉害返回大批量数据会占用过多内存</td>
<td>有极限一般QPS最高输出到6-7w</td>
</tr>
<tr>
<td>写策略</td>
<td>
<ul>
<li>
<ol type="1">
<li>一次轮询的请求一次commit</li>
<li>请求按table的hash值平均分配到写线程上,即同一个表肯定在一个写线程的被执行,不会有死锁的问题,也不会有同一条row的锁问题.</li>
<li>支持Batch方式的小事务,Batch内的请求保证同时成功,同时失败</li>
<li>可以在Client端通过指定hash的方式,来控制请求被指定的线程执行,来避免一些锁或死锁</li>
</ol>
</li>
</ul>
</td>
<td>
<ul>
<li>
<ol type="1">
<li>一次轮询的请求一次commit</li>
<li>可配置多个写线程,但是有一个user_lock保证只有一个写线程在工作,来防止死锁</li>
</ol>
</li>
</ul>
</td>
<td>
<ul>
<li>
<ol type="1">
<li>一次请求一次commit</li>
</ol>
</li>
</ul>
</td>
</tr>
<tr>
<td>优点</td>
<td>同一个表必然在同一个线程上执行,所以行锁的征用被降到最低,加上group commit就能提供很搞的TPS可以多个写线程并发写,不会有死锁问题支持batch小事务</td>
<td>Group commit可以减少fsync次数,提高写性能</p>
<p lang="en-US">
</td>
<td>支持大事务</td>
</tr>
<tr>
<td>缺点</td>
<td>写线程数有限,在有io堵塞请求下,性能会有下降</td>
<td>同一时刻只有一个写线程能被执行,很容易达到瓶颈,一旦有多表插入并发出现,很容易影响整体更新性能生成binlog没有执行时间(bug)</p>
<p>多表insert会有自增id获取失败的问题(bug)</td>
<td>性能受限于IOPS</td>
</tr>
<tr>
<td>可维护性</td>
<td>
<ul>
<li>
<ol type="1">
<li>DDL操作不会被hang住(因为可以主动close 被cache的table)</li>
</ol>
<ol type="1">
<li>支持KILL 命令直接终止正在执行的操作</li>
</ol>
<ol type="1">
<li>大部分参数都为在线可配置</li>
</ol>
<ol type="1">
<li>status数据监控完善</li>
</ol>
</li>
</ul>
</td>
<td>
<ul>
<li>
<ol type="1">
<li>DDL会被hang住,因为handlersocket只open table不管主动close table,只有在流量较小time out时才会close table</li>
</ol>
</li>
</ul>
</td>
<td>最高</td>
</tr>
<tr>
<td>易用性</td>
<td>
<ol type="1">
<li>client端不需要openIndex,直接请求即可(如:</li>
</ol>
<p lang="en-US">client.query().use(&#8220;test&#8221;).select(&#8220;id&#8221;, &#8220;a&#8221;, &#8220;b&#8221;, &#8220;c&#8221;).from(&#8220;t&#8221;)</p>
<p lang="en-US">.where().fields(&#8220;a&#8221;).in(["1", "1"], ["2"], ["1"]).get())</p>
<ol type="1">
<li>server端只需要一个port 就能做读写分离</li>
<li>可支持一些MySQL的内置函数
<ol type="1">
<li>现在支持Update/Insert的时候可以插入now()</li>
</ol>
</li>
</ol>
<ol type="1">
<li>基于辅助索引的联合主键可以支持简单的order by
<ol type="1">
<li>只能支持=的order by</li>
</ol>
</li>
</ol>
<p>5.  Java客户端支持JDBC</td>
<td>
<ul>
<li>
<ol type="1">
<li>读写分离需要在server端配置两个port是实现</li>
<li>client请求前需要先openIndex</li>
</ol>
</li>
</ul>
</td>
<td>最高</td>
</tr>
</tbody>
</table>
</div>
</div>
<div>来源：http://rdc.taobao.com/team/jm/archives/1738</div>]]></description>
</item>

<item>
<link><![CDATA[http://www.itivy.com/php/archive/2012/5/10/634722232216415876.html]]></link>
<title><![CDATA[我是如何学习计算机编程的]]></title>
<author><![CDATA[php园丁]]></author>
<category><![CDATA[]]></category>
<pubDate>Thu, 10 May 2012 05:13:23 GMT</pubDate>
<guid><![CDATA[]]></guid>
<description><![CDATA[
            
本文是从 <a href="http://www.feross.org/how-i-learned-to-program-computers/">How I Learned to Program Computers</a> 这篇文章翻译而来。
<p>　　我在很小年纪的时候就开始学习编程，我学习编程的方法是创建大量的不同的网站。下面列出的是我创建的主要的网站，其中最早的一个是我11岁时开发的。我希望读者能从我这些复述中获得的信息是：如果你想学习编程，<strong>做大量的练习性的项目是非常必要的。</strong></p>
<p>　　学习一种技术最好的方法就是<strong>练习，练习，练习</strong>。所有我知道的最优秀的程序员都深深的享受编程——编程是一件让他们干起来无由的高兴的事情。也因此他们<strong>大量的编程</strong>。经常，那是一种不健康的废寝忘食。学习如何编程——以及如何编<em>好</em>程——并不需要你具有超人的能力。你只需要去按照自己的意愿<strong>动手去做</strong>，做出点什么东西。</p>
<p>　　做什么东西并不重要，重要的是你找到东西<em>动手去做</em>。我所认识的那些优秀的程序员，他们都有各自不同的最初学习编程的动机。有些人学习编程是为了<strong>开发动画游戏</strong>。有些人是为了解决他们在使用计算机时遇到的问题，或<strong>让工作更有效率</strong>。有些人是为了<strong>开发产品</strong>来满足人们的需求。有些人(真正的程序员)学习编程只是他们为了深入了解计算机工作原理的步骤之一 ；他们希望能<strong>搞清楚这种机器</strong>。有些程序员编程只是因为他们享受<strong>解决难题</strong>的挑战。</p>
<p>　　让所有这些“优秀程序员”统一起来的唯一因素就是，他们全因为生活中的某些原因而为编程<strong>着迷</strong>，继而<strong>花大量的时间编程</strong>，做大量的，大量的<strong>用于练习的项目</strong>。</p>
<p>　　那么，我就不再罗嗦了，下面就是我如何学习编程的故事：</p>
<p>　　<strong>我的第一个网站</strong></p>
<p style="text-align:center"><img src="/Upload/EditorImage/image/php/201205/63472223571200976720111017_075826_1.jpg" alt="作者小时候的诈骗" height="185" width="250"></p>
<p>　　在我大概十一二岁的时候，我感到需要给自己做一个网站。我已经记不清<strong>为什么</strong>需要一个网站了，只记得那样就开始做了。于是我就在网上搜索关于网页、Web 浏览器、HTML 如何工作的信息。很多的信息我发现都已经过时了，有些明显是错误的或给了错误的向导(例如为 IE 浏览器和 Netscape 浏览器分别做网站)，但过程是非常的有趣的，我学到了很多新东西。</p>
<p>　　尽管在网上搜到了很多粗制滥造的的信息，我还是想办法做了一个简单的网站，我叫它“Feross 的网站”。开发它，我使用的是微软的 Frontpage，那是一个非常棒的<a href="http://en.wikipedia.org/wiki/WYSIWYG" target="_blank">所见即所得</a>的 HTML 编辑器。我使用很常见的语法，例如粗体，斜体等对网站做修改，在编辑器里即时查看这些 HTML 标记能达到的效果。这是很有效的学习方式。</p>
<p>　　下面是我的第一个网站的截屏。这个网站已经不存在了。</p>
<p style="text-align:center"><img title="我的第一个网站" src="/Upload/EditorImage/image/php/201205/63472223573714646820111017_075827_2.jpg" alt="我的第一个网站" height="527" width="600"></p>
<p>　　你从上面的图片上看不出来，这个网站上的每个元素都在动，闪烁的动画，还能出声。我在网站的每个页面上都放置了不同的 MIDI &#26684;式的歌曲。而且都是自动播放，你没有办法让它们停下来，除非把电脑消音。哈，这就是当年流行的网站设计风&#26684;。
<img src="/Upload/EditorImage/image/php/201205/63472223573997278020111017_075829_3.gif" alt=":D"></p>
<p>　　等再长了几年岁数后，我们重新设计这个网站，让它变的漂亮些。我使用了在网上发现的一些免费的网站模板，用微软的画图工具修改了一些图片。</p>
<p style="text-align:center"><img title="修改后的第一个网站" src="/Upload/EditorImage/image/php/201205/63472223575255237120111017_075829_4.jpg" alt="修改后的第一个网站" height="409" width="600"></p>
<p>　　经管我大量的依赖于模板，但这不失为一个学习 HTML 和 Web 浏览器的好方法。“Feross 的网站”除了用来收集我小时候的一些视频外没有其它用处，所以不久后我就对它失去了兴趣。</p>
<p>　　<strong>我的第一个真正的</strong></p>
<p>　　当我9年级(14岁)时，我和我的朋友都非常着迷与观看像 <a href="http://www.newgrounds.com/" target="_blank">
Newgrounds</a> 和 <a href="http://www.ebaumsworld.com/" target="_blank">eBaumsWorld</a> 这样的网站上的 flash 视频和动画(这是2005年之前，还没有 YouTube)。我在这种网站上花了大量的时间，所以我知道所有最好的视频和游戏。我想，如果做一个网站来收集这些在网上发现的我喜欢的 flash 动画、视频、游戏，会是一件很酷的事情。这就是我做出 FreeTheFlash 网站的初衷。它是这个样子的：</p>
<p style="text-align:center"><img title="freetheflash-1" src="/Upload/EditorImage/image/php/201205/63472223577643515920111017_075830_5.jpg" alt="" height="642" width="600"></p>
<p>　　我从开发“Feross 的网站”的过程中学到了很多 HTML 知识，这次我使用了 Macromedia 公司(现在的 Adobe 公司)的 Dreamweaver 编辑器，这个东西能让我在网站里重复的页面使用同一个模板。</p>
<p>　　一段时间后，我意识到，我应该让网站<em>动起来</em>，听说是应该使用一种叫做 PHP 的编程语言来做网站，而不是只使用静态的 HTML。于是，我买了花了20美元从 Amazon 买了一本书，叫做《PHP and MySQL for Dynamic Websites》，使用 PHP 和 MySQL 对网站进行了重新设计。我还给它进行了新的美化：</p>
<p style="text-align:center"><img title="PHP&amp;MYSQL 动态网站" src="/Upload/EditorImage/image/php/201205/63472223579002756520111017_075831_6.jpg" alt="PHP&amp;MYSQL 动态网站" height="612" width="600"></p>
<p>　　在高中时期我对这个 FreeTheFlash 网站的开发持续了2年。它对于我的第一次尝试做一个“真正”的网站来说是相当成功的——在2006年，它获得了60万人/次访问，页面浏览量达3百万。FreeTheFlash 让我知道了做出一个产品、让它杰出、看大量的人使用它，是一件多么自豪的事情。它让我想做出更大的网站。</p>
<p>　　<strong>我的第二个网站</strong></p>
<p>　　在中学，我在上计算机课程时做了大量的笔记。于是，在11年级时，我觉得应该把这些笔记放到网上，让那些不喜欢看课本的学生使用。我做了一个网站，叫做 StudyNotes，使用的是 PHP 和一个叫做 Joomla 的内容管理系统。我也尝试过使用 Drupal，但发现它太复杂了。</p>
<p style="text-align:center"><img title="学习笔记网站" src="/Upload/EditorImage/image/php/201205/63472223579645573020111017_075833_7.jpg" alt="学习笔记网站" height="352" width="600"></p>
<p>　　同年，我为我的学校 Key 俱乐部分部做了一个网站，如今也不用了。</p>
<p>　　这段时间，我花了大量的时间泡在 <a href="http://www.webmasterworld.com/" target="_blank">WebmasterWorld</a> 里，这是一个论坛，主要关于网站站长和 SEO 专家推测 Google 算法，讨论 AdSense 技巧，调试网站问题等。</p>
<p>　　<strong>大量的学习和阅读</strong></p>
<p>　　等我进入了斯坦福大学后，我学习了大量的计算机课程，诸如 <a href="http://www.stanford.edu/class/cs106x/" target="_blank">
CS106X</a> 和 <a href="http://www.stanford.edu/class/cs107/" target="_blank">CS107</a>，我还超前学习了部分<a href="https://cs198.stanford.edu/cs106/"> CS106
</a>课程。</p>
<p>　　所有的课余时间我几乎都在阅读关于设计、编程、浏览器和 JavaScript 等方面的资料。一般每天4-5个小时。</p>
<p>　　如果你要问我都读什么？乱七八糟的。但大部分都是我敬仰的设计师和程序员写的博客。你可以从这篇博客的右侧看到我列出的部分博客链接。</p>
<p>　　<strong>关键一击</strong></p>
<p>　　之后，在2010年夏天，当我在 Facebook 实习时，因为跟一个朋友打赌，我开发了 <a href="http://ytinstant.com/" target="_blank">
YouTube Instant</a>，它是一个用来实时搜索 YouTube 视频的网站。这个网站在建成之后的10天里获得了1百万用户的访问量，YouTube 的 CEO 甚至给我发消息说提供一个职位给我，你可以从<a href="http://www.feross.org/youtube-instant-media-frenzy/">这里</a>看到这些媒体的躁动。</p>
<p>　　我知道 YouTube Instant 的成功归功于当前的好时机和一点幸运。我想，我们很多人不知道自己能做出什么。</p>
<p style="text-align:center"><img title="youtube-instant-job" src="/Upload/EditorImage/image/php/201205/63472223580331550820111017_075834_8.jpg" alt="YouTube Instant" height="517" width="540"></p>
<p>　　<strong>继续前行</strong></p>
<p>　　我注意到很多人使用 YouTube Instant 来听音乐视频，这让我想到了另外一种使用 YouTube API 的好方法。于是，我的朋友 Jake Becker 和我在2011年的头3个月里开发了
<a href="http://instant.fm/" target="_blank">Instant.fm</a>，它能让你轻松的向朋友分享音乐播放列表。通过这个项目我们都学到了很多新的东西。</p>
<p style="text-align:center"><img title="Instant FM" src="/Upload/EditorImage/image/php/201205/63472223581656991520111017_075835_9.jpg" alt="Instant FM" height="676" width="600"></p>
<p>　　在这个工程中我掌握的技术：</p>
<ul>
<li><a href="http://jquery.com/" target="_blank">jQuery</a></li><li>CSS (和 <a href="http://www.modernizr.com/" target="_blank">Modernizr</a> 以及 <a href="http://yepnopejs.com/" target="_blank">
YepNope</a>，用来解决跨浏览器问题的)</li><li><a href="http://www.python.org/" target="_blank">Python</a></li><li><a href="http://www.tornadoweb.org/" target="_blank">Tornado</a> (web framework/server)</li><li><a href="http://git-scm.com/" target="_blank">Git</a> (版本控制) &amp; <a href="http://github.com/" target="_blank">
GitHub</a></li><li><a href="http://www.last.fm/api" target="_blank">Last.fm API</a></li><li><a href="http://code.google.com/apis/youtube/overview.html" target="_blank">YouTube API</a></li><li>团队合作</li></ul>
<p>　　以及其它一些我们学会使用的东西：</p>
<ul>
<li><a href="http://nginx.org/" target="_blank">Nginx</a> (web server)</li><li><a href="http://supervisord.org/" target="_blank">Supervisor</a> (to daemonize Tornado)</li><li><a href="http://www.sqlalchemy.org/" target="_blank">SQLAlchemy</a> (ORM)</li><li><a href="http://ant.apache.org/" target="_blank">Apache Ant</a> (to build and deploy the site after a push)</li></ul>
<p>　　<strong>动手去做！</strong></p>
<p>　　我把从11岁就开始做的东西都不厌其烦的曝出来，目的就是要说，如果你想学习编程，你需要<strong>动手去做东西</strong>！现在就去。不要找任何借口。</p>
<p>　　做东西是最好的学习方法。</p>
<p>　　从头到尾读一遍编程语言书籍是一件很无聊的事，读到一半你就读不下去了。但，如果你<strong>想做一个项目</strong>，你在做的过程中会知道你该学习哪些知识，这是认识和掌握知识更有效的途径。</p>
<p>　　<strong>计算机课程</strong></p>
<p>　　大学里的计算机课程是学习编程的另外一种十分有效的方法。大多数好的计算机课程都十分强调学习计算机科学领域里的重要概念和范式，而不是教你某个特定的语言。这能让那些从来没有接受过正规教育的人在自学时开阔&#30524;界。</p>
<p>　　记得在斯坦福大学上第一堂计算机课程时(那是教授 C&#43;&#43; 的课程)，我在想“怎么可能变量前不带$符号呢？”当时我只使用过 PHP！ <img src="/Upload/EditorImage/image/php/201205/63472223581698754020111017_075835_10.gif" alt=":)"><br>
我用了好长一段时间才改掉在变量前加$符号的习惯！</p>
<p>　　<strong>在软件公司工作</strong></p>
<p>　　另外一个提高编程水平的方法就是到软件公司实习，比如 Facebook 或 Quora，最近的两个夏天我就是在这些公司里度过的。你会从那些优秀的人那里学会如何更好的编程，如何阅读和理解他人的代码，如何在大项目中进行团队合作。</p>
<p>　　还是那句话——比什么方法都管用——学习编程最好的方法就是<strong>做项目练习</strong>。我是不是重复这句话无数次了？ <img src="/Upload/EditorImage/image/php/201205/63472223581698754020111017_075835_10.gif" alt=":)"></p>
<p>　　<strong>如何学会编程：</strong></p>
<ul>
<li>做练习性项目。</li><li>看编程书籍。</li><li>做项目练习。</li><li>上计算机课程。</li><li>做练习性项目。</li><li>读编程类博客。</li><li>做项目练习。</li></ul>
<p>　　这就是我能给出的最好的建议。</p>
<p>　　祝编程愉快！</p>
<br>

            
                    <div>来源：http://blog.csdn.net/dinglang_2009/article/details/7032324</div>]]></description>
</item>

<item>
<link><![CDATA[http://www.itivy.com/php/archive/2012/5/9/634721812024117137.html]]></link>
<title><![CDATA[PHP Apache Mysql搭建]]></title>
<author><![CDATA[php园丁]]></author>
<category><![CDATA[]]></category>
<pubDate>Wed, 09 May 2012 18:11:22 GMT</pubDate>
<guid><![CDATA[]]></guid>
<description><![CDATA[
            
<p>安装apache、 下载PHP和安装Mysql</p>
<p>httpd.conf</p>

<pre name="code" class="brush:html">#
# This is the main Apache HTTP server configuration file.  It contains the
# configuration directives that give the server its instructions.
# See &lt;URL:http://httpd.apache.org/docs/2.2&gt; for detailed information.
# In particular, see 
# &lt;URL:http://httpd.apache.org/docs/2.2/mod/directives.html&gt;
# for a discussion of each configuration directive.
#
# Do NOT simply read the instructions in here without understanding
# what they do.  They're here only as hints or reminders.  If you are unsure
# consult the online docs. You have been warned.  
#
# Configuration and logfile names: If the filenames you specify for many
# of the server's control files begin with &quot;/&quot; (or &quot;drive:/&quot; for Win32), the
# server will use that explicit path.  If the filenames do *not* begin
# with &quot;/&quot;, the value of ServerRoot is prepended -- so &quot;logs/foo.log&quot;
# with ServerRoot set to &quot;C:/Program Files/Apache Software Foundation/Apache2.2&quot; will be interpreted by the
# server as &quot;C:/Program Files/Apache Software Foundation/Apache2.2/logs/foo.log&quot;.
#
# NOTE: Where filenames are specified, you must use forward slashes
# instead of backslashes (e.g., &quot;c:/apache&quot; instead of &quot;c:\apache&quot;).
# If a drive letter is omitted, the drive on which httpd.exe is located
# will be used by default.  It is recommended that you always supply
# an explicit drive letter in absolute paths to avoid confusion.

#
# ServerRoot: The top of the directory tree under which the server's
# configuration, error, and log files are kept.
#
# Do not add a slash at the end of the directory path.  If you point
# ServerRoot at a non-local disk, be sure to point the LockFile directive
# at a local disk.  If you wish to share the same ServerRoot for multiple
# httpd daemons, you will need to change at least LockFile and PidFile.
#
ServerRoot &quot;C:/Program Files/Apache Software Foundation/Apache2.2&quot;

#
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, instead of the default. See also the &lt;VirtualHost&gt;
# directive.
#
# Change this to Listen on specific IP addresses as shown below to 
# prevent Apache from glomming onto all bound IP addresses.
#
#Listen 12.34.56.78:80
Listen 80

#
# Dynamic Shared Object (DSO) Support
#
# To be able to use the functionality of a module which was built as a DSO you
# have to place corresponding `LoadModule' lines at this location so the
# directives contained in it are actually available _before_ they are used.
# Statically compiled modules (those listed by `httpd -l') do not need
# to be loaded here.
#
# Example:
# LoadModule foo_module modules/mod_foo.so
#
LoadModule actions_module modules/mod_actions.so
LoadModule alias_module modules/mod_alias.so
LoadModule asis_module modules/mod_asis.so
LoadModule auth_basic_module modules/mod_auth_basic.so
#LoadModule auth_digest_module modules/mod_auth_digest.so
#LoadModule authn_alias_module modules/mod_authn_alias.so
#LoadModule authn_anon_module modules/mod_authn_anon.so
#LoadModule authn_dbd_module modules/mod_authn_dbd.so
#LoadModule authn_dbm_module modules/mod_authn_dbm.so
LoadModule authn_default_module modules/mod_authn_default.so
LoadModule authn_file_module modules/mod_authn_file.so
#LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
#LoadModule authz_dbm_module modules/mod_authz_dbm.so
LoadModule authz_default_module modules/mod_authz_default.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_host_module modules/mod_authz_host.so
#LoadModule authz_owner_module modules/mod_authz_owner.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule autoindex_module modules/mod_autoindex.so
#LoadModule cache_module modules/mod_cache.so
#LoadModule cern_meta_module modules/mod_cern_meta.so
LoadModule cgi_module modules/mod_cgi.so
#LoadModule charset_lite_module modules/mod_charset_lite.so
LoadModule dav_module modules/mod_dav.so
LoadModule dav_fs_module modules/mod_dav_fs.so
#LoadModule dav_lock_module modules/mod_dav_lock.so
#LoadModule dbd_module modules/mod_dbd.so
#LoadModule deflate_module modules/mod_deflate.so
LoadModule dir_module modules/mod_dir.so
#LoadModule disk_cache_module modules/mod_disk_cache.so
#LoadModule dumpio_module modules/mod_dumpio.so
LoadModule env_module modules/mod_env.so
#LoadModule expires_module modules/mod_expires.so
#LoadModule ext_filter_module modules/mod_ext_filter.so
#LoadModule file_cache_module modules/mod_file_cache.so
#LoadModule filter_module modules/mod_filter.so
#LoadModule headers_module modules/mod_headers.so
#LoadModule ident_module modules/mod_ident.so
#LoadModule imagemap_module modules/mod_imagemap.so
LoadModule include_module modules/mod_include.so
#LoadModule info_module modules/mod_info.so
LoadModule isapi_module modules/mod_isapi.so
#LoadModule ldap_module modules/mod_ldap.so
#LoadModule logio_module modules/mod_logio.so
LoadModule log_config_module modules/mod_log_config.so
#LoadModule log_forensic_module modules/mod_log_forensic.so
#LoadModule mem_cache_module modules/mod_mem_cache.so
LoadModule mime_module modules/mod_mime.so
#LoadModule mime_magic_module modules/mod_mime_magic.so
LoadModule negotiation_module modules/mod_negotiation.so
#LoadModule proxy_module modules/mod_proxy.so
#LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
#LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
#LoadModule proxy_connect_module modules/mod_proxy_connect.so
#LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
#LoadModule proxy_http_module modules/mod_proxy_http.so
#LoadModule proxy_scgi_module modules/mod_proxy_scgi.so
#LoadModule reqtimeout_module modules/mod_reqtimeout.so
#LoadModule rewrite_module modules/mod_rewrite.so
LoadModule setenvif_module modules/mod_setenvif.so
#LoadModule speling_module modules/mod_speling.so
#LoadModule ssl_module modules/mod_ssl.so
#LoadModule status_module modules/mod_status.so
#LoadModule substitute_module modules/mod_substitute.so
#LoadModule unique_id_module modules/mod_unique_id.so
#LoadModule userdir_module modules/mod_userdir.so
#LoadModule usertrack_module modules/mod_usertrack.so
#LoadModule version_module modules/mod_version.so
#LoadModule vhost_alias_module modules/mod_vhost_alias.so
LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so

LoadModule php5_module d:/php/php5apache2_2.dll



&lt;IfModule !mpm_netware_module&gt;
&lt;IfModule !mpm_winnt_module&gt;
#
# If you wish httpd to run as a different user or group, you must run
# httpd as root initially and it will switch.  
#
# User/Group: The name (or #number) of the user/group to run httpd as.
# It is usually good practice to create a dedicated user and group for
# running httpd, as with most system services.
#
User daemon
Group daemon

&lt;/IfModule&gt;
&lt;/IfModule&gt;

# 'Main' server configuration
#
# The directives in this section set up the values used by the 'main'
# server, which responds to any requests that aren't handled by a
# &lt;VirtualHost&gt; definition.  These values also provide defaults for
# any &lt;VirtualHost&gt; containers you may define later in the file.
#
# All of these directives may appear inside &lt;VirtualHost&gt; containers,
# in which case these default settings will be overridden for the
# virtual host being defined.
#

#
# ServerAdmin: Your address, where problems with the server should be
# e-mailed.  This address appears on some server-generated pages, such
# as error documents.  e.g. admin@your-domain.com
#
ServerAdmin rulinma@gmail.com

#
# ServerName gives the name and port that the server uses to identify itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
#
# If your host doesn't have a registered DNS name, enter its IP address here.
#
#ServerName www.marulin.com:80

#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot &quot;C:/Program Files/Apache Software Foundation/Apache2.2/htdocs&quot;

#
# Each directory to which Apache has access can be configured with respect
# to which services and features are allowed and/or disabled in that
# directory (and its subdirectories). 
#
# First, we configure the &quot;default&quot; to be a very restrictive set of 
# features.  
#
&lt;Directory /&gt;
    Options FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from all
&lt;/Directory&gt;

#
# Note that from this point forward you must specifically allow
# particular features to be enabled - so if something's not working as
# you might expect, make sure that you have specifically enabled it
# below.
#

#
# This should be changed to whatever you set DocumentRoot to.
#
&lt;Directory &quot;C:/Program Files/Apache Software Foundation/Apache2.2/htdocs&quot;&gt;
    #
    # Possible values for the Options directive are &quot;None&quot;, &quot;All&quot;,
    # or any combination of:
    #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    #
    # Note that &quot;MultiViews&quot; must be named *explicitly* --- &quot;Options All&quot;
    # doesn't give it to you.
    #
    # The Options directive is both complicated and important.  Please see
    # http://httpd.apache.org/docs/2.2/mod/core.html#options
    # for more information.
    #
    Options Indexes FollowSymLinks

    #
    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be &quot;All&quot;, &quot;None&quot;, or any combination of the keywords:
    #   Options FileInfo AuthConfig Limit
    #
    AllowOverride None

    #
    # Controls who can get stuff from this server.
    #
    Order allow,deny
    Allow from all

&lt;/Directory&gt;

#
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
&lt;IfModule dir_module&gt;
    DirectoryIndex index.php index.html
&lt;/IfModule&gt;

#
# The following lines prevent .htaccess and .htpasswd files from being 
# viewed by Web clients. 
#
&lt;FilesMatch &quot;^\.ht&quot;&gt;
    Order allow,deny
    Deny from all
    Satisfy All
&lt;/FilesMatch&gt;

#
# ErrorLog: The location of the error log file.
# If you do not specify an ErrorLog directive within a &lt;VirtualHost&gt;
# container, error messages relating to that virtual host will be
# logged here.  If you *do* define an error logfile for a &lt;VirtualHost&gt;
# container, that host's errors will be logged there and not here.
#
ErrorLog &quot;logs/error.log&quot;

#
# LogLevel: Control the number of messages logged to the error_log.
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
#
LogLevel warn

&lt;IfModule log_config_module&gt;
    #
    # The following directives define some format nicknames for use with
    # a CustomLog directive (see below).
    #
    LogFormat &quot;%h %l %u %t \&quot;%r\&quot; %&gt;s %b \&quot;%{Referer}i\&quot; \&quot;%{User-Agent}i\&quot;&quot; combined
    LogFormat &quot;%h %l %u %t \&quot;%r\&quot; %&gt;s %b&quot; common

    &lt;IfModule logio_module&gt;
      # You need to enable mod_logio.c to use %I and %O
      LogFormat &quot;%h %l %u %t \&quot;%r\&quot; %&gt;s %b \&quot;%{Referer}i\&quot; \&quot;%{User-Agent}i\&quot; %I %O&quot; combinedio
    &lt;/IfModule&gt;

    #
    # The location and format of the access logfile (Common Logfile Format).
    # If you do not define any access logfiles within a &lt;VirtualHost&gt;
    # container, they will be logged here.  Contrariwise, if you *do*
    # define per-&lt;VirtualHost&gt; access logfiles, transactions will be
    # logged therein and *not* in this file.
    #
    CustomLog &quot;logs/access.log&quot; common

    #
    # If you prefer a logfile with access, agent, and referer information
    # (Combined Logfile Format) you can use the following directive.
    #
    #CustomLog &quot;logs/access.log&quot; combined
&lt;/IfModule&gt;

&lt;IfModule alias_module&gt;
    #
    # Redirect: Allows you to tell clients about documents that used to 
    # exist in your server's namespace, but do not anymore. The client 
    # will make a new request for the document at its new location.
    # Example:
    # Redirect permanent /foo http://www.marulin.com/bar

    #
    # Alias: Maps web paths into filesystem paths and is used to
    # access content that does not live under the DocumentRoot.
    # Example:
    # Alias /webpath /full/filesystem/path
    #
    # If you include a trailing / on /webpath then the server will
    # require it to be present in the URL.  You will also likely
    # need to provide a &lt;Directory&gt; section to allow access to
    # the filesystem path.

    #
    # ScriptAlias: This controls which directories contain server scripts. 
    # ScriptAliases are essentially the same as Aliases, except that
    # documents in the target directory are treated as applications and
    # run by the server when requested rather than as documents sent to the
    # client.  The same rules about trailing &quot;/&quot; apply to ScriptAlias
    # directives as to Alias.
    #
    ScriptAlias /cgi-bin/ &quot;C:/Program Files/Apache Software Foundation/Apache2.2/cgi-bin/&quot;

&lt;/IfModule&gt;

&lt;IfModule cgid_module&gt;
    #
    # ScriptSock: On threaded servers, designate the path to the UNIX
    # socket used to communicate with the CGI daemon of mod_cgid.
    #
    #Scriptsock logs/cgisock
&lt;/IfModule&gt;

#
# &quot;C:/Program Files/Apache Software Foundation/Apache2.2/cgi-bin&quot; should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
&lt;Directory &quot;C:/Program Files/Apache Software Foundation/Apache2.2/cgi-bin&quot;&gt;
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
&lt;/Directory&gt;

#
# DefaultType: the default MIME type the server will use for a document
# if it cannot otherwise determine one, such as from filename extensions.
# If your server contains mostly text or HTML documents, &quot;text/plain&quot; is
# a good value.  If most of your content is binary, such as applications
# or images, you may want to use &quot;application/octet-stream&quot; instead to
# keep browsers from trying to display binary files as though they are
# text.
#
DefaultType text/plain

&lt;IfModule mime_module&gt;
    #
    # TypesConfig points to the file containing the list of mappings from
    # filename extension to MIME-type.
    #
    TypesConfig conf/mime.types

    #
    # AddType allows you to add to or override the MIME configuration
    # file specified in TypesConfig for specific file types.
    #
    #AddType application/x-gzip .tgz
    #
    # AddEncoding allows you to have certain browsers uncompress
    # information on the fly. Note: Not all browsers support this.
    #
    #AddEncoding x-compress .Z
    #AddEncoding x-gzip .gz .tgz
    #
    # If the AddEncoding directives above are commented-out, then you
    # probably should define those extensions to indicate media types:
    #
    AddType application/x-compress .Z
    AddType application/x-gzip .gz .tgz
    AddType application/x-httpd-php .php
    #
    # AddHandler allows you to map certain file extensions to &quot;handlers&quot;:
    # actions unrelated to filetype. These can be either built into the server
    # or added with the Action directive (see below)
    #
    # To use CGI scripts outside of ScriptAliased directories:
    # (You will also need to add &quot;ExecCGI&quot; to the &quot;Options&quot; directive.)
    #
    #AddHandler cgi-script .cgi

    # For type maps (negotiated resources):
    #AddHandler type-map var

    #
    # Filters allow you to process content before it is sent to the client.
    #
    # To parse .shtml files for server-side includes (SSI):
    # (You will also need to add &quot;Includes&quot; to the &quot;Options&quot; directive.)
    #
    #AddType text/html .shtml
    #AddOutputFilter INCLUDES .shtml
&lt;/IfModule&gt;

#
# The mod_mime_magic module allows the server to use various hints from the
# contents of the file itself to determine its type.  The MIMEMagicFile
# directive tells the module where the hint definitions are located.
#
#MIMEMagicFile conf/magic

#
# Customizable error responses come in three flavors:
# 1) plain text 2) local redirects 3) external redirects
#
# Some examples:
#ErrorDocument 500 &quot;The server made a boo boo.&quot;
#ErrorDocument 404 /missing.html
#ErrorDocument 404 &quot;/cgi-bin/missing_handler.pl&quot;
#ErrorDocument 402 http://www.marulin.com/subscription_info.html
#

#
# EnableMMAP and EnableSendfile: On systems that support it, 
# memory-mapping or the sendfile syscall is used to deliver
# files.  This usually improves server performance, but must
# be turned off when serving from networked-mounted 
# filesystems or if support for these functions is otherwise
# broken on your system.
#
#EnableMMAP off
#EnableSendfile off

# Supplemental configuration
#
# The configuration files in the conf/extra/ directory can be 
# included to add extra features or to modify the default configuration of 
# the server, or you may simply copy their contents here and change as 
# necessary.

# Server-pool management (MPM specific)
#Include conf/extra/httpd-mpm.conf

# Multi-language error messages
#Include conf/extra/httpd-multilang-errordoc.conf

# Fancy directory listings
#Include conf/extra/httpd-autoindex.conf

# Language settings
#Include conf/extra/httpd-languages.conf

# User home directories
#Include conf/extra/httpd-userdir.conf

# Real-time info on requests and configuration
#Include conf/extra/httpd-info.conf

# Virtual hosts
#Include conf/extra/httpd-vhosts.conf

# Local access to the Apache HTTP Server Manual
#Include conf/extra/httpd-manual.conf

# Distributed authoring and versioning (WebDAV)
#Include conf/extra/httpd-dav.conf

# Various default settings
#Include conf/extra/httpd-default.conf

# Secure (SSL/TLS) connections
#Include conf/extra/httpd-ssl.conf
#
# Note: The following must must be present to support
#       starting without SSL on platforms with no /dev/random equivalent
#       but a statically compiled-in mod_ssl.
#
&lt;IfModule ssl_module&gt;
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
&lt;/IfModule&gt;

&lt;Location /svn&gt;
    DAV svn
    SVNParentPath &quot;E:/svn&quot;
    # how to authenticate a user
    # AuthType Basic
    # AuthName &quot;Subversion repository&quot;
    # AuthUserFile &quot;e:/svn/svn_auth_passwd&quot;
    # AuthzSVNAccessFile &quot;e:/svn/svn_auth_accessfile&quot;
    # Require valid-user
&lt;/Location&gt;
PHPIniDir &quot;d:/php&quot;</pre><br>
<br>

<p><br>
</p>

<pre name="code" class="brush:html">php.ini</pre><pre name="code" class="brush:html"></pre><pre name="code" class="brush:html">[PHP]

;;;;;;;;;;;
; WARNING ;
;;;;;;;;;;;
; This is the default settings file for new PHP installations.
; By default, PHP installs itself with a configuration suitable for
; development purposes, and *NOT* for production purposes.
; For several security-oriented considerations that should be taken
; before going online with your site, please consult php.ini-recommended
; and http://php.net/manual/en/security.php.


;;;;;;;;;;;;;;;;;;;
; About php.ini   ;
;;;;;;;;;;;;;;;;;;;
; This file controls many aspects of PHP's behavior.  In order for PHP to
; read it, it must be named 'php.ini'.  PHP looks for it in the current
; working directory, in the path designated by the environment variable
; PHPRC, and in the path that was defined in compile time (in that order).
; Under Windows, the compile-time path is the Windows directory.  The
; path in which the php.ini file is looked for can be overridden using
; the -c argument in command line mode.
;
; The syntax of the file is extremely simple.  Whitespace and Lines
; beginning with a semicolon are silently ignored (as you probably guessed).
; Section headers (e.g. [Foo]) are also silently ignored, even though
; they might mean something in the future.
;
; Directives are specified using the following syntax:
; directive = value
; Directive names are *case sensitive* - foo=bar is different from FOO=bar.
;
; The value can be a string, a number, a PHP constant (e.g. E_ALL or M_PI), one
; of the INI constants (On, Off, True, False, Yes, No and None) or an expression
; (e.g. E_ALL &amp; ~E_NOTICE), or a quoted string (&quot;foo&quot;).
;
; Expressions in the INI file are limited to bitwise operators and parentheses:
; |        bitwise OR
; &amp;        bitwise AND
; ~        bitwise NOT
; !        boolean NOT
;
; Boolean flags can be turned on using the values 1, On, True or Yes.
; They can be turned off using the values 0, Off, False or No.
;
; An empty string can be denoted by simply not writing anything after the equal
; sign, or by using the None keyword:
;
;  foo =         ; sets foo to an empty string
;  foo = none    ; sets foo to an empty string
;  foo = &quot;none&quot;  ; sets foo to the string 'none'
;
; If you use constants in your value, and these constants belong to a
; dynamically loaded extension (either a PHP extension or a Zend extension),
; you may only use these constants *after* the line that loads the extension.
;
;
;;;;;;;;;;;;;;;;;;;
; About this file ;
;;;;;;;;;;;;;;;;;;;
; All the values in the php.ini-dist file correspond to the builtin
; defaults (that is, if no php.ini is used, or if you delete these lines,
; the builtin defaults will be identical).


;;;;;;;;;;;;;;;;;;;;
; Language Options ;
;;;;;;;;;;;;;;;;;;;;

; Enable the PHP scripting language engine under Apache.
engine = On

; Enable compatibility mode with Zend Engine 1 (PHP 4.x)
zend.ze1_compatibility_mode = Off

; Allow the &lt;? tag.  Otherwise, only &lt;?php and &lt;script&gt; tags are recognized.
; NOTE: Using short tags should be avoided when developing applications or
; libraries that are meant for redistribution, or deployment on PHP
; servers which are not under your control, because short tags may not
; be supported on the target server. For portable, redistributable code,
; be sure not to use short tags.
short_open_tag = On

; Allow ASP-style &lt;% %&gt; tags.
asp_tags = Off

; The number of significant digits displayed in floating point numbers.
precision    =  12

; Enforce year 2000 compliance (will cause problems with non-compliant browsers)
y2k_compliance = On

; Output buffering allows you to send header lines (including cookies) even
; after you send body content, at the price of slowing PHP's output layer a
; bit.  You can enable output buffering during runtime by calling the output
; buffering functions.  You can also enable output buffering for all files by
; setting this directive to On.  If you wish to limit the size of the buffer
; to a certain size - you can use a maximum number of bytes instead of 'On', as
; a value for this directive (e.g., output_buffering=4096).
output_buffering = Off

; You can redirect all of the output of your scripts to a function.  For
; example, if you set output_handler to &quot;mb_output_handler&quot;, character
; encoding will be transparently converted to the specified encoding.
; Setting any output handler automatically turns on output buffering.
; Note: People who wrote portable scripts should not depend on this ini
;       directive. Instead, explicitly set the output handler using ob_start().
;       Using this ini directive may cause problems unless you know what script
;       is doing.
; Note: You cannot use both &quot;mb_output_handler&quot; with &quot;ob_iconv_handler&quot;
;       and you cannot use both &quot;ob_gzhandler&quot; and &quot;zlib.output_compression&quot;.
; Note: output_handler must be empty if this is set 'On' !!!!
;       Instead you must use zlib.output_handler.
;output_handler =

; Transparent output compression using the zlib library
; Valid values for this option are 'off', 'on', or a specific buffer size
; to be used for compression (default is 4KB)
; Note: Resulting chunk size may vary due to nature of compression. PHP
;       outputs chunks that are few hundreds bytes each as a result of
;       compression. If you prefer a larger chunk size for better
;       performance, enable output_buffering in addition.
; Note: You need to use zlib.output_handler instead of the standard
;       output_handler, or otherwise the output will be corrupted.
zlib.output_compression = Off
;zlib.output_compression_level = -1

; You cannot specify additional output handlers if zlib.output_compression
; is activated here. This setting does the same as output_handler but in
; a different order.
;zlib.output_handler =

; Implicit flush tells PHP to tell the output layer to flush itself
; automatically after every output block.  This is equivalent to calling the
; PHP function flush() after each and every call to print() or echo() and each
; and every HTML block.  Turning this option on has serious performance
; implications and is generally recommended for debugging purposes only.
implicit_flush = Off

; The unserialize callback function will be called (with the undefined class'
; name as parameter), if the unserializer finds an undefined class
; which should be instantiated.
; A warning appears if the specified function is not defined, or if the
; function doesn't include/implement the missing class.
; So only set this entry, if you really want to implement such a
; callback-function.
unserialize_callback_func=

; When floats &amp; doubles are serialized store serialize_precision significant
; digits after the floating point. The default value ensures that when floats
; are decoded with unserialize, the data will remain the same.
serialize_precision = 100

; Whether to enable the ability to force arguments to be passed by reference
; at function call time.  This method is deprecated and is likely to be
; unsupported in future versions of PHP/Zend.  The encouraged method of
; specifying which arguments should be passed by reference is in the function
; declaration.  You're encouraged to try and turn this option Off and make
; sure your scripts work properly with it in order to ensure they will work
; with future versions of the language (you will receive a warning each time
; you use this feature, and the argument will be passed by value instead of by
; reference).
allow_call_time_pass_reference = On

;
; Safe Mode
;
safe_mode = Off

; By default, Safe Mode does a UID compare check when
; opening files. If you want to relax this to a GID compare,
; then turn on safe_mode_gid.
safe_mode_gid = Off

; When safe_mode is on, UID/GID checks are bypassed when
; including files from this directory and its subdirectories.
; (directory must also be in include_path or full path must
; be used when including)
safe_mode_include_dir =

; When safe_mode is on, only executables located in the safe_mode_exec_dir
; will be allowed to be executed via the exec family of functions.
safe_mode_exec_dir =

; Setting certain environment variables may be a potential security breach.
; This directive contains a comma-delimited list of prefixes.  In Safe Mode,
; the user may only alter environment variables whose names begin with the
; prefixes supplied here.  By default, users will only be able to set
; environment variables that begin with PHP_ (e.g. PHP_FOO=BAR).
;
; Note:  If this directive is empty, PHP will let the user modify ANY
; environment variable!
safe_mode_allowed_env_vars = PHP_

; This directive contains a comma-delimited list of environment variables that
; the end user won't be able to change using putenv().  These variables will be
; protected even if safe_mode_allowed_env_vars is set to allow to change them.
safe_mode_protected_env_vars = LD_LIBRARY_PATH

; open_basedir, if set, limits all file operations to the defined directory
; and below.  This directive makes most sense if used in a per-directory
; or per-virtualhost web server configuration file. This directive is
; *NOT* affected by whether Safe Mode is turned On or Off.
;open_basedir =

; This directive allows you to disable certain functions for security reasons.
; It receives a comma-delimited list of function names. This directive is
; *NOT* affected by whether Safe Mode is turned On or Off.
disable_functions =

; This directive allows you to disable certain classes for security reasons.
; It receives a comma-delimited list of class names. This directive is
; *NOT* affected by whether Safe Mode is turned On or Off.
disable_classes =

; Colors for Syntax Highlighting mode.  Anything that's acceptable in
; &lt;span style=&quot;color: ???????&quot;&gt; would work.
;highlight.string  = #DD0000
;highlight.comment = #FF9900
;highlight.keyword = #007700
;highlight.bg      = #FFFFFF
;highlight.default = #0000BB
;highlight.html    = #000000

; If enabled, the request will be allowed to complete even if the user aborts
; the request. Consider enabling it if executing long request, which may end up
; being interrupted by the user or a browser timing out.
; ignore_user_abort = On

; Determines the size of the realpath cache to be used by PHP. This value should
; be increased on systems where PHP opens many files to reflect the quantity of
; the file operations performed.
; realpath_cache_size=16k

; Duration of time, in seconds for which to cache realpath information for a given
; file or directory. For systems with rarely changing files, consider increasing this
; value.
; realpath_cache_ttl=120

;
; Misc
;
; Decides whether PHP may expose the fact that it is installed on the server
; (e.g. by adding its signature to the Web server header).  It is no security
; threat in any way, but it makes it possible to determine whether you use PHP
; on your server or not.
expose_php = On


;;;;;;;;;;;;;;;;;;;
; Resource Limits ;
;;;;;;;;;;;;;;;;;;;

max_execution_time = 30     ; Maximum execution time of each script, in seconds
max_input_time = 60	; Maximum amount of time each script may spend parsing request data
;max_input_nesting_level = 64 ; Maximum input variable nesting level
memory_limit = 128M      ; Maximum amount of memory a script may consume (128MB)


;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Error handling and logging ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

; error_reporting is a bit-field.  Or each number up to get desired error
; reporting level
; E_ALL             - All errors and warnings (doesn't include E_STRICT)
; E_ERROR           - fatal run-time errors
; E_RECOVERABLE_ERROR  - almost fatal run-time errors
; E_WARNING         - run-time warnings (non-fatal errors)
; E_PARSE           - compile-time parse errors
; E_NOTICE          - run-time notices (these are warnings which often result
;                     from a bug in your code, but it's possible that it was
;                     intentional (e.g., using an uninitialized variable and
;                     relying on the fact it's automatically initialized to an
;                     empty string)
; E_STRICT          - run-time notices, enable to have PHP suggest changes
;                     to your code which will ensure the best interoperability
;                     and forward compatibility of your code
; E_CORE_ERROR      - fatal errors that occur during PHP's initial startup
; E_CORE_WARNING    - warnings (non-fatal errors) that occur during PHP's
;                     initial startup
; E_COMPILE_ERROR   - fatal compile-time errors
; E_COMPILE_WARNING - compile-time warnings (non-fatal errors)
; E_USER_ERROR      - user-generated error message
; E_USER_WARNING    - user-generated warning message
; E_USER_NOTICE     - user-generated notice message
;
; Examples:
;
;   - Show all errors, except for notices and coding standards warnings
;
;error_reporting = E_ALL &amp; ~E_NOTICE
;
;   - Show all errors, except for notices
;
;error_reporting = E_ALL &amp; ~E_NOTICE | E_STRICT
;
;   - Show only errors
;
;error_reporting = E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR
;
;   - Show all errors except for notices and coding standards warnings
;
error_reporting  =  E_ALL &amp; ~E_NOTICE

; Print out errors (as a part of the output).  For production web sites,
; you're strongly encouraged to turn this feature off, and use error logging
; instead (see below).  Keeping display_errors enabled on a production web site
; may reveal security information to end users, such as file paths on your Web
; server, your database schema or other information.
;
; possible values for display_errors:
;
; Off        - Do not display any errors
; stderr     - Display errors to STDERR (affects only CGI/CLI binaries!)
;
;display_errors = &quot;stderr&quot;
;
; stdout (On) - Display errors to STDOUT
;
display_errors = On

; Even when display_errors is on, errors that occur during PHP's startup
; sequence are not displayed.  It's strongly recommended to keep
; display_startup_errors off, except for when debugging.
display_startup_errors = Off

; Log errors into a log file (server-specific log, stderr, or error_log (below))
; As stated above, you're strongly advised to use error logging in place of
; error displaying on production web sites.
log_errors = Off

; Set maximum length of log_errors. In error_log information about the source is
; added. The default is 1024 and 0 allows to not apply any maximum length at all.
log_errors_max_len = 1024

; Do not log repeated messages. Repeated errors must occur in same file on same
; line until ignore_repeated_source is set true.
ignore_repeated_errors = Off

; Ignore source of message when ignoring repeated messages. When this setting
; is On you will not log errors with repeated messages from different files or
; source lines.
ignore_repeated_source = Off

; If this parameter is set to Off, then memory leaks will not be shown (on
; stdout or in the log). This has only effect in a debug compile, and if
; error reporting includes E_WARNING in the allowed list
report_memleaks = On

;report_zend_debug = 0

; Store the last error/warning message in $php_errormsg (boolean).
track_errors = Off

; Disable the inclusion of HTML tags in error messages.
; Note: Never use this feature for production boxes.
;html_errors = Off

; If html_errors is set On PHP produces clickable error messages that direct
; to a page describing the error or function causing the error in detail.
; You can download a copy of the PHP manual from http://www.php.net/docs.php
; and change docref_root to the base URL of your local copy including the
; leading '/'. You must also specify the file extension being used including
; the dot.
; Note: Never use this feature for production boxes.
;docref_root = &quot;/phpmanual/&quot;
;docref_ext = .html

; String to output before an error message.
;error_prepend_string = &quot;&lt;font color=#ff0000&gt;&quot;

; String to output after an error message.
;error_append_string = &quot;&lt;/font&gt;&quot;

; Log errors to specified file.
;error_log = filename

; Log errors to syslog (Event Log on NT, not valid in Windows 95).
;error_log = syslog


;;;;;;;;;;;;;;;;;
; Data Handling ;
;;;;;;;;;;;;;;;;;
;
; Note - track_vars is ALWAYS enabled as of PHP 4.0.3

; The separator used in PHP generated URLs to separate arguments.
; Default is &quot;&amp;&quot;.
;arg_separator.output = &quot;&amp;&quot;

; List of separator(s) used by PHP to parse input URLs into variables.
; Default is &quot;&amp;&quot;.
; NOTE: Every character in this directive is considered as separator!
;arg_separator.input = &quot;;&amp;&quot;

; This directive describes the order in which PHP registers GET, POST, Cookie,
; Environment and Built-in variables (G, P, C, E &amp; S respectively, often
; referred to as EGPCS or GPC).  Registration is done from left to right, newer
; values override older values.
variables_order = &quot;EGPCS&quot;

; Whether or not to register the EGPCS variables as global variables.  You may
; want to turn this off if you don't want to clutter your scripts' global scope
; with user data.  This makes most sense when coupled with track_vars - in which
; case you can access all of the GPC variables through the $HTTP_*_VARS[],
; variables.
;
; You should do your best to write your scripts so that they do not require
; register_globals to be on;  Using form variables as globals can easily lead
; to possible security problems, if the code is not very well thought of.
register_globals = Off

; Whether or not to register the old-style input arrays, HTTP_GET_VARS
; and friends.  If you're not using them, it's recommended to turn them off,
; for performance reasons.
register_long_arrays = On

; This directive tells PHP whether to declare the argv&amp;argc variables (that
; would contain the GET information).  If you don't use these variables, you
; should turn it off for increased performance.
register_argc_argv = On

; When enabled, the SERVER and ENV variables are created when they're first
; used (Just In Time) instead of when the script starts. If these variables
; are not used within a script, having this directive on will result in a
; performance gain. The PHP directives register_globals, register_long_arrays,
; and register_argc_argv must be disabled for this directive to have any affect.
auto_globals_jit = On

; Maximum size of POST data that PHP will accept.
post_max_size = 8M

; Magic quotes
;

; Magic quotes for incoming GET/POST/Cookie data.
magic_quotes_gpc = On

; Magic quotes for runtime-generated data, e.g. data from SQL, from exec(), etc.
magic_quotes_runtime = Off

; Use Sybase-style magic quotes (escape ' with '' instead of \').
magic_quotes_sybase = Off

; Automatically add files before or after any PHP document.
auto_prepend_file =
auto_append_file =

; As of 4.0b4, PHP always outputs a character encoding by default in
; the Content-type: header.  To disable sending of the charset, simply
; set it to be empty.
;
; PHP's built-in default is text/html
default_mimetype = &quot;text/html&quot;
;default_charset = &quot;iso-8859-1&quot;

; Always populate the $HTTP_RAW_POST_DATA variable.
;always_populate_raw_post_data = On


;;;;;;;;;;;;;;;;;;;;;;;;;
; Paths and Directories ;
;;;;;;;;;;;;;;;;;;;;;;;;;

; UNIX: &quot;/path1:/path2&quot;
;include_path = &quot;.:/php/includes&quot;
;
; Windows: &quot;\path1;\path2&quot;
;include_path = &quot;.;c:\php\includes&quot;

; The root of the PHP pages, used only if nonempty.
; if PHP was not compiled with FORCE_REDIRECT, you SHOULD set doc_root
; if you are running php as a CGI under any web server (other than IIS)
; see documentation for security issues.  The alternate is to use the
; cgi.force_redirect configuration below
doc_root =

; The directory under which PHP opens the script using /~username used only
; if nonempty.
user_dir =

; Directory in which the loadable extensions (modules) reside.
extension_dir = &quot;d:/php/ext&quot;

; Whether or not to enable the dl() function.  The dl() function does NOT work
; properly in multithreaded servers, such as IIS or Zeus, and is automatically
; disabled on them.
enable_dl = On

; cgi.force_redirect is necessary to provide security running PHP as a CGI under
; most web servers.  Left undefined, PHP turns this on by default.  You can
; turn it off here AT YOUR OWN RISK
; **You CAN safely turn this off for IIS, in fact, you MUST.**
; cgi.force_redirect = 1

; if cgi.nph is enabled it will force cgi to always sent Status: 200 with
; every request.
; cgi.nph = 1

; if cgi.force_redirect is turned on, and you are not running under Apache or Netscape
; (iPlanet) web servers, you MAY need to set an environment variable name that PHP
; will look for to know it is OK to continue execution.  Setting this variable MAY
; cause security issues, KNOW WHAT YOU ARE DOING FIRST.
; cgi.redirect_status_env = ;

; cgi.fix_pathinfo provides *real* PATH_INFO/PATH_TRANSLATED support for CGI.  PHP's
; previous behaviour was to set PATH_TRANSLATED to SCRIPT_FILENAME, and to not grok
; what PATH_INFO is.  For more information on PATH_INFO, see the cgi specs.  Setting
; this to 1 will cause PHP CGI to fix it's paths to conform to the spec.  A setting
; of zero causes PHP to behave as before.  Default is 1.  You should fix your scripts
; to use SCRIPT_FILENAME rather than PATH_TRANSLATED.
; cgi.fix_pathinfo=0

; FastCGI under IIS (on WINNT based OS) supports the ability to impersonate
; security tokens of the calling client.  This allows IIS to define the
; security context that the request runs under.  mod_fastcgi under Apache
; does not currently support this feature (03/17/2002)
; Set to 1 if running under IIS.  Default is zero.
; fastcgi.impersonate = 1;

; Disable logging through FastCGI connection
; fastcgi.logging = 0

; cgi.rfc2616_headers configuration option tells PHP what type of headers to
; use when sending HTTP response code. If it's set 0 PHP sends Status: header that
; is supported by Apache. When this option is set to 1 PHP will send
; RFC2616 compliant header.
; Default is zero.
;cgi.rfc2616_headers = 0


;;;;;;;;;;;;;;;;
; File Uploads ;
;;;;;;;;;;;;;;;;

; Whether to allow HTTP file uploads.
file_uploads = On

; Temporary directory for HTTP uploaded files (will use system default if not
; specified).
;upload_tmp_dir =

; Maximum allowed size for uploaded files.
upload_max_filesize = 2M


;;;;;;;;;;;;;;;;;;
; Fopen wrappers ;
;;;;;;;;;;;;;;;;;;

; Whether to allow the treatment of URLs (like http:// or ftp://) as files.
allow_url_fopen = On

; Whether to allow include/require to open URLs (like http:// or ftp://) as files.
allow_url_include = Off

; Define the anonymous ftp password (your email address)
;from=&quot;john@doe.com&quot;

; Define the User-Agent string
; user_agent=&quot;PHP&quot;

; Default timeout for socket based streams (seconds)
default_socket_timeout = 60

; If your scripts have to deal with files from Macintosh systems,
; or you are running on a Mac and need to deal with files from
; unix or win32 systems, setting this flag will cause PHP to
; automatically detect the EOL character in those files so that
; fgets() and file() will work regardless of the source of the file.
; auto_detect_line_endings = Off


;;;;;;;;;;;;;;;;;;;;;;
; Dynamic Extensions ;
;;;;;;;;;;;;;;;;;;;;;;
;
; If you wish to have an extension loaded automatically, use the following
; syntax:
;
;   extension=modulename.extension
;
; For example, on Windows:
;
;   extension=msql.dll
;
; ... or under UNIX:
;
;   extension=msql.so
;
; Note that it should be the name of the module only; no directory information
; needs to go here.  Specify the location of the extension with the
; extension_dir directive above.


; Windows Extensions
; Note that ODBC support is built in, so no dll is needed for it.
; Note that many DLL files are located in the extensions/ (PHP 4) ext/ (PHP 5)
; extension folders as well as the separate PECL DLL download (PHP 5).
; Be sure to appropriately set the extension_dir directive.

;extension=php_bz2.dll
;extension=php_curl.dll
;extension=php_dba.dll
;extension=php_dbase.dll
;extension=php_exif.dll
;extension=php_fdf.dll
extension=php_gd2.dll
;extension=php_gettext.dll
;extension=php_gmp.dll
;extension=php_ifx.dll
;extension=php_imap.dll
;extension=php_interbase.dll
;extension=php_ldap.dll
extension=php_mbstring.dll
;extension=php_mcrypt.dll
;extension=php_mhash.dll
;extension=php_mime_magic.dll
;extension=php_ming.dll
;extension=php_msql.dll
;extension=php_mssql.dll
extension=php_mysql.dll
extension=php_mysqli.dll
;extension=php_oci8.dll
;extension=php_openssl.dll
;extension=php_pdo.dll
;extension=php_pdo_firebird.dll
;extension=php_pdo_mssql.dll
;extension=php_pdo_mysql.dll
;extension=php_pdo_oci.dll
;extension=php_pdo_oci8.dll
;extension=php_pdo_odbc.dll
;extension=php_pdo_pgsql.dll
;extension=php_pdo_sqlite.dll
;extension=php_pgsql.dll
;extension=php_pspell.dll
;extension=php_shmop.dll
;extension=php_snmp.dll
;extension=php_soap.dll
;extension=php_sockets.dll
;extension=php_sqlite.dll
;extension=php_sybase_ct.dll
;extension=php_tidy.dll
;extension=php_xmlrpc.dll
;extension=php_xsl.dll
extension=php_zip.dll

;;;;;;;;;;;;;;;;;;;
; Module Settings ;
;;;;;;;;;;;;;;;;;;;

[Date]
; Defines the default timezone used by the date functions
;date.timezone =

;date.default_latitude = 31.7667
;date.default_longitude = 35.2333

;date.sunrise_zenith = 90.583333
;date.sunset_zenith = 90.583333

[filter]
;filter.default = unsafe_raw
;filter.default_flags =

[iconv]
;iconv.input_encoding = ISO-8859-1
;iconv.internal_encoding = ISO-8859-1
;iconv.output_encoding = ISO-8859-1

[sqlite]
;sqlite.assoc_case = 0

[xmlrpc]
;xmlrpc_error_number = 0
;xmlrpc_errors = 0

[Pcre]
;PCRE library backtracking limit.
;pcre.backtrack_limit=100000

;PCRE library recursion limit. 
;Please note that if you set this value to a high number you may consume all 
;the available process stack and eventually crash PHP (due to reaching the 
;stack size limit imposed by the Operating System).
;pcre.recursion_limit=100000

[Syslog]
; Whether or not to define the various syslog variables (e.g. $LOG_PID,
; $LOG_CRON, etc.).  Turning it off is a good idea performance-wise.  In
; runtime, you can define these variables by calling define_syslog_variables().
define_syslog_variables  = Off

[mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 25

; For Win32 only.
;sendmail_from = me@example.com

; For Unix only.  You may supply arguments as well (default: &quot;sendmail -t -i&quot;).
;sendmail_path =

; Force the addition of the specified parameters to be passed as extra parameters
; to the sendmail binary. These parameters will always replace the value of
; the 5th parameter to mail(), even in safe mode.
;mail.force_extra_parameters =

[SQL]
sql.safe_mode = Off

[ODBC]
;odbc.default_db    =  Not yet implemented
;odbc.default_user  =  Not yet implemented
;odbc.default_pw    =  Not yet implemented

; Allow or prevent persistent links.
odbc.allow_persistent = On

; Check that a connection is still valid before reuse.
odbc.check_persistent = On

; Maximum number of persistent links.  -1 means no limit.
odbc.max_persistent = -1

; Maximum number of links (persistent + non-persistent).  -1 means no limit.
odbc.max_links = -1

; Handling of LONG fields.  Returns number of bytes to variables.  0 means
; passthru.
odbc.defaultlrl = 4096

; Handling of binary data.  0 means passthru, 1 return as is, 2 convert to char.
; See the documentation on odbc_binmode and odbc_longreadlen for an explanation
; of uodbc.defaultlrl and uodbc.defaultbinmode
odbc.defaultbinmode = 1

[MySQL]
; Allow or prevent persistent links.
mysql.allow_persistent = On

; Maximum number of persistent links.  -1 means no limit.
mysql.max_persistent = -1

; Maximum number of links (persistent + non-persistent).  -1 means no limit.
mysql.max_links = -1

; Default port number for mysql_connect().  If unset, mysql_connect() will use
; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the
; compile-time value defined MYSQL_PORT (in that order).  Win32 will only look
; at MYSQL_PORT.
mysql.default_port =

; Default socket name for local MySQL connects.  If empty, uses the built-in
; MySQL defaults.
mysql.default_socket =

; Default host for mysql_connect() (doesn't apply in safe mode).
mysql.default_host =

; Default user for mysql_connect() (doesn't apply in safe mode).
mysql.default_user =

; Default password for mysql_connect() (doesn't apply in safe mode).
; Note that this is generally a *bad* idea to store passwords in this file.
; *Any* user with PHP access can run 'echo get_cfg_var(&quot;mysql.default_password&quot;)
; and reveal this password!  And of course, any users with read access to this
; file will be able to reveal the password as well.
mysql.default_password =

; Maximum time (in seconds) for connect timeout. -1 means no limit
mysql.connect_timeout = 60

; Trace mode. When trace_mode is active (=On), warnings for table/index scans and
; SQL-Errors will be displayed.
mysql.trace_mode = Off

[MySQLi]

; Maximum number of links.  -1 means no limit.
mysqli.max_links = -1

; Default port number for mysqli_connect().  If unset, mysqli_connect() will use
; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the
; compile-time value defined MYSQL_PORT (in that order).  Win32 will only look
; at MYSQL_PORT.
mysqli.default_port = 3306

; Default socket name for local MySQL connects.  If empty, uses the built-in
; MySQL defaults.
mysqli.default_socket =

; Default host for mysql_connect() (doesn't apply in safe mode).
mysqli.default_host =

; Default user for mysql_connect() (doesn't apply in safe mode).
mysqli.default_user =

; Default password for mysqli_connect() (doesn't apply in safe mode).
; Note that this is generally a *bad* idea to store passwords in this file.
; *Any* user with PHP access can run 'echo get_cfg_var(&quot;mysqli.default_pw&quot;)
; and reveal this password!  And of course, any users with read access to this
; file will be able to reveal the password as well.
mysqli.default_pw =

; Allow or prevent reconnect
mysqli.reconnect = Off

[mSQL]
; Allow or prevent persistent links.
msql.allow_persistent = On

; Maximum number of persistent links.  -1 means no limit.
msql.max_persistent = -1

; Maximum number of links (persistent+non persistent).  -1 means no limit.
msql.max_links = -1

[OCI8]
; enables privileged connections using external credentials (OCI_SYSOPER, OCI_SYSDBA)
;oci8.privileged_connect = Off

; Connection: The maximum number of persistent OCI8 connections per
; process. Using -1 means no limit.
;oci8.max_persistent = -1

; Connection: The maximum number of seconds a process is allowed to
; maintain an idle persistent connection. Using -1 means idle
; persistent connections will be maintained forever.
;oci8.persistent_timeout = -1

; Connection: The number of seconds that must pass before issuing a
; ping during oci_pconnect() to check the connection validity. When
; set to 0, each oci_pconnect() will cause a ping. Using -1 disables
; pings completely.
;oci8.ping_interval = 60

; Tuning: This option enables statement caching, and specifies how
; many statements to cache. Using 0 disables statement caching.
;oci8.statement_cache_size = 20

; Tuning: Enables statement prefetching and sets the default number of
; rows that will be fetched automatically after statement execution.
;oci8.default_prefetch = 10

; Compatibility. Using On means oci_close() will not close
; oci_connect() and oci_new_connect() connections.
;oci8.old_oci_close_semantics = Off

[PostgresSQL]
; Allow or prevent persistent links.
pgsql.allow_persistent = On

; Detect broken persistent links always with pg_pconnect().
; Auto reset feature requires a little overheads.
pgsql.auto_reset_persistent = Off

; Maximum number of persistent links.  -1 means no limit.
pgsql.max_persistent = -1

; Maximum number of links (persistent+non persistent).  -1 means no limit.
pgsql.max_links = -1

; Ignore PostgreSQL backends Notice message or not.
; Notice message logging require a little overheads.
pgsql.ignore_notice = 0

; Log PostgreSQL backends Noitce message or not.
; Unless pgsql.ignore_notice=0, module cannot log notice message.
pgsql.log_notice = 0

[Sybase]
; Allow or prevent persistent links.
sybase.allow_persistent = On

; Maximum number of persistent links.  -1 means no limit.
sybase.max_persistent = -1

; Maximum number of links (persistent + non-persistent).  -1 means no limit.
sybase.max_links = -1

;sybase.interface_file = &quot;/usr/sybase/interfaces&quot;

; Minimum error severity to display.
sybase.min_error_severity = 10

; Minimum message severity to display.
sybase.min_message_severity = 10

; Compatibility mode with old versions of PHP 3.0.
; If on, this will cause PHP to automatically assign types to results according
; to their Sybase type, instead of treating them all as strings.  This
; compatibility mode will probably not stay around forever, so try applying
; whatever necessary changes to your code, and turn it off.
sybase.compatability_mode = Off

[Sybase-CT]
; Allow or prevent persistent links.
sybct.allow_persistent = On

; Maximum number of persistent links.  -1 means no limit.
sybct.max_persistent = -1

; Maximum number of links (persistent + non-persistent).  -1 means no limit.
sybct.max_links = -1

; Minimum server message severity to display.
sybct.min_server_severity = 10

; Minimum client message severity to display.
sybct.min_client_severity = 10

[bcmath]
; Number of decimal digits for all bcmath functions.
bcmath.scale = 0

[browscap]
;browscap = extra/browscap.ini

[Informix]
; Default host for ifx_connect() (doesn't apply in safe mode).
ifx.default_host =

; Default user for ifx_connect() (doesn't apply in safe mode).
ifx.default_user =

; Default password for ifx_connect() (doesn't apply in safe mode).
ifx.default_password =

; Allow or prevent persistent links.
ifx.allow_persistent = On

; Maximum number of persistent links.  -1 means no limit.
ifx.max_persistent = -1

; Maximum number of links (persistent + non-persistent).  -1 means no limit.
ifx.max_links = -1

; If on, select statements return the contents of a text blob instead of its id.
ifx.textasvarchar = 0

; If on, select statements return the contents of a byte blob instead of its id.
ifx.byteasvarchar = 0

; Trailing blanks are stripped from fixed-length char columns.  May help the
; life of Informix SE users.
ifx.charasvarchar = 0

; If on, the contents of text and byte blobs are dumped to a file instead of
; keeping them in memory.
ifx.blobinfile = 0

; NULL's are returned as empty strings, unless this is set to 1.  In that case,
; NULL's are returned as string 'NULL'.
ifx.nullformat = 0

[Session]
; Handler used to store/retrieve data.
session.save_handler = files

; Argument passed to save_handler.  In the case of files, this is the path
; where data files are stored. Note: Windows users have to change this
; variable in order to use PHP's session functions.
;
; As of PHP 4.0.1, you can define the path as:
;
;     session.save_path = &quot;N;/path&quot;
;
; where N is an integer.  Instead of storing all the session files in
; /path, what this will do is use subdirectories N-levels deep, and
; store the session data in those directories.  This is useful if you
; or your OS have problems with lots of files in one directory, and is
; a more efficient layout for servers that handle lots of sessions.
;
; NOTE 1: PHP will not create this directory structure automatically.
;         You can use the script in the ext/session dir for that purpose.
; NOTE 2: See the section on garbage collection below if you choose to
;         use subdirectories for session storage
;
; The file storage module creates files using mode 600 by default.
; You can change that by using
;
;     session.save_path = &quot;N;MODE;/path&quot;
;
; where MODE is the octal representation of the mode. Note that this
; does not overwrite the process's umask.
;session.save_path = &quot;/tmp&quot;

; Whether to use cookies.
session.use_cookies = 1

;session.cookie_secure = 

; This option enables administrators to make their users invulnerable to
; attacks which involve passing session ids in URLs; defaults to 0.
; session.use_only_cookies = 1

; Name of the session (used as cookie name).
session.name = PHPSESSID

; Initialize session on request startup.
session.auto_start = 0

; Lifetime in seconds of cookie or, if 0, until browser is restarted.
session.cookie_lifetime = 0

; The path for which the cookie is valid.
session.cookie_path = /

; The domain for which the cookie is valid.
session.cookie_domain =

; Whether or not to add the httpOnly flag to the cookie, which makes it inaccessible to browser scripting languages such as JavaScript.
session.cookie_httponly = 

; Handler used to serialize data.  php is the standard serializer of PHP.
session.serialize_handler = php

; Define the probability that the 'garbage collection' process is started
; on every session initialization.
; The probability is calculated by using gc_probability/gc_divisor,
; e.g. 1/100 means there is a 1% chance that the GC process starts
; on each request.

session.gc_probability = 1
session.gc_divisor     = 100

; After this number of seconds, stored data will be seen as 'garbage' and
; cleaned up by the garbage collection process.
session.gc_maxlifetime = 1440

; NOTE: If you are using the subdirectory option for storing session files
;       (see session.save_path above), then garbage collection does *not*
;       happen automatically.  You will need to do your own garbage
;       collection through a shell script, cron entry, or some other method.
;       For example, the following script would is the equivalent of
;       setting session.gc_maxlifetime to 1440 (1440 seconds = 24 minutes):
;          cd /path/to/sessions; find -cmin +24 | xargs rm

; PHP 4.2 and less have an undocumented feature/bug that allows you to
; to initialize a session variable in the global scope, albeit register_globals
; is disabled.  PHP 4.3 and later will warn you, if this feature is used.
; You can disable the feature and the warning separately. At this time,
; the warning is only displayed, if bug_compat_42 is enabled.

session.bug_compat_42 = 1
session.bug_compat_warn = 1

; Check HTTP Referer to invalidate externally stored URLs containing ids.
; HTTP_REFERER has to contain this substring for the session to be
; considered as valid.
session.referer_check =

; How many bytes to read from the file.
session.entropy_length = 0

; Specified here to create the session id.
session.entropy_file =

;session.entropy_length = 16

;session.entropy_file = /dev/urandom

; Set to {nocache,private,public,} to determine HTTP caching aspects
; or leave this empty to avoid sending anti-caching headers.
session.cache_limiter = nocache

; Document expires after n minutes.
session.cache_expire = 180

; trans sid support is disabled by default.
; Use of trans sid may risk your users security.
; Use this option with caution.
; - User may send URL contains active session ID
;   to other person via. email/irc/etc.
; - URL that contains active session ID may be stored
;   in publically accessible computer.
; - User may access your site with the same session ID
;   always using URL stored in browser's history or bookmarks.
session.use_trans_sid = 0

; Select a hash function
; 0: MD5   (128 bits)
; 1: SHA-1 (160 bits)
session.hash_function = 0

; Define how many bits are stored in each character when converting
; the binary hash data to something readable.
;
; 4 bits: 0-9, a-f
; 5 bits: 0-9, a-v
; 6 bits: 0-9, a-z, A-Z, &quot;-&quot;, &quot;,&quot;
session.hash_bits_per_character = 4

; The URL rewriter will look for URLs in a defined set of HTML tags.
; form/fieldset are special; if you include them here, the rewriter will
; add a hidden &lt;input&gt; field with the info which is otherwise appended
; to URLs.  If you want XHTML conformity, remove the form entry.
; Note that all valid entries require a &quot;=&quot;, even if no value follows.
url_rewriter.tags = &quot;a=href,area=href,frame=src,input=src,form=,fieldset=&quot;

[MSSQL]
; Allow or prevent persistent links.
mssql.allow_persistent = On

; Maximum number of persistent links.  -1 means no limit.
mssql.max_persistent = -1

; Maximum number of links (persistent+non persistent).  -1 means no limit.
mssql.max_links = -1

; Minimum error severity to display.
mssql.min_error_severity = 10

; Minimum message severity to display.
mssql.min_message_severity = 10

; Compatibility mode with old versions of PHP 3.0.
mssql.compatability_mode = Off

; Connect timeout
;mssql.connect_timeout = 5

; Query timeout
;mssql.timeout = 60

; Valid range 0 - 2147483647.  Default = 4096.
;mssql.textlimit = 4096

; Valid range 0 - 2147483647.  Default = 4096.
;mssql.textsize = 4096

; Limits the number of records in each batch.  0 = all records in one batch.
;mssql.batchsize = 0

; Specify how datetime and datetim4 columns are returned
; On =&gt; Returns data converted to SQL server settings
; Off =&gt; Returns values as YYYY-MM-DD hh:mm:ss
;mssql.datetimeconvert = On

; Use NT authentication when connecting to the server
mssql.secure_connection = Off

; Specify max number of processes. -1 = library default
; msdlib defaults to 25
; FreeTDS defaults to 4096
;mssql.max_procs = -1

; Specify client character set. 
; If empty or not set the client charset from freetds.comf is used
; This is only used when compiled with FreeTDS
;mssql.charset = &quot;ISO-8859-1&quot;

[Assertion]
; Assert(expr); active by default.
;assert.active = On

; Issue a PHP warning for each failed assertion.
;assert.warning = On

; Don't bail out by default.
;assert.bail = Off

; User-function to be called if an assertion fails.
;assert.callback = 0

; Eval the expression with current error_reporting().  Set to true if you want
; error_reporting(0) around the eval().
;assert.quiet_eval = 0

[COM]
; path to a file containing GUIDs, IIDs or filenames of files with TypeLibs
;com.typelib_file =
; allow Distributed-COM calls
;com.allow_dcom = true
; autoregister constants of a components typlib on com_load()
;com.autoregister_typelib = true
; register constants casesensitive
;com.autoregister_casesensitive = false
; show warnings on duplicate constant registrations
;com.autoregister_verbose = true

[mbstring]
; language for internal character representation.
;mbstring.language = Japanese

; internal/script encoding.
; Some encoding cannot work as internal encoding.
; (e.g. SJIS, BIG5, ISO-2022-*)
;mbstring.internal_encoding = EUC-JP

; http input encoding.
;mbstring.http_input = auto

; http output encoding. mb_output_handler must be
; registered as output buffer to function
;mbstring.http_output = SJIS

; enable automatic encoding translation according to
; mbstring.internal_encoding setting. Input chars are
; converted to internal encoding by setting this to On.
; Note: Do _not_ use automatic encoding translation for
;       portable libs/applications.
;mbstring.encoding_translation = Off

; automatic encoding detection order.
; auto means
;mbstring.detect_order = auto

; substitute_character used when character cannot be converted
; one from another
;mbstring.substitute_character = none;

; overload(replace) single byte functions by mbstring functions.
; mail(), ereg(), etc are overloaded by mb_send_mail(), mb_ereg(),
; etc. Possible values are 0,1,2,4 or combination of them.
; For example, 7 for overload everything.
; 0: No overload
; 1: Overload mail() function
; 2: Overload str*() functions
; 4: Overload ereg*() functions
;mbstring.func_overload = 0

[FrontBase]
;fbsql.allow_persistent = On
;fbsql.autocommit = On
;fbsql.show_timestamp_decimals = Off
;fbsql.default_database =
;fbsql.default_database_password =
;fbsql.default_host =
;fbsql.default_password =
;fbsql.default_user = &quot;_SYSTEM&quot;
;fbsql.generate_warnings = Off
;fbsql.max_connections = 128
;fbsql.max_links = 128
;fbsql.max_persistent = -1
;fbsql.max_results = 128

[gd]
; Tell the jpeg decode to libjpeg warnings and try to create
; a gd image. The warning will then be displayed as notices
; disabled by default
;gd.jpeg_ignore_warning = 0

[exif]
; Exif UNICODE user comments are handled as UCS-2BE/UCS-2LE and JIS as JIS.
; With mbstring support this will automatically be converted into the encoding
; given by corresponding encode setting. When empty mbstring.internal_encoding
; is used. For the decode settings you can distinguish between motorola and
; intel byte order. A decode setting cannot be empty.
;exif.encode_unicode = ISO-8859-15
;exif.decode_unicode_motorola = UCS-2BE
;exif.decode_unicode_intel    = UCS-2LE
;exif.encode_jis =
;exif.decode_jis_motorola = JIS
;exif.decode_jis_intel    = JIS

[Tidy]
; The path to a default tidy configuration file to use when using tidy
;tidy.default_config = /usr/local/lib/php/default.tcfg

; Should tidy clean and repair output automatically?
; WARNING: Do not use this option if you are generating non-html content
; such as dynamic images
tidy.clean_output = Off

[soap]
; Enables or disables WSDL caching feature.
soap.wsdl_cache_enabled=1
; Sets the directory name where SOAP extension will put cache files.
soap.wsdl_cache_dir=&quot;/tmp&quot;
; (time to live) Sets the number of second while cached file will be used 
; instead of original one.
soap.wsdl_cache_ttl=86400

; Local Variables:
; tab-width: 4
; End:
</pre><br>
<br>

<p><br>
</p>
<p>test1.php</p>

<pre name="code" class="brush:html">&lt;?php 
phpinfo(); 
?&gt;</pre>


<pre name="code" class="brush:html"><span style="font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25px; background-color: rgb(239, 239, 239); ">&nbsp;<span style="color:#006699;"><u>http://localhost/test1.php</u></span></span></pre><br>

test2.php

<pre name="code" class="brush:html">&lt;?php 
$link=mysql_connect(&quot;localhost&quot;,&quot;root&quot;,&quot;123&quot;);    //123改成你的mysql密码
if(!$link) echo &quot;失败!&quot;;
else echo &quot;成功!&quot;;
mysql_close();
?&gt; </pre><pre name="code" class="brush:html"></pre><pre name="code" class="brush:html"><span style="font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25px; background-color: rgb(239, 239, 239); ">&nbsp;<a href="http://localhost/test.php" target="_blank" style="color: rgb(0, 102, 153); text-decoration: underline; "></a><a href="http://localhost/test.php" target="_blank" style="color: rgb(0, 102, 153); text-decoration: underline; ">http://localhost/test2.php</a></span>
</pre><br>
<br>
<br>


            
                    <div>来源：http://blog.csdn.net/longronglin/article/details/6765351</div>]]></description>
</item>

<item>
<link><![CDATA[http://www.itivy.com/php/archive/2012/5/7/634720054746824419.html]]></link>
<title><![CDATA[我是如何学习计算机编程的]]></title>
<author><![CDATA[php园丁]]></author>
<category><![CDATA[]]></category>
<pubDate>Mon, 07 May 2012 16:59:06 GMT</pubDate>
<guid><![CDATA[]]></guid>
<description><![CDATA[
            
本文是从 <a href="http://www.feross.org/how-i-learned-to-program-computers/">How I Learned to Program Computers</a> 这篇文章翻译而来。
<p>　　我在很小年纪的时候就开始学习编程，我学习编程的方法是创建大量的不同的网站。下面列出的是我创建的主要的网站，其中最早的一个是我11岁时开发的。我希望读者能从我这些复述中获得的信息是：如果你想学习编程，<strong>做大量的练习性的项目是非常必要的。</strong></p>
<p>　　学习一种技术最好的方法就是<strong>练习，练习，练习</strong>。所有我知道的最优秀的程序员都深深的享受编程——编程是一件让他们干起来无由的高兴的事情。也因此他们<strong>大量的编程</strong>。经常，那是一种不健康的废寝忘食。学习如何编程——以及如何编<em>好</em>程——并不需要你具有超人的能力。你只需要去按照自己的意愿<strong>动手去做</strong>，做出点什么东西。</p>
<p>　　做什么东西并不重要，重要的是你找到东西<em>动手去做</em>。我所认识的那些优秀的程序员，他们都有各自不同的最初学习编程的动机。有些人学习编程是为了<strong>开发动画游戏</strong>。有些人是为了解决他们在使用计算机时遇到的问题，或<strong>让工作更有效率</strong>。有些人是为了<strong>开发产品</strong>来满足人们的需求。有些人(真正的程序员)学习编程只是他们为了深入了解计算机工作原理的步骤之一 ；他们希望能<strong>搞清楚这种机器</strong>。有些程序员编程只是因为他们享受<strong>解决难题</strong>的挑战。</p>
<p>　　让所有这些“优秀程序员”统一起来的唯一因素就是，他们全因为生活中的某些原因而为编程<strong>着迷</strong>，继而<strong>花大量的时间编程</strong>，做大量的，大量的<strong>用于练习的项目</strong>。</p>
<p>　　那么，我就不再罗嗦了，下面就是我如何学习编程的故事：</p>
<p>　　<strong>我的第一个网站</strong></p>
<p style="text-align:center"><img src="/Upload/EditorImage/image/php/201205/63472005697014233920111017_075826_1.jpg" alt="作者小时候的诈骗" height="185" width="250"></p>
<p>　　在我大概十一二岁的时候，我感到需要给自己做一个网站。我已经记不清<strong>为什么</strong>需要一个网站了，只记得那样就开始做了。于是我就在网上搜索关于网页、Web 浏览器、HTML 如何工作的信息。很多的信息我发现都已经过时了，有些明显是错误的或给了错误的向导(例如为 IE 浏览器和 Netscape 浏览器分别做网站)，但过程是非常的有趣的，我学到了很多新东西。</p>
<p>　　尽管在网上搜到了很多粗制滥造的的信息，我还是想办法做了一个简单的网站，我叫它“Feross 的网站”。开发它，我使用的是微软的 Frontpage，那是一个非常棒的<a href="http://en.wikipedia.org/wiki/WYSIWYG" target="_blank">所见即所得</a>的 HTML 编辑器。我使用很常见的语法，例如粗体，斜体等对网站做修改，在编辑器里即时查看这些 HTML 标记能达到的效果。这是很有效的学习方式。</p>
<p>　　下面是我的第一个网站的截屏。这个网站已经不存在了。</p>
<p style="text-align:center"><img title="我的第一个网站" src="/Upload/EditorImage/image/php/201205/63472005699533028320111017_075827_2.jpg" alt="我的第一个网站" height="527" width="600"></p>
<p>　　你从上面的图片上看不出来，这个网站上的每个元素都在动，闪烁的动画，还能出声。我在网站的每个页面上都放置了不同的 MIDI &#26684;式的歌曲。而且都是自动播放，你没有办法让它们停下来，除非把电脑消音。哈，这就是当年流行的网站设计风&#26684;。
<img src="/Upload/EditorImage/image/php/201205/63472005699728523720111017_075829_3.gif" alt=":D"></p>
<p>　　等再长了几年岁数后，我们重新设计这个网站，让它变的漂亮些。我使用了在网上发现的一些免费的网站模板，用微软的画图工具修改了一些图片。</p>
<p style="text-align:center"><img title="修改后的第一个网站" src="/Upload/EditorImage/image/php/201205/63472005701211406620111017_075829_4.jpg" alt="修改后的第一个网站" height="409" width="600"></p>
<p>　　经管我大量的依赖于模板，但这不失为一个学习 HTML 和 Web 浏览器的好方法。“Feross 的网站”除了用来收集我小时候的一些视频外没有其它用处，所以不久后我就对它失去了兴趣。</p>
<p>　　<strong>我的第一个真正的</strong></p>
<p>　　当我9年级(14岁)时，我和我的朋友都非常着迷与观看像 <a href="http://www.newgrounds.com/" target="_blank">
Newgrounds</a> 和 <a href="http://www.ebaumsworld.com/" target="_blank">eBaumsWorld</a> 这样的网站上的 flash 视频和动画(这是2005年之前，还没有 YouTube)。我在这种网站上花了大量的时间，所以我知道所有最好的视频和游戏。我想，如果做一个网站来收集这些在网上发现的我喜欢的 flash 动画、视频、游戏，会是一件很酷的事情。这就是我做出 FreeTheFlash 网站的初衷。它是这个样子的：</p>
<p style="text-align:center"><img title="freetheflash-1" src="/Upload/EditorImage/image/php/201205/63472005703689256720111017_075830_5.jpg" alt="" height="642" width="600"></p>
<p>　　我从开发“Feross 的网站”的过程中学到了很多 HTML 知识，这次我使用了 Macromedia 公司(现在的 Adobe 公司)的 Dreamweaver 编辑器，这个东西能让我在网站里重复的页面使用同一个模板。</p>
<p>　　一段时间后，我意识到，我应该让网站<em>动起来</em>，听说是应该使用一种叫做 PHP 的编程语言来做网站，而不是只使用静态的 HTML。于是，我买了花了20美元从 Amazon 买了一本书，叫做《PHP and MySQL for Dynamic Websites》，使用 PHP 和 MySQL 对网站进行了重新设计。我还给它进行了新的美化：</p>
<p style="text-align:center"><img title="PHP&amp;MYSQL 动态网站" src="/Upload/EditorImage/image/php/201205/63472005705413160420111017_075831_6.jpg" alt="PHP&amp;MYSQL 动态网站" height="612" width="600"></p>
<p>　　在高中时期我对这个 FreeTheFlash 网站的开发持续了2年。它对于我的第一次尝试做一个“真正”的网站来说是相当成功的——在2006年，它获得了60万人/次访问，页面浏览量达3百万。FreeTheFlash 让我知道了做出一个产品、让它杰出、看大量的人使用它，是一件多么自豪的事情。它让我想做出更大的网站。</p>
<p>　　<strong>我的第二个网站</strong></p>
<p>　　在中学，我在上计算机课程时做了大量的笔记。于是，在11年级时，我觉得应该把这些笔记放到网上，让那些不喜欢看课本的学生使用。我做了一个网站，叫做 StudyNotes，使用的是 PHP 和一个叫做 Joomla 的内容管理系统。我也尝试过使用 Drupal，但发现它太复杂了。</p>
<p style="text-align:center"><img title="学习笔记网站" src="/Upload/EditorImage/image/php/201205/63472005706281757820111017_075833_7.jpg" alt="学习笔记网站" height="352" width="600"></p>
<p>　　同年，我为我的学校 Key 俱乐部分部做了一个网站，如今也不用了。</p>
<p>　　这段时间，我花了大量的时间泡在 <a href="http://www.webmasterworld.com/" target="_blank">WebmasterWorld</a> 里，这是一个论坛，主要关于网站站长和 SEO 专家推测 Google 算法，讨论 AdSense 技巧，调试网站问题等。</p>
<p>　　<strong>大量的学习和阅读</strong></p>
<p>　　等我进入了斯坦福大学后，我学习了大量的计算机课程，诸如 <a href="http://www.stanford.edu/class/cs106x/" target="_blank">
CS106X</a> 和 <a href="http://www.stanford.edu/class/cs107/" target="_blank">CS107</a>，我还超前学习了部分<a href="https://cs198.stanford.edu/cs106/"> CS106
</a>课程。</p>
<p>　　所有的课余时间我几乎都在阅读关于设计、编程、浏览器和 JavaScript 等方面的资料。一般每天4-5个小时。</p>
<p>　　如果你要问我都读什么？乱七八糟的。但大部分都是我敬仰的设计师和程序员写的博客。你可以从这篇博客的右侧看到我列出的部分博客链接。</p>
<p>　　<strong>关键一击</strong></p>
<p>　　之后，在2010年夏天，当我在 Facebook 实习时，因为跟一个朋友打赌，我开发了 <a href="http://ytinstant.com/" target="_blank">
YouTube Instant</a>，它是一个用来实时搜索 YouTube 视频的网站。这个网站在建成之后的10天里获得了1百万用户的访问量，YouTube 的 CEO 甚至给我发消息说提供一个职位给我，你可以从<a href="http://www.feross.org/youtube-instant-media-frenzy/">这里</a>看到这些媒体的躁动。</p>
<p>　　我知道 YouTube Instant 的成功归功于当前的好时机和一点幸运。我想，我们很多人不知道自己能做出什么。</p>
<p style="text-align:center"><img title="youtube-instant-job" src="/Upload/EditorImage/image/php/201205/63472005707111427520111017_075834_8.jpg" alt="YouTube Instant" height="517" width="540"></p>
<p>　　<strong>继续前行</strong></p>
<p>　　我注意到很多人使用 YouTube Instant 来听音乐视频，这让我想到了另外一种使用 YouTube API 的好方法。于是，我的朋友 Jake Becker 和我在2011年的头3个月里开发了
<a href="http://instant.fm/" target="_blank">Instant.fm</a>，它能让你轻松的向朋友分享音乐播放列表。通过这个项目我们都学到了很多新的东西。</p>
<p style="text-align:center"><img title="Instant FM" src="/Upload/EditorImage/image/php/201205/63472005708421347620111017_075835_9.jpg" alt="Instant FM" height="676" width="600"></p>
<p>　　在这个工程中我掌握的技术：</p>
<ul>
<li><a href="http://jquery.com/" target="_blank">jQuery</a></li><li>CSS (和 <a href="http://www.modernizr.com/" target="_blank">Modernizr</a> 以及 <a href="http://yepnopejs.com/" target="_blank">
YepNope</a>，用来解决跨浏览器问题的)</li><li><a href="http://www.python.org/" target="_blank">Python</a></li><li><a href="http://www.tornadoweb.org/" target="_blank">Tornado</a> (web framework/server)</li><li><a href="http://git-scm.com/" target="_blank">Git</a> (版本控制) &amp; <a href="http://github.com/" target="_blank">
GitHub</a></li><li><a href="http://www.last.fm/api" target="_blank">Last.fm API</a></li><li><a href="http://code.google.com/apis/youtube/overview.html" target="_blank">YouTube API</a></li><li>团队合作</li></ul>
<p>　　以及其它一些我们学会使用的东西：</p>
<ul>
<li><a href="http://nginx.org/" target="_blank">Nginx</a> (web server)</li><li><a href="http://supervisord.org/" target="_blank">Supervisor</a> (to daemonize Tornado)</li><li><a href="http://www.sqlalchemy.org/" target="_blank">SQLAlchemy</a> (ORM)</li><li><a href="http://ant.apache.org/" target="_blank">Apache Ant</a> (to build and deploy the site after a push)</li></ul>
<p>　　<strong>动手去做！</strong></p>
<p>　　我把从11岁就开始做的东西都不厌其烦的曝出来，目的就是要说，如果你想学习编程，你需要<strong>动手去做东西</strong>！现在就去。不要找任何借口。</p>
<p>　　做东西是最好的学习方法。</p>
<p>　　从头到尾读一遍编程语言书籍是一件很无聊的事，读到一半你就读不下去了。但，如果你<strong>想做一个项目</strong>，你在做的过程中会知道你该学习哪些知识，这是认识和掌握知识更有效的途径。</p>
<p>　　<strong>计算机课程</strong></p>
<p>　　大学里的计算机课程是学习编程的另外一种十分有效的方法。大多数好的计算机课程都十分强调学习计算机科学领域里的重要概念和范式，而不是教你某个特定的语言。这能让那些从来没有接受过正规教育的人在自学时开阔&#30524;界。</p>
<p>　　记得在斯坦福大学上第一堂计算机课程时(那是教授 C&#43;&#43; 的课程)，我在想“怎么可能变量前不带$符号呢？”当时我只使用过 PHP！ <img src="/Upload/EditorImage/image/php/201205/63472005708538917620111017_075835_10.gif" alt=":)"><br>
我用了好长一段时间才改掉在变量前加$符号的习惯！</p>
<p>　　<strong>在软件公司工作</strong></p>
<p>　　另外一个提高编程水平的方法就是到软件公司实习，比如 Facebook 或 Quora，最近的两个夏天我就是在这些公司里度过的。你会从那些优秀的人那里学会如何更好的编程，如何阅读和理解他人的代码，如何在大项目中进行团队合作。</p>
<p>　　还是那句话——比什么方法都管用——学习编程最好的方法就是<strong>做项目练习</strong>。我是不是重复这句话无数次了？ <img src="/Upload/EditorImage/image/php/201205/63472005708538917620111017_075835_10.gif" alt=":)"></p>
<p>　　<strong>如何学会编程：</strong></p>
<ul>
<li>做练习性项目。</li><li>看编程书籍。</li><li>做项目练习。</li><li>上计算机课程。</li><li>做练习性项目。</li><li>读编程类博客。</li><li>做项目练习。</li></ul>
<p>　　这就是我能给出的最好的建议。</p>
<p>　　祝编程愉快！</p>
<br>

            
                    <div>来源：http://blog.csdn.net/dinglang_2009/article/details/7032324</div>]]></description>
</item>

<item>
<link><![CDATA[http://www.itivy.com/php/archive/2012/5/6/634719263454952569.html]]></link>
<title><![CDATA[设计模式（0）—— 概述]]></title>
<author><![CDATA[php园丁]]></author>
<category><![CDATA[]]></category>
<pubDate>Sun, 06 May 2012 19:27:29 GMT</pubDate>
<guid><![CDATA[]]></guid>
<description><![CDATA[
            <p style="margin-top: 0px; margin-bottom: 0px; padding-top: 0px; padding-bottom: 0px; font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; "><span style="font-family: arial, 宋体, sans-serif; font-size: 14px; line-height: 25px; "><strong><span style="color:#000099;">设计模式</span></strong>（Design Pattern），是一套被反复使用、多数人知晓的、经过分类编目的、代码设计经验的总结。</span></p><p style="margin-top: 0px; margin-bottom: 0px; padding-top: 0px; padding-bottom: 0px; font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; "><span style="font-family: arial, 宋体, sans-serif; font-size: 14px; line-height: 25px; ">使用设计模式是为了可重用代码、让代码更容易被他人理解、保证代码可靠性。 设计模式于己、于他人、于系统都是多赢的，设计模式使代码编制真正工程化。设计模式是软件工程的基石，如同大厦的一块块砖石一样<span style="font-family: arial, 宋体, sans-serif; font-size: 14px; line-height: 25px; text-align: left; ">使代码编制真正工程化</span>。</span></p><p style="margin-top: 0px; margin-bottom: 0px; padding-top: 0px; padding-bottom: 0px; font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; "><span style="font-family: arial, 宋体, sans-serif; font-size: 14px; line-height: 25px; "><span style="font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; ">只有精通了设计模式，才敢说真正理解了软件工程。可以说，设计模式是每一个架构师所必备的技能之一。作为一个面向对象设计程序员，只有精通了设计模式，<span style="font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; ">才能摆脱码奴的命运，成为一个真正的软件工程师，</span>才能完成自身价值的飞跃和设计思想的升华！</span><br /></span></p><p style="margin-top: 0px; margin-bottom: 0px; padding-top: 0px; padding-bottom: 0px; font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; "><span style="font-family: arial, 宋体, sans-serif; font-size: 14px; line-height: 25px; "><br /></span></p><p style="margin-top: 0px; margin-bottom: 0px; padding-top: 0px; padding-bottom: 0px; font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; "><span style="font-family: arial, 宋体, sans-serif; font-size: 14px; line-height: 25px; "><br /></span></p><p style="margin-top: 0px; margin-bottom: 0px; padding-top: 0px; padding-bottom: 0px; font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; "><span style="font-family: arial, 宋体, sans-serif; font-size: 14px; line-height: 25px; "><strong>1、设计模式和框架</strong></span></p><p style="margin-top: 0px; margin-bottom: 0px; padding-top: 0px; padding-bottom: 0px; font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; "><span style="font-family: arial, 宋体, sans-serif; font-size: 14px; line-height: 25px; "><span style="font-family: arial, 宋体, sans-serif; font-size: 14px; line-height: 24px; ">　　可复用面向对象软件系统现在一般划分为两大类：应用程序工具箱和</span><span style="line-height: 24px; ">框架</span><span style="font-family: arial, 宋体, sans-serif; font-size: 14px; line-height: 24px; ">(Framework)，我们平时开发的具体软件都是应用程序，Java的API属于工具箱；而框架是构成一类特定软件可复用设计的一组相互协作的类，EJB（EnterpriseJavaBeans）是Java应用于企业计算的框架。</span></span></p><div class="spctrl" style="height: 14px; line-height: 14px; overflow-x: hidden; overflow-y: hidden; font-family: arial, 宋体, sans-serif; "></div><span style="font-family: arial, 宋体, sans-serif; font-size: 14px; line-height: 24px; ">　　框架通常定义了应用体系的整体结构类和对象的关系等等设计参数，以便于具体应用实现者能集中精力于应用本身的特定细节。框架主要记录软件应用中共同的设计决策，框架强调设计复用，因此框架设计中必然要使用设计模式。</span><div class="spctrl" style="height: 14px; line-height: 14px; overflow-x: hidden; overflow-y: hidden; font-family: arial, 宋体, sans-serif; "></div><span style="font-family: arial, 宋体, sans-serif; font-size: 14px; line-height: 24px; ">　　另外，设计模式有助于对框架结构的理解，成熟的框架通常使用了多种设计模式,如果你熟悉这些设计模式，毫无疑问，你将迅速掌握框架的结构，我们一般开发者如果突然接触EJBJ2EE等框架，会觉得特别难学，难掌握，那么转而先掌握设计模式，无疑是给了你剖析EJB或J2EE系统的一把利器。</span><br /><p style="margin-top: 0px; margin-bottom: 0px; padding-top: 0px; padding-bottom: 0px; font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; "><span style="font-family: arial, 宋体, sans-serif; font-size: 14px; line-height: 25px; "><br /></span></p><p style="margin-top: 0px; margin-bottom: 0px; padding-top: 0px; padding-bottom: 0px; font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; "><span style="font-family: arial, 宋体, sans-serif; font-size: 14px; line-height: 25px; "><br /></span></p><p style="margin-top: 0px; margin-bottom: 0px; padding-top: 0px; padding-bottom: 0px; font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; "><span style="font-family: arial, 宋体, sans-serif; font-size: 14px; line-height: 25px; "><strong>2、设计模式的原则</strong></span></p><p style="margin-top: 0px; margin-bottom: 0px; padding-top: 0px; padding-bottom: 0px; font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; "><span style="font-family: arial, 宋体, sans-serif; font-size: 14px; line-height: 25px; "><span style="font-family: arial, 宋体, sans-serif; font-size: 14px; line-height: 24px; ">近年来，大家都开始注意设计模式。那么，到底我们为什么要用设计模式呢？</span></span><span style="font-family: arial, 宋体, sans-serif; line-height: 24px; ">为什么要提倡<span style="font-family: arial, 宋体, sans-serif; font-size: 14px; line-height: 24px; text-align: left; ">设计模式</span>呢？</span></p><p style="margin-top: 0px; margin-bottom: 0px; padding-top: 0px; padding-bottom: 0px; font-size: 14px; text-align: left; line-height: 26px; font-family: Arial; "><span style="font-family: arial, 宋体, sans-serif; line-height: 24px; ">根本原因是为了摆脱编程低效率，提高代码复用，增强代码健壮稳定，增加可维护性。</span></p><p style="margin-top: 0px; margin-bottom: 0px; padding-top: 0px; padding-bottom: 0px; font-size: 14px; text-align: left; line-height: 26px; font-family: Arial; "><span style="font-family: arial, 宋体, sans-serif; line-height: 24px; "><br /></span></p><p style="margin-top: 0px; margin-bottom: 0px; padding-top: 0px; padding-bottom: 0px; font-size: 14px; text-align: left; line-height: 26px; font-family: Arial; "><span style="font-family: arial, 宋体, sans-serif; line-height: 24px; ">那怎么才能实现代码复用呢？</span></p><p style="margin-top: 0px; margin-bottom: 0px; padding-top: 0px; padding-bottom: 0px; font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; ">从面向过程到面向对象，是软件设计诞生以来的迈出的最伟大的一步，面向对象程序设计成功解决了面向过程软件编程的低效率问题，并且彻底改变了人们的编程思维，为软件设计揭开了新的篇章。然而，要实现面向对象设计，彻底摆脱面向过程设计思维，并不仅仅是只要使用了一门面向对象的编程语言就能够达到的。使用面向对象设计，可以设计出优秀的软件，同样也可以设计出糟糕的软件。只有遵循一些特定的原则，才能设计出复用性高灵活性好的软件来。</p><p style="margin-top: 0px; margin-bottom: 0px; padding-top: 0px; padding-bottom: 0px; font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; ">在运用面向对象的思想进行软件设计时，需要遵循的原则一共有 6 条：</p><p style="margin-top: 0px; margin-bottom: 0px; padding-top: 0px; padding-bottom: 0px; font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; "></p><ol><li><span style="color:#000099;">单一职责原则（Single&nbsp;Responsibility&nbsp;Principle）</span></li><li><span style="color:#000099;">里氏替换原则（Liskov&nbsp;Substitution&nbsp;Principle）</span></li><li><span style="color:#000099;">依赖倒置原则（Dependence&nbsp;Inversion&nbsp;Principle）</span></li><li><span style="color:#000099;">接口隔离原则（Interface&nbsp;Segregation&nbsp;Principle）</span></li><li><span style="color:#000099;">迪米特法则（Law&nbsp;Of&nbsp;Demeter）</span></li><li><span style="color:#000099;">开闭原则（Open&nbsp;Close&nbsp;Principle）</span></li></ol><p style="margin-top: 0px; margin-bottom: 0px; padding-top: 0px; padding-bottom: 0px; font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 在软件设计的过程中，只要我们尽量遵循以上六条设计原则，设计出来的软件才会是一个优秀的软件，它必定足够健壮、足够稳定，并以极大的灵活性来迎接随时而来的需求变更等因素。</p><p style="margin-top: 0px; margin-bottom: 0px; padding-top: 0px; padding-bottom: 0px; font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; "><br /></p><p style="margin-top: 0px; margin-bottom: 0px; padding-top: 0px; padding-bottom: 0px; font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; "><br /></p><p style="margin-top: 0px; margin-bottom: 0px; padding-top: 0px; padding-bottom: 0px; font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; "><span style="font-family: arial, 宋体, sans-serif; line-height: 25px; "><strong>3、设计模式的四要素</strong></span></p><p style="margin-top: 0px; margin-bottom: 0px; padding-top: 0px; padding-bottom: 0px; font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; "><span style="font-family: arial, 宋体, sans-serif; font-size: 14px; line-height: 25px; "><span style="font-family: arial, 宋体, sans-serif; font-size: 14px; line-height: 24px; ">　　设计模式使人们可以更加简单方便地复用成功的设计和体系结构。将已证实的技术表述成设计模式也会使新系统开发者更加容易理解其设计思路。</span></span></p><p style="margin-top: 0px; margin-bottom: 0px; padding-top: 0px; padding-bottom: 0px; font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; "><span style="font-family: arial, 宋体, sans-serif; font-size: 14px; line-height: 25px; "><span style="font-family: arial, 宋体, sans-serif; font-size: 14px; line-height: 24px; "></span></span></p><h3 class="headline-2 bk-sidecatalog-title" style="text-align: left; margin-top: 15px; margin-right: 0px; margin-bottom: 5px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-size: 16px; font-family: Arial; line-height: 22px; clear: both; "><ul><li><span style="font-weight: normal;">模式名称（pattern name）</span></li></ul></h3><span style="line-height: 24px; ">　　一个助记名，它用一两个词来描述模式的问题、解决方案和效果。命名一个新的模式增加了我们的设计词汇。设计模式允许我们在较高的抽象层次上进行设计。基于一个模式词汇表，我们自己以及同事之间就可以讨论模式并在编写文档时使用它们。模式名可以帮助我们思考，便于我们与其他人交流设计思想及设计结果。找到恰当的模式名也是我们设计模式编目工作的难点之一。</span><h3 class="headline-2 bk-sidecatalog-title" style="margin-top: 15px; margin-right: 0px; margin-bottom: 5px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-size: 16px; font-family: Arial; line-height: 22px; clear: both; "><span class="headline-content" style="font-weight: normal;"></span><ul><li><span style="font-weight: normal;">问题(problem)</span></li></ul></h3><span style="line-height: 24px; ">　　描述了应该在何时使用模式。它解释了设计问题和问题存在的前因后果，它可能描述了特定的设计问题，如怎样用对象表示算法等。也可能描述了导致不灵活设计的类或对象结构。有时候，问题部分会包括使用模式必须满足的一系列先决条件。</span><h3 class="headline-2 bk-sidecatalog-title" style="margin-top: 15px; margin-right: 0px; margin-bottom: 5px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-size: 16px; font-family: Arial; line-height: 22px; clear: both; "><span class="headline-content" style="font-weight: normal;"></span><ul><li><span style="font-weight: normal;">解决方案(solution)</span></li></ul></h3><span style="line-height: 24px; ">　　描述了设计的组成成分，它们之间的相互关系及各自的职责和协作方式。因为模式就像一个模板，可应用于多种不同场合，所以解决方案并不描述一个特定而具体的设计或实现，而是提供设计问题的抽象描述和怎样用一个具有一般意义的元素组合（类或对象组合）来解决这个问题。</span><h3 class="headline-2 bk-sidecatalog-title" style="margin-top: 15px; margin-right: 0px; margin-bottom: 5px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-size: 16px; font-family: Arial; line-height: 22px; clear: both; "><span class="headline-content" style="font-weight: normal;"></span><ul><li><span style="font-weight: normal;">效果(consequences)</span></li></ul></h3><span style="line-height: 24px; ">　　描述了模式应用的效果及使用模式应权衡的问题。尽管我们描述设计决策时，并不总提到模式效果，但它们对于评价设计选择和理解使用模式的代价及好处具有重要意义。软件效果大多关注对时间和空间的衡量，它们也表述了语言和实现问题。因为复用是</span><span style="line-height: 24px; ">面向对象设计</span><span style="font-family: arial, 宋体, sans-serif; font-size: 14px; line-height: 24px; ">的要素之一，所以模式效果包括它对系统的灵活性、扩充性或可移植性的影响，显式地列出这些效果对理解和评价这些模式很有帮助。</span><br /><p><br /></p><p><br /></p><p style="margin-top: 0px; margin-bottom: 0px; padding-top: 0px; padding-bottom: 0px; font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; "><strong>4、设计模式分类概览</strong></p><p style="margin-top: 0px; margin-bottom: 0px; padding-top: 0px; padding-bottom: 0px; font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; "><span style="font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; ">《设计模式》一书，第 1 次将设计模式提升到理论高度，并将之规范化。</span>书中一共总结了23种基本的设计模式，《设计模式》<a href="http://download.csdn.net/download/sunboy_2050/4228807" target="_blank" style="color: blue;">下载</a></p><p style="margin-top: 0px; margin-bottom: 0px; padding-top: 0px; padding-bottom: 0px; font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; ">这23种设计模式，几乎涵盖了面向对象设计过程中所有问题的解决方案，书中提到的23种设计模式分别是：</p><p style="margin-top: 0px; margin-bottom: 0px; padding-top: 0px; padding-bottom: 0px; font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; "><table border="1" cellspacing="0" cellpadding="5" width="100%"> <tbody><tr>  <td width="100%" colspan="3"><p align="center"><strong>设计模式</strong></p>  <p align="center">（Design Pattern）</p></td> </tr> <tr>  <td width="60"><p align="center"><strong>创建型</strong></p>  <p align="center">（Creational）</p></td>  <td width="160"><p align="center"><strong>结构型</strong></p>  <p align="center">（Structural）</p></td>  <td><p align="center"><strong>行为型</strong></p>  <p align="center">（Behavioral）<strong></strong></p></td> </tr> <tr>  <td valign="top"><p>1、Abstract Factory（抽象工厂）</p>  <p>2、Builder（建造者）</p>  <p>3、Factory Method（工厂方法）</p>  <p>4、Prototype（原型）</p>  <p>5、Singleton（单态）</p>              </td>  <td valign="top"><p>6、Adapter（适配器）</p>  <p>7、Bridge（桥模式）</p>  <p>8、Composite（组合）</p>  <p>9、Decorator（装饰）</p>  <p>10、Façade（外观）</p>  <p>11、Flyweight（享元）</p>  <p>12、Proxy（代理）</p></td>  <td valign="top"><p>13、Chain of Responsibility（职责链）</p>  <p>14、Command（命令）</p>  <p>15、Interpreter（解释器）</p>  <p>16、Iterator（迭代器）</p>  <p>17、Mediator（中介）</p>  <p>18、Memento（备忘录）</p>  <p>19、Observer（观察者）</p>  <p>20、State（状态）</p>  <p>21、Strategy（策略）</p>  <p>22、Template Method（模板方法）</p>  <p>23、Visitor（访问者）</p></td> </tr></tbody></table></p><p style="margin-top: 0px; margin-bottom: 0px; padding-top: 0px; padding-bottom: 0px; font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; "><br /></p><p style="margin-top: 0px; margin-bottom: 0px; padding-top: 0px; padding-bottom: 0px; font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; "><br /></p><p style="margin-top: 0px; margin-bottom: 0px; padding-top: 0px; padding-bottom: 0px; font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; "><span style="font-family: Arial; font-size: 14px;  line-height: 26px; text-align: left; "><strong>5、设计模式的设计场景</strong></span><br /></p><p style="margin-top: 0px; margin-bottom: 0px; padding-top: 0px; padding-bottom: 0px; font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; "><span style="font-family: Arial; font-size: 14px;  line-height: 26px; text-align: left; "><span style="font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; ">那么如此多的设计模式又是从何而来呢？</span></span></p><p style="margin-top: 0px; margin-bottom: 0px; padding-top: 0px; padding-bottom: 0px; font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; "><span style="font-family: Arial; font-size: 14px;  line-height: 26px; text-align: left; "><span style="font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; ">《易经》有云：“易有太极，是生两仪，两仪生四象，四象生八卦”，意思就是说世界万物皆有起源。</span></span></p><p style="margin-top: 0px; margin-bottom: 0px; padding-top: 0px; padding-bottom: 0px; font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; "><span style="font-family: Arial; font-size: 14px;  line-height: 26px; text-align: left; "><span style="font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; ">设计模式的起源，是面向对象程序设计思想，是面向对象设计的精髓——抽象。面向对象通过类和对象来实现抽象，实现时产生了面向对象的三个重要机制：封装、继承、多态，正是这三个机制衍生出了各种各样的设计模式。</span></span></p><p style="margin-top: 0px; margin-bottom: 0px; padding-top: 0px; padding-bottom: 0px; font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; "><strong></strong><table border="1" cellspacing="0" cellpadding="5" width="100%"> <tbody><tr>  <td width="100%" colspan="3"><p align="center"><strong>设计模式的支持设计</strong></p></td> </tr> <tr>  <td><p align="center"><strong>目的</strong></p></td>  <td><p align="center"><strong>设计模式</strong></p></td>  <td><p align="center"><strong>可变方面</strong></p></td> </tr> <tr>  <td><p align="center"><strong>创建</strong></p>  <p align="center">（Creational）<strong></strong></p></td>  <td valign="top"><p>1、Abstract Factory</p>  <p>2、Builder</p>  <p>3、Factory Method</p>  <p>4、Prototype</p>  <p>5、Singleton</p></td>  <td valign="top"><p>产品对象家族</p>  <p>如何创建一个组合对象</p>  <p>被实例化的子类</p>  <p>被实例化的类</p>  <p>一个类的唯一实例</p></td> </tr> <tr>  <td><p align="center"><strong>结构</strong></p>  <p align="center">（Structural）<strong></strong></p></td>  <td valign="top"><p>6、Adapter</p>  <p>7、Bridge</p>  <p>8、Composite</p>  <p>9、Decorator</p>  <p>10、Façade</p>  <p>11、Flyweight</p>  <p>12、Proxy</p></td>  <td valign="top"><p>对象的接口</p>  <p>对象的实现</p>  <p>一个对象的结构和组成</p>  <p>对象的职责，不生成子类</p>  <p>一个子系统的接口</p>  <p>对象的存储开销</p>  <p>如何访问一个对象，该对象的位置</p></td> </tr> <tr>  <td><p align="center"><strong>行为</strong></p>  <p align="center">（Behavioral）<strong></strong></p></td>  <td valign="top"><p>13、Chain of Responsibility</p>  <p>14、Command</p>  <p>15、Interpreter</p>  <p>16、Iterator</p>  <p>17、Mediator</p>  <p>18、Memento</p>  <p>19、Observer</p>  <p>20、State</p>  <p>21、Strategy</p>  <p>22、Template Method</p>  <p>23、Visitor</p></td>  <td valign="top"><p>满足一个请求的对象</p>  <p>何时、怎样满足一个请求</p>  <p>一个语言的文法和解释</p>  <p>如何遍历、访问一个聚合的各元素</p>  <p>对象间如何交互、与谁交互</p>  <p>一个对象中哪些私有信息存放在该对象之外，以及在什么时候进行存储</p>  <p>多个对象依赖于另外一个对象，而这些对象又如何保持一致</p>  <p>对象的状态</p>  <p>算法设计</p>  <p>算法中的某些步骤</p>  <p>某些可作用于一个（组）对象上的操作，但不修改这些对象的类</p></td> </tr></tbody></table></p><p style="margin-top: 0px; margin-bottom: 0px; padding-top: 0px; padding-bottom: 0px; font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; "><strong><br /></strong></p><p style="margin-top: 0px; margin-bottom: 0px; padding-top: 0px; padding-bottom: 0px; font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; "><strong><br /></strong></p><p style="margin-top: 0px; margin-bottom: 0px; padding-top: 0px; padding-bottom: 0px; font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; "><strong><span style="font-family: Arial; font-size: 14px;  line-height: 26px; text-align: left; "><strong>6、设计模式的分类描述</strong></span><br /></strong></p><p style="margin-top: 0px; margin-bottom: 0px; padding-top: 0px; padding-bottom: 0px; font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; "><a href="http://baike.baidu.com/view/66964.htm" title="设计范例" class="mw-redirect" target="_blank" style="text-decoration: none; color: blue; background-image: none; background-attachment: initial; background-origin: initial; background-clip: initial; font-family: sans-serif; font-size: 15px; line-height: 22px; ">设计模式</a>，<span style="font-family: sans-serif; font-size: 15px; line-height: 22px; ">分为创建型模式、结构型模式、行为型模式</span></p><p style="line-height: 36px; margin-top: 0px; margin-bottom: 0px; padding-top: 0px; padding-bottom: 0px; font-family: Arial; font-size: 14px; line-height: 36px; text-align: left; "><table border="1" cellspacing="0" cellpadding="5" width="100%" style=" line-height: 36px; "> <tbody><tr>  <td width="1100" colspan="2" style="background:#F2F2F2;"><p align="center"><strong>设计模式的分类描述</strong></p></td> </tr> <tr>  <td width="1100" colspan="2" style="background:#E7FFFF;"><p align="center"><strong><a href="http://zh.wikipedia.org/wiki/%E5%89%B5%E5%BB%BA%E5%9E%8B%E6%A8%A1%E5%BC%8F" title="创建型模式"><span style="color:windowtext;">创建型模式</span></a></strong></p></td> </tr> <tr>  <td width="150"><p align="left"><strong>1．<a href="http://zh.wikipedia.org/wiki/%E6%8A%BD%E8%B1%A1%E5%B7%A5%E5%8E%82%E6%A8%A1%E5%BC%8F" title="抽象工厂模式"><span style="color:windowtext;">抽象工厂模式</span></a></strong></p></td>  <td><p align="left">为一个产品族提供了统一的创建接口。当需要这个产品族的某一系列的时候，可以从抽象工厂中选出相应的系列创建一个具体的工厂类。</p></td> </tr> <tr>  <td><p align="left"><strong>2．<a href="http://zh.wikipedia.org/wiki/%E7%94%9F%E6%88%90%E5%99%A8%E6%A8%A1%E5%BC%8F" title="生成器模式"><span style="color:windowtext;">建造者</span><span style="color:windowtext;">模式</span></a></strong></p></td>  <td><p align="left">将一个复杂对象的构建与它的表示分离，使得同样的构建过程可以创建不同的表示。</p></td> </tr> <tr>  <td><p align="left"><strong>3．<a href="http://zh.wikipedia.org/wiki/%E5%B7%A5%E5%8E%82%E6%96%B9%E6%B3%95%E6%A8%A1%E5%BC%8F" title="工厂方法模式"><span style="color:windowtext;">工厂方法模式</span></a></strong></p></td>  <td><p align="left">定义一个接口用于创建对象，但是让子类决定初始化哪个类。工厂方法把一个类的初始化下放到子类。</p></td> </tr> <tr>  <td><p align="left"><strong>4．<a href="http://zh.wikipedia.org/wiki/%E5%8E%9F%E5%9E%8B%E6%A8%A1%E5%BC%8F" title="原型模式"><span style="color:windowtext;">原型模式</span></a></strong></p></td>  <td><p align="left">用原型实例指定创建对象的种类，并且通过拷贝这些原型创建新的对象。</p></td> </tr> <tr>  <td><p align="left"><strong>5．<a href="http://zh.wikipedia.org/wiki/%E5%8D%95%E4%BE%8B%E6%A8%A1%E5%BC%8F" title="单例模式"><span style="color:windowtext;">单例模式</span></a></strong></p></td>  <td><p align="left">确保一个类只有一个实例，并提供对该实例的全局访问。</p></td> </tr> <tr>  <td><p align="left"><strong>5．<a href="http://zh.wikipedia.org/w/index.php?title=%E5%A4%9A%E4%BE%8B%E6%A8%A1%E5%BC%8F&amp;action=edit&amp;redlink=1" title="多例模式"><span style="color:windowtext;">多例模式</span></a></strong></p></td>  <td><p align="left">确保一个类只有命名的实例，并提供对这些实例的全局访问。</p></td> </tr> <tr>  <td><p align="left"><strong><a href="http://zh.wikipedia.org/wiki/%E5%AF%B9%E8%B1%A1%E6%B1%A0%E6%A8%A1%E5%BC%8F" title="对象池模式"><span style="color:windowtext;">对象池模式</span></a></strong></p></td>  <td><p align="left">通过回收利用对象避免获取和释放资源所需的昂贵成本。</p></td> </tr> <tr>  <td><p align="left"><strong><a href="http://zh.wikipedia.org/wiki/%E6%83%B0%E6%80%A7%E5%88%9D%E5%A7%8B%E6%A8%A1%E5%BC%8F" title="惰性初始模式"><span style="color:windowtext;">惰性初始模式</span></a></strong></p></td>  <td><p align="left">推迟对象的创建、数据的计算等需要耗费较多资源的操作，只有在第一次访问的时候才执行。</p></td> </tr> <tr>  <td><p align="left"><strong><a href="http://zh.wikipedia.org/w/index.php?title=%E8%B5%84%E6%BA%90%E8%8E%B7%E5%8F%96%E4%B8%BA%E5%88%9D%E5%A7%8B%E5%8C%96&amp;action=edit&amp;redlink=1" title="资源获取为初始化"><span style="color:windowtext;">资源获取为初始化</span></a></strong></p></td>  <td><p align="left">通过绑定到合适对象的生命周期来确保资源被适当地释放。</p></td> </tr> <tr>  <td width="1100" colspan="2" style="background:#E7FFFF;"><p align="center"><strong><a href="http://zh.wikipedia.org/wiki/%E7%B5%90%E6%A7%8B%E5%9E%8B%E6%A8%A1%E5%BC%8F" title="结构型模式"><span style="color:windowtext;">结构型模式</span></a></strong></p></td> </tr> <tr>  <td><p align="left"><strong>6．<a href="http://zh.wikipedia.org/wiki/%E9%80%82%E9%85%8D%E5%99%A8%E6%A8%A1%E5%BC%8F" title="适配器模式"><span style="color:windowtext;">适配器模式</span></a></strong></p></td>  <td><p align="left">将某个类的接口转换成客户端期望的另一个接口表示。适配器模式可以消除由于接口不匹配所造成的类兼容性问题。</p></td> </tr> <tr>  <td><p align="left"><strong>7．<a href="http://zh.wikipedia.org/wiki/%E6%A9%8B%E6%8E%A5%E6%A8%A1%E5%BC%8F" title="桥接模式"><span style="color:windowtext;">桥接模式</span></a></strong></p></td>  <td><p align="left">将一个抽象与实现解耦，以便两者可以独立的变化。</p></td> </tr> <tr>  <td><p align="left"><strong>8．<a href="http://zh.wikipedia.org/w/index.php?title=%E7%BB%84%E5%90%88%E6%A8%A1%E5%BC%8F&amp;action=edit&amp;redlink=1" title="组合模式"><span style="color:windowtext;">组合模式</span></a></strong></p></td>  <td><p align="left">把多个对象组成树状结构来表示局部与整体，这样用户可以一样的对待单个对象和对象的组合。</p></td> </tr> <tr>  <td><p align="left"><strong>9．<a href="http://zh.wikipedia.org/wiki/%E4%BF%AE%E9%A5%B0%E6%A8%A1%E5%BC%8F" title="修饰模式"><span style="color:windowtext;">装饰</span><span style="color:windowtext;">模式</span></a></strong></p></td>  <td><p align="left">向某个对象动态地添加更多的功能。修饰模式是除类继承外另一种扩展功能的方法。</p></td> </tr> <tr>  <td><p align="left"><strong>10．<a href="http://zh.wikipedia.org/wiki/%E5%A4%96%E8%A7%80%E6%A8%A1%E5%BC%8F" title="外观模式"><span style="color:windowtext;">外观模式</span></a></strong></p></td>  <td><p align="left">为子系统中的一组接口提供一个一致的界面， 外观模式定义了一个高层接口，这个接口使得这一子系统更加容易使用。</p></td> </tr> <tr>  <td><p align="left"><strong>11．<a href="http://zh.wikipedia.org/wiki/%E4%BA%AB%E5%85%83%E6%A8%A1%E5%BC%8F" title="享元模式"><span style="color:windowtext;">享元</span></a></strong></p></td>  <td><p align="left">通过共享以便有效的支持大量小颗粒对象。</p></td> </tr> <tr>  <td><p align="left"><strong>12．<a href="http://zh.wikipedia.org/wiki/%E4%BB%A3%E7%90%86%E6%A8%A1%E5%BC%8F" title="代理模式"><span style="color:windowtext;">代理</span></a></strong></p></td>  <td><p align="left">为其他对象提供一个代理以控制对这个对象的访问。</p></td> </tr> <tr>  <td width="1100" colspan="2" style="background:#E7FFFF;"><p align="center"><strong><a href="http://zh.wikipedia.org/wiki/%E8%A1%8C%E7%82%BA%E5%9E%8B%E6%A8%A1%E5%BC%8F" title="行为型模式"><span style="color:windowtext;">行为型模式</span></a></strong></p></td> </tr> <tr>  <td><p align="left"><strong>13．<a href="http://zh.wikipedia.org/wiki/%E8%B4%A3%E4%BB%BB%E9%93%BE%E6%A8%A1%E5%BC%8F" title="责任链模式"><span style="color:windowtext;">职责链</span></a></strong></p></td>  <td><p align="left">为解除请求的发送者和接收者之间耦合，而使多个对象都有机会处理这个请求。将这些对象连成一条链，并沿着这条链传递该请求，直到有一个对象处理它。</p></td> </tr> <tr>  <td><p align="left"><strong>14．<a href="http://zh.wikipedia.org/wiki/%E5%91%BD%E4%BB%A4%E6%A8%A1%E5%BC%8F" title="命令模式"><span style="color:windowtext;">命令</span></a></strong></p></td>  <td><p align="left">将一个请求封装为一个对象，从而使你可用不同的请求对客户进行参数化；对请求排队或记录请求日志，以及支持可取消的操作。</p></td> </tr> <tr>  <td><p align="left"><strong>15．<a href="http://zh.wikipedia.org/w/index.php?title=%E8%A7%A3%E9%87%8A%E5%99%A8%E6%A8%A1%E5%BC%8F&amp;action=edit&amp;redlink=1" title="解释器模式"><span style="color:windowtext;">解释器</span></a></strong></p></td>  <td><p align="left">给定一个语言, 定义它的文法的一种表示，并定义一个解释器, 该解释器使用该表示来解释语言中的句子。</p></td> </tr> <tr>  <td><p align="left"><strong>16．<a href="http://zh.wikipedia.org/wiki/%E8%BF%AD%E4%BB%A3%E5%99%A8%E6%A8%A1%E5%BC%8F" title="迭代器模式"><span style="color:windowtext;">迭代器</span></a></strong></p></td>  <td><p align="left">提供一种方法顺序访问一个聚合对象中各个元素, 而又不需暴露该对象的内部表示。</p></td> </tr> <tr>  <td><p align="left"><strong>17．<a href="http://zh.wikipedia.org/w/index.php?title=%E4%B8%AD%E4%BB%8B%E8%80%85%E6%A8%A1%E5%BC%8F&amp;action=edit&amp;redlink=1" title="中介者模式"><span style="color:windowtext;">中介者</span></a></strong></p></td>  <td><p align="left">包装了一系列对象相互作用的方式，使得这些对象不必相互明显作用，从而使它们可以松散偶合。当某些对象之间的作用发生改变时，不会立即影响其他的一些对象之间的作用，保证这些作用可以彼此独立的变化。</p></td> </tr> <tr>  <td><p align="left"><strong>18．<a href="http://zh.wikipedia.org/w/index.php?title=%E5%A4%87%E5%BF%98%E5%BD%95%E6%A8%A1%E5%BC%8F&amp;action=edit&amp;redlink=1" title="备忘录模式"><span style="color:windowtext;">备忘录</span></a></strong></p></td>  <td><p align="left">备忘录对象是一个用来存储另外一个对象内部状态的快照的对象。备忘录模式的用意是在不破坏封装的条件下，将一个对象的状态捉住，并外部化，存储起来，从而可以在将来合适的时候把这个对象还原到存储起来的状态。</p></td> </tr> <tr>  <td><p align="left"><strong>19．<a href="http://zh.wikipedia.org/wiki/%E8%A7%82%E5%AF%9F%E8%80%85%E6%A8%A1%E5%BC%8F" title="观察者模式"><span style="color:windowtext;">观察者模式</span></a></strong></p></td>  <td><p align="left">在对象间定义一个一对多的联系性，由此当一个对象改变了状态，所有其他相关的对象会被通知并且自动刷新。</p></td> </tr> <tr>  <td><p align="left"><strong>20．<a href="http://zh.wikipedia.org/w/index.php?title=%E7%8A%B6%E6%80%81%E6%A8%A1%E5%BC%8F&amp;action=edit&amp;redlink=1" title="状态模式"><span style="color:windowtext;">状态</span></a></strong></p></td>  <td><p align="left">让一个对象在其内部状态改变的时候，其行为也随之改变。状态模式需要对每一个系统可能取得的状态创立一个状态类的子类。当系统的状态变化时，系统便改变所选的子类。</p></td> </tr> <tr>  <td><p align="left"><strong>21．<a href="http://zh.wikipedia.org/wiki/%E7%AD%96%E7%95%A5%E6%A8%A1%E5%BC%8F" title="策略模式"><span style="color:windowtext;">策略</span></a></strong></p></td>  <td><p align="left">定义一个算法的系列，将其各个分装，并且使他们有交互性。策略模式使得算法在用户使用的时候能独立的改变。</p></td> </tr> <tr>  <td><p align="left"><strong>22．<a href="http://zh.wikipedia.org/wiki/%E6%A8%A1%E6%9D%BF%E6%96%B9%E6%B3%95%E6%A8%A1%E5%BC%8F" title="模板方法模式"><span style="color:windowtext;">模板方法</span></a></strong></p></td>  <td><p align="left">模板方法模式准备一个抽象类，将部分逻辑以具体方法及具体构造子类的形式实现，然后声明一些抽象方法来迫使子类实现剩余的逻辑。不同的子类可以以不同的方式实现这些抽象方法，从而对剩余的逻辑有不同的实现。先构建一个顶级逻辑框架，而将逻辑的细节留给具体的子类去实现。</p></td> </tr> <tr>  <td><p align="left"><strong>23．<a href="http://zh.wikipedia.org/wiki/%E8%AE%BF%E9%97%AE%E8%80%85%E6%A8%A1%E5%BC%8F" title="访问者模式"><span style="color:windowtext;">访问者</span></a></strong></p></td>  <td><p align="left">封装一些施加于某种数据结构元素之上的操作。一旦这些操作需要修改，接受这个操作的数据结构可以保持不变。访问者模式适用于数据结构相对未定的系统，它把数据结构和作用于结构上的操作之间的耦合解脱开，使得操作集合可以相对自由的演化。</p></td> </tr> <tr>  <td><p align="left"><strong><a href="http://zh.wikipedia.org/wiki/%E7%A9%BA%E5%AF%B9%E8%B1%A1%E6%A8%A1%E5%BC%8F" title="空对象模式"><span style="color:windowtext;">空对象</span></a></strong></p></td>  <td><p align="left">通过提供默认对象来避免空引用。</p></td> </tr> <tr>  <td><p align="left"><strong><a href="http://zh.wikipedia.org/w/index.php?title=%E9%BB%91%E6%9D%BF%E7%B3%BB%E7%BB%9F&amp;action=edit&amp;redlink=1" title="黑板系统"><span style="color:windowtext;">黑板</span></a></strong></p></td>  <td><p align="left">广义的观察者在系统范围内交流信息，允许多位读者和写者。</p></td> </tr> <tr>  <td><p align="left"><strong><a href="http://zh.wikipedia.org/w/index.php?title=%E8%A7%84%E6%A0%BC%E6%A8%A1%E5%BC%8F&amp;action=edit&amp;redlink=1" title="规格模式"><span style="color:windowtext;">规格</span></a></strong></p></td>  <td><p align="left">以布尔形式表示的可重绑定的商业逻辑。</p></td> </tr></tbody></table></p><p style="margin-top: 0px; margin-bottom: 0px; padding-top: 0px; padding-bottom: 0px; font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; "><span style="font-family: sans-serif; font-size: 15px; line-height: 22px; "><span style="font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; ">在面向对象软件设计的发展过程中，除了《设计模式》一书中提到的23中设计模式之外，新的设计模式仍然不断出现。</span></span></p><p style="margin-top: 0px; margin-bottom: 0px; padding-top: 0px; padding-bottom: 0px; text-align: left; "><span style="font-family:Arial;"><span style="font-size: 14px; line-height: 26px;"><br /></span></span><span style="font-family:sans-serif;"><span style="font-size: 15px; line-height: 22px;">若想更进一步了解关于</span></span><a href="http://zh.wikipedia.org/wiki/%E9%9D%A2%E5%90%91%E5%AF%B9%E8%B1%A1%E7%9A%84%E7%A8%8B%E5%BA%8F%E8%AE%BE%E8%AE%A1" title="面向对象" target="_blank" style="text-decoration: none; color: blue; background-image: none; background-attachment: initial; background-origin: initial; background-clip: initial; font-family: sans-serif; font-size: 15px; line-height: 22px; ">面向对象</a><span style="font-family: sans-serif; font-size: 15px; line-height: 22px; ">设计的背景，参考<a href="http://zh.wikipedia.org/wiki/%E6%8E%A5%E5%8F%A3%E6%A8%A1%E5%BC%8F" target="_blank" style="color: blue; ">接口模式</a>、<a href="http://baike.baidu.com/view/553710.htm" target="_blank" style="color: blue; ">内聚</a>、<a href="http://baike.baidu.com/view/156245.htm#3" target="_blank" style="color: blue; ">耦合</a>。</span></p><p style="margin-top: 0px; margin-bottom: 0px; padding-top: 0px; padding-bottom: 0px; font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; "><span style="font-family: sans-serif; font-size: 15px; line-height: 22px; ">若想更进一步了解关于面向对象编程的背景，参考</span><a href="http://baike.baidu.com/view/125322.htm#5" title="继承 (计算机科学)" class="mw-redirect" target="_blank" style="text-decoration: none; color: blue; background-image: none; background-attachment: initial; background-origin: initial; background-clip: initial; font-family: sans-serif; font-size: 15px; line-height: 22px; ">继承</a><span style="font-family: sans-serif; font-size: 15px; line-height: 22px; ">，<a href="http://baike.baidu.com/view/126530.htm" target="_blank" style="color: blue; ">重载</a>，</span><span style="font-family: sans-serif; font-size: 15px; line-height: 22px; "><a href="http://baike.baidu.com/view/126521.htm" target="_blank" style="color: blue; ">多态</a></span><span style="font-family: sans-serif; font-size: 15px; line-height: 22px; ">，<a href="http://baike.baidu.com/view/159864.htm#8" title="接口" target="_blank" style="text-decoration: none; color: blue; background-image: none; background-attachment: initial; background-origin: initial; background-clip: initial; ">接口</a></span></p><p style="line-height: 36px; margin-top: 0px; margin-bottom: 0px; padding-top: 0px; padding-bottom: 0px; font-family: Arial; font-size: 14px; line-height: 36px; text-align: left; ">参考来源：<a href="http://zh.wikipedia.org/wiki/%E8%AE%BE%E8%AE%A1%E6%A8%A1%E5%BC%8F_(%E8%AE%A1%E7%AE%97%E6%9C%BA)" target="_blank">设计模式（wiki）</a></p><p style="margin-top: 0px; margin-bottom: 0px; padding-top: 0px; padding-bottom: 0px; font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; "><br /></p><p style="margin-top: 0px; margin-bottom: 0px; padding-top: 0px; padding-bottom: 0px; font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; "><br /></p><p style="margin-top: 0px; margin-bottom: 0px; padding-top: 0px; padding-bottom: 0px; font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; "><br /></p><p style="margin-top: 0px; margin-bottom: 0px; padding-top: 0px; padding-bottom: 0px; font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; "><strong><span style="color: rgb(255, 0, 0); ">参考推荐：</span></strong></p><p style="margin-top: 0px; margin-bottom: 0px; padding-top: 0px; padding-bottom: 0px; font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; "><span style="color: rgb(0, 0, 238); "><a href="http://www.riabook.cn/doc/designpattern/" target="_blank">设计模式笔记</a></span></p><p style="margin-top: 0px; margin-bottom: 0px; padding-top: 0px; padding-bottom: 0px; font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; "><a href="http://blog.csdn.net/column/details/baiyangshudesign.html" target="_blank" style="color: rgb(255, 153, 0); text-decoration: none; ">设计模式</a>（C#）<br /></p><p style="margin-top: 0px; margin-bottom: 0px; padding-top: 0px; padding-bottom: 0px; font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; "><a href="http://www.cppblog.com/converse/category/2256.html?Show=All" target="_blank" style="color: rgb(255, 153, 0); text-decoration: none; ">设计模式</a>（C++）</p><p style="margin-top: 0px; margin-bottom: 0px; padding-top: 0px; padding-bottom: 0px; font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; "><a href="http://www.jdon.com/designpatterns/" target="_blank" style="font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; color: rgb(255, 153, 0); text-decoration: none; ">设计模式</a><span style="font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; ">（Java）</span><br /></p><p style="margin-top: 0px; margin-bottom: 0px; padding-top: 0px; padding-bottom: 0px; font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; "><span style="font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; "><a href="http://www.cnblogs.com/Darren_code/archive/2011/08/31/JavascripDesignPatterns.html" target="_blank">设计模式</a>（JavaScript）</span></p><p style="margin-top: 0px; margin-bottom: 0px; padding-top: 0px; padding-bottom: 0px; font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; "><span style="font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; "><a href="http://www.cnblogs.com/Terrylee/archive/2006/07/17/334911.html" target="_blank" style="font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; color: rgb(255, 153, 0); text-decoration: none; ">.NET设计模式系列文章</a><span style="font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; ">（MS MVP）</span><br /></span></p><p style="margin-top: 0px; margin-bottom: 0px; padding-top: 0px; padding-bottom: 0px; font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; "><br /></p><p style="margin-top: 0px; margin-bottom: 0px; padding-top: 0px; padding-bottom: 0px; font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; "><a href="http://www.uml.org.cn/sjms/sjms.asp" target="_blank" style="color: rgb(255, 153, 0); text-decoration: none; ">UML 软件工程组织</a>（<span style="color: rgb(255, 0, 0); ">推荐</span>）</p><p style="margin-top: 0px; margin-bottom: 0px; padding-top: 0px; padding-bottom: 0px; font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; "><a href="http://blog.csdn.net/column/details/pattern.html" target="_blank">设计模式</a>（<span style="color:#ff0000;">推荐</span>）<br /></p><p style="margin-top: 0px; margin-bottom: 0px; padding-top: 0px; padding-bottom: 0px; font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; "><a href="http://zh.wikipedia.org/wiki/%E8%AE%BE%E8%AE%A1%E6%A8%A1%E5%BC%8F_(%E8%AE%A1%E7%AE%97%E6%9C%BA)" target="_blank">设计模式</a>（wiki）<br /></p><p style="margin-top: 0px; margin-bottom: 0px; padding-top: 0px; padding-bottom: 0px; font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; "><br /></p><p style="margin-top: 0px; margin-bottom: 0px; padding-top: 0px; padding-bottom: 0px; font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; "><br /></p>
            
                    <div>来源：http://blog.csdn.net/sunboy_2050/article/details/7525022</div>]]></description>
</item>

<item>
<link><![CDATA[http://www.itivy.com/php/archive/2012/5/5/634718053529269626.html]]></link>
<title><![CDATA[JSON进阶第三篇 apache多域名及JSON的跨域问题（JSONP）]]></title>
<author><![CDATA[php园丁]]></author>
<category><![CDATA[]]></category>
<pubDate>Sat, 05 May 2012 09:21:12 GMT</pubDate>
<guid><![CDATA[]]></guid>
<description><![CDATA[
            <span style="font-size:18px;"></span><p><span style="font-size:18px;">本文先介绍如何为apache配置多域名，然后再用JSONP(JSON with Padding)来解决JSON的跨域问题。</span></p><p><span style="font-size:18px;">阅读本文之前，推荐先参阅《</span><a href="http://blog.csdn.net/morewindows/article/details/7206390"><span style="font-size:18px;">JSON进阶第二篇AJAX方式传递JSON数据</span></a><span style="font-size:18px;">》。</span></p><p><span style="font-size:18px;"></span>&nbsp;</p><h3><span style="font-size:24px;">一．apache配置多域名</span></h3><p><span style="font-size:18px;">在apache的conf目录下找到httpd.conf，然后在该文件最后增加如下内容：</span></p><p><span style="font-size:18px;"><em># 声明使用虚拟主机过滤规则</em></span></p><p><span style="font-size:18px;"><em>NameVirtualHost*:80</em></span></p><p><span style="font-size:18px;"><em>#虚拟主机localhost</em></span></p><p><span style="font-size:18px;"><em>&lt;VirtualHost*:80&gt;</em></span></p><p><span style="font-size:18px;"><em>ServerName&nbsp; localhost</em></span></p><p><span style="font-size:18px;"><em>DocumentRoot&quot;D:\xampp\htdocs\www&quot;</em></span></p><p><span style="font-size:18px;"><em>&lt;/VirtualHost&gt;</em></span></p><p><span style="font-size:18px;"><em>#虚拟主机test.mw.com</em></span></p><p><span style="font-size:18px;"><em>&lt;VirtualHost*:80&gt;</em></span></p><p><span style="font-size:18px;"><em>ServerName&nbsp; test.mw.com</em></span></p><p><span style="font-size:18px;"><em>DocumentRoot&quot;D:\xampp\htdocs\test.mw.com&quot;</em></span></p><p><span style="font-size:18px;"><em>&lt;/VirtualHost&gt;</em></span></p><p><span style="font-size:18px;">其中第一个是保证原有的localhost还可以继续工作，第二个为新加域名test.mw.com。</span></p><p><span style="font-size:18px;">然后再修改host文件（在C:\Windows\System32\drivers\etc\）</span></p><p><span style="font-size:18px;">增加：</span></p><p><span style="font-size:18px;"># &nbsp;test.mw.com </span></p><p><span style="font-size:18px;">127.0.0.1test.mw.com</span></p><p><span style="font-size:18px;color:#ff0000;">注意修改httpd.conf后要重启下apache服务。</span></p><p><span style="font-size:18px;">&nbsp;</span></p><p><span style="font-size:18px;">将《</span><a href="http://blog.csdn.net/morewindows/article/details/7206390"><span style="font-size:18px;">JSON进阶第二篇 AJAX方式传递JSON数据</span></a><span style="font-size:18px;">》文中的json2.php拷贝到D:\xampp\htdocs\test.mw.com目录中再在浏览器中输入网址</span><a href="http://test.mw.com/json2.php"><span style="font-size:18px;">http://test.mw.com/json2.php</span></a><span style="font-size:18px;"> </span></p><p><span style="font-size:18px;">运行结果如下：</span></p><p align="center"><img alt="" src="/Upload/EditorImage/image/php/201205/6347180636916974970_1328493384y0YI.gif" /></p><p><span style="font-size:18px;">在浏览器中能看到如上所示的JSON字符串说明已经成功为apache增加了新的域名，接下来就来体验下JSON的跨域名问题。</span></p><p><span style="font-size:18px;">将json2.html中“$.post(&quot;json2.php&quot;, {}, function(data){”的“json2.php”改成“http://test.mw.com/json2.php”表示我们要引用test.mw.com域名下的json2.php文件。然后在json2.html中点击按钮，可以发现没任何效果。</span></p><p><span style="font-size:18px;">用Firefox的Firebug查看点击按钮后AJAX响应的详细过程，可以看到AJAX请求信息已经发送到服务器上了（就是那个127.0.0.1:80），但因为安全性问题，服务器返回的数据被屏蔽了——这就是大名鼎鼎的<strong><span style="font-size:24px;">跨域问题</span></strong>。</span></p><p><img alt="" src="/Upload/EditorImage/image/php/201205/6347180637318278050_1328493408tApK.gif" width="751" height="505" /></p><h3><span style="font-size:24px;">二．JSONP——解决JSON跨域问题</span></h3><p><span style="font-size:18px;">使用JSONP(JSON with Padding)就可以解决JSON的跨域问题，JSONP的原理可以访问</span><a href="http://zh.wikipedia.org/zh-cn/JSONP"><span style="font-size:18px;">http://zh.wikipedia.org/zh-cn/JSONP</span></a><span style="font-size:18px;">，<strong><span style="color:#ff0000;">简单的说就是利用了</span></strong></span><a title="HTML元素" href="http://zh.wikipedia.org/wiki/HTML%E5%85%83%E7%B4%A0#script_tag"><strong><span style="font-size:18px;color:#ff0000;">&lt;script&gt;</span></strong></a><span style="font-size:18px;"><strong><span style="color:#ff0000;">标签拥有的开放策略（相对于同域策略）</span></strong>。下面介绍如何使用JSONP。</span></p><p><span style="font-size:18px;">JSONP的使用分为二步：</span></p><p><span style="font-size:18px;">第一将html文件中的</span></p><p><span style="font-size:18px;">$.post(&quot;http://test.mw.com/json2.php&quot;,{}, function(data){</span></p><p><span style="font-size:18px;">改成</span></p><p><span style="font-size:18px;">$.getJSON(&quot;http://test.mw.com/json2.php?format=json&amp;jsoncallback=?&quot;,{}, function(data){</span></p><p><span style="font-size:18px;">第二将json2.php最后的</span></p><p><span style="font-size:18px;">echo$article_json;</span></p><p><span style="font-size:18px;">改成</span></p><p><span style="font-size:18px;">echo$_REQUEST['jsoncallback'] . &quot;(&quot; . $article_json . &quot;)&quot;;</span></p><p><span style="font-size:18px;">修改这二个地方后就可以解决JSON的跨域问题了。</span></p><p><span style="font-size:18px;">下面也给出完整的示例程序，分为json2.php和json2.html， json2.html上有个按钮，按下后将发送AJAX请求得到json2.php返回的跨域JSON数据。注意和上一篇《</span><a href="http://blog.csdn.net/morewindows/article/details/7206390"><span style="font-size:18px;">JSON进阶第二篇 AJAX方式传递JSON数据</span></a><span style="font-size:18px;">》文中的代码进行比较。</span></p><p><span style="font-size:18px;">1．Json2.php</span></p><pre class="brush:php" name="code">&lt;?php
// by MoreWindows( http://blog.csdn.net/MoreWindows )
$article_array = array(
	array(
		&quot;id&quot;=&gt;&quot;001&quot;,
		&quot;title&quot;=&gt;&quot;PHP访问MySql数据库 初级篇&quot;, 
		&quot;link&quot;=&gt;&quot;http://blog.csdn.net/morewindows/article/details/7102362&quot;
	),
	array(
		&quot;id&quot;=&gt;&quot;001&quot;,
		&quot;title&quot;=&gt;&quot;PHP访问MySql数据库 中级篇 Smarty技术&quot;, 
		&quot;link&quot;=&gt;&quot;http://blog.csdn.net/morewindows/article/details/7094642&quot;
	),
	array(
		&quot;id&quot;=&gt;&quot;001&quot;,
		&quot;title&quot;=&gt;&quot;PHP访问MySql数据库 高级篇 AJAX技术&quot;, 
		&quot;link&quot;=&gt;&quot;http://blog.csdn.net/morewindows/article/details/7086524&quot;
	),
);
$article_json = json_encode($article_array);

//echo $article_json;
echo $_REQUEST['jsoncallback'] . &quot;(&quot; . $article_json . &quot;)&quot;;
?&gt;</pre><p>2．Json2.html&nbsp;&nbsp;&nbsp; // by MoreWindows( http://blog.csdn.net/MoreWindows )</p><pre class="brush:html" name="code">&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
&lt;head&gt;
&lt;title&gt;ajax方式请求跨域的json数据&lt;/title&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;../jquery-1.7.min.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
//显示提示
function OnMouseEnterDivInfo(thisObj, title)
{
    $(&quot;#article_link&quot;).css(&quot;position&quot;,&quot;absolute&quot;);
    $(&quot;#article_link&quot;).css(&quot;left&quot;,&quot;20px&quot;);
    $(&quot;#article_link&quot;).css(&quot;top&quot;,$(thisObj).offset().top + $(thisObj).height());
    $(&quot;#article_link&quot;).html(&quot;链接地址&quot; + title);
    $(&quot;#article_link&quot;).slideDown(&quot;fast&quot;);
    $(thisObj).css(&quot;background-color&quot;,&quot;red&quot;);	
}
//隐藏提示
function OnMouseLeaveDivInfo(thisObj)
{
    $(&quot;#article_link&quot;).hide();
    $(thisObj).css(&quot;background-color&quot;,&quot;yellow&quot;);
}  
//jquery通过AJAX方式得到JSON数据
$(document).ready(function(){
    $(&quot;#GetDataBtn&quot;).click(function(){
        //$.post(&quot;http://test.mw.com/json2.php&quot;, {}, function(data){  
        $.getJSON(&quot;http://test.mw.com/json2.php?format=json&amp;jsoncallback=?&quot;, {}, function(data){  
            var g_jsonstr = eval(data);
            var ilen = g_jsonstr.length;
            var detailhtml = &quot;&quot;;
            for (var i = 0; i &lt; ilen; i++)
            {
                var divhtml = '&lt;div id=\&quot;div_' + i + '\&quot;  onmouseenter=\&quot;OnMouseEnterDivInfo(this, \' '+ g_jsonstr[i]['link'] + '\');\&quot; onmouseleave=\&quot;OnMouseLeaveDivInfo(this);\&quot; &gt;';
                divhtml += '&lt;h1&gt;' + g_jsonstr[i]['title'] + '&lt;/h1&gt;';
                divhtml += '&lt;/div&gt;';
                detailhtml += divhtml;
            }
            $(&quot;#detail&quot;).html(detailhtml);//生成新的标题区域
            $(&quot;#detail&quot;).slideDown(&quot;slow&quot;);
        });
    });
});
&lt;/script&gt;
&lt;style type=&quot;text/css&quot;&gt;
div
{
	font-family:sans-serif;
}
&lt;/style&gt;
&lt;/head&gt;	
&lt;body&gt;
&lt;input type=&quot;button&quot; id=&quot;GetDataBtn&quot; value=&quot;生成数据&quot; /&gt;
&lt;div id=&quot;detail&quot;&gt;
&lt;/div&gt;
&lt;p&gt;&lt;span id=&quot;article_link&quot; style=&quot;display:none;z-index:100&quot;&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/body&gt;
&lt;/html&gt;</pre><p><span style="font-size:18px;">再用Firefox的Firebug查看点击按钮后AJAX响应的详细过程，可以发现已经可以收到跨域后的JSON数据了。</span></p><p align="center"><img alt="" src="/Upload/EditorImage/image/php/201205/6347180637697139630_1328493597IgNA.gif" /></p><p><span style="font-size:18px;">有兴趣的筒子可以再试试这种方式：</span></p><p><span style="font-size:18px;">将http://test.mw.com/json2.php的</span></p><p><span style="font-size:18px;">echo$_REQUEST['jsoncallback'] . &quot;(&quot; . $article_json . &quot;)&quot;;</span></p><p><span style="font-size:18px;">换成</span></p><p><span style="font-size:18px;">echo&quot;ShowData($article_json)&quot;;</span></p><p><span style="font-size:18px;">再将json2.html的</span></p><p><span style="font-size:18px;">$(document).ready(function(){... }</span></p><p><span style="font-size:18px;">换成</span></p><pre class="brush:javascript" name="code">function ShowData(data)
{
    var g_jsonstr = eval(data);
    var ilen = g_jsonstr.length;
    var detailhtml = &quot;&quot;;
    for (var i = 0; i &lt; ilen; i++)
    {
        var divhtml = '&lt;div id=\&quot;div_' + i + '\&quot;  onmouseenter=\&quot;OnMouseEnterDivInfo(this, \' '+ g_jsonstr[i]['link'] + '\');\&quot; onmouseleave=\&quot;OnMouseLeaveDivInfo(this);\&quot; &gt;';
        divhtml += '&lt;h1&gt;' + g_jsonstr[i]['title'] + '&lt;/h1&gt;';
        divhtml += '&lt;/div&gt;';
        detailhtml += divhtml;
    }
    $(&quot;#detail&quot;).html(detailhtml);//生成新的标题区域
    $(&quot;#detail&quot;).slideDown(&quot;slow&quot;);
}
//jquery通过AJAX方式得到JSON数据
$(document).ready(function(){
    $(&quot;#GetDataBtn&quot;).click(function(){
        //jsonp原理--利用&lt;script&gt;标签的开放策略
        var script = document.createElement('script');
        script.setAttribute('src', &quot;http://test.mw.com/json2.php&quot;);
        document.getElementsByTagName('head')[0].appendChild(script);
}</pre><p><span style="font-size:18px;">来试试，同样可以得到数据的(有一点不足——此时鼠标移动到标题是不会触发提示的)。</span></p><p><span style="font-size:18px;">&nbsp;</span></p><p><span style="font-size:18px;">另外，关于JSON有个小小的问题要注意下：</span></p><pre class="brush:php" name="code">$array1 = array(&quot;a&quot;, &quot;b&quot;);
$array2 = array('001'=&gt;&quot;a&quot;, '002'=&gt;&quot;b&quot;);
$json1 = json_encode($array1);
$json2 = json_encode($array2);
echo $json1 . &quot;&lt;br /&gt;&quot;;
echo $json2 . &quot;&lt;br /&gt;&quot;;</pre><p><span style="font-size:18px;">会输出</span></p><p><span style="font-size:18px;">[&quot;a&quot;,&quot;b&quot;]</span></p><p><span style="font-size:18px;">{&quot;001&quot;:&quot;a&quot;,&quot;002&quot;:&quot;b&quot;}</span></p><p><span style="font-size:18px;">这说明，$json1是数组，而且$json2是对象。将$json1和$json2传到js代码中，$json1.length是合法的，但$json2.length是未定义的。读者可以对比本篇json2.php中数组$article_array与</span><a href="http://blog.csdn.net/morewindows/article/details/7206390"><span style="font-size:18px;">上一篇</span></a><span style="font-size:18px;">的区别。</span></p><p><span style="font-size:18px;">&nbsp;</span></p><p><span style="font-size:18px;">&nbsp;</span></p><p><span style="font-size:18px;">至此，JSON进阶三篇全部完成。下面列出目录，以供参考：</span></p><p><span style="font-size:18px;">1．《</span><a href="http://blog.csdn.net/morewindows/article/details/7197971"><span style="font-size:18px;">JSON进阶第一篇 在PHP与javascript 中使用JSON</span></a><span style="font-size:18px;">》</span></p><p><span style="font-size:18px;">2．《</span><a href="http://blog.csdn.net/morewindows/article/details/7206390"><span style="font-size:18px;">JSON进阶第二篇 AJAX方式传递JSON数据</span></a><span style="font-size:18px;">》</span></p><p><span style="font-size:18px;">3．《<a href="http://blog.csdn.net/morewindows/article/details/7235992">JSON进阶第三篇 apache多域名及JSON的跨域问题（JSONP）</a>》</span></p><p><span style="font-size:18px;">&nbsp;</span></p><p><span style="font-size:18px;">&nbsp;</span></p><p><span style="font-size:18px;">转载请标明出处，原文地址：<a href="http://blog.csdn.net/morewindows/article/details/7235992">http://blog.csdn.net/morewindows/article/details/7235992</a></span></p>
            
                    <div>来源：http://blog.csdn.net/morewindows/article/details/7235992</div>]]></description>
</item>

<item>
<link><![CDATA[http://www.itivy.com/php/archive/2012/5/5/634718053434472837.html]]></link>
<title><![CDATA[PHP读写XML文件]]></title>
<author><![CDATA[php园丁]]></author>
<category><![CDATA[]]></category>
<pubDate>Sat, 05 May 2012 09:21:02 GMT</pubDate>
<guid><![CDATA[]]></guid>
<description><![CDATA[
            <p><span style="font-size:18px;">PHP读写XML文件</span></p><p><span style="font-size:16px;">author:&nbsp;MoreWindows</span></p><p><span style="font-size:16px;">blog:&nbsp;&nbsp;&nbsp; </span><a href="http://blog.csdn.net/MoreWindows"><span style="font-size:16px;">http://blog.csdn.net/MoreWindows</span></a></p><p><span style="font-size:16px;">KeyWord:&nbsp;&nbsp;&nbsp; PHP 解析XML DOMDocument XML文件操作</span></p><p><span style="font-size:18px;">&nbsp;</span></p><p><span style="font-size:18px;">PHP可以方便的生成和读取XML文件。PHP主要通过DOMDocument、DOMElement和DOMNodeList来完成XML的读取与写入操作的。下面就简要说明下如何使用这些类。</span></p><h2><span style="font-size:24px;">一．生成XML文件</span></h2><p><span style="font-size:18px;">对于一个如下XML文件。</span></p><pre class="brush:html" name="code">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;article&gt;
  &lt;title&gt;PHP访问MySql数据库 初级篇&lt;/title&gt;
  &lt;link&gt;http://blog.csdn.net/morewindows/article/details/7102362&lt;/link&gt;
&lt;/article&gt;</pre><p><span style="font-size:18px;">我们来看看如何用PHP来生成：</span></p><p><span style="font-size:18px;">首先new一个DOMDocument对象并设置编码格式。</span></p><p><span style="font-size:18px;">$dom = newDOMDocument('1.0', 'UTF-8');</span></p><p><span style="font-size:18px;">$dom-&gt;formatOutput= true;</span></p><p><span style="font-size:18px;">&nbsp;</span></p><p><span style="font-size:18px;">再创建&lt;article&gt;结点和&lt;title&gt;结点</span></p><p><span style="font-size:18px;">$rootelement =$dom-&gt;createElement(&quot;article&quot;);</span></p><p><span style="font-size:18px;">$title =$dom-&gt;createElement(&quot;title&quot;, &quot;PHP访问MySql数据库 初级篇&quot;);</span></p><p><span style="font-size:18px;">&nbsp;</span></p><p><span style="font-size:18px;">然后创建带文本内容的&lt;link&gt;结点</span></p><p><span style="font-size:18px;">$link =$dom-&gt;createElement(&quot;link&quot;,&quot;http://blog.csdn.net/morewindows/article/details/7102362&quot;);</span></p><p><span style="font-size:18px;">也可以先生成&lt;link&gt;结点再为其添加文本内容。</span></p><p><span style="font-size:18px;">$link = $dom-&gt;createElement(&quot;link&quot;);</span></p><p><span style="font-size:18px;">$linktext =$dom-&gt;createTextNode('http://blog.csdn.net/morewindows/article/details/7102362');</span></p><p><span style="font-size:18px;">$link-&gt;appendChild($linktext);</span></p><p><span style="font-size:18px;">&nbsp;</span></p><p><span style="font-size:18px;">然后将&lt;title&gt;和&lt;link&gt;结点加入到&lt;article&gt;结点中去</span></p><p><span style="font-size:18px;">$rootelement-&gt;appendChild($title);</span></p><p><span style="font-size:18px;">$rootelement-&gt;appendChild($link);</span></p><p><span style="font-size:18px;">&nbsp;</span></p><p><span style="font-size:18px;">最后将&lt;article&gt;结点加入到DOMDocument对象中， </span></p><p><span style="font-size:18px;">$dom-&gt;appendChild($rootelement);</span></p><p><span style="font-size:18px;">&nbsp;</span></p><p><span style="font-size:18px;">这样一个完整的XML就生成完毕了。再整出整个XML， </span></p><p><span style="font-size:18px;">echo $dom-&gt;saveXML() ;</span></p><p><span style="font-size:18px;">saveXML()也可以只输入部分XML文本，如echo $dom-&gt;saveXML($link);就只会输出&lt;link&gt;结点：&lt;link&gt;</span><a href="http://blog.csdn.net/morewindows/article/details/7102362%3c/link"><span style="font-size:18px;">http://blog.csdn.net/morewindows/article/details/7102362&lt;/link</span></a><span style="font-size:18px;">&gt;</span></p><p><span style="font-size:18px;">&nbsp;</span></p><p><span style="font-size:18px;">下面再给出一个完整的PHP中数据内容输出到XML文件的例子。该例子会对将一个PHP数组输出到XML文件中。</span></p><pre class="brush:php" name="code">&lt;?php
//将数组输出到XML文件中
// by MoreWindows( http://blog.csdn.net/MoreWindows )
$article_array = array(
	&quot;第一篇&quot; =&gt; array(
		&quot;title&quot;=&gt;&quot;PHP访问MySql数据库 初级篇&quot;, 
		&quot;link&quot;=&gt;&quot;http://blog.csdn.net/morewindows/article/details/7102362&quot;
	),
	&quot;第二篇&quot; =&gt; array(
		&quot;title&quot;=&gt;&quot;PHP访问MySql数据库 中级篇 Smarty技术&quot;, 
		&quot;link&quot;=&gt;&quot;http://blog.csdn.net/morewindows/article/details/7094642&quot;
	),
	&quot;第三篇&quot; =&gt; array(
		&quot;title&quot;=&gt;&quot;PHP访问MySql数据库 高级篇 AJAX技术&quot;, 
		&quot;link&quot;=&gt;&quot;http://blog.csdn.net/morewindows/article/details/7086524&quot;
	),
);
$dom = new DOMDocument('1.0', 'UTF-8');
$dom-&gt;formatOutput = true;
$rootelement = $dom-&gt;createElement(&quot;MoreWindows&quot;);
foreach ($article_array as $key=&gt;$value)
{
	$article = $dom-&gt;createElement(&quot;article&quot;, $key);
	$title = $dom-&gt;createElement(&quot;title&quot;, $value['title']);
	$link = $dom-&gt;createElement(&quot;link&quot;, $value['link']);
	$article-&gt;appendChild($title);
	$article-&gt;appendChild($link);
	$rootelement-&gt;appendChild($article);
}
$dom-&gt;appendChild($rootelement);
$filename = &quot;D:\\test.xml&quot;;
echo 'XML文件大小' . $dom-&gt;save($filename) . '字节';
?&gt;</pre><p><span style="font-size:18px;">运行该PHP会在D盘上生成test.xml文件(Win7 + XAMPP + IE9.0测试通过)</span></p><p><span style="font-size:18px;">&nbsp;</span></p><h2><span style="font-size:24px;">二．读取XML文件&nbsp;&nbsp; </span></h2><p><span style="font-size:18px;">以读取前文中生成的D:\\test.xml为例：</span></p><pre class="brush:php" name="code">&lt;?php
//读取XML文件
// by MoreWindows( http://blog.csdn.net/MoreWindows )
$filename = &quot;D:\\test.xml&quot;;
$article_array = array();

$dom = new DOMDocument('1.0', 'UTF-8');
$dom-&gt;load($filename);

//得到&lt;article&gt;结点
$articles = $dom-&gt;getElementsByTagName(&quot;article&quot;);
echo '&lt;article&gt; 结点个数 ' . $articles-&gt;length;
foreach ($articles as $article)
{
	$id = $article-&gt;getElementsByTagName(&quot;id&quot;)-&gt;item(0)-&gt;nodeValue;
	$title = $article-&gt;getElementsByTagName(&quot;title&quot;)-&gt;item(0)-&gt;nodeValue;
	$link = $article-&gt;getElementsByTagName(&quot;link&quot;)-&gt;item(0)-&gt;nodeValue;
	$article_array[$id] = array('title'=&gt;$title, 'link'=&gt;$link);
}

//输出结果
echo &quot;&lt;pre&gt;&quot;;
var_dump($article_array);
echo &quot;&lt;/pre&gt;&quot;;
?&gt;</pre><p><span style="font-size:18px;">运行结果如下：</span></p><p align="center"><img alt="" src="/Upload/EditorImage/image/php/201205/6347180636690680640_13286675761c52.gif" /></p><p><span style="font-size:18px;">更详细的内容请访问</span><a href="http://cn.php.net/manual/zh/class.domdocument.php"><span style="font-size:18px;">PHP手册中的DOMDocument类</span></a><span style="font-size:18px;">。当然想要更加方便可以使用一些第三方提供的XML类库，这里就不一一列举了，有兴趣可以到网上找找。</span></p><p><span style="font-size:18px;">&nbsp;</span></p><p><span style="font-size:18px;">转载请标明出处，原文地址：<a href="http://blog.csdn.net/morewindows/article/details/7241452">http://blog.csdn.net/morewindows/article/details/7241452</a></span></p>
            
                    <div>来源：http://blog.csdn.net/morewindows/article/details/7241452</div>]]></description>
</item>

<item>
<link><![CDATA[http://www.itivy.com/php/archive/2012/5/5/634718053406325498.html]]></link>
<title><![CDATA[PHP画图基础]]></title>
<author><![CDATA[php园丁]]></author>
<category><![CDATA[]]></category>
<pubDate>Sat, 05 May 2012 09:20:59 GMT</pubDate>
<guid><![CDATA[]]></guid>
<description><![CDATA[
            <p><span style="font-size:16px;">Title:&nbsp;&nbsp; &nbsp;PHP画图基础</span></p><p><span style="font-size:16px;">Author:&nbsp; MoreWindows</span></p><p><span style="font-size:16px;">Blog:&nbsp;&nbsp;&nbsp; &nbsp;<a href="http://blog.csdn.net/MoreWindows">http://blog.csdn.net/MoreWindows</a></span></p><p><span style="font-size:16px;">KeyWord:&nbsp;&nbsp;&nbsp; PHP绘图 画点、线、弧线 绘制和填充区域 图片特效 彩色圣诞节大雪花图</span></p>&nbsp;<p><span style="font-size:18px;">本篇对PHP常用的绘图函数进行总结。内容有建立图像，为图像分配颜色，画点，画线，画弧线，绘制和填充区域，输出字符和汉字及一些常见的图片特效如反色和浮雕。此外还给出一些有趣的实例，如绘制彩色的圣诞节大雪花图。</span></p><p><span style="font-size:18px;"><br /></span></p><p align="left"><span style="font-size:24px;">一．新建图像</span></p><p><span style="font-size:18px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; resource <strong>imagecreate</strong>( int <tt>$x_size</tt> , int <tt>$y_size</tt> )</span></p><p><span style="font-size:18px;"><strong>imagecreate()</strong>返回一个图像标识符，代表了一幅大小为 <tt><em>x_size</em></tt> 和<tt><em>y_size</em></tt> 的空白图像。</span></p><p><span style="font-size:18px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; resource <strong>imagecreatetruecolor</strong>( int <tt>$x_size</tt> , int <tt>$y_size</tt> )</span></p><p><span style="font-size:18px;"><strong>imagecreatetruecolor()</strong> 返回一个图像标识符，代表了一幅大小为 <tt><em>x_size</em></tt> 和<tt><em>y_size</em></tt> 的黑色图像。PHP手册上推荐尽量使用imagecreatetruecolor()函数。</span></p><p><span style="font-size:18px;">还有根据.gif、.png、.jpg等文件来创建图像的函数。</span></p><p><span style="font-size:18px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; resource <strong>imagecreatefromgif</strong>( string <tt>$filename</tt> )</span></p><p><span style="font-size:18px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; resource <strong>imagecreatefrompng</strong> ( string <tt>$filename</tt> )</span></p><p><span style="font-size:18px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; resource <strong>imagecreatefromjpeg</strong>( string <tt>$filename</tt> )</span></p><p><span style="font-size:18px;"><br /></span></p><p align="left"><span style="font-size:24px;">二．为图像分配颜色</span></p><p><span style="font-size:18px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; int <strong>imagecolorallocate</strong> ( resource <tt>$image</tt> , int <tt>$red</tt> , int <tt>$green</tt> , int <tt>$blue</tt> )</span></p><p><span style="font-size:18px;"><strong>imagecolorallocate()</strong> 返回一个标识符，代表了由给定的 <acronym>RGB</acronym> 成分组成的颜色。<tt><em>red</em></tt>，<tt><em>green</em></tt> 和 <tt><em>blue</em></tt> 分别是所需要的颜色的红，绿，蓝成分。这些参数是 0 到 255 的整数或者十六进制的 0x00 到 0xFF。第一次图像调用 <strong>imagecolorallocate()</strong>表示设置图像背景色。</span></p><p><span style="font-size:18px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; int <strong>imagecolorallocatealpha</strong>( resource <tt>$image</tt> , int <tt>$red</tt> , int <tt>$green</tt> , int <tt>$blue</tt> , int <tt>$alpha</tt> )</span></p><p><span style="font-size:18px;"><strong>imagecolorallocatealpha()</strong> 的行为和imagecolorallocate()相同，但多了一个额外的透明度参数<tt><em>alpha</em></tt>，其值从 <em>0</em> 到<em>127</em>。<em>0</em>表示完全不透明，<em>127</em> 表示完全透明。</span></p><p><span style="font-size:18px;">&nbsp;</span></p><p align="left"><span style="font-size:24px;">三．画点</span></p><p><span style="font-size:18px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; bool <strong>imagesetpixel</strong>( resource <tt>$image</tt> , int <tt>$x</tt> , int <tt>$y</tt> , int <tt>$color</tt> )</span></p><p><span style="font-size:18px;">注：图像左上角为(0,0)</span></p><p><span style="font-size:18px;">&nbsp;</span></p><p align="left"><span style="font-size:24px;">四．画线</span></p><p><span style="font-size:18px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; bool <strong>imageline</strong>( resource <tt>$image</tt> , int <tt>$x1</tt> , int <tt>$y1</tt> , int <tt>$x2</tt> , int <tt>$y2</tt> , int <tt>$color</tt> )</span></p><p><span style="font-size:18px;">从(x1, y1)到(x2,y2)。线的风格可以由bool <strong>imagesetstyle</strong>( resource <tt>$image</tt> , array <tt>$style</tt> )来控制。宽度由bool <strong>imagesetthickness</strong> ( resource <tt>$image</tt> , int <tt>$thickness</tt> )控制，注意这个宽度在画矩形、弧线时也生效。</span></p><p><span style="font-size:18px;">&nbsp;</span></p><p align="left"><span style="font-size:24px;">五．画椭圆弧</span></p><p><span style="font-size:18px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; bool <strong>imagearc</strong>(resource <tt>$image</tt> , int <tt>$cx</tt> , int <tt>$cy</tt> , int <tt>$w</tt> , int <tt>$h</tt> , int <tt>$s</tt> , int <tt>$e</tt> , int <tt>$color</tt>)</span></p><p><span style="font-size:18px;"><strong>imagearc()</strong>以<tt><em>cx</em></tt>，<tt><em>cy</em></tt>（图像左上角为 0, 0）为中心在 <tt><em>image</em></tt> 所代表的图像中画一个椭圆弧。<tt><em>w</em></tt>和<tt><em>h</em></tt> 分别指定了椭圆的宽度和高度，起始和结束点以 <tt><em>s</em></tt> 和<tt><em>e</em></tt>参数以角度指定。0度位于三点钟位置，以顺时针方向绘画。如:</span></p><p><span style="font-size:18px;">$black = imagecolorallocate($img, 0, 0, 0);</span></p><p><span style="font-size:18px;">imagearc($img, 100, 100, 150, 180, 0, 90,$black);</span></p><p><span style="font-size:18px;">将在(100,100)处画一段宽150高180的从0到90度的弧，如下图所示（作为参照，右边是全图）：</span></p><p align="center"><span style="font-size:18px;"><img alt="" src="/Upload/EditorImage/image/php/201205/6347180634471310370_1329704740KUu7.gif" width="552" height="310" /><br /></span></p><p><span style="font-size:18px;">&nbsp;</span></p><p align="left"><span style="font-size:24px;">六．绘制区域</span></p><p><span style="font-size:18px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 矩形</span></p><p><span style="font-size:18px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; bool <strong>imagerectangle</strong> ( resource <tt>$image</tt> , int <tt>$x1</tt> , int <tt>$y1</tt> , int <tt>$x2</tt> , int <tt>$y2</tt> , int <tt>$col</tt> )</span></p><p><span style="font-size:18px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 椭圆</span></p><p><span style="font-size:18px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; bool <strong>imageellipse</strong> ( resource <tt>$image</tt> , int <tt>$cx</tt> , int <tt>$cy</tt> , int <tt>$w</tt> , int <tt>$h</tt> , int <tt>$color</tt> )</span></p><p><span style="font-size:18px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 多边形</span></p><p><span style="font-size:18px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; bool <strong>imagepolygon</strong> ( resource <tt>$image</tt> , array <tt>$points</tt> , int <tt>$num_points</tt> , int <tt>$color</tt> )</span></p><p><span style="font-size:18px;">&nbsp;</span></p><p align="left"><span style="font-size:24px;">七．填充区域</span></p><p><span style="font-size:18px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 填充区域</span></p><p><span style="font-size:18px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; bool <strong>imagefill</strong>( resource <tt>$image</tt> , int <tt>$x</tt> , int <tt>$y</tt> , int <tt>$color</tt> )</span></p><p><span style="font-size:18px;">imagefill()在image图像的(x,y)处用 color颜色执行区域填充（即与 (x, y) 点颜色相同且相邻的点都会被填充）。如以下代码片段会先画出蓝色的椭圆，然后用红色填充椭圆内部。</span></p><pre class="brush:php" name="code">$blue_color = imagecolorallocate($img, 0, 0, 255);             
$red_color = imagecolorallocate($img, 255, 0, 0);
imageellipse($img, 300, 200, 300, 200, $blue_color);
imagefill($img, 300, 200, $red_color);</pre><div align="center"><div align="left"><span style="font-size:18px;">运行效果如下：</span><br /></div><img alt="" src="/Upload/EditorImage/image/php/201205/6347180634482192210_1329704772p99X.gif" /><br /><br /></div><p><span style="font-size:18px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 画一椭圆并填充</span></p><p><span style="font-size:18px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; bool <strong>imagefilledellipse</strong>( resource <tt>$image</tt> , int <tt>$cx</tt> , int <tt>$cy</tt> , int <tt>$w</tt> , int <tt>$h</tt> , int <tt>$color</tt> )</span></p><p><span style="font-size:18px;">这种画法椭圆是没有边框的，当然也可以如下实现：</span></p><pre class="brush:php" name="code">$lucency_color = imagecolorallocatealpha($img, 0, 0, 0, 126);//127为全透明 0全不透明
$red_color = imagecolorallocate($img, 255, 0, 0);
imageellipse($img, 300, 200, 300, 200, $lucency_color);
imagefill($img, 300, 200, $red_color);
//imagefilledellipse($img, 300, 200, 300, 200, $red_color);</pre><br /><p><span style="font-size:18px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 画一矩形并填充</span></p><p><span style="font-size:18px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; bool <strong>imagefilledrectangle</strong> (resource <tt>$image</tt> , int <tt>$x1</tt> , int <tt>$y1</tt> , int <tt>$x2</tt> , int <tt>$y2</tt> , int <tt>$color</tt> )</span></p><p><span style="font-size:18px;">类似于画一椭圆并填充。</span></p><p><span style="font-size:18px;">&nbsp;</span></p><p><span style="font-size:18px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 画一椭圆弧且填充</span></p><p><span style="font-size:18px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; bool <strong>imagefilledarc</strong>( resource <tt>$image</tt> , int <tt>$cx</tt> , int <tt>$cy</tt> , int <tt>$w</tt> , int <tt>$h</tt> , int <tt>$s</tt> , int <tt>$e</tt> , int <tt>$color</tt> , int <tt>$style</tt> )</span></p><p><span style="font-size:18px;">对最后一个参数说明下，有4种值：</span></p><p><span style="font-size:18px;"><tt><strong>IMG_ARC_PIE&nbsp;&nbsp;&nbsp; </strong></tt>产生圆形边界（如果两个都用，<tt><strong>IMG_ARC_CHORD</strong></tt>生效）。</span></p><p><span style="font-size:18px;"><tt><strong>IMG_ARC_CHORD&nbsp; </strong></tt>用直线连接了起始和结束点。</span></p><p><span style="font-size:18px;"><tt><strong>IMG_ARC_NOFILL</strong></tt>画弧，只有轮廓，不填充。</span></p><p><span style="font-size:18px;"><tt><strong>IMG_ARC_EDGED&nbsp; </strong></tt>指明用直线将起始和结束点与中心点相连</span></p><p><span style="font-size:18px;">看下实际的效果(圆弧角度从0到210度)：</span></p><p align="center"><span style="font-size:18px;"><img style="width: 689px; height: 263px;" alt="" src="/Upload/EditorImage/image/php/201205/6347180634503958620_1329704796A9P9.gif" width="625" height="264" /><br /></span></p><p><span style="font-size:18px;"><a href="http://blog.csdn.net/morewindows/article/details/7289686">下一篇</a>将用这个函数来画饼状图。</span></p><p><span style="font-size:18px;"><br /></span></p><p align="left"><span style="font-size:24px;">八．字符</span></p><p><span style="font-size:18px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 水平地画一个字符 </span></p><p><span style="font-size:18px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; bool <strong>imagechar</strong>(resource <tt>$image</tt> , int <tt>$font</tt> , int <tt>$x</tt> , int <tt>$y</tt> , string <tt>$c</tt> , int <tt>$color</tt>)</span></p><p><span style="font-size:18px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 垂直地画一个字符</span></p><p><span style="font-size:18px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; bool <strong>imagecharup</strong>(resource <tt>$image</tt> , int <tt>$font</tt> , int <tt>$x</tt> , int <tt>$y</tt> , string <tt>$c</tt> , int <tt>$color</tt>)</span></p><p><span style="font-size:18px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 水平地画一行字符串</span></p><p><span style="font-size:18px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; bool <strong>imagestring</strong>(resource <tt>$image</tt> , int <tt>$font</tt> , int <tt>$x</tt> , int <tt>$y</tt> , string <tt>$s</tt> , int <tt>$col</tt>)</span></p><p><span style="font-size:18px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 垂直地画一行字符串</span></p><p><span style="font-size:18px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; bool <strong>imagestringup</strong>(resource <tt>$image</tt> , int <tt>$font</tt> , int <tt>$x</tt> , int <tt>$y</tt> , string <tt>$s</tt> , int <tt>$col</tt>)</span></p><p><span style="font-size:18px;">$font参数要注意下，要么使用内置的字体（从1到5），要么用int <strong>imageloadfont</strong> ( string <tt>$file</tt> )加载字体后再设置。</span></p><p><span style="font-size:18px;">可以用输出*来得到彩色的圣诞节雪花图，代码如下：</span></p><pre class="brush:php" name="code">&lt;?php
// by MoreWindows( http://blog.csdn.net/MoreWindows )
$imgWidth = 300;
$imgHeight = 200;
$img = imagecreate($imgWidth, $imgHeight);
imagecolorallocate($img, 255, 255, 255);//设置底色
$snowflake_size = 5; //可从1到5
//生成雪花 其实就是调用imagechar()输出*号
for ($i=1; $i&lt;=400; $i++) 
    imagechar($img, $snowflake_size, mt_rand(0, $imgWidth),mt_rand(0, $imgHeight), &quot;*&quot;, imagecolorallocate($img, mt_rand(200,255), mt_rand(200,255), mt_rand(200,255))); 
imagepng($img);
imagedestroy($img);
?&gt;</pre><p><span style="font-size:18px;">运行效果如下：</span></p><p align="center"><span style="font-size:18px;"><img alt="" src="/Upload/EditorImage/image/php/201205/6347180634566885680_1329704818JJjj.gif" /><br /></span></p><p><span style="font-size:18px;"><br /></span></p><p align="left"><span style="font-size:24px;">九．文本</span></p><p>&nbsp;<span style="font-size:18px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; array <strong>imagettftext</strong>(resource <tt>$image</tt> , float <tt>$size</tt> , float <tt>$angle</tt> , int <tt>$x</tt> , int <tt>$y</tt> , int <tt>$color</tt> , string <tt>$fontfile</tt> , string <tt>$text</tt> )</span></p><p><span style="font-size:18px;">解释几个参数：</span></p><p><span style="font-size:18px;">第二参数$size为字体大小。</span></p><p><span style="font-size:18px;">第三参数$angle为文本旋转角度，0度为从左向右读的文本，更高数值表示逆时针旋转。例如 90 度表示从下向上读的文本。</span></p><p><span style="font-size:18px;">第七个参数$fontfile表示字体文件，如&quot;c:\\WINDOWS\\Fonts\\simhei.ttf&quot;。</span></p><p><span style="font-size:18px;">注意！使用这个函数应当配合imagecreatetruecolor()，而不是imagecreate()。</span></p><span style="font-size:18px;">下面用这个imagettftext()来代替上面的imagechar从而生成彩色的圣诞节大雪花图，代码如下：</span><pre class="brush:php" name="code">&lt;?php
// by MoreWindows( http://blog.csdn.net/MoreWindows )
$imgWidth = 600;
$imgHeight = 400;
$img = imagecreatetruecolor($imgWidth, $imgHeight);
imagefill($img, 0, 0, imagecolorallocate($img, 240, 240, 240));//设置底色
$snowflake_size = 30;
$font_file = &quot;c:\\WINDOWS\\Fonts\\simhei.ttf&quot;; 
//生成大雪花 其实就是调用imagettftext()输出*号
for ($i=1; $i&lt;=400; $i++) 
{
	$font_color = imagecolorallocate($img, mt_rand(100,200), mt_rand(100,200), mt_rand(100,200));
	imagettftext($img, $snowflake_size, mt_rand(0, 180), mt_rand(0, $imgWidth),mt_rand(0, $imgHeight), $font_color, $font_file, &quot;*&quot;); 
}
//水印文字
$black_color = imagecolorallocate($img, 0, 0, 0);
imagettftext($img, 12, 0, $imgWidth - 200 , $imgHeight - 20, $black_color, $font_file, &quot;大雪花图  by MoreWindows&quot;);
imagepng($img);
imagedestroy($img);
?&gt;</pre><p><span style="font-size:18px;">运行效果如下：</span></p><p align="center"><span style="font-size:18px;"><img alt="" src="/Upload/EditorImage/image/php/201205/6347180634850063650_13297048332XwQ.gif" /><br /></span></p><p align="left"><span style="font-size:24px;">十．图像特效</span></p><p><span style="font-size:18px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; bool <strong>imagefilter</strong> ( resource <tt>$src_im</tt> , int <tt>$filtertype</tt> [,int <tt>$arg1</tt> [, int <tt>$arg2</tt> [, int <tt>$arg3</tt> ]]] )</span></p><p><span style="font-size:18px;">这里提供了很多特效，如浮雕，反色（底片色），调节灰度、亮度，对比度，模糊化等等。这只展示几种常用的特效，更多的请访问<a href="http://www.php.net/manual/zh/function.imagefilter.php">http://www.php.net/manual/zh/function.imagefilter.php</a>。</span></p><p><span style="font-size:18px;">原图：</span></p><p align="center"><span style="font-size:18px;"><img alt="" src="/Upload/EditorImage/image/php/201205/6347180635356541470_13297048618O8D.gif" /><br /></span></p><p><span style="font-size:18px;">将图处保存到D:\\1234.png，就可以执行下面的代码了。</span></p><p><span style="font-size:18px;"><tt><em>IMG_FILTER_NEGATE</em></tt>：将图像中所有颜色反转（底片色）。</span></p><p align="center"><span style="font-size:18px;"><img alt="" src="/Upload/EditorImage/image/php/201205/6347180635909521870_13297048820jeS.gif" /><br /></span></p><p><span style="font-size:18px;">代码：</span></p><pre class="brush:php" name="code">&lt;?php
// by MoreWindows( http://blog.csdn.net/MoreWindows )
$img = imagecreatefrompng(&quot;D:\\1234.png&quot;);
imagefilter($img, IMG_FILTER_NEGATE);
imagepng($img);
imagedestroy($img);
?&gt;</pre><br /><p><span style="font-size:18px;"><tt><em>IMG_FILTER_EMBOSS</em></tt>：使图像浮雕化。</span></p><p align="center"><span style="font-size:18px;"><img alt="" src="/Upload/EditorImage/image/php/201205/6347180636455221670_1329704897bz9O.gif" /><br /></span></p><p><span style="font-size:18px;">代码：</span></p><pre class="brush:php" name="code">&lt;?php
// by MoreWindows( http://blog.csdn.net/MoreWindows )
$img = imagecreatefrompng(&quot;D:\\1234.png&quot;);
imagefilter($img, IMG_FILTER_EMBOSS);
imagepng($img);
imagedestroy($img);
?&gt;</pre><br /><p><span style="font-size:18px;">本篇就介绍到此，下一篇《<a href="http://blog.csdn.net/morewindows/article/details/7289686">PHP 画图应用 验证码 柱状图</a>》将用本篇介绍的函数来绘制验证码和柱状图。</span></p><p><span style="font-size:18px;">&nbsp;</span></p><p><span style="font-size:18px;">&nbsp;</span></p><p><span style="font-size:18px;">转载请标明出处，原文地址：http://blog.csdn.net/morewindows/article/details/7274870</span></p><br /><br />
            
                    <div>来源：http://blog.csdn.net/morewindows/article/details/7274870</div>]]></description>
</item>

<item>
<link><![CDATA[http://www.itivy.com/php/archive/2012/5/5/634718053201661072.html]]></link>
<title><![CDATA[PHP 画图应用 验证码 柱状图]]></title>
<author><![CDATA[php园丁]]></author>
<category><![CDATA[]]></category>
<pubDate>Sat, 05 May 2012 09:20:38 GMT</pubDate>
<guid><![CDATA[]]></guid>
<description><![CDATA[
            <p><span style="font-size:16px;">Title: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PHP 画图应用 验证码 柱状图</span></p><p><span style="font-size:16px;">Author: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MoreWindows</span></p><p><span style="font-size:16px;">Blog: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><a href="http://blog.csdn.net/MoreWindows"><span style="font-size:16px;">http://blog.csdn.net/MoreWindows</span></a></p><p><span style="font-size:16px;">KeyWord: &nbsp;&nbsp;PHP 验证码 柱状图 imagefilledarc</span></p><p><strong></strong>&nbsp;</p><p><span style="font-size:18px;">阅读本文之前，推荐先参阅姊妹篇《</span><a href="http://blog.csdn.net/morewindows/article/details/7274870"><span style="font-size:18px;">PHP 画图基础</span></a><span style="font-size:18px;">》。</span></p><p><span style="font-size:18px;">本篇介绍如何使用PHP常用的绘图函数来生成验证码图片和柱状图。 </span></p><p align="left"><span style="font-size:24px;">一．验证码</span></p><p><span style="font-size:18px;">在网站中验证码是非常有用的，下图就是一个含4个数字的验证码图片。</span></p><p align="center"><img alt="" src="/Upload/EditorImage/image/php/201205/6347180634098038020_1330050391rQ9Y.gif" /></p><p><span style="font-size:18px;">简单的验证码图片主要通过<strong>在正确内容上增加一些干扰的点和线</strong>。这种方法实现起来方便容易，作为示范，本文实现了一个随机字体（有10种字体文件），支持随机文字颜色，有干扰点，干扰线的验证码类，此类可以批量在磁盘上生成验证码图片并指定验证码由多少个数字多少个字母组成。具体功能可以参阅代码：</span></p><pre class="brush:php" name="code">&lt;?php
//PHP生成验证码
// by MoreWindows( http://blog.csdn.net/MoreWindows )
class CSecurity_verify
{
	private $m_image;
	private $m_dir_name;
	private $m_image_width;
	private $m_image_height;
	private $m_digit_num;
	private $m_letter_num;
	private $m_font_color;
	const NOISE_DOT_NUM = 100; //干扰点个数
	const NOISE_LINE_NUM = 40; //干扰线个数
	
	/*
	 * $dir_name 保存验证码图片的文件夹目录(绝对路径)
	 * $digit_num 数字个数
	 * $letter_num 字母个数
	 * $width 验证码图片宽
	 * $height 验证码图片高
	*/ 
	public function __construct($dir_name, $digit_num, $letter_num, $width = 140, $height = 40)
	{
		$this-&gt;m_dir_name = $dir_name;
		$this-&gt;m_digit_num = $digit_num;
		$this-&gt;m_letter_num = $letter_num;
		$this-&gt;m_image_width = $width;
		$this-&gt;m_image_height = $height;
	}
	
	/*
	 * 在指定目录上生成指定条件的验证码图片
	 * $verify_pic_num 要生成多少张验证码图片
	*/
	public function BatchVerifyPicture($verify_pic_num)
	{
		while ($verify_pic_num &gt;= 0)
		{
			$verify_pic_num--;
			self::CreateVerifyImage();
			self::DrawNoiseDot();
			self::DrawNoiseLine();
			$verify_text = self::GetVerifyText();
			$filesize = self::DrawVerifyImage($verify_text);
			if ($filesize != -1)
				echo $verify_text . &quot;.png生成成功，大小&quot; . $filesize . &quot;字节 &lt;br /&gt;&quot;;
			else
				echo $verify_text . &quot;.png生成失败&lt;br /&gt;&quot;;
		}
	}
	
	/*
	 * 创建图片
	*/
	protected function CreateVerifyImage()
	{
		$this-&gt;m_image = imagecreatetruecolor($this-&gt;m_image_width, $this-&gt;m_image_height) or die(&quot;CreateVerifyImage failde&quot;);
		$black_color = imagecolorallocate($this-&gt;m_image, 243, 251, 254);
		imagefill($this-&gt;m_image, 0, 0, $black_color);//设置底色
		//字体颜色
		$m_font_color = imagecolorallocate($this-&gt;m_image, mt_rand(0, 120), mt_rand(0, 120), mt_rand(0, 120));
	}	

	/*
	 * 生成验证码内容
	 * 验证码中使用的字符，01IOQ容易混淆，故不用。
	*/
	protected function GetVerifyText()
	{
		$verify_text = &quot;&quot;;
		$letter_array = &quot;ABCDEFGHJKLMNPRSTUVWXYZ&quot;;
		$digit_num = $this-&gt;m_digit_num;
		$letter_num = $this-&gt;m_letter_num;
		while ($digit_num--) //数字
			$verify_text .= mt_rand(2, 9);
		while ($letter_num--) //字母
			$verify_text .= $letter_array[mt_rand(0, 22)];
		return $verify_text;
	}
	
	/*
	 * 绘验证码
	*/
	protected function DrawVerifyImage($verify_text)
	{
		//字体文件
		$font_file = &quot;ttfs\\t&quot; . mt_rand(1, 10) . &quot;.ttf&quot;;
		//
		$verify_text_show = &quot;&quot;;
		for ($i = 0; $i &lt; strlen($verify_text); $i++)
			$verify_text_show .= ($verify_text[$i] . &quot; &quot;);
		//文字的大小,角度,位置
		$font_size = 20;
		$font_angle = mt_rand(0, 5);
		$font_pos_x = 0;
		$font_pos_y = $this-&gt;m_image_height - 5;
		imagettftext($this-&gt;m_image, $font_size, $font_angle, $font_pos_x, $font_pos_y, $this-&gt;m_font_color, $font_file, $verify_text_show);
		$verify_image_filename = $this-&gt;m_dir_name . &quot;\\$verify_text.png&quot;;
		if (!imagepng($this-&gt;m_image, $verify_image_filename))
			return -1;
		imagedestroy($this-&gt;m_image);
		return filesize($verify_image_filename);
	}
	
	/*
	 * 绘干扰点
	*/
	protected function DrawNoiseDot()
	{
		$noise_dot_color = $this-&gt;m_font_color;
		for ($i = 0; $i &lt; self::NOISE_DOT_NUM; $i++)
		{
			imagesetpixel($this-&gt;m_image, mt_rand(0, $this-&gt;m_image_width), mt_rand(0, $this-&gt;m_image_height), $noise_dot_color);
		}
	}
	
	/*
	 * 绘干扰线
	*/	
	protected function DrawNoiseLine()
	{
		for ($i = 0; $i &lt; self::NOISE_LINE_NUM; $i++)
		{
			$noise_line_color = imagecolorallocate($this-&gt;m_image, mt_rand(50, 120), mt_rand(50, 120), mt_rand(50, 120));
			imageline($this-&gt;m_image, mt_rand(0, $this-&gt;m_image_width), mt_rand(0, $this-&gt;m_image_height), mt_rand(0, $this-&gt;m_image_width), mt_rand(0, $this-&gt;m_image_height), $noise_line_color);
		}		
	}
}
?&gt;</pre><p><span style="font-size:18px;">再给出使用示例，运行后可以会D盘上生成6张验证码图片，代码如下：</span></p><pre class="brush:php" name="code">&lt;?php
require_once 'CSecurity_verify.php';
$test = new CSecurity_verify(&quot;D:\\&quot;, 4, 0);
$test-&gt;BatchVerifyPicture(6);
?&gt;</pre><p><span style="font-size:18px;">生成的验证码效果如下所示：</span></p><p align="center"><img alt="" src="/Upload/EditorImage/image/php/201205/6347180634382859700_13300504125cdE.gif" /><div align="left">&nbsp;</div></p><p><span style="font-size:18px;">当然还有很多特效可以加入的，如文字水波化、背景增加彩色小字母干扰等等，这些都可以有效的美化验证码图片。有需要的筒子们可以深入学习下，这里就不细究了。</span></p><p><span style="font-size:18px;">注 程序所使用字体文件可以从C:\Windows\Fonts中选择，并拷贝到PHP文件所在目录中的ttfs文件夹。</span></p><p align="left"><span style="font-size:24px;">二．柱状图</span></p><p><span style="font-size:18px;">在PHP中绘制柱状图可以使用bool <strong>imagefilledarc</strong>( resource <tt>$image</tt> , int <tt>$cx</tt> , int <tt>$cy</tt> , int <tt>$w</tt> , int <tt>$h</tt> , int <tt>$s</tt> , int <tt>$e</tt> , int <tt>$color</tt> , int <tt>$style</tt> )函数。此函数的说明可以参考《PHP 画图基础》一文，<strong>柱状图原理很简单就是先用暗色绘制多层再用亮色绘制最上层，这样明暗对比就可以产生立体效果。</strong>具体过程可以参考下图：</span></p><p align="center"><img style="width: 668px; height: 204px;" alt="" src="/Upload/EditorImage/image/php/201205/6347180634410585240_1330050432tVKV.gif" width="552" height="177" /></p><p><span style="font-size:18px;">再给出一个PHP根据各数据值来生成柱状图的示例代码：</span></p><pre class="brush:php" name="code">&lt;?php
//柱状图
// by MoreWindows( http://blog.csdn.net/MoreWindows )
$image_width = 400;
$image_height = 300;
$image = imagecreatetruecolor($image_width, $image_height);
$black_color = imagecolorallocate($image, 243, 251, 254);
imagefill($image, 0, 0, $black_color);//设置底色
//亮色
$gray_color     = imagecolorallocate($image, 0xC0, 0xC0, 0xC0);
$navy_color     = imagecolorallocate($image, 0x00, 0x00, 0x80);
$red_color      = imagecolorallocate($image, 0xFF, 0x00, 0x00);
//暗色
$darkgray_color = imagecolorallocate($image, 0x90, 0x90, 0x90);
$darknavy_color = imagecolorallocate($image, 0x00, 0x00, 0x50);
$darkred_color  = imagecolorallocate($image, 0x90, 0x00, 0x00);
//各份份量大小
$value_array = array(12.5, 8.4, 79.1);
$all_value = array_sum($value_array);
$color_array = array($gray_color, $navy_color, $red_color);
$drak_color_array = array($darkgray_color, $darknavy_color, $darkred_color);
//先用暗色绘制30层
for ($i = 80; $i &gt; 50; $i--)
{
	$angle_begin = 0;
	$angle_end = 0;
	foreach ($value_array as $j=&gt;$val)
	{	
		$angle_begin = $angle_end;
		$angle_end += $val * 360 / $all_value;
		imagefilledarc($image, 100, $i, 200, 100, $angle_begin, $angle_end, $drak_color_array[$j], IMG_ARC_PIE);
	}
}
//最上层再用亮色绘图，这样就有立体效果了。
$angle_begin = 0;
$angle_end = 0;
foreach ($value_array as $j=&gt;$val)
{	
	$angle_begin = $angle_end;
	$angle_end += $val * 360 / $all_value;
	imagefilledarc($image, 100, $i, 200, 100, $angle_begin, $angle_end, $color_array[$j], IMG_ARC_PIE);
}
// flush image
header('Content-type: image/png');
imagepng($image);
imagedestroy($image);
?&gt;</pre><p><span style="font-size:18px;">运行效果如下：</span></p><p align="center"><img alt="" src="/Upload/EditorImage/image/php/201205/6347180634427563750_13300504500khR.gif" /></p><p><span style="font-size:18px;">总体来说，PHP的绘图功能还是方便强大的，有需要的筒子们还可以试下</span><a href="http://sourceforge.net/projects/phplot/"><span style="font-size:18px;">PHPlot</span></a><span style="font-size:18px;">来绘图，其类库功能强大，使用也方便。</span></p><p><span style="font-size:18px;">&nbsp;</span></p><p><span style="font-size:18px;">&nbsp;</span></p><p><span style="font-size:18px;">转载请标明出处，原文地址：<a href="http://blog.csdn.net/morewindows/article/details/7289686">http://blog.csdn.net/morewindows/article/details/7289686</a></span></p>
            
                    <div>来源：http://blog.csdn.net/morewindows/article/details/7289686</div>]]></description>
</item>

<item>
<link><![CDATA[http://www.itivy.com/php/archive/2012/5/4/634716982983343020.html]]></link>
<title><![CDATA[PHP最佳实践之读写配置]]></title>
<author><![CDATA[php园丁]]></author>
<category><![CDATA[]]></category>
<pubDate>Fri, 04 May 2012 03:19:07 GMT</pubDate>
<guid><![CDATA[]]></guid>
<description><![CDATA[
            <p>PHP有个好处，就是解释执行。因此其他程序里面很头痛的读写配置问题，在PHP基本上不是问题。</p><p>这是由于PHP可以直接把配置信息写在源代码里面。</p><p><br /></p><p>PHP程序的目录结构可以如下：</p><p>/bin</p><p>/conf</p><p>/data</p><p>/var</p><p><br /></p><p>则：conf目录下可以直接放app.conf.php，在这个php里面就写配置信息。然后其他文件直接require这个conf.php文件就ok了。</p><p><br /></p><p>好处：</p><p>1，绝对不会发生读错配置的问题，因为配置就是代码。</p><p>2，基本上可以杜绝配置文件格式不对的问题，因为php -l app.conf.php就可以检查语法错误。</p><p><br /></p>
            
                    <div>来源：http://blog.csdn.net/wwwsq/article/details/7320332</div>]]></description>
</item>

<item>
<link><![CDATA[http://www.itivy.com/php/archive/2012/5/3/634716536901391025.html]]></link>
<title><![CDATA[MySQL性能调优之Memory or SSD?]]></title>
<author><![CDATA[php园丁]]></author>
<category><![CDATA[]]></category>
<pubDate>Thu, 03 May 2012 15:11:58 GMT</pubDate>
<guid><![CDATA[]]></guid>
<description><![CDATA[
            <p>当一个传统的向外扩展的方式对于MySQL来讲变得流行，看看我们不得不扩充哪一方面（便宜的内存？快速存储？更好的电源效率？）将会变得非常有趣。这里确实有很多种选择——我每周大概会遇到一个客户使用Fushion-IO 卡。然而，我却看到了他们一个有趣的选择——他们选择购买一个SSD，当他们每秒仍然能读取很多页的时候（这时，我宁愿选择购买内存来取代），而使用存储驱动器做“写操作”使用。</p><p>在这里，我提出几个参考标准来供你确认是否是以上我说的这种情况：</p><ul><li>Percona-XtraDB-9.1 release</li><li>Sysbench(开源性能测试工具)的OLTP有8千万行的“工作量”（大概等同于18GB的数据+索引）</li><li>XFS 文件系统选择nobarrier选项安装</li><li>测试运行具有：</li></ul><p><span style="white-space:pre">		</span>1.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;带有BBU的RAID 10硬盘超过8块（所谓BBU，社区的解释是在掉电的情况下，能够cache数据72h，当机器供电正常，再从cache中将数据写入磁盘）</p><p><span style="white-space:pre">		</span>2.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Inter SSD X25-E 32GB</p><p><span style="white-space:pre">		</span>3.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;FushionIO 320GB MLC【1】</p><ul><li>对于每一次测试，在运行的时候将缓冲池设置在2G到22G之间（为了和合适的内存比较性能）</li><li>硬件配置：</li></ul><p><span style="white-space:pre">		</span>Dell PowerEdgeR900</p><p><span style="white-space:pre">		</span>4 QuadCoreIntel(R) Xeon(R) CPU E7320 @ 2.13GHz (16 cores in total)</p><p><span style="white-space:pre">		</span>32GB of RAM</p><p><span style="white-space:pre">		</span>RAID10 on 8disks 2.5” 15K RPMS</p><p><span style="white-space:pre">		</span>FusionIO 160GBSLC</p><p><span style="white-space:pre">		</span>FusionIO 320GBMLC</p><p><span style="white-space:pre">		</span>OS:</p><p><span style="white-space:pre">		</span>CentOS 5.5</p><p><span style="white-space:pre">		</span>XFS filesystem</p><p>开始，我们对RAID 10的存储做一个测试以建立一个基线。Y轴是每秒传输的数据（传输速率，它越大越好）。X轴是innodb_buffer_pool_size的大小。</p><p><img src="/Upload/EditorImage/image/php/201205/6347165471496537601335016221_6165.png" alt="" /><br /></p><p>我特地挑选了关于该测试中的三个有趣的点</p><ul><li>A点，当数据完全符合缓冲池大小（最佳性能）。一旦你达到该点，简直就像内存的进一步增加，了解该信息很重要。</li><li>B坐标出现在当数据刚开始超过缓冲池的大小。这对于许多用户来讲是最让人头疼的一点了。因为当内存下降仅10%，而性能却比原来降低了2.6倍。在产品中，这通常应对着这样的说辞——“上个星期一切看起来都还OK，但它却正在变得越来越慢！”。我想建议你，增加内存是迄今为止最好的做法，在这种情况下。</li><li>C点展示数据大约是缓冲池三倍的地方。它是一个有趣的点，既然你不能够计算出内存的花费（可能不了解未来遇到瓶颈需要耗费多少购买内存的成本），这是购买一个SSD可能更为合适。</li></ul><img src="/Upload/EditorImage/image/php/201205/6347165471818799421335016309_2494.png" alt="" /><br /><p>在C点，在这幅图中，一个Fusion-IO卡提升性能达5（如果你采用Interl SSD将会是2倍）。为了用增加内存的方式获得相同的性能提升，你将需要增加多于60%的内存-或者如果你想提升5倍的性能，需要增加超过260%的内存大小。想象一下这样一个生产环境：你的C点（假设像上面说的系统越来越慢）产生是在当你采用了32GB的RAM以及100GB的数据时。那么它将变得有趣了：</p><ul><li>你能简单地增加另一个32G的RAM（你的内存插槽以及被插满了吗？）</li><li>你的预算允许你安装一个SSD卡吗？（你可能仍然需要不止一个，因为它们都相对较小。已经有一些市场上的家电，它们使用了8块Intel的SSD设备）。</li><li>是否2倍或者5倍的性能提升能够足够满足你的需求？如果你能够买得起所有需要的内存，我想你可能会获得更好的性能。</li></ul><p>这里的测试被设计为——尽可能多地保证“热”数据，但我猜想这里最需要吸取的教训是不要低估你的“活动集”数据的大小。比如，某些人他只是追加数据到一些排序的日志表，它可能只需要很小的百分比，但在其他情况下，它可能被认为需要占用很大的百分比（比如日志记录地相对频繁）。</p><p>重要的注意点：该图以及这些结论只是在sysbenchuniform中被验证。在你特殊的工作场合中，B点和C点可能的分布位置会有所不同。</p><p>图中的源结果数据：</p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<img src="/Upload/EditorImage/image/php/201205/6347165471859590221335016368_8826.png" alt="" /><br /><p>引用：</p><p>【1】：目前SSD硬盘使用两种形式的NAND闪存：单级单元（SLC）和多级单元（MLC）。两者之间的差额是每单元存储的数据量，SLC每单元存储1比特而 MLC每单元存储2比特。关键在于，SLC和MLC占据了相同大小的芯片面积。因此，在同样的价格下，MLC可以有两倍容量的效果。</p><p>SLC和MLC的擦除性能是一样的，MLC闪存的读取性能需花费两倍长的时间，写入性能需花费四倍长的时间。</p><p>SLC的最大优势不在于它的性能好而在于它的使用寿命长。</p><p>ps：SLC因为速度快，使用寿命长，一般被用在企业级SSD上。而MLC则多用在消费级市场，如workstation。Fusion-io开发出一种管理MLC闪存的新技术SMLC（Single Mode Level Cell），将SLC技术的企业可靠性与消费级MLC闪存结合起来。SMLC技术的带宽与SLC接近，其耐用性和写入性能也可以与SLC媲美，且成本大大低于传统SLC解决方案。</p><br />
            
                    <div>来源：http://blog.csdn.net/yanghua_kobe/article/details/7485296</div>]]></description>
</item>


</channel>
</rss>

