linhuiming
因上努力,果上随缘

8.1 应用举例 全站搜索模板

  • LinHuiMing

8.1 应用举例 全站搜索模板

<div class="weizhi">您当前的位置:系统搜索到约有<strong>[!--num--]</strong>项符合<strong>[!--keyboard--]</strong>的查询结果</div><div class="news_search">  <h2>搜索结果</h2>  <ul class="search_news">    [!--empirenews.listtemp--]    <li>[!--no.num--]. <a href="[!--titleurl--]" target="_blank">      <h2>[!--title--]</h2>      </a>      <p class="search_text">[!--smalltext--]</p>      <p class="search_info"><span>[!--titleurl--] - [!--newstime--]</span></p>    </li>    [!--empirenews.listtemp--]  </ul>  <div class="epages">[!--listpage--]</div></div>

帝国cms默认模板

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>搜索 - Powered by EmpireCMS</title><link href="[!--news.url--]skin/default/css/style.css" rel="stylesheet" type="text/css" /><script type="text/javascript" src="[!--news.url--]skin/default/js/tabs.js"></script><style type="text/css"><!--.r { display: inline; font-weight: normal; margin: 0; font-size: 16px; margin-top: 10px; }.a { color: green }.fl { color: #77c }--></style></head><body class="listpage">[!--temp.dtheader--]<table width="100%" border="0" cellspacing="10" cellpadding="0">  <tr valign="top">    <td class="list_content"><table width="100%" border="0" cellspacing="0" cellpadding="0" class="position">        <tr>          <td>现在的位置:<a href="[!--news.url--]">首页</a>&nbsp;>&nbsp;搜索</td>        </tr>      </table>      <table width="100%" border="0" cellspacing="0" cellpadding="0" class="box">        <tr>          <td><form action='index.php' method="GET" name="search_news" id="search_news">              <table width="100%" border="0" cellspacing="6" cellpadding="0">                <tr>                  <td height="32">关键字:                    <input name="keyboard" type="text" id="keyboard" value="[!--keyboard--]" size="42" />                    <select name="field" id="field">                      <option value="1">全文</option>                      <option value="2">标题</option>                      <option value="3">内容</option>                    </select>                    <input type="submit" name="Submit22" value="搜索" />                    <font color="#666666">(多个关键字请用&quot;空格&quot;隔开)</font></td>                </tr>              </table>            </form>            <table width="100%" border="0" cellpadding="0" cellspacing="6">              <tr>                <td>系统搜索到约有<strong>[!--num--]</strong>项符合<strong>[!--keyboard--]</strong>的查询结果</td>              </tr>            </table>            [!--empirenews.listtemp--]            <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></td>                </tr>                <tr>                  <td>&nbsp;</td>                </tr>              </tbody>            </table>            [!--empirenews.listtemp--]            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="list_page">              <tr>                <td>[!--listpage--]</td>              </tr>            </table></td>        </tr>      </table></td>  </tr></table>[!--temp.footer--]</body></html>
  • YES
  • NO
更多>>

相关文章