qa-ifish7/web/Application/Admin/View/Template/cmsinfo.html

108 lines
6.6 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<include file="Inc:head"/>
<style>
.control-label,b{color:green; font-weight: bold;}
i{ color:#0081c2}
</style>
<div class="widget-box2" style="margin:0px;">
<div class="widget-content nopadding">
<literal>
<cmsinfo catid="53,54" limit="20" id="array('GT',13)" checked="1" order="newstime desc">
</cmsinfo>
</literal>
<form class="form-horizontal" method="post" action="__SELF__" onsubmit="return save_form2(this)">
<div class="control-group" style="font-size:14px; text-align: center; height: 40px; line-height: 40px;">标签规则</div>
<div class="control-group">
<div style="font-size:14px; margin-top:20px; margin-bottom:10px; margin-left: 2%;">
&lt;cmsinfo <b>sql</b>=&quot;&quot; <b>table</b>=&quot;cms_news&quot; <b>catid</b>=&quot;1,2,3&quot; <b>checked</b>=&quot;1&quot; <b>limit</b>=&quot;20&quot; <b>order</b>=&quot;newstime desc&quot; <b>附加字段</b>=&quot;附加字段值&quot;&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&lt;a href=&quot;<literal>{$v.titleurl}</literal>&quot;&gt;<literal>{$v.title}</literal>&lt;/a&gt;<br>
&lt;/cmsinfo&gt;
</div>
</div>
<div class="control-group" style="font-size:14px; text-align: center; height: 40px; line-height: 40px;">参数说明 [代表不是必填参数]</div>
<div class="control-group">
<label class="control-label">sql</label>
<div class="controls" style="margin-top:4px;">
支持sql语句如果写了sql语句后面所有参数都不起作用了(表名请使用大写前后分别加两个下划线,如:__CMS_NEWS__ 不需要加前缀)
</div>
</div>
<div class="control-group">
<label class="control-label">*table</label>
<div class="controls" style="margin-top:4px;">
表名(不需要加前缀) <i>【注意如果不使用sql方式table和catid必须要定义一个否则无法定位到数据表】</i>
</div>
</div>
<div class="control-group">
<label class="control-label">*catid</label>
<div class="controls" style="margin-top:4px;">
分类ID(多个分类之间用","号隔开) <i>【注意如果不使用sql方式table和catid必须要定义一个否则无法定位到数据表】</i>
</div>
</div>
<div class="control-group">
<label class="control-label">checked</label>
<div class="controls" style="margin-top:4px;">
信息是否审核(1:审核通过 0:审核未通过) <i>【注意:非必要条件的话建议只查询审核通过的信息】</i>
</div>
</div>
<div class="control-group">
<label class="control-label">limit</label>
<div class="controls" style="margin-top:4px;">
条数限制(可以指定起始数如5,10) <i>【注意:条数虽然不是必填参数,但为了节省服务器资源起见,最好带上条数限制】</i>
</div>
</div>
<div class="control-group">
<label class="control-label">order</label>
<div class="controls" style="margin-top:4px;">
排序(如id desc)
</div>
</div>
<div class="control-group">
<label class="control-label">附加字段</label>
<div class="controls" style="margin-top:4px;">
可以增加自定义字段,(如 sex="女"),支持表达式查询如ID大于10的id="array('GT',10)",<a href="http://document.thinkphp.cn/manual_3_2/express_query.html" target="_blank" style="color:blue;">更多语法</a>
</div>
</div>
<div class="control-group">
<label class="control-label">其它功能</label>
<div class="controls" style="margin-top:4px;">
[field]带有中括号的字段为动态判断字段如area="$_GET[area]",这里的字段值是一个$_GET变量当$_GET[area]为空的时候程序会查询该字段为空的记录,但往往当值为空的时候表示我们不查询该字段,所以当用[area]="$_GET[area]"的时候,系统会判断$_GET[area]是否为有效值当为空或者为0的时候则不查询
</div>
</div>
<div class="control-group" style="font-size:14px; text-align: center; height: 40px; line-height: 40px;">循环体说明</div>
<div class="control-group">
<label class="control-label"><literal>{$v.}</literal></label>
<div class="controls" style="margin-top:4px;">
所有字段的数组(需配字段名来调用如栏目ID<literal>{$v.catid}也可使用:{$v[catid]}</literal>数组方式。),支持函数,如时间:<literal>{$v.newstime|date="Y年m月d日",###}或 {:date("Y-m-d",$v[newstime])}</literal>
</div>
</div>
<div class="control-group">
<label class="control-label"><literal>{$v.titleurl}</literal></label>
<div class="controls" style="margin-top:4px;">
信息链接(根据栏目路径规则自动计算)
</div>
</div>
<div class="control-group">
<label class="control-label"><literal>{$no}</literal></label>
<div class="controls" style="margin-top:4px;">
序号(从1开始)
</div>
</div>
<div class="control-group">
<label class="control-label"><literal>{$cat.}</literal></label>
<div class="controls" style="margin-top:4px;">
信息对应栏目的数组信息(如栏目名称:<literal>{$cat.name},也可使用:{$cat[name]}</literal>)
</div>
</div>
<div id="submitted"></div>
</form>
</div>
</div>
<include file="Inc/foot"/>