1 <yang:sitename />-<yang:sitetitle />
2 {$title}-<yang:sitetitle />
3 <?php $a=M('tag')->where(['name'=>'style'])->select();foreach($a as $key=>$val){if($val==$list['sytle']){echo($key+1);}?>
4
5 <?php foreach($a as $key=>$val){if($val['tag_name']==$list['sytle']){echo($key+2);} echo($list['sytle']); }?>
6 <?php foreach($a as $key=>$val){if($val['tag_name']==$b){$he=$key+2;if($he<10){echo('0'.strval($he));}else {echo $he;}} }?>
7
8
9 $newhe['imgadd']=$data['imgadd'];
10 M('category')->where(['id'=>$id])->save($newhe);
11
12
13
14 <yang:list typeid='$cid'>
15 {$list.litpic}{$list.short_title}
16 <div class="sjtdnyba pr">
17 <div class="sjtdnybab" style="background: url({$list.litpic}) center center no-repeat;"></div>
18 <a href="{$list.url}">
19 <div class="sjtdnybaa">
20 <div class="sjtdnybaaa">
21 <div>{$list.title}</div>
22 <div class="sjtdnybaaadbj pr"><span>{$list.short_title}</span>
23 <div></div>
24 </div>
25 </div>
26 </div>
27 </a>
28 </div>
29 </yang:list>
30
31 {:U('reply',array('id' => $v['id']), '')}
32
33
34 area 面积 style 风格 type户型
35 <include file="Public:head" />
36
37 <include file="Public:Nheader" />
38
39 <include file="Public:Nfooter" /
40 <include file="Public:foot" />
41 <include file="Public:act" />
42 <include file="public:left_about" />
43
44 __PUBLIC__/
45
46 php 实例化 预定义字符 htmlspecialchars_decode
47 1.htmlentities()函数
48 将<script>转换成"<script>"
49
50 2.html_entity_decode()函数
51 将<script> 转换成<script>
52
53
54 <yang:siteurl />
55
56 <p class="fr">当前位置: </p>
57
58 {$cate.content} 单页内容
59 <yang:field name='content' typeid='$cid' />
60 <yang:field name='name' typeid='' />
61
62 <?php echo gmdate('d M Y',strtotime($list['publish_time']));?>
63 <?php echo substr($list['publish_time'],0,10);?>
64
65 判断是否有子栏目
66 <?php $he=sizeof($catlist['child']);?>
67 <if condition="$he gt 0" >
68
69 <yang:catlist typeid='0' flag='1' hideflag='0'>
70 顶级栏目:<a href="{$catlist.url}">{$catlist.name}</a>
71 <if condition="($cate['pid'] eq $catlist['id']) OR ($cid eq $catlist['id']) OR ($cate['id'] eq $navlist['id']">
72
73
74 <!--二级栏目开始 -->
75 <?php $isnav2=sizeof($catlist["child"]);?>
76 <if condition="$isnav2 neq 0">
77 <volist name='catlist["child"]' id='v'>
78
79
80
81 二级栏目:<a href="{$v|get_url}">{$v.name}</a>
82
83 <!-- 三级栏目开始 -->
84 <volist name='v["child"]' id='v2'>
85 三级栏目:<a href="{$v2|get_url}">{$v2.name}</a>
86 </volist>
87 <!-- 三级栏目结束 -->
88
89 </volist>
90 <!--二级栏目结束 -->
91 </yang:catlist>
92
93 判断首页
94 <if condition="$cid OR $cate['id']"> <else /> class="ahover" </if>
95
96 判断主导航
97 <if condition="($cate['pid'] eq $navlist['id']) OR ($cid eq $navlist['id']) OR ($cate['id'] eq $navlist['id']">
98
99 判断分类2级目录
100 <if condition="($cate['id'] eq $navlist['id']) OR ($cid eq $navlist['id']) OR ($content['cid'] eq $navlist['id'])">
101
102
103 <?php //当前的主栏目id
104 //dump($cate['pid']); dump($cid);
105 if($cate['pid']!='0'){
106 $heid=$cate['pid'];
107 }else{
108 $heid=$cid;
109 }
110 ?>
111
112
113 <yang:sitename />
114 电话:<yang:phone />
115 传真:<yang:cfg name='CFG_CHUANZHEN' />
116 手机:<yang:cfg name='CFG_TEL1' />
117 邮箱:<yang:cfg name='CFG_EMAIL' />
118 传真:<yang:cfg name='CFG_FAX' />
119 网站地址:<yang:siteurl /></div>
120 联系人:<yang:cfg name='CFG_CONTACT' />
121
122
123
124 <yang:navlist typeid='0' hideflag='0'>
125 <li><a href="{$navlist.url}">{$navlist.name}</a></li>
126 </yang:navlist>
127
128 <yang:list typeid='0' pagesize='12' >
129 <li><a href="{$list.url}">{$list.name}</a></li>
130 </yang:list>
131
132 搜索文章
133
134 $list1=M('article')->where("title LIKE '%".$keyword."%'")->select();
135 $list2=M('product')->where("title LIKE '%".$keyword."%'")->select();
136 $this->assign('list1', $list1);
137 $this->assign('list2', $list2);
138
139
140 <?php foreach($list1 as $key =>$val){?>
141 <li> <a href="/index.php?s=/Show/index/cid/<?php echo $val['cid'];?>/id/<?php echo $val['id'];?>.html" title="<?php echo $val['title']?>" class="pg-color"><?php echo $val['title']?></a> <span><?php echo$val['publish_time'];?></span> </li>
142 <?php }?>
143
144
145 <yang:sitename /> 网站名称
146 <yang:sitetitle /> 网站标题
147 <yang:siteurl /> 网站地址
148 <yang:sitekeywords /> 网站关键字
149 <yang:sitedescription /> 网站描述
150 <yang:beian />网站备案号
151 <yang:address /> 联系地址
152 <yang:phone /> 联系电话
153 <yang:copyright /> 网站版权
154 <yang:searchurl /> 搜索中心网址(可提交查询)
155 <yang:gbookurl /> 留言本网址
156 <yang:gbookaddurl /> 留言提交网址
157 <yang:vcodeurl /> 验证码图片地址
158 <yang:online /> 在线客服
159 <yang:stats /> 站点统计
160
161 <yang:cfg name='名称标识' /> 通用配置标签[v3.5新增]+
162
163
164 <yang:list typeid='$cid' titlelen='30' limit='15'>
165 <img src="{$list.litpic}" caption="荣誉证书" title="{$list.title}">
166 </yang:list>
167
168 友情链接 友情连接
169 <div>友情链接: <yang:flink type='' orderby='' limit='' pagesize=''>
170 <a href="{$flink.url}">{$flink.name}</a>
171 </yang:flink> </div>
172
173
174
175 返回上一页<a href="javascript:history.go(-1)">
176
177
178 留言提交
179 <form action="<yang:gbookaddurl />" method="post" onSubmit="return checksub()">
180
181
182 <if condition="C('CFG_VERIFY_GUESTBOOK') eq 1">
183
184 验证码: <input style="width: 80px" name="vcode" type="text">
185 <span style="background:#FFFFFF; padding:3px;cursor:pointer" title="请点击刷新验证码">
186 <img src="<yang:vcodeurl />" alt="看不清验证码?点击刷新!" onClick="this.src='/index.php?s=/Public/verify.html'+ '#'+Math.random()" />
187 </span>
188 </if>
189
190
191 <if condition="C('CFG_VERIFY_GUESTBOOK') eq 1">
192 验证码:<input style="width: 80px" name="vcode" type="text">
193 <span style="background:#FFFFFF; padding:3px;cursor:pointer" title="请点击刷新验证码">
194 <img src="<yang:vcodeurl />" alt="看不清验证码?点击刷新!" onClick="this.src='/index.php?s=/Public/verify.html'+ '#'+Math.random()" />
195 </span>
196
197 </if>
198
199
200 <!-- 验证码XiaoheQQ496631085 -->
201 <!-- <script type="text/javascript">
202 function changeVcode(obj){
203 $("#VCode").attr("src",'<yang:vcodeurl />'+ '#'+Math.random());
204 return false;
205 }
206 </script> -->