供求系统首页调用操作方法:
点击“系统设置”--“自定义标签管理”--“添加动态标签”
第一步:填写“标签名称”,这里我写的是《供求系统首页调用标签》,以便于以后区分。“标签分类”不需要填写,“标签类型”、”分页数量“、”自动刷新“三项均不用修改。”主表“一项选择”PE_Supply“表,这个表是数据库中存放供求信息的,下边的”选择字段“不要选,因为可能会用到几个字段哦,这需要根据你自己的需要选择,所以我们只选择一个表,而不选择字段了。右边的”从表“一项不需要动。”查询语句“一项不要改动,”优先级“一项,如果你没有设过相关动态标签,可以随便填写。我这里写个10。点击下一步(www.nkcn.net)。
下边是举例图片。![]()
seover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" style="CURSOR: hand" onclick="if(!this.resized) {return true;} else {window.open('http://www.nkcn.net/bbs/attachments/month_0701/111_WuCWV8cjmLF5.gif');}" alt="" src="http://www.nkcn.net/bbs/attachments/month_0701/111_WuCWV8cjmLF5.gif" width=716 onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" border=0 pop="Click here to open new window
CTRL+Mouse wheel to zoom in/out" resized="true">
第二步:”查询语句“一项不用改,”标签内容“中的”循环内容“四个字需要改成我们要循环的代码了~。点击”字段列表“中的”SupplyTitle“字段,在弹出的窗口中设置相关选项,”字段名称“不用改,”输出类型“为文本型,”输出长度“按需要填写,这里我写的是显示35个字符,”过滤处理“一项按需要选择,我这里选择了解析html标记,”截断处理“一项是指是否显示省略号。完成后标签内容应为
{Loop}{Infobegin}{$Field(6,Text,35,0,0)}{{Infoend}{/Loop}
supple title设置选项示意图:![]()
seover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http://www.nkcn.net/bbs/attachments/month_0701/22222_L4jxYWcR5dZK.gif');}" alt="" src="http://www.nkcn.net/bbs/attachments/month_0701/22222_L4jxYWcR5dZK.gif" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" border=0>
操作示意图:![]()
seover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http://www.nkcn.net/bbs/attachments/month_0701/333_EtqvJpROqUQs.gif');}" alt="" src="http://www.nkcn.net/bbs/attachments/month_0701/333_EtqvJpROqUQs.gif" width=716 onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" border=0 pop="Click here to open new window
CTRL+Mouse wheel to zoom in/out" resized="true">
第三步:整理首页调用的格式(每条换行)和给每条信息加上相对应的超链接。修改完后的代码应该为
{Loop}{Infobegin}<A href="{$InstallDir}Supply/ShowSupply.asp?SupplyId={$Field(0,Num,0,0)}">{$Field(6,Text,35,0,0)}<br>{{Infoend}{/Loop}
点击添加完成动态标签添加.
修改后的标签内容示意图:![]()
seover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http://www.nkcn.net/bbs/attachments/month_0701/555_KwlxH0sOMLEo.gif');}" alt="" src="http://www.nkcn.net/bbs/attachments/month_0701/555_KwlxH0sOMLEo.gif" width=716 onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" border=0 pop="Click here to open new window
CTRL+Mouse wheel to zoom in/out" resized="true">
第四步:在你想要调用的地方插入这个自定义动态标签就可以了.查看效果的时候请先在后台点一下"清理缓存",否则可能看不到效果的哦
当然你也可以再加一些其他的效果,比如说鼠标悬停的文字,新窗口打开超链接,加入发布时间,发布人等.在这个自定义标签里都可以做到.
顺便提一句:本文是为解决供求系统首页调用而写的,好象招聘和房产等系统也有这样的问题,因为我没有用过这几套系统,所以不太清楚,如果有的话那就是因为动易官方没有提供调用标签的原因,如果你想在首页调用这些信息,也可以参考本文.
首页调用演示:![]()
seover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http://www.nkcn.net/bbs/attachments/month_0701/666_4FCezkcLvivf.gif');}" alt="" src="http://www.nkcn.net/bbs/attachments/month_0701/666_4FCezkcLvivf.gif" width=716 onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" border=0 pop="Click here to open new window
CTRL+Mouse wheel to zoom in/out" resized="true">
点击南开http://www.nkcn.net