## 頭部模板
### 1.網站信息website
**說明**
*網站信息對象 website*
**主要字段**
| 字段 | 類型 | 描述 |
| --- | --- | --- |
| name | string | 網站名 |
| logoImgs | string | 首頁LOGO |
| id | Long | 網站id |
| copyrightContent | String | 網站版權內容 |
**演示**
~~~
<!--頭部標題-->
<title>${(website.name)!}</title>
<!--LOGO-->
<img src="<#if website.logoImgs?? && website.logoImgs!="">${contextPath}${(website.logoImgs)}<#else>${contextPath}/res/cnlxex/images/logo.jpg</#if>" width="317" height="71" />
<!--首頁鏈接-->
<a href="${contextPath}/www/index.do?id=${(website.id)!}">學校首頁</a>
<!--底部-->
<#noescape>${(website.copyrightContent)!'版權所有:<a href="http://www.thanone.com/"
target="_blank">溫州掌網信息技術有限公司</a>'}</#noescape>
~~~
### 2.主菜單menuCatalogList
**說明**
*網站信息對象 menuCatalogList,該對象為List類型,存放了Catalog對象,用來循環遍歷主菜單欄目*
**Catalog主要字段**
| 參數 | 類型 | 描述 |
| --- | --- | --- |
| id | Long | 欄目id |
| name | String | 欄目名字 |
| show\_urls | String | 欄目鏈接 |
| show\_children | List<> | 二級欄目 |
**演示**
~~~
<#if menuCatalogList?? && menuCatalogList != "">
<#list menuCatalogList as m>
<li><a href="javascript:" <#if m_index==0>class="nav-li nav-vv"
<#else>class="nav-li"</#if>>${(m.name)!}</a>
<ul>
<#if m.show_children?? && m.show_children!=''>
<#list m.show_children as c>
<li><a href="${(c.show_urls)!}">${(c.name)!}</a></li>
</#list>
</#if>
</ul>
</li>
</#list>
</#if>
~~~
### 3.頭部搜索
**說明**
*頭部公共搜索功能,接口為 ${contextPath}/www/search.do,如果使用 form表單提交,name屬性必須與參數名一致*
**參數**
| 參數 | 類型 | 描述 |
| --- | --- | --- |
| searchKey | string | 關鍵字 |
| siteId | Long | 網站id,用${[website.id](http://website.id/)} |
**地址**
*${contextPath}/www/search.do*
**演示**
~~~
<form id="frm_search" name="frm_search" method="post" action="${contextPath}/www/search.do">
<input type="text" placeholder="請輸入關鍵詞" value="${(searchKey)!}" name="searchKey" />
<input type="submit" name="btn_search_submit class="btn" value="搜索" />
<input type="hidden" name="siteId" value="${(website.id)!}"/>
</form>
~~~