廊坊SEO-解决各种网站问题,中小企业线上帮手
网站优化专家

网站首页 建站知识 正文

帝国CMS搜索页面的标签,仿站专用

2021-11-18 建站知识 442 ℃ 0 评论


*********************************************************************

帝国官方搜索表单解密:
http://www.phome.net/doc/manual/template/html/searchform.html

其它列表页内容页搜索功能的表单实现:

<form name="searchform" method="post" action="/e/search/index.php">
<input type="hidden" name="show" value="title,newstext">
<input name="keyboard" type="text">
<input type="submit" name="submit" value="搜索">
</form>

******************************************************************

以下才是为后台搜索页模板调用的标签:

搜索表单调用:
<form action='../../search/index.php' method="post" name="search_news" id="search_news">
       <input type="hidden" name="show" value="title,newstext" />
       <input name="keyboard" type="text" id="keyboard" value="[!--keyboard--]" size="42" />
       <input type="submit" name="Submit22" value="搜索" />
</form>



网页三大标签标题:
[!--keyboard--]  搜索结果

系统搜索到约有:  [!--ecms.num--]  项符合  [!--keyboard--]  的查询结果


调用标签:
      

上面循环调用标签: [!--empirenews.listtemp--] <!--list.var1--> [!--empirenews.listtemp--]

1. 条数序号:   [!--no.num--]
2. 标题链接:   [!--titleurl--]
3. 标题:          [!--title--]
4. 内容简介:   [!--smalltext--]
5. 本文地址:   [!--titleurl--]
6. 发布时间:   [!--newstime--]
7. 栏目链接:   [!--this.classlink--]
8. 栏目名称:   [!--this.classname--] 


第二个框的循环体调用标签实例:

<h2 class="r"><span> [!--no.num--].</span> <a class="l" href=" [!--titleurl--] " target="_blank"> [!--title--] </a></h2>
<table width="80%" border="0" cellpadding="0" cellspacing="0">
    <tbody>
        <tr>
            <td> [!--smalltext--] </td>
        </tr>
        <tr>
            <td><span class="a"> [!--titleurl--]  -  [!--newstime--] </span> - <a class="fl" href="  [!--this.classlink--]  " target="_blank"> 
[!--this.classname--]  </a></td>
        </tr>
        <tr>
            <td>&nbsp;</td>
        </tr>
    </tbody>
</table>


分页标签:[!--show.page--]

*****************************************************************************************



单页或搜索页 (关于我们,联系我们 )定死显示哪个栏目

当前一级栏目的名称:<?=$class_r[7]['classname']?>

灵动标签-取当前栏目下的二级栏目:
        
    [e:loop={"select * from phome_enewsclass where bclassid  in (7) order by classid asc",0,24,0}]
       <li class="hover"><a href="/<?=$bqr[classpath]?>/"><?=$bqr[classname]?></a></li>
    [/e:loop]    

标签:

本文暂时没有评论,来添加一个吧(●'◡'●)

欢迎 发表评论:

搜索
网站分类
文章归档
标签列表