织梦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 Code

dedeCMS子栏目调用获得顶级栏目的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,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'];}


这样,这条语句在顶级栏目还是子栏目,都可以调用了,大家可以试试哦。
View Code

dedecms的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 Code

dedecms调用文章列表第一篇和下面几篇不同的方法

这个文章的标题本来是我用来在百度直接搜索想解决的,结果搜来搜去没找到答案,累个半死。可能是我语言组织能力太弱以至于百度根本不知道我在说什么吧。
后来灵机一动去下载了一个有类似效果的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 Code

dedecms调用指定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 Code

dedecms获取当前所在栏目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 Code

dedecms文章列表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 Code

dede首页调用指定栏目的二级分类

{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 Code

heightsearch.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 Code

search.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> &copy; 2004-2011 <a href="http://www.desdev.cn/" target="_blank">DesDev</a> Inc.<br /><div class="copyright">{dede:global.cfg_powerby/}&nbsp;&nbsp;{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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值