织梦DedeCms技术资料
生活随笔
收集整理的這篇文章主要介紹了
织梦DedeCms技术资料
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
Dedecms調用文章發布時間的方法
11-20 樣式 ([field:pubdate function='strftime("%m-%d",@me)'/]) May 15, 2009 樣式 ([field:pubdate function='strftime("%b %d, %Y",@me)'/]) 2009-12-27 18:30:02 樣式 [field:pubdate function="GetDateTimeMK(@me)"/] 2009-12-27 樣式 [field:pubdate function="GetDateMK(@me)"/] 2009-12-27 樣式 {dede:field function='GetDateMk(@me)'/} May 15, 2009 樣式 {dede:field function='strftime("%b %d, %Y",@me)'/} 24小時內的時間顯示紅色 [field:pubdate runphp='yes'] $a="<font color='#ff0000'>"; $b="</font>"; $c=strftime("%Y年%m月%d日 %H:%M:%S","@me"); $ntime = time(); $oneday = 3600 * 24; if(($ntime - @me)<$oneday) @me = $a.$c.$b; else @me =$c;[/field:pubdate] ps:color='#ff0000'這里顏色可以按需更改 最后更新時間 {dede:tagname runphp='yes'}@me = date("Y-m-d H:i:s", time());{/dede:tagname} XX天前 [field:pubdate runphp='yes'] $today = Floor(time()/(3600 * 24)); $senday= Floor(@me/(3600 * 24)); $updays = $today-$senday; if($updays==0) @me = "今日"; else @me = $updays."天前"; [/field:pubdate] View CodededeCMS子欄目調用獲得頂級欄目的ID號
dede調用頂級欄目ID 方法一: {dede:field.typeid function="GetTopid(@me)"/} 織夢者首推這一方法,經過測試是可行的dede調用頂級欄目ID 方法二: 首先,在所需要調用頂級欄目ID的地方,添加這段標簽語法 {dede:type}[feild:topid/]{/dede:type} 第二,修改源文件,找到include目錄下的taglib目錄下的type.lib.php。 找到這條語句 $row = $dsql->GetOne(“Select id,typename,typedir,isdefault,ispart,defaultname,namerule2,moresite,siteurl,sitepath From `dede_arctype` where id=’$typeid’ “); 修改成為 $row = $dsql->GetOne(“Select id,topid,typename,typedir,isdefault,ispart,defaultname,namerule2,moresite,siteurl,sitepath From `dede_arctype` where id=’$typeid’ “); 在if(!is_array($row)) return ”;下一行添加 if( $row['topid']==0){$row['topid']=$row['id'];} 這樣,這條語句在頂級欄目還是子欄目,都可以調用了 天天都是在跟織夢dedecms相關的打交道,今天也不例外。在做一個網站,是用織夢模板仿站,需要調用到頂級欄目的ID號,但是如何調用呢,搜索網上的模板標簽語法,沒有找到能用的,看來只能自己來修改了。DEDE模板調用PHP語句,這一般來說不是我習慣用的辦法,那怎么辦呢?修改源文件吧。如何修改?看下面的方法!首先,在所需要調用頂級欄目ID的地方,添加這段標簽語法{dede:type}[feild:topid/]{/dede:type}第二,修改源文件,找到include目錄下的taglib目錄下的type.lib.php。 找到這條語句$row = $dsql->GetOne(“Select id,typename,typedir,isdefault,ispart,defaultname,namerule2,moresite,siteurl,sitepathFrom `dede_arctype` where id=’$typeid’ “);修改成為$row = $dsql->GetOne(“Select id,topid,typename,typedir,isdefault,ispart,defaultname,namerule2,moresite,siteurl,sitepathFrom `dede_arctype` where id=’$typeid’ “);在if(!is_array($row)) return ”;下一行添加if( $row['topid']==0){$row['topid']=$row['id'];}這樣,這條語句在頂級欄目還是子欄目,都可以調用了,大家可以試試哦。 View Codededecms的arclist循環中判斷第一個li添加css,否則不加
dedecms的arclist循環中,判斷如果是第一個li,則添加固定的css,否則不加寫法如下: {dede:arclist row=4 flag='p'} <li [field:global name=autoindex runphp="yes"](@me==1)? @me="class=on":@me="";[/field:global]>[field:global.autoindex/]</li> {/dede:arclist} [field:global name=autoindex runphp="yes"](@me==1)? @me="class=on":@me="";[/field:global]這句話的意思就是,如果循環出的是第一個,則添加class=on,否則為空。 View Codededecms調用文章列表第一篇和下面幾篇不同的方法
這個文章的標題本來是我用來在百度直接搜索想解決的,結果搜來搜去沒找到答案,累個半死。可能是我語言組織能力太弱以至于百度根本不知道我在說什么吧。 后來靈機一動去下載了一個有類似效果的dedecms模板來解剖下,找出了解決辦法,分享一下,也以免自己忘記。 首先上一張圖,本文要實現的就是這個效果:這個文章列表第一篇文章是左圖右文,下面全部是單獨的文字沒有圖片。這個東西在zblogphp下還蠻好實現的,用if和else就行了。但是dedecms悲劇的不知道怎么用... 解剖了下載的那個主題之后發現dedecms的解決辦法真是簡單粗暴啊... {dede:arclist row=1 orderby=pubdate infolen=60 limit=0,1} <li class="dot1"><img src="[field:litpic/]" class="img100" /><h3><a href="[field:arcurl/]">[field:title/]</a></h3><p>[field:info/]</p></li> {/dede:arclist} {dede:arclist row=1 orderby=pubdate infolen=60 limit=1,9} <li><a href="[field:arcurl/]">[field:title/]</a></li> {/dede:arclist} 重點就是這個 “limit=0,1”,代表調用這個列表的0至1篇文章, “limit=1,9”當然就是說調用的這個列表的第1篇至第9篇文章了,配合“row=1”的數量定義使用就行了。 重新接觸起dedecms真的是感覺什么都不順手啊,zblog用慣了,略坑 View Codededecms調用指定id文章的方法
dedecms調用 使用idlist直接調用指定的ID這樣的方法,也是比較好的。 官方給與的說明是:idlist =” 提取特定文檔(文檔ID)。這個很不錯,也比較簡單和實用。 網絡給與的dedecms調用指定id文章的方法: 指定id文章的方法 來源:http://20tc.com/dedecms-arclist-id.html 事例如下:{dede:arclist idlist='12,112,139,140' limit='0,4'}[field:title/]{/dede:arclist} View Codededecms獲取當前所在欄目ID的方法
采用dedecms獲取當前所在欄目ID的方法如下: 1.模板中調用欄目ID采用如下方法:代碼如下: {dede:type}[field:ID /]{/dede:type} 2.如果是在{dede:sql}里面調用當前欄目ID的話,調用方法如下:代碼如下: {dede:sql sql='Select * from dede_arctype where id = ~typeid~ '} [field:字段] {/dede:sql} View Codededecms文章列表arclist標簽大全
標記簡介:織夢常用標記,也稱為自由列表標記,其中imglist、imginfolist、specart、coolart、autolist都是由該標記所定義的不同屬性延伸出來的別名標記。 功能說明:獲取指定文檔列表 適用范圍:全局使用 基本語法: {dede:arclist flag='h' typeid='' row='' col='' titlelen='' infolen='' imgwidth='' imgheight='' listtype='' orderby='' keyword='' limit='0,1'} <a href='[field:arcurl/]'>[field:title/]</a> {/dede:arclist}typeid='' 欄目ID,在列表模板和檔案模板中一般不需要指定,在首頁模板中允許用","分開表示多個欄目; orderby='sortrank' 文檔排序方式 § orderby='hot' 或 orderby='click' 表示按點擊數排列 § orderby='sortrank' 或 orderby='pubdate' 按出版時間排列 § orderby='near' § orderby=='lastpost' 按最后評論時間 § orderby=='scores' 按得分排序 § orderby='id' 按文章ID排序 § orderby='rand' 隨機獲得指定條件的文檔列表 idlist ='' 提取特定文檔(文檔ID) 調用指定id文檔 例子idlist ='4,45,78,237' limit='起始ID,記錄數' (起始ID從0開始)表示限定的記錄范圍(如:limit='1,2' 表示從ID為1的記錄開始,取2條記錄) keyword='' 含有指定關鍵字的文檔列表,多個關鍵字用","分 orderway='desc' 值為 desc 或 asc ,指定排序方式是降序還是順向排序,默認為降序 使用實例{dede:arclist flag="c" channelid='' row='10' titlelen='60' orderby=''} <li><a href='[field:arcurl /]' title="[field:fulltitle /]">[field:title /]</a></li> {/dede:arclist} row='10' 調用10條, titlelen='60'標題長度為30漢字 flag="c" 推薦文章 orderby='' 默認為按發布時間排序 flag = 'c' 自定義屬性值:頭條[h] 推薦[c] 圖片[p] 幻燈[f] 滾動[s] 跳轉[j] 圖文[a] 加粗 調用最新文章按發布時間排序 {dede:arclist channelid='' row='10' titlelen='60'} <li><a href='[field:arcurl /]' title="[field:fulltitle /]">[field:title /]</a></li> {/dede:arclist} row='10' 調用10條, titlelen='60'標題長度為30漢字 按ID排序降序排列,從大到小 {dede:arclist channelid='' row='10' titlelen='60' orderby='id' } <li><a href='[field:arcurl /]' title="[field:fulltitle /]">[field:title /]</a></li> {/dede:arclist} row='10' 調用10條, titlelen='60'標題長度為30漢字 orderby='id' 按ID,降序排列按ID排序順序排列,從小到大 {dede:arclist channelid='' row='10' titlelen='60' orderby='id' orderway='asc' } <li><a href='[field:arcurl /]' title="[field:fulltitle /]">[field:title /]</a></li> {/dede:arclist} row='10' 調用10條, titlelen='60'標題長度為30漢字 orderby='id' 按ID,orderway='desc' 值為 desc 或 asc ,指定排序方式是降序還是順向排序,默認為降序調用含有縮圖的文檔 {dede:arclist flag="p" row='10' titlelen='60'} <li><a href="[field:arcurl /]"><img src="[field:litpic/]" border="0" alt="[field:fulltitle /]"></a> <span><a href="[field:arcurl /]" title="[field:fulltitle /]">[field:title /]</a></span> </li> {/dede:arclist} flag = 'p' 自定義屬性值:頭條[h] 推薦[c] 圖片[p] 幻燈[f] 滾動[s] 跳轉[j] 圖文[a] 加粗日期的各種格式 08 [field:pubdate function=strftime('%d',@me)/] 08 日 [field:pubdate function=strftime('%d日',@me)/] 06-08 [field:pubdate function=strftime('%m-%d',@me)/] 06月08日 [field:pubdate function=strftime('%m月%d日',@me)/] 09-06-08 [field:pubdate function=strftime('%y-%m-%d',@me)/] 2009-06-08 [field:pubdate function=strftime('%Y-%m-%d',@me)/] 09年06月08日 [field:pubdate function=strftime('%y年%m月%d日',@me)/] 2009年06月08日 [field:pubdate function=strftime('%Y年%m月%d日',@me)/] 2009-06-08 13:28 [field:pubdate function=strftime('%Y-%m-%d %H:%M',@me)/]底層字段 [field:id /] 文章的ID,對應dede_archives 的ID字段 [field:typeid /] 文章所在欄目的ID * [field:title/] 文章標題(控制條件包括titlelen=''字節數,后臺發布文檔時所選的標題顏色,加粗) * [field:fulltitle/] 文章標題(標題完整,無樣式) * [field:click /] 點擊數 [field:shorttitle /] 短標題 * [field:writer /] 作者 * [field:source /] 來源 * [field:litpic /] 縮圖地址 與 [field:picname /]相同 [field:picname /] 縮圖地址 與[field:litpic /]相同 * [field:pubdate /] 發布日期 08 [field:pubdate function=strftime('%d',@me)/] 08 日 [field:pubdate function=strftime('%d日',@me)/] 06-08 [field:pubdate function=strftime('%m-%d',@me)/] 06月08日 [field:pubdate function=strftime('%m月%d日',@me)/] 09-06-08 [field:pubdate function=strftime('%y-%m-%d',@me)/] 2009-06-08 [field:pubdate function=strftime('%Y-%m-%d',@me)/] 09年06月08日 [field:pubdate function=strftime('%y年%m月%d日',@me)/] 2009年06月08日 [field:pubdate function=strftime('%Y年%m月%d日',@me)/] 2009-06-08 13:28[field:pubdate function=strftime('%Y-%m-%d %H:%M',@me)/] [field:lastpost /] 最后評論時間 用法同 [field:pubdate /] [field:scores /] 評論得分 [field:goodpost /] 好評 [field:badpost/] 差評 * [field:description /] 簡介 等同于 [field:info /] ,[field:infos /] 字數控制 [field:description function="cn_substr(@me,120)"/] 60漢字 infolen='160' 表示內容簡介長度 等同于infolength(只控制infos,并不控制description的內容) * [field:info /] 簡介 等同于 [field:description /] ,[field:infos /] 字數控制 [field:info function="cn_substr(@me,120)"/] 60漢字 infolen='160' 表示內容簡介長度 等同于infolength(只控制infos,并不控制description的內容) * [field:infos /] 簡介 等同于 [field:info /] ,[field:description /] 字數控制 [field:infos function="cn_substr(@me,120)"/] 60漢字 infolen='160' 表示內容簡介長度 等同于infolength(只控制infos,并不控制description的內容) [field:filename /] 文章連接地址 等同于[field:arcurl /] * [field:arcurl /] 文章鏈接地址 等同于[field:filename /] * [field:textlink /] 文章標題+地址 等同于<a href='[field:arcurl /] '>[field:title/]</a> * [field:litpic /] 縮圖地址 等同于 [field:picname /] * [field:picname /] 縮圖地址 等同于 [field:litpic /] * [field:image /] 等同于 <img src='[field:litpic /]' border='0' width='imgwidth' height='imgheight' alt='[field:fulltitle /]'> imgwidth='120' 縮略圖寬度 imgheight='90' 縮略圖高度 * [field:imglink /] 等同于imglink = <a href=' [field:arcurl /]'>[field:image /]</a> * [field:typename /] 欄目標題 * [field:typeurl /] 欄目地址 * [field:typelink /] 等同于 <a href='[field:typeurl /]'>[field:typename /]</a> [field:plusurl /] pius文件夾地址 等同于 [field:global name=plusurl/] [field:memberurl /] 會員文件夾地址 等同于 [field:global name=memberurl/] [field:templeturl /] 模板文文件夾地址 等同于 [field:global name=templeturl /] * [field:global name=autoindex/] 最常用的底層標簽,生成順序數字1,2,3,4,5,6,7..... 可CSS控制可做成各種樣式效果,比如隔行換色, 列表前加入1-10數字序號,每隔幾行換行等等 于PHP搭配,可制作出各種效果,為DEDE最重要代碼之一相關函數: 文件\include\taglib\arclist.lib.php第7行 function lib_arclist(&$ctag,&$refObj) 參數說明: col='' 分多少列顯示(默認為單列),5.3版中本屬性可以通過多種方式進行多行顯示 如果col='1'要多列顯示的可用div+css實現 以下為通過div+css實現多列的示例: <style type=text/css> div{width:400px;float:left;} </style> {dede:arclist row='10' titlelen='24' orderby='pubdate' idlist='' col='2'} ?[field:textlink/]([field:pubdate function=MyDate('m-d',@me)/])<br/> {/dede:arclist} 當col>1將使用原來的table多列方式顯示 row='10' 返回文檔列表總數 typeid='' 欄目ID,在列表模板和檔案模板中一般不需要指定,在首頁模板中允許用","分開表示多個欄目; getall='1' 在沒有指定這屬性的情況下,在欄目頁、文章頁模板,不會獲取以","分開的多個欄目的下級子類 titlelen = '30' 標題長度 等同于titlelength infolen='160' 表示內容簡介長度 等同于infolength(只控制infos,并不控制description的內容) imgwidth='120' 縮略圖寬度 imgheight='90' 縮略圖高度 listtype='all' 欄目類型 image含有縮略圖 commend推薦 orderby='sortrank' 文檔排序方式 § orderby='hot' 或 orderby='click' 表示按點擊數排列 § orderby='sortrank' 或 orderby='pubdate' 按出版時間排列 § orderby='near' § orderby=='lastpost' 按最后評論時間 § orderby=='scores' 按得分排序 § orderby='id' 按文章ID排序 § orderby='rand' 隨機獲得指定條件的文檔列表 keyword='' 含有指定關鍵字的文檔列表,多個關鍵字用","分 innertext = '' 單條記錄樣式 aid='' 指定文檔ID idlist ='' 提取特定文檔(文檔ID) channelid 頻道ID limit='起始ID,記錄數' (起始ID從0開始)表示限定的記錄范圍(如:limit='1,2' 表示從ID為1的記錄開始,取2條記錄) flag = 'h' 自定義屬性值:頭條[h]推薦[c]圖片[p]幻燈[f]滾動[s]跳轉[j]圖文[a]加粗 noflag = '' 同flag,但這里是表示不包含這些屬性 orderway='desc' 值為 desc 或 asc ,指定排序方式是降序還是順向排序,默認為降序 subday='天數' 表示在多少天以內的文檔 用arclist調用于附加表字段的方法: 要獲取附加表內容,必須符合兩個條件 1、指定 channelid 屬性 2、指定要獲得的字段 addfields='字段1,字段' 如: {dede:arclist addfields='filetype,language,softtype' row='8' channelid='3'} [field:textlink /] - [field:softtype /]<br /> {/dede:arclist}底層模板字段: ID(同 id),typeid,sortrank,flag,ismake,channel,arcrank,click,money,title,shorttitle,color,writer, source,litpic(同picname),pubdate,senddate,mid, lastpost,scores,goodpost,badpost,notpost, description(同infos),filename, image, imglink, fulltitle, textlink, typelink,plusurl, memberurl, templeturl, stime(pubdate 的"0000-00-00"格式) 其中: textlink = <a href='arcurl'>title</a> typelink = <a href='typeurl'>typename</a> imglink = <a href='arcurl'><img src='picname' border='0' width='imgwidth' height='imgheight'></a> image = <img src='picname' border='0' width='imgwidth' height='imgheight' alt=’titile’> 字段調用方法:[field:varname/] 如: {dede:arclist infolen='100'} [field:textlink/] <br> [field:infos/] <br> {/dede:arclist} 注:底層模板里的Field實現也是織夢標記的一種形式,因此支持使用PHP語法,Function擴展等功能。 如: 給當天發布的內容加上 (new) 標志 [field:senddate runphp='yes'] $ntime = time(); $oneday = 3600 * 24; if(($ntime - @me)<$oneday) @me = "<font color='red'>(new)</font>"; else @me = ""; [/field:senddate] View Codedede首頁調用指定欄目的二級分類
{dede:channelartlist typeid='4'} <li><a href='{dede:field name='typeurl'/}'>{dede:field name='typename'/}</a></li> {/dede:channelartlist} 如果我們要調用指定欄目里的二級分類只需要指定一級欄目的ID 用以上方法調用即可,這樣的調用在做企業站時比較常用!typeid是指定的一級欄目的ID! View Code織夢5.7列表頁文章頁調用頂級欄目名和文章列表
打開arclist.lib.php 這個是arclist 文章調用標簽 在/include/taglib/下面 找到 $typeid = trim($ctag->GetAtt('typeid')); if(empty($typeid)) { $typeid = ( isset($refObj->Fields['typeid']) ? $refObj->Fields['typeid'] : $envs['typeid'] ); }在其后面加上if($typeid=='topid'){ $typeid = GetTopid(( isset($refObj->Fields['typeid']) ? $refObj->Fields['typeid'] : $envs['typeid'] )); } 2 在列表頁和文章頁模板 調用膽碼 {dede:arclist row=10 typeid='topid'} <li><a href="[field:arcurl/]">[field:title/]</a></li> {/dede:arclist} 3 頂級欄目掉用那就更簡單了直接在模板需要調用頂級欄目名稱的地方插入下面的代碼就可以了{dede:field.typeid runphp='yes'} $ID=GetTopid(@me); $sql ="SELECT * FROM `dede_arctype` WHERE id=$ID";、 $query = mysql_query($sql); $row=mysql_fetch_array($query); @me = $row['typename'];{/dede:field.typeid} View Code織夢dedecms文章頁面顯示同分類欄目下的其它文章
在文章頁面通過{dede:field.aid runphp=’yes’}{/dede:field.aid}調用該文章id找出文章所屬欄目,然后根據織夢CMS的一個方法找到文章頁的url、標題等其它信息,實現在文章頁面調用與該文章同一分類欄目的其它文章列表,以下代碼調用當前文章欄目中不包括當前文章的其它15篇文章:{dede:FIELD.aid runphp='yes'}$aid = @me;$sql = "select * from dede_archives where id =".$aid." limit 1";$query = mysql_query($sql);$row = mysql_fetch_array($query);$typeid = $row["typeid"];$sql = "SELECT * FROM dede_archives where id<>".$aid." and typeid =".$typeid." order by id desc limit 15";$query = mysql_query($sql);@me = "";while($row = mysql_fetch_array($query)){ $id = $row["id"]; $title = cn_substr($row["title"],80,0); $urlarray = GetOneArchive($id); $url = $urlarray['arcurl']; $time = strftime("%Y-%m-%d",$row["sortrank"]); @me.= '<li><a href="'.$url.'" title="'.$title.'" target="_blank">'.$title.'</a><span>'.$time.'</span></li>';}{/dede:FIELD.aid} 以上代碼調用的同欄目文章列表中不包含當前文章,如果需要包含當前文章,可以把代碼第七行中的id<>”.$aid.” and刪除掉 View Code織夢dedecms文章頁如何調用所屬分類
欄目ID:8 調用10條 標題長度: 20 顯示兩列{dede:arclist row="10" typeid="8" titlelen="20" orderby="click" col="2"} <li><a href="[field:typeurl/]" title="[field:fulltitle/]" >[[field:typename/]]</a><a href="[field:arcurl /]">[field:title /]</a></li> {/dede:arclist} View Code織夢列表頁調用第1篇文章和其余的文章采用不同的樣式
{dede:list pagesize='10'}[field:global runphp='yes' name=autoindex] if (@me==1) @me="<div>[field:litpic/]</div>[field:title/][field:description/]..."; else @me="[field:title/][field:description/]..."; [/field:global] {/dede:list} View Code織夢友情鏈接模塊樣式的代碼修改
最近在接到一個新的網站時遇到了一些問題,該網站要的是把友情鏈接的模塊進行修改一下,我們所用的是織夢的一個模版,這個問題也是大多數的同學遇到的問題就是修改模板底層樣式,比如flink友情鏈接模塊,下面是易企商道(www.eeee.com.cn )小編在修改時遇到的問題極其修改方法。 圖片: {dede:flink row=’24′ type=’image’ titlelen=”24″ typeid=”0″} 底層標簽 [field:link / {/dede:flink} 文字: {dede:flink row=’24′ type=’text’ titlelen=”24″ typeid=”0″} 底層標簽 [field:link /] {/dede:flink} row=’24′ 表示讀取24個,如果row不設置,則默認為24, titlelen=”24″ 表示友情鏈接為文字形式,網站名稱取24字符寬度,網站編碼GBK則12個漢字,網站編碼為UTF-8則為8個漢字. typeid=”0″ 1 綜合網站 2 娛樂類 3 教育類 4 計算機類 5 電子商務 6 網上信息 7 論壇類 8 其它類型如果typeid=”0″或者不填,則讀取全部類型, type=’image’ type=’text’ dede友情鏈接標簽知識 仿站的時候織夢CMS默認友情鏈接標簽{dede:flink row='24'}在默認情況下底層模板會生成<li></li>樣式呢?如何去掉這個默認樣式呢?首頁模板中沒有發現啊?其實這個底層模板是在flink.lib.php 文件中寫入的。 打開/include/taglib/flink.lib.php 文件找到: if(trim($ctag->GetInnerText())=='') $innertext = "<li>[field:link /]</li>"; 將<li></li>去掉即可。 還有一個更簡單的方法,就是直接使用str_replace函數在標簽中進行替換即可。 代碼為: {dede:flink row='24' function="(str_replace(array('<li>','</li>'),'',@me))"/} 只是大家要注意array這個是一個數組而已。同理,這方法可以適用于很多地方。也是php中一個比較重要的函數。所以大家在運用的時候一定要注意一下這類的問題。 View Codeheightsearch.htm
<!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=<?php echo $cfg_soft_lang; ?>" /> <title><?php echo $cfg_webname;?>_高級搜索</title> <link href="<?php echo $cfg_templets_skin; ?>/style/dedecms.css" rel="stylesheet" type="text/css" media="screen" /> </head> <body class="flinkpage"><form name="form1" action="search.php" method="get"><!--<form name="form1" action="heightsearch.php" method="get">--><input name="orderby" type="hidden" value="pubdate" id="orderby"checked><input name="kwtype" type="hidden" value="1" checked><input name="searchtype" type="hidden" value="title" id="searchtype"><?php$tl = new TypeLink(0);$typeOptions = $tl->GetOptionArray(0,0,0);echo "<select name='typeid' style='width:200'>\r\n";echo "<option value='0' selected>選擇行業分類</option>\r\n";echo $typeOptions;echo "</select>";?><select name="channeltype" id="channeltype" ><option value="0">選擇應用分類</option><?php$dsql->SetQuery("Select id,typename From #@__channeltype order by id desc");$dsql->Execute();while($row = $dsql->GetObject()){echo "<option value='".$row->id."'>".$row->typename."</option>\r\n";}?></select><select name="pagesize" id="pagesize" ><option value="20">每頁20條</option><option value="30">每頁30條</option><option value="50">每頁50條</option></select><input name="q" type="text" id="q" class="ipt-txt" /><input name="搜索" type="submit" class="btn-2" value="搜索" border="0" /></form><!-- //底部模板 --> <div class="webtrysearchform"> <form id="searchform" method="get" action="../webtry/query.php"><div class="searchform"><select name="catid" id="catid" class="box" style="display:none; background:#ffffff; width:143px; height:19px;"><option value="0">選擇行業分類</option><option value="1">電腦、通訊、數碼</option><option value="43">家具、潔具、日用品</option><option value="10">建材、五金、裝飾</option><option value="8">紡織、服裝、鞋帽</option><option value="23">禮品、玩具、工藝品</option><option value="11">家電、照明、電子</option><option value="9">文具、樂器、體育</option><option value="3">機電、儀器、設備</option><option value="25">食品、飲料、酒類</option><option value="14">汽車、摩托、電動車</option><option value="46">能源、環保、節能</option><option value="45">冶金、金屬、零件</option><option value="18">農業、水產、養殖</option><option value="29">礦產、石油、化工</option><option value="17">珠寶、首飾、化妝品</option><option value="44">醫藥、醫器、保健品</option><option value="47">包裝、印刷、造紙</option><option value="26">書畫、藝術、收藏</option><option value="39">通用、其他制造業</option><option value="2">房地產、建筑、裝修</option><option value="13">餐飲、咖啡、茶樓</option><option value="34">咨詢、策劃、翻譯</option><option value="31">金融、證券、典當</option><option value="16">健身、運動俱樂部</option><option value="27">家政、保潔、搬家</option><option value="19">醫院、診所、保健</option><option value="36">旅游、賓館、農家樂</option><option value="22">美容、休閑、養生</option><option value="15">婚慶、攝影、影樓</option><option value="40">倉儲、物流、租車</option><option value="33">維修、保養、回收</option><option value="42">廣告、會展、設計</option><option value="41">文化、教育、培訓</option><option value="32">政府、協會、機構</option><option value="12">其他行業網站</option></select><script>makeSelectBox('catid','../');</script><div><table id="catidselectBoxOptionLayer" cellpadding="0" cellspacing="0" border="0" style="position:absolute;z-index:100;display:none;" οnmοuseοver="viewOptionLayer('catid')" οnmοuseοut="setMousePosition('out')"> <tbody><tr> <td height="19" style="cursor:hand;" οnclick="hideOptionLayer('catid')"></td> </tr> <tr> <td height="1"></td> </tr> <tr> <td bgcolor="#D3D3D3"> <div class="selectBoxOptionInnerLayer" style="width:143px;height:400px"> <table cellpadding="0" cellspacing="0" border="0" width="100%" style="table-layout:fixed;word-break:break-all;"> <tbody><tr> <td οnmοuseοver="this.style.backgroundColor='#e3e9ef';return" true;="" οnmοuseοut="this.style.backgroundColor='#FFFFFF';return" bgcolor="#FFFFFF" height="16" class="selectBoxOption" οnclick="selectThisValue('catid',0,'0','選擇行業分類')" style="cursor:hand;">選擇行業分類</td> <input type="hidden" id="catidSelectBoxOptionValue0" value="0"> </tr> <tr> <td οnmοuseοver="this.style.backgroundColor='#e3e9ef';return" true;="" οnmοuseοut="this.style.backgroundColor='#FFFFFF';return" bgcolor="#FFFFFF" height="16" class="selectBoxOption" οnclick="selectThisValue('catid',1,'1','電腦、通訊、數碼')" style="cursor:hand;">電腦、通訊、數碼</td> <input type="hidden" id="catidSelectBoxOptionValue1" value="1"> </tr> <tr> <td οnmοuseοver="this.style.backgroundColor='#e3e9ef';return" true;="" οnmοuseοut="this.style.backgroundColor='#FFFFFF';return" bgcolor="#FFFFFF" height="16" class="selectBoxOption" οnclick="selectThisValue('catid',2,'43','家具、潔具、日用品')" style="cursor:hand;">家具、潔具、日用品</td> <input type="hidden" id="catidSelectBoxOptionValue2" value="43"> </tr> <tr> <td οnmοuseοver="this.style.backgroundColor='#e3e9ef';return" true;="" οnmοuseοut="this.style.backgroundColor='#FFFFFF';return" bgcolor="#FFFFFF" height="16" class="selectBoxOption" οnclick="selectThisValue('catid',3,'10','建材、五金、裝飾')" style="cursor:hand;">建材、五金、裝飾</td> <input type="hidden" id="catidSelectBoxOptionValue3" value="10"> </tr> <tr> <td οnmοuseοver="this.style.backgroundColor='#e3e9ef';return" true;="" οnmοuseοut="this.style.backgroundColor='#FFFFFF';return" bgcolor="#FFFFFF" height="16" class="selectBoxOption" οnclick="selectThisValue('catid',4,'8','紡織、服裝、鞋帽')" style="cursor:hand;">紡織、服裝、鞋帽</td> <input type="hidden" id="catidSelectBoxOptionValue4" value="8"> </tr> <tr> <td οnmοuseοver="this.style.backgroundColor='#e3e9ef';return" true;="" οnmοuseοut="this.style.backgroundColor='#FFFFFF';return" bgcolor="#FFFFFF" height="16" class="selectBoxOption" οnclick="selectThisValue('catid',5,'23','禮品、玩具、工藝品')" style="cursor:hand;">禮品、玩具、工藝品</td> <input type="hidden" id="catidSelectBoxOptionValue5" value="23"> </tr> <tr> <td οnmοuseοver="this.style.backgroundColor='#e3e9ef';return" true;="" οnmοuseοut="this.style.backgroundColor='#FFFFFF';return" bgcolor="#FFFFFF" height="16" class="selectBoxOption" οnclick="selectThisValue('catid',6,'11','家電、照明、電子')" style="cursor:hand;">家電、照明、電子</td> <input type="hidden" id="catidSelectBoxOptionValue6" value="11"> </tr> <tr> <td οnmοuseοver="this.style.backgroundColor='#e3e9ef';return" true;="" οnmοuseοut="this.style.backgroundColor='#FFFFFF';return" bgcolor="#FFFFFF" height="16" class="selectBoxOption" οnclick="selectThisValue('catid',7,'9','文具、樂器、體育')" style="cursor:hand;">文具、樂器、體育</td> <input type="hidden" id="catidSelectBoxOptionValue7" value="9"> </tr> <tr> <td οnmοuseοver="this.style.backgroundColor='#e3e9ef';return" true;="" οnmοuseοut="this.style.backgroundColor='#FFFFFF';return" bgcolor="#FFFFFF" height="16" class="selectBoxOption" οnclick="selectThisValue('catid',8,'3','機電、儀器、設備')" style="cursor:hand;">機電、儀器、設備</td> <input type="hidden" id="catidSelectBoxOptionValue8" value="3"> </tr> <tr> <td οnmοuseοver="this.style.backgroundColor='#e3e9ef';return" true;="" οnmοuseοut="this.style.backgroundColor='#FFFFFF';return" bgcolor="#FFFFFF" height="16" class="selectBoxOption" οnclick="selectThisValue('catid',9,'25','食品、飲料、酒類')" style="cursor:hand;">食品、飲料、酒類</td> <input type="hidden" id="catidSelectBoxOptionValue9" value="25"> </tr> <tr> <td οnmοuseοver="this.style.backgroundColor='#e3e9ef';return" true;="" οnmοuseοut="this.style.backgroundColor='#FFFFFF';return" bgcolor="#FFFFFF" height="16" class="selectBoxOption" οnclick="selectThisValue('catid',10,'14','汽車、摩托、電動車')" style="cursor:hand;">汽車、摩托、電動車</td> <input type="hidden" id="catidSelectBoxOptionValue10" value="14"> </tr> <tr> <td οnmοuseοver="this.style.backgroundColor='#e3e9ef';return" true;="" οnmοuseοut="this.style.backgroundColor='#FFFFFF';return" bgcolor="#FFFFFF" height="16" class="selectBoxOption" οnclick="selectThisValue('catid',11,'46','能源、環保、節能')" style="cursor:hand;">能源、環保、節能</td> <input type="hidden" id="catidSelectBoxOptionValue11" value="46"> </tr> <tr> <td οnmοuseοver="this.style.backgroundColor='#e3e9ef';return" true;="" οnmοuseοut="this.style.backgroundColor='#FFFFFF';return" bgcolor="#FFFFFF" height="16" class="selectBoxOption" οnclick="selectThisValue('catid',12,'45','冶金、金屬、零件')" style="cursor:hand;">冶金、金屬、零件</td> <input type="hidden" id="catidSelectBoxOptionValue12" value="45"> </tr> <tr> <td οnmοuseοver="this.style.backgroundColor='#e3e9ef';return" true;="" οnmοuseοut="this.style.backgroundColor='#FFFFFF';return" bgcolor="#FFFFFF" height="16" class="selectBoxOption" οnclick="selectThisValue('catid',13,'18','農業、水產、養殖')" style="cursor:hand;">農業、水產、養殖</td> <input type="hidden" id="catidSelectBoxOptionValue13" value="18"> </tr> <tr> <td οnmοuseοver="this.style.backgroundColor='#e3e9ef';return" true;="" οnmοuseοut="this.style.backgroundColor='#FFFFFF';return" bgcolor="#FFFFFF" height="16" class="selectBoxOption" οnclick="selectThisValue('catid',14,'29','礦產、石油、化工')" style="cursor:hand;">礦產、石油、化工</td> <input type="hidden" id="catidSelectBoxOptionValue14" value="29"> </tr> <tr> <td οnmοuseοver="this.style.backgroundColor='#e3e9ef';return" true;="" οnmοuseοut="this.style.backgroundColor='#FFFFFF';return" bgcolor="#FFFFFF" height="16" class="selectBoxOption" οnclick="selectThisValue('catid',15,'17','珠寶、首飾、化妝品')" style="cursor:hand;">珠寶、首飾、化妝品</td> <input type="hidden" id="catidSelectBoxOptionValue15" value="17"> </tr> <tr> <td οnmοuseοver="this.style.backgroundColor='#e3e9ef';return" true;="" οnmοuseοut="this.style.backgroundColor='#FFFFFF';return" bgcolor="#FFFFFF" height="16" class="selectBoxOption" οnclick="selectThisValue('catid',16,'44','醫藥、醫器、保健品')" style="cursor:hand;">醫藥、醫器、保健品</td> <input type="hidden" id="catidSelectBoxOptionValue16" value="44"> </tr> <tr> <td οnmοuseοver="this.style.backgroundColor='#e3e9ef';return" true;="" οnmοuseοut="this.style.backgroundColor='#FFFFFF';return" bgcolor="#FFFFFF" height="16" class="selectBoxOption" οnclick="selectThisValue('catid',17,'47','包裝、印刷、造紙')" style="cursor:hand;">包裝、印刷、造紙</td> <input type="hidden" id="catidSelectBoxOptionValue17" value="47"> </tr> <tr> <td οnmοuseοver="this.style.backgroundColor='#e3e9ef';return" true;="" οnmοuseοut="this.style.backgroundColor='#FFFFFF';return" bgcolor="#FFFFFF" height="16" class="selectBoxOption" οnclick="selectThisValue('catid',18,'26','書畫、藝術、收藏')" style="cursor:hand;">書畫、藝術、收藏</td> <input type="hidden" id="catidSelectBoxOptionValue18" value="26"> </tr> <tr> <td οnmοuseοver="this.style.backgroundColor='#e3e9ef';return" true;="" οnmοuseοut="this.style.backgroundColor='#FFFFFF';return" bgcolor="#FFFFFF" height="16" class="selectBoxOption" οnclick="selectThisValue('catid',19,'39','通用、其他制造業')" style="cursor:hand;">通用、其他制造業</td> <input type="hidden" id="catidSelectBoxOptionValue19" value="39"> </tr> <tr> <td οnmοuseοver="this.style.backgroundColor='#e3e9ef';return" true;="" οnmοuseοut="this.style.backgroundColor='#FFFFFF';return" bgcolor="#FFFFFF" height="16" class="selectBoxOption" οnclick="selectThisValue('catid',20,'2','房地產、建筑、裝修')" style="cursor:hand;">房地產、建筑、裝修</td> <input type="hidden" id="catidSelectBoxOptionValue20" value="2"> </tr> <tr> <td οnmοuseοver="this.style.backgroundColor='#e3e9ef';return" true;="" οnmοuseοut="this.style.backgroundColor='#FFFFFF';return" bgcolor="#FFFFFF" height="16" class="selectBoxOption" οnclick="selectThisValue('catid',21,'13','餐飲、咖啡、茶樓')" style="cursor:hand;">餐飲、咖啡、茶樓</td> <input type="hidden" id="catidSelectBoxOptionValue21" value="13"> </tr> <tr> <td οnmοuseοver="this.style.backgroundColor='#e3e9ef';return" true;="" οnmοuseοut="this.style.backgroundColor='#FFFFFF';return" bgcolor="#FFFFFF" height="16" class="selectBoxOption" οnclick="selectThisValue('catid',22,'34','咨詢、策劃、翻譯')" style="cursor:hand;">咨詢、策劃、翻譯</td> <input type="hidden" id="catidSelectBoxOptionValue22" value="34"> </tr> <tr> <td οnmοuseοver="this.style.backgroundColor='#e3e9ef';return" true;="" οnmοuseοut="this.style.backgroundColor='#FFFFFF';return" bgcolor="#FFFFFF" height="16" class="selectBoxOption" οnclick="selectThisValue('catid',23,'31','金融、證券、典當')" style="cursor:hand;">金融、證券、典當</td> <input type="hidden" id="catidSelectBoxOptionValue23" value="31"> </tr> <tr> <td οnmοuseοver="this.style.backgroundColor='#e3e9ef';return" true;="" οnmοuseοut="this.style.backgroundColor='#FFFFFF';return" bgcolor="#FFFFFF" height="16" class="selectBoxOption" οnclick="selectThisValue('catid',24,'16','健身、運動俱樂部')" style="cursor:hand;">健身、運動俱樂部</td> <input type="hidden" id="catidSelectBoxOptionValue24" value="16"> </tr> <tr> <td οnmοuseοver="this.style.backgroundColor='#e3e9ef';return" true;="" οnmοuseοut="this.style.backgroundColor='#FFFFFF';return" bgcolor="#FFFFFF" height="16" class="selectBoxOption" οnclick="selectThisValue('catid',25,'27','家政、保潔、搬家')" style="cursor:hand;">家政、保潔、搬家</td> <input type="hidden" id="catidSelectBoxOptionValue25" value="27"> </tr> <tr> <td οnmοuseοver="this.style.backgroundColor='#e3e9ef';return" true;="" οnmοuseοut="this.style.backgroundColor='#FFFFFF';return" bgcolor="#FFFFFF" height="16" class="selectBoxOption" οnclick="selectThisValue('catid',26,'19','醫院、診所、保健')" style="cursor:hand;">醫院、診所、保健</td> <input type="hidden" id="catidSelectBoxOptionValue26" value="19"> </tr> <tr> <td οnmοuseοver="this.style.backgroundColor='#e3e9ef';return" true;="" οnmοuseοut="this.style.backgroundColor='#FFFFFF';return" bgcolor="#FFFFFF" height="16" class="selectBoxOption" οnclick="selectThisValue('catid',27,'36','旅游、賓館、農家樂')" style="cursor:hand;">旅游、賓館、農家樂</td> <input type="hidden" id="catidSelectBoxOptionValue27" value="36"> </tr> <tr> <td οnmοuseοver="this.style.backgroundColor='#e3e9ef';return" true;="" οnmοuseοut="this.style.backgroundColor='#FFFFFF';return" bgcolor="#FFFFFF" height="16" class="selectBoxOption" οnclick="selectThisValue('catid',28,'22','美容、休閑、養生')" style="cursor:hand;">美容、休閑、養生</td> <input type="hidden" id="catidSelectBoxOptionValue28" value="22"> </tr> <tr> <td οnmοuseοver="this.style.backgroundColor='#e3e9ef';return" true;="" οnmοuseοut="this.style.backgroundColor='#FFFFFF';return" bgcolor="#FFFFFF" height="16" class="selectBoxOption" οnclick="selectThisValue('catid',29,'15','婚慶、攝影、影樓')" style="cursor:hand;">婚慶、攝影、影樓</td> <input type="hidden" id="catidSelectBoxOptionValue29" value="15"> </tr> <tr> <td οnmοuseοver="this.style.backgroundColor='#e3e9ef';return" true;="" οnmοuseοut="this.style.backgroundColor='#FFFFFF';return" bgcolor="#FFFFFF" height="16" class="selectBoxOption" οnclick="selectThisValue('catid',30,'40','倉儲、物流、租車')" style="cursor:hand;">倉儲、物流、租車</td> <input type="hidden" id="catidSelectBoxOptionValue30" value="40"> </tr> <tr> <td οnmοuseοver="this.style.backgroundColor='#e3e9ef';return" true;="" οnmοuseοut="this.style.backgroundColor='#FFFFFF';return" bgcolor="#FFFFFF" height="16" class="selectBoxOption" οnclick="selectThisValue('catid',31,'33','維修、保養、回收')" style="cursor:hand;">維修、保養、回收</td> <input type="hidden" id="catidSelectBoxOptionValue31" value="33"> </tr> <tr> <td οnmοuseοver="this.style.backgroundColor='#e3e9ef';return" true;="" οnmοuseοut="this.style.backgroundColor='#FFFFFF';return" bgcolor="#FFFFFF" height="16" class="selectBoxOption" οnclick="selectThisValue('catid',32,'42','廣告、會展、設計')" style="cursor:hand;">廣告、會展、設計</td> <input type="hidden" id="catidSelectBoxOptionValue32" value="42"> </tr> <tr> <td οnmοuseοver="this.style.backgroundColor='#e3e9ef';return" true;="" οnmοuseοut="this.style.backgroundColor='#FFFFFF';return" bgcolor="#FFFFFF" height="16" class="selectBoxOption" οnclick="selectThisValue('catid',33,'41','文化、教育、培訓')" style="cursor:hand;">文化、教育、培訓</td> <input type="hidden" id="catidSelectBoxOptionValue33" value="41"> </tr> <tr> <td οnmοuseοver="this.style.backgroundColor='#e3e9ef';return" true;="" οnmοuseοut="this.style.backgroundColor='#FFFFFF';return" bgcolor="#FFFFFF" height="16" class="selectBoxOption" οnclick="selectThisValue('catid',34,'32','政府、協會、機構')" style="cursor:hand;">政府、協會、機構</td> <input type="hidden" id="catidSelectBoxOptionValue34" value="32"> </tr> <tr> <td οnmοuseοver="this.style.backgroundColor='#e3e9ef';return" true;="" οnmοuseοut="this.style.backgroundColor='#FFFFFF';return" bgcolor="#FFFFFF" height="16" class="selectBoxOption" οnclick="selectThisValue('catid',35,'12','其他行業網站')" style="cursor:hand;">其他行業網站</td> <input type="hidden" id="catidSelectBoxOptionValue35" value="12"> </tr> </tbody></table> </div> </td> </tr></tbody></table><table cellpadding="0" cellspacing="1" border="0" bgcolor="#b4d5f8" οnclick="viewOptionLayer('catid')" style="cursor:hand;border-top:0px #abadb3 solid;"> <tbody><tr> <td style="padding-left:1px" bgcolor="#FFFFFF"> <table cellpadding="0" cellspacing="0" border="0"> <tbody><tr> <td><div id="catidselectBoxSelectedValue" class="selectBoxSelectedArea" style="width:123px;height:17px;overflow:hidden;" οnblur="selectBoxBlur('catid')">選擇行業分類</div></td> <td><img src="../webtry/templates/images/down.gif" width="16" border="0"></td> </tr> </tbody></table> </td> </tr></tbody></table></div></div><div class="searchform"><select name="typeid" id="typeid" class="box" style="display:none; background:#ffffff; width:130px; height:19px;"><option value="0">選擇應用分類</option><option value="2">企業、行業網站</option><option value="6">網上商店、商城</option></select><script>makeSelectBox('typeid','../');</script><div><table id="typeidselectBoxOptionLayer" cellpadding="0" cellspacing="0" border="0" style="position:absolute;z-index:100;display:none;" οnmοuseοver="viewOptionLayer('typeid')" οnmοuseοut="setMousePosition('out')"> <tbody><tr> <td height="19" style="cursor:hand;" οnclick="hideOptionLayer('typeid')"></td> </tr> <tr> <td height="1"></td> </tr> <tr> <td bgcolor="#D3D3D3"> <div class="selectBoxOptionInnerLayer" style="width:130px;"> <table cellpadding="0" cellspacing="0" border="0" width="100%" style="table-layout:fixed;word-break:break-all;"> <tbody><tr> <td οnmοuseοver="this.style.backgroundColor='#e3e9ef';return" true;="" οnmοuseοut="this.style.backgroundColor='#FFFFFF';return" bgcolor="#FFFFFF" height="16" class="selectBoxOption" οnclick="selectThisValue('typeid',0,'0','選擇應用分類')" style="cursor:hand;">選擇應用分類</td> <input type="hidden" id="typeidSelectBoxOptionValue0" value="0"> </tr> <tr> <td οnmοuseοver="this.style.backgroundColor='#e3e9ef';return" true;="" οnmοuseοut="this.style.backgroundColor='#FFFFFF';return" bgcolor="#FFFFFF" height="16" class="selectBoxOption" οnclick="selectThisValue('typeid',1,'2','企業、行業網站')" style="cursor:hand;">企業、行業網站</td> <input type="hidden" id="typeidSelectBoxOptionValue1" value="2"> </tr> <tr> <td οnmοuseοver="this.style.backgroundColor='#e3e9ef';return" true;="" οnmοuseοut="this.style.backgroundColor='#FFFFFF';return" bgcolor="#FFFFFF" height="16" class="selectBoxOption" οnclick="selectThisValue('typeid',2,'6','網上商店、商城')" style="cursor:hand;">網上商店、商城</td> <input type="hidden" id="typeidSelectBoxOptionValue2" value="6"> </tr> </tbody></table> </div> </td> </tr></tbody></table><table cellpadding="0" cellspacing="1" border="0" bgcolor="#b4d5f8" οnclick="viewOptionLayer('typeid')" style="cursor:hand;border-top:0px #abadb3 solid;"> <tbody><tr> <td style="padding-left:1px" bgcolor="#FFFFFF"> <table cellpadding="0" cellspacing="0" border="0"> <tbody><tr> <td><div id="typeidselectBoxSelectedValue" class="selectBoxSelectedArea" style="width:110px;height:17px;overflow:hidden;" οnblur="selectBoxBlur('typeid')">選擇應用分類</div></td> <td><img src="../webtry/templates/images/down.gif" width="16" border="0"></td> </tr> </tbody></table> </td> </tr></tbody></table></div></div><div class="searchform"><select name="myshownums" id="myshownums" class="box" style="display:none; background:#ffffff; width:74px; height:19px;"><option value="20">每頁20條</option><option value="30">每頁30條</option><option value="50">每頁50條</option></select><script>makeSelectBox('myshownums','../','');</script><div><table id="myshownumsselectBoxOptionLayer" cellpadding="0" cellspacing="0" border="0" style="position:absolute;z-index:100;display:none;" οnmοuseοver="viewOptionLayer('myshownums')" οnmοuseοut="setMousePosition('out')"> <tbody><tr> <td height="19" style="cursor:hand;" οnclick="hideOptionLayer('myshownums')"></td> </tr> <tr> <td height="1"></td> </tr> <tr> <td bgcolor="#D3D3D3"> <div class="selectBoxOptionInnerLayer" style="width:74px;"> <table cellpadding="0" cellspacing="0" border="0" width="100%" style="table-layout:fixed;word-break:break-all;"> <tbody><tr> <td οnmοuseοver="this.style.backgroundColor='#e3e9ef';return" true;="" οnmοuseοut="this.style.backgroundColor='#FFFFFF';return" bgcolor="#FFFFFF" height="16" class="selectBoxOption" οnclick="selectThisValue('myshownums',0,'20','每頁20條')" style="cursor:hand;">每頁20條</td> <input type="hidden" id="myshownumsSelectBoxOptionValue0" value="20"> </tr> <tr> <td οnmοuseοver="this.style.backgroundColor='#e3e9ef';return" true;="" οnmοuseοut="this.style.backgroundColor='#FFFFFF';return" bgcolor="#FFFFFF" height="16" class="selectBoxOption" οnclick="selectThisValue('myshownums',1,'30','每頁30條')" style="cursor:hand;">每頁30條</td> <input type="hidden" id="myshownumsSelectBoxOptionValue1" value="30"> </tr> <tr> <td οnmοuseοver="this.style.backgroundColor='#e3e9ef';return" true;="" οnmοuseοut="this.style.backgroundColor='#FFFFFF';return" bgcolor="#FFFFFF" height="16" class="selectBoxOption" οnclick="selectThisValue('myshownums',2,'50','每頁50條')" style="cursor:hand;">每頁50條</td> <input type="hidden" id="myshownumsSelectBoxOptionValue2" value="50"> </tr> </tbody></table> </div> </td> </tr></tbody></table><table cellpadding="0" cellspacing="1" border="0" bgcolor="#b4d5f8" οnclick="viewOptionLayer('myshownums')" style="cursor:hand;border-top:0px #abadb3 solid;"> <tbody><tr> <td style="padding-left:1px" bgcolor="#FFFFFF"> <table cellpadding="0" cellspacing="0" border="0"> <tbody><tr> <td><div id="myshownumsselectBoxSelectedValue" class="selectBoxSelectedArea" style="width:54px;height:17px;overflow:hidden;" οnblur="selectBoxBlur('myshownums')">每頁20條</div></td> <td><img src="../webtry/templates/images/down.gif" width="16" border="0"></td> </tr> </tbody></table> </td> </tr></tbody></table></div></div><div class="searchform1"><input name="key" type="text" id="webtrykeyword" value="" size="37" class="input"></div><div class="searchform2"><input name="imageField" id="searchbutton" type="image" src="../webtry/templates/images/search5.gif" border="0"></div> </form> </div><script> $(document).ready(function(){if($("#webtrykeyword")[0].value==""){$("#webtrykeyword")[0].value="請輸入關鍵詞";$("#webtrykeyword").focus(function(){$("#webtrykeyword")[0].value="";});}if($("#webtrykeyword")[0].value=="請輸入關鍵詞"){$("#webtrykeyword").focus(function(){$("#webtrykeyword")[0].value="";});}$("#searchbutton").mouseover(function(){if($("#webtrykeyword")[0].value=="請輸入關鍵詞"){$("#webtrykeyword")[0].value="";}}); }); </script></body> </html> View Codesearch.htm
<!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={dede:global.cfg_soft_lang/}" /> <title>搜索頁_{dede:global.cfg_webname/}</title> <meta name="keywords" content="{dede:field name='keywords'/}" /> <meta name="description" content="{dede:field name='description' function='html2text(@me)'/}" /> <link href="{dede:global.cfg_templets_skin/}/style/dedecms.css" rel="stylesheet" media="screen" type="text/css" /> </head> <body class="articlelist" style="min-width:1000px"> <div class="header_top"> <div class="center"> <span id="time" class="time">織夢CMS - 輕松建站從此開始!</span><div class="toplinks"><a href="{dede:global.cfg_cmsurl/}/plus/heightsearch.php" target="_blank">高級搜索</a>|<a href="{dede:global.cfg_cmsurl/}/data/sitemap.html" target="_blank">網站地圖</a>|<a href="{dede:global.cfg_cmsurl/}tags.php">TAG標簽</a><a href="{dede:global.cfg_dataurl/}/rssmap.html" class="rss">RSS訂閱</a><span>[<a href="" οnclick="this.style.behavior='url(#default#homepage)';this.setHomePage('{dede:global.cfg_basehost/}');">設為首頁</a>] [<a href="javascript:window.external.AddFavorite('{dede:global.cfg_basehost/}','{dede:global.cfg_webname/}')">加入收藏</a>]</span> <a href="{dede:global.cfg_cmsurl/}">返回首頁</a></div></div> </div> <div class="search_header"><h1><a href="{dede:global.cfg_basehost/}"><img src="{dede:global.cfg_templets_skin/}/images/logo.gif" height="54" width="216" alt="{dede:global.cfg_webname/}"/></a> </h1> <div class="search_box"><form><input name="q" type="text" id="search-keyword" value="{dede:global name='keyword' function='RemoveXSS(@me)'/}" οnfοcus="if(this.value=='在這里搜索...'){this.value='';}" οnblur="if(this.value==''){this.value='在這里搜索...';}" /><select name="searchtype" id="search-option"><option value="title" selected='1'>檢索標題</option><option value="titlekeyword">智能模糊</option></select><button type="submit" class="search-submit">搜索</button><a href="heightsearch.php">高級搜索</a></form></div> <div id="searchTopBanner" style="float:right; margin:10px"><script src='{dede:global.cfg_cmsurl/}/plus/ad_js.php?aid=18' language='javascript'></script> </div> </div><!-- //top --> <!-- /header --> <div class="resultbar">搜索 <strong class="fc_03c">{dede:global name='keyword' function='RemoveXSS(@me)'/}</strong> 的結果 </div> <div class="result_content"> <div class="sidebar"><h2>相關搜索</h2><ul><li>{dede:likewords num='8'/}</li></ul><div class="sidebar_banner"><script src='{dede:global.cfg_cmsurl/}/plus/ad_js.php?aid=16' language='javascript'></script></div></div><div class="resultlist"><ul>{dede:list perpage='20'}<li> <h3><a href="[field:arcurl/]" target="_blank">[field:title/]</a></h3><p>[field:description/]...</p><span><a href="[field:arcurl/]">[field:global.cfg_basehost/][field:arcurl/]</a><small>分類:</small><a href="[field:typeurl/]" target="_blank">[field:typename/]</a><small>點擊:</small>[field:click/]<small>日期:</small>[field:stime/]</span></li>{/dede:list}</ul><div class="fl dede_pages"><ul class="pagelist">{dede:pagelist listsize='4'/} </ul></div><!-- /pages --></div><!-- /listbox --> </div> <div class="footer center mt1 clear"><!-- 為了支持織夢團隊的發展,請您保留織夢內容管理系統的鏈接信息.我們對支持織夢團隊發展的朋友表示真心的感謝!織夢因您更精彩!--><div class="footer_left"></div><div class="footer_body"><p class="powered"> Powered by <a href="http://www.dedecms.com" title="織夢內容管理系統(DedeCms)--國內最專業的PHP網站管理系統,輕松建站的首選利器。" target="_blank"><strong>DedeCMS{dede:global.cfg_version/}</strong></a> © 2004-2011 <a href="http://www.desdev.cn/" target="_blank">DesDev</a> Inc.<br /><div class="copyright">{dede:global.cfg_powerby/} {dede:global.cfg_beian/}</div></p> <!-- /powered --></div><div class="footer_right"></div> </div> <!-- /footer --> </body> </html> View Code?
轉載于:https://www.cnblogs.com/blogpro/p/11464895.html
總結
以上是生活随笔為你收集整理的织梦DedeCms技术资料的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 大龄程序员的4年生涯
- 下一篇: Unity2D游戏程序设计——打地鼠