<%
'@@0manage/1s_udew/2list.HTML
'@@0manage/1s_udew/2edit|add|del/3*id.HTML

if e_xa<1 and (aibj(g_u0,s_udew) or aibj(g_u1,s_udew)) then
e_xa=e_xa+1
Call esq()
Call doq(1,e_uer,6,g_u0,s_udew,s_udews&s_umlbs)

if e_gdj>3 and aibj(g_u0,s_umgl) and aibj(g_u1,s_udew) and aibj(g_u2,s_umtj) then
Call ewadd()
elseif e_gdj>3 and aibj(g_u0,s_umgl) and aibj(g_u1,s_udew) and aibj(g_u2,s_umxg) and aiint(g_u3)>0 then
Call ewedit()
elseif e_gdj>3 and aibj(g_u0,s_umgl) and aibj(g_u1,s_udew) and ((aibj(g_u2,s_umsc) and aiint(g_u3)>0) or aibj(g_u2,s_umsc&"-x")) then
Call ewdel()
elseif e_gdj>3 and aibj(g_u0,s_umgl) and aibj(g_u1,s_udew) and dkdir(2,g_u2) then
Call ewlist()
end if
'------get skin 0
if ainull(e_skc) then
e_skc=dosk("a","admin","")
end if
'------get skin 1
Response.Write esr(0,e_skc):Response.End()
end if
'-----------------------------------
'Assignment
'=erq()
'-----------------------------------
Function ewq()
Call esq()
ew_bt=s_udews&","&ew_bt
ew_zt=s_udews&","&ew_zt
ew_nr=s_udews&","&ew_nr
if aibj(g_u0,s_umgl) then
e_wl=e_wl&" &gt;&gt; <a href="""&e_ur0&""">"&s_udews&s_umlbs&"</a>"
else
e_wl=e_wl&" &gt;&gt; <a href="""&eshref(s_udew&g_urg&s_umlb&g_urz,1)&""">"&s_udews&s_umlbs&s_umxxs&"</a>"
end if
e_wr="<a href="""&e_ur1&""">"&s_umtjs&s_udews&"</a>|<a href="""&e_ur0&""">"&s_udews&s_umlbs&"</a>"&e_wr
ew_cp=ew_cp
e_mt=e_mt
e_ma=e_ma
End Function
'-----------------------------------
'Data Table
'=ewlie()
'-----------------------------------
Function ewlie(ewfty)
if ewfty="form" then
ewlie="sn,mc,bt,nr,zt,ur,cp,sk,ui,ps,py,ba,lr,lq,ls,lh,lc,lj,le,lz,lb,lo,hc,tj,c0,n0,c1,n1,c2,n2,c3,n3,pt,mma,mmb,mmc,mmd,kx,kt,kz,kg,ky,kf,is,il,ig,ts,tl,tg,s1,u1,p1,s2,u2,p2,s3,u3,p3,s4,u4,p4,s5,u5,p5,s6,u6,p6,pg,vy,vi,vb,vg,vs,ap,gn,dj,pj,sz,sp,lm,cf,qz,hz,tc,sc,pl,pz,lt,bq,xy,px,kj,ot,xt"
elseif ewfty=s_umlb then
ewlie="ew_id,ew_sn,ew_mc,ew_bt,ew_nr,ew_zt,ew_cp,ew_sk,ew_xy"
elseif ewfty=s_umlb&"s" then
ewlie="id,sn,mc,bt,nr,zt,cp,sk,xy"
elseif ewfty="all" then
ewlie="ew_id,ew_sn,ew_mc,ew_bt,ew_nr,ew_zt,ew_ur,ew_cp,ew_sk,ew_ui,ew_ps,ew_py,ew_ba,ew_lr,ew_lq,ew_ls,ew_lh,ew_lc,ew_lj,ew_le,ew_lz,ew_lb,ew_lo,ew_hc,ew_tj,ew_c0,ew_n0,ew_c1,ew_n1,ew_c2,ew_n2,ew_c3,ew_n3,ew_pt,ew_mma,ew_mmb,ew_mmc,ew_mmd,ew_kx,ew_kt,ew_kz,ew_kg,ew_ky,ew_kf,ew_is,ew_il,ew_ig,ew_ts,ew_tl,ew_tg,ew_s1,ew_u1,ew_p1,ew_s2,ew_u2,ew_p2,ew_s3,ew_u3,ew_p3,ew_s4,ew_u4,ew_p4,ew_s5,ew_u5,ew_p5,ew_s6,ew_u6,ew_p6,ew_pg,ew_vy,ew_vi,ew_vb,ew_vg,ew_vs,ew_ap,ew_gn,ew_dj,ew_pj,ew_sz,ew_sp,ew_lm,ew_cf,ew_qz,ew_hz,ew_tc,ew_sc,ew_pl,ew_pz,ew_lt,ew_bq,ew_xy,ew_px,ew_kj,ew_ot,ew_xt"
end if
End Function
'-----------------------------------
'ew select
'=ewselect(ewfty=0sn/1mc)
'-----------------------------------
Function ewselect(ewfty,ewfid)
if aiint(ewfid)=0 and ewfty=1 then ewfid=aiint(ew_sn)
dim ewselectid,ewselectmc
g_app=esapm(0,s_udew&"_Select_"&ewfid)
ewwhere=ewwheremo
eworder=ewordermo
if gystop(i_nmtp,ewbid,ewlie(s_umlb),ewbiao,ewwhere,eworder,g_app) then
gysax=split(gysar,g_gx)
for gysi=0 to ubound(gysax)
gysay=split(gysax(gysi),g_gy)
if gysi=0 then
ewselectid=gysay(1)
ewselectmc=gysay(2)
else
ewselectid=ewselectid&"|"&gysay(1)
ewselectmc=ewselectmc&"|"&gysay(2)
end if
next
end if
ewselect=aiselect("ew","","","f-s1",ewfid,ewselectid,ewselectmc)
End Function
'-----------------------------------
'add/edit form
'=ewform()
'-----------------------------------
Function ewform(ewfty)
if ewfty=0 then
ew_sn=i_mtn:ew_mc=i_mtm:ew_bt=i_mtt:ew_nr=i_mtd:ew_zt=i_mtk:ew_ur=",localhost,":ew_cp=i_mtc:ew_sk=i_msk
ew_ps=0:ew_py="0"
ew_ba=""
ew_lr="阿赛":ew_lq="888888":ew_ls="8888888,28282828,98989898":ew_lh="025-88888888":ew_lc="025-88888888":ew_lj="15888888888":ew_le="admin@eesai.com":ew_lz="江苏省南京市江宁科学园":ew_lb="221100":ew_lo=""
ew_hc="":ew_tj="<script language=JavaScript charset=utf-8 src=http://eesai.com/co.js></script>"
ew_c0="QQ":ew_n0="即时咨询":ew_c1="about/info/jieshao.html":ew_n1="关于我们":ew_c2="about/info/wenhua.html":ew_n2="企业文化":ew_c3="about/info/lianxi.html":ew_n3="联系我们":ew_pt="<img src="&i_dir&i_msk&"img/logo.gif><br>欢迎您的访问"
ew_kx="EESai":ew_kt="EESaixt":ew_kz="EESaizz":ew_kg="EESaigg":ew_ky="EESaiyh":ew_kf="EESaikf"
ew_is=i_mtm:ew_il=i_dir:ew_ig="logo.gif"
ew_ts=i_mtt:ew_tl=i_dir:ew_tg="tj.gif"
ew_s1="横幅展示":ew_u1=i_dir:ew_p1="b1.jpg"
ew_s2="横幅展示":ew_u2=i_dir:ew_p2="b2.jpg"
ew_s3="横幅展示":ew_u3=i_dir:ew_p3="b3.jpg"
ew_s4="横幅展示":ew_u4=i_dir:ew_p4="b4.jpg"
ew_s5="横幅展示":ew_u5=i_dir:ew_p5="b5.jpg"
ew_s6="横幅展示":ew_u6=i_dir:ew_p6="b6.jpg"
ew_pg="#fbfef7|#FFFDFA|#FEF6EC|#fbfef7|#F0FBF3|#FEF6EC"
ew_vy=0:ew_vi=0:ew_vb=0:ew_vg=0:ew_vs="0/1"
ew_xy=1:ew_px=0
ew_ap=1:ew_gn=1:ew_dj=2:ew_pj=2:ew_sz=1:ew_sp=2:ew_lm=1:ew_cf=1:ew_qz=1:ew_hz=1:ew_tc=1:ew_sc=1:ew_pl=1:ew_pz=0:ew_lt=1:ew_bq=1
else
if ew_xt<>"" then
ew_xt=ew_xt&espxx("修改"&i_gg&e_gmc)
else
ew_xt=espxx("修改"&i_gg&e_gmc)
end if
end if
if ainull(ew_kj) then ew_kj=s_uduk
if ainull(ew_sn) then ew_sn=i_mtn
if ainull(ew_sk) then ew_sk=i_msk
if ainull(ew_mc) then ew_mc=i_mtm
if ainull(ew_bt) then ew_bt=i_mtt
if ainull(ew_zt) then ew_zt=i_mtk
if ainull(ew_nr) then ew_nr=i_mtd
if ainull(ew_cp) then ew_cp=i_mtc
ewform="<div class=""l-f""><form id=""EESaiForm"" name=""EESaiForm"" action="""" method=""post""><ul>"
ewform=ewform&"<li class=""l-1"">名称："&aiinput("","mc","",0,50,"*","f-a1|f-b1|f-c1",ew_mc)&"编码："&aiinput("","sn","",6,50,"*只能填数字，且不能和其他重复","f-a1|f-b1|f-c1",ew_sn)&aiinput("hidden","y_sn","",0,0,"","",ew_sn)&"标题："&aiinput("","bt","",0,200,"*推广优化显示在页面顶端的标题","f-a2|f-b2|f-c2",ew_bt)&"</li>"
ewform=ewform&"<li>主题："&aiinput("","zt","",0,200,"*关键词组","f-a2|f-b2|f-c2",ew_zt)&"介绍："&aiinput("","nr","",0,200,"*网站介绍信息","f-a2|f-b2|f-c2",ew_nr)&"</li>"
ewform=ewform&"<li class=""l-1"">版权："&aiinput("","cp","",0,200,"*网站版权信息","f-a2|f-b2|f-c2",ew_cp)&"网址："&aiinput("","ur","",0,200,"*不带http://，各个网址后须添加英文逗号,如：，localhost,127.0.0.1,(开头和结尾均带,)","f-a2|f-b2|f-c2",ew_ur)&"</li>"
ewform=ewform&"<li>首样："&aiselect("vy","","*首页默认内容列表样式.","f-s1",ew_vy,0,"移动标签|一列到底|两列排行|特殊一列")&"首读："&aiselect("vi","","*可以选择开启或关闭首页预读功能.","f-s1",ew_vi,0,"关闭首页预读|仅WAP首页预读|全部首页预读|简式列表首页")&"板标："&aiselect("vb","","*板块标志-是否启用网站板块标志.","f-s1",ew_vb,0,"关闭板块标志|打开板块标志|使用唯一标志")&"背景："&aiselect("vg","","背景图片-是否显示网页背景图片..","f-s1",ew_vg,0,"关闭背景图片|开启背景图片|背景随机图片")&"</li>"
ewform=ewform&"<li>缓存："&aiselect("ap","","*网站缓存量占用网站空间.","f-s1",ew_ap,0,"系统常规缓存|+top调用缓存|+list列表第一页缓存|+show内容缓存|+list分页全缓存")&"功能："&aiselect("gn","","*是否启用网站除以上之外的所有功能系统.","f-s1",ew_gn,0,"基础功能|完整功能")&"点击："&aiselect("dj","","*是否启用网站点击浏览次数记录.","f-s1",ew_dj,0,"关闭点击记录|隐藏点击记录|内显点击记录|打开点击记录")&"评价："&aiselect("pj","","*是否启用网站评价功能.","f-s1",ew_pj,0,"关闭评价|隐藏评价|打开评价")&"</li>"

ewform=ewform&"<li>全搜："&aiselect("sz","","*可以选择开启或关闭全站搜索功能块.","f-s1",ew_sz,0,"关闭全站搜索|打开全站搜索")&"频搜："&aiselect("sp","","*是否启用频道搜索.","f-s1",ew_sp,0,"关闭搜索|精简搜索|简单搜索|完整搜索")&"列表："&aiselect("lm","","*网站内容列表是否可以切换不同显示模式.","f-s1",ew_lm,0,"关闭切换|开启切换")&"重复："&aiselect("cf","","*当循环列表的内容不足之时是否容许重复与自动填充..","f-s1",ew_cf,0,"同页禁止调用重复|同类禁止调用重复|调用重复不要填充|调用重复循环填充")&"</li>"
ewform=ewform&"<li>前缀："&aiselect("qz","","*调用列表标题名前的图标..","f-s1",ew_qz,0,"关闭前缀图标|开启前缀图标")&"后缀："&aiselect("hz","","*列表标题后的热门和新鲜图标..","f-s1",ew_hz,0,"关闭后缀图标|开启后缀图标")&"弹窗："&aiselect("tc","","*弹出在网站右下角的互动小窗口..","f-s1",ew_tc,0,"关闭互动|ＱＱ客服|弹窗ＱＱ|留言弹窗|聊天弹窗|留言+QQ|聊天+QQ")&"评论："&aiselect("pl","","*是否启用网站评论模块的功能.","f-s1",ew_pl,0,i_baipl)&"</li>"
ewform=ewform&"<li>收藏："&aiselect("sc","","*是否启用网站内容收藏功能.","f-s1",ew_sc,0,"关闭收藏|打开收藏")&"自评："&aiselect("pz","","*是否启用网站自动评论的功能.","f-s1",ew_pz,0,"关闭自动评论|打开自动评论")&"论坛："&aiselect("lt","","*是否启用网站论坛的功能.","f-s1",ew_lt,0,"关闭论坛|隐藏论坛|打开论坛")&"版权："&aiselect("bq","","*是否启用网站版权自爆维护功能1单篇2单篇全爆3作者4作者全爆.","f-s1",ew_bq,0,"关闭版权自爆|一级版权自爆|二级版权自爆|三级版权自爆|四级版权自爆")&"</li>"

ewform=ewform&"<li class=""l-1"">备案："&aiinput("","ba","",0,50,"*网站备案号","f-a1|f-b1|f-c1",ew_ba)&"缩图："&aiselect("ps","","*生成的缩略图存储的位置","f-s1",ew_ps,0,"关闭缩图|启用覆盖|缩图前缀新存|缩图存文件夹")&"水印："&aiinput("","py","",0,50,"*图片上传加上的水印文字0为关闭该功能","f-a1|f-b1|f-c1",ew_py)&"空间："&aiinput("","kj","",3,3,"空间分类编码：前两个字符为判断是否启用同编码分类，第三个字符是分类定义区别名。如：gy表示频道分类中以gy开头的将使用gy+第三个字符为分类，gys表示空间和以gys开头编码的频道都是以gys为分类的。为空表示以默认的"&s_uduk&"为分类。","f-a1|f-b1|f-c1",ew_kj)&"</li>"

ewform=ewform&"<li>状态："&aiselect("xy","","*","f-s1",ew_xy,0,i_bxy)&"排序："&aiinput("","px","",6,50,"排序越大越靠前","f-a1|f-b1|f-c1",ew_px)&"风格："&aiinput("","sk","",0,50,"*请输入风格文件夹，开头不带/,以/结尾","f-a1|f-b1|f-c1",ew_sk)&"规则："&aiselect("vs","","*首页图样：网站和频道首页的自动栏目图片显示规则依据调用代码填写默认0/1带图片3/2推荐排序3/3三星排序.","f-s1",ew_vs,"0/1|3/2|3/3","带图片|推荐排序|三星排序")&"</li>"
ewform=ewform&"<li class=""l-1"">系统："&eseditxt(ew_xt,"xt",1)&"</li>"
ewform=ewform&"<li>高级属性选项开关　<input type=""button""  onclick=""document.getElementById('easmid').style.display='block';"" class=""f-se"" value=""打开""><input type=""button""  onclick=""document.getElementById('easmid').style.display='none';"" class=""f-se"" value=""关闭""></li><ul id=""easmid"" style=""display:none;"">"

ewform=ewform&"<li class=""l-1"">站长："&aiinput("","lr","",0,50,"*联系人","f-a1|f-b1|f-c1",ew_lr)&"ＱＱ："&aiinput("","lq","",6,50,"*站长QQ号码","f-a1|f-b1|f-c1",ew_lq)&"客服："&aiinput("","ls","",0,200,"*客服QQ号码,多个号码请使用,隔开,最多支持6个.","f-a2|f-b2|f-c2",ew_ls)&"</li>"
ewform=ewform&"<li>电话："&aiinput("","lh","",0,50,"*固定电话","f-a1|f-b1|f-c1",ew_lh)&"手机："&aiinput("","lj","",0,50,"*手机号码","f-a1|f-b1|f-c1",ew_lj)&"传真："&aiinput("","lc","",0,50,"*传真号码","f-a1|f-b1|f-c1",ew_lc)&"邮箱："&aiinput("","le","",0,50,"*电子邮箱","f-a1|f-b1|f-c1",ew_le)&"</li>"
ewform=ewform&"<li class=""l-1"">地址："&aiinput("","lz","",0,50,"*详细地址","f-a3|f-b3|f-c3",ew_lz)&"邮编："&aiinput("","lb","",6,50,"*邮政编码","f-a1|f-b1|f-c1",ew_lb)&"</li>"
ewform=ewform&"<li>附加："&aiinput("","lo","",0,200,"*联系附加信息","f-a4|f-b4|f-c4",ew_lo)&"</li>"
ewform=ewform&"<li class=""l-1"">缓存："&aiinput("","hc","",0,200,"*网站缓存的主页面,为空或0表示不缓存,使用英文逗号隔开,输入eesai表示所有频道","f-a2|f-b2|f-c2",ew_hc)&"统计："&aiinput("","tj","",0,200,"*外部统计，直接输入统计代码,注意一定要去掉统计代码中的所有单引号和双引号,否则一定出错.","f-a2|f-b2|f-c2",ew_tj)&"</li>"
ewform=ewform&"<li>特０："&aiinput("","n0","",0,50,"*特别快捷方式的文字","f-a1|f-b1|f-c1",ew_n0)&"特链："&aiinput("","c0","",0,50,"*特别快捷方式的链接","f-a1|f-b1|f-c1",ew_c0)&"特１："&aiinput("","n1","",0,50,"*特别快捷方式的文字","f-a1|f-b1|f-c1",ew_n1)&"特链："&aiinput("","c1","",0,50,"*特别快捷方式的链接","f-a1|f-b1|f-c1",ew_c1)&"</li>"
ewform=ewform&"<li class=""l-1"">特２："&aiinput("","n2","",0,50,"*特别快捷方式的文字","f-a1|f-b1|f-c1",ew_n2)&"特链："&aiinput("","c2","",0,50,"*特别快捷方式的链接","f-a1|f-b1|f-c1",ew_c2)&"特３："&aiinput("","n3","",0,50,"*特别快捷方式的文字","f-a1|f-b1|f-c1",ew_n3)&"特链："&aiinput("","c3","",0,50,"*特别快捷方式的链接","f-a1|f-b1|f-c1",ew_c3)&"</li>"
ewform=ewform&"<li>图替："&aiinput("","pt","",0,200,"*无图替换:内容显示过程中,当信息无图片时显示,可输入广告代码[不可含单引号与双引号],可为空.","f-a4|f-b4|f-c4",ew_pt)&"</li>"
ewform=ewform&"<li class=""l-1"">顶密："&aiinput("","mma","",0,50,"*顶级密钥:请输入顶级密钥,可以查看所有密钥内容.","f-a1|f-b1|f-c1",aimm(g_gmm,ew_mma,1))&"高密："&aiinput("","mmb","",0,50,"*高级密钥:请输入高级密钥,可以查看8位以下的密钥.","f-a1|f-b1|f-c1",aimm(g_gmm,ew_mmb,1))&"中密："&aiinput("","mmc","",0,50,"*中级密钥:请输入中级密钥,可以查看6位以下的密钥.","f-a1|f-b1|f-c1",aimm(g_gmm,ew_mmc,1))&"初密："&aiinput("","mmd","",0,50,"*初级密钥:请输入初级密钥,可以查看4位以下的密钥.","f-a1|f-b1|f-c1",aimm(g_gmm,ew_mmd,1))&"</li>"
ewform=ewform&"<li>小秘："&aiinput("","kx","",0,50,"*系统小秘:系统小秘书名称.","f-a1|f-b1|f-c1",ew_kx)&"系统："&aiinput("","kt","",0,50,"*系统帐户:系统帐户充值提现","f-a1|f-b1|f-c1",ew_kt)&"站长："&aiinput("","kz","",0,50,"*站长帐户:站长帐户网站上面交易","f-a1|f-b1|f-c1",ew_kz)&"公共："&aiinput("","kg","",0,50,"*公共帐户:公共帐户证方定金","f-a1|f-b1|f-c1",ew_kg)&"</li>"
ewform=ewform&"<li class=""l-1"">优惠："&aiinput("","ky","",0,50,"*优惠帐户:优惠券帐户订单中优惠券金额接收","f-a2|f-b2|f-c2",ew_ky)&"客服："&aiinput("","kf","",0,50,"*客服帐户:客服帐户分单和优惠券","f-a2|f-b2|f-c2",ew_kf)&"</li>"

ewform=ewform&"<li>标名："&aiinput("","is","",0,50,"*网站标志名称","f-a2|f-b2|f-c2",ew_is)&"链接："&aiinput("","il","",0,50,"*网站标志链接地址","f-a2|f-b2|f-c2",ew_il)&"</li>"
ewform=ewform&"<li class=""l-1"">图片："&aiinput("","ig","",0,200,"标志图片或LOGO图片","f-a2|f-b2|f-c2",ew_ig)&esup("0|1|logo|"&eshref(ew_sk&"img/",3)&"|2|EESaiForm|ig|0|0|0|0.ees")&"</li>"
ewform=ewform&"<li>荐名："&aiinput("","ts","",0,50,"*推荐图片名称","f-a2|f-b2|f-c2",ew_ts)&"链接："&aiinput("","tl","",0,50,"*推荐图片的链接地址","f-a2|f-b2|f-c2",ew_tl)&"</li>"
ewform=ewform&"<li class=""l-1"">图片："&aiinput("","tg","",0,200,"推荐图片","f-a2|f-b2|f-c2",ew_tg)&esup("0|1|tj|"&eshref(ew_sk&"img/",3)&"|2|EESaiForm|tg|0|0|0|0.ees")&"</li>"

ewform=ewform&"<li>一幅："&aiinput("","s1","",0,50,"*横幅的名称","f-a2|f-b2|f-c2",ew_s1)&"链接："&aiinput("","u1","",0,50,"*横幅的的链接地址","f-a2|f-b2|f-c2",ew_u1)&"</li>"
ewform=ewform&"<li class=""l-1"">图片："&aiinput("","p1","",0,200,"横幅图片","f-a2|f-b2|f-c2",ew_p1)&esup("0|1|b1|"&eshref(ew_sk&"img/",3)&"|2|EESaiForm|p1|0|0|0|0.ees")&"</li>"
ewform=ewform&"<li>二幅："&aiinput("","s2","",0,50,"*横幅的名称","f-a2|f-b2|f-c2",ew_s2)&"链接："&aiinput("","u2","",0,50,"*横幅的的链接地址","f-a2|f-b2|f-c2",ew_u2)&"</li>"
ewform=ewform&"<li class=""l-1"">图片："&aiinput("","p2","",0,200,"横幅图片","f-a2|f-b2|f-c2",ew_p2)&esup("0|1|b2|"&eshref(ew_sk&"img/",3)&"|2|EESaiForm|p2|0|0|0|0.ees")&"</li>"
ewform=ewform&"<li>三幅："&aiinput("","s3","",0,50,"*横幅的名称","f-a2|f-b2|f-c2",ew_s3)&"链接："&aiinput("","u3","",0,50,"*横幅的的链接地址","f-a2|f-b2|f-c2",ew_u3)&"</li>"
ewform=ewform&"<li class=""l-1"">图片："&aiinput("","p3","",0,200,"横幅图片","f-a2|f-b2|f-c2",ew_p3)&esup("0|1|b3|"&eshref(ew_sk&"img/",3)&"|2|EESaiForm|p3|0|0|0|0.ees")&"</li>"
ewform=ewform&"<li>四幅："&aiinput("","s4","",0,50,"*横幅的名称","f-a2|f-b2|f-c2",ew_s4)&"链接："&aiinput("","u4","",0,50,"*横幅的的链接地址","f-a2|f-b2|f-c2",ew_u4)&"</li>"
ewform=ewform&"<li class=""l-1"">图片："&aiinput("","p4","",0,200,"横幅图片","f-a2|f-b2|f-c2",ew_p4)&esup("0|1|b4|"&eshref(ew_sk&"img/",3)&"|2|EESaiForm|p4|0|0|0|0.ees")&"</li>"
ewform=ewform&"<li>五幅："&aiinput("","s5","",0,50,"*横幅的名称","f-a2|f-b2|f-c2",ew_s5)&"链接："&aiinput("","u5","",0,50,"*横幅的的链接地址","f-a2|f-b2|f-c2",ew_u5)&"</li>"
ewform=ewform&"<li class=""l-1"">图片："&aiinput("","p5","",0,200,"横幅图片","f-a2|f-b2|f-c2",ew_p5)&esup("0|1|b5|"&eshref(ew_sk&"img/",3)&"|2|EESaiForm|p5|0|0|0|0.ees")&"</li>"
ewform=ewform&"<li>六幅："&aiinput("","s6","",0,50,"*横幅的名称","f-a2|f-b2|f-c2",ew_s6)&"链接："&aiinput("","u6","",0,50,"*横幅的的链接地址","f-a2|f-b2|f-c2",ew_u6)&"</li>"
ewform=ewform&"<li class=""l-1"">图片："&aiinput("","p6","",0,200,"横幅图片","f-a2|f-b2|f-c2",ew_p6)&esup("0|1|b6|"&eshref(ew_sk&"img/",3)&"|2|EESaiForm|p6|0|0|0|0.ees")&"</li>"

ewform=ewform&"<li>背景："&aiinput("","pg","",0,200,"*横幅背景颜色，使用|隔开.","f-a4|f-b4|f-c4",ew_pg)&"</li>"
ewform=ewform&"<li class=""l-1"">其他："&aiinput("","ot","",0,50,"","f-a4|f-b4|f-c4",ew_ot)&"</li>"
ewform=ewform&"</ul>"
ewform=ewform&eskyx(1,2,2)
if ewfty=1 then
ewform=ewform&"<li class=""l-sb"">"&aibutton(2,"","","f-sb",s_umxgs)&aiinput("hidden","id","",0,0,"","",ew_id)&aibutton(1,"","","f-sb",s_ztcz)&aiselect("lian","","选填项","f-s1","0",0,"禁用联动|联动主要|联动所有")&"联动处理(修改编码的时候建议启用)</li>"
elseif ewfty=0 then
ewform=ewform&"<li class=""l-sb"">"&aibutton(2,"","","f-sb",s_umtjs)&aibutton(1,"","","f-sb",s_ztcz)&"</li>"
end if
ewform=ewform&"</ul></form></div>"
End Function
'-----------------------------------
'add action
'=ewadd()
'-----------------------------------
Function ewadd()
ew_bt=s_umtjs&s_udews&","&ew_bt:ew_zt=s_umtjs&s_udews&","&ew_zt:ew_nr=s_umtjs&s_udews&","&ew_nr
e_wl=e_wl&" &gt;&gt; <a href="""&e_ur1&""">"&s_umtjs&s_udews&"</a>"
e_mt=esbts(s_udxew,s_udlew,s_umtjs&s_udews&g_gy&e_ur1,s_udews&s_umlbs&g_gy&e_ur0)
if esky(1,e_gdj) then
if aireqx("sn,mc,bt,nr,zt,ur,cp,sk,xy") then
if gysfm(ewlie("form"),ewbiao,"1=2","ew_",1) then
e_ma=e_ma&aitiao(s_umtjs&s_udews&s_ztcg,e_ur0,i_nmtz)
e_ma=e_ma&eskod(17,77,esapm(0,s_udew&g_apj))
else
e_ma=e_ma&aigo(s_umtjs&s_udews&s_ztsb&"[未知错误]",1)
end if
else
e_ma=e_ma&aigo(s_umtjs&s_udews&s_ztsb&"[请认真填写各选项]",1)
end if
else
e_ma=ewform(0)&e_ma
end if
End Function
'-----------------------------------
'edit action
'=ewedit()
'-----------------------------------
Function ewedit()
ew_bt=s_umxgs&s_udews&","&ew_bt:ew_zt=s_umxgs&s_udews&","&ew_zt:ew_nr=s_umxgs&s_udews&","&ew_nr
e_wl=e_wl&" &gt;&gt; <a href="""&eshref(s_umgl&g_urg&s_udew&g_urg&s_umxg&g_urg&g_u3&g_urz,77)&""">"&s_umxgs&s_udews&"</a>"
e_mt=esbts(s_udxew,s_udlew,s_umxgs&s_udews&g_gy&eshref(s_umgl&g_urg&s_udew&g_urg&s_umxg&g_urg&g_u3&g_urz,77),s_umtjs&s_udews&g_gy&e_ur1&g_gx&s_udews&s_umlbs&g_gy&e_ur0)
if esky(1,e_gdj) then
if aireqx("sn,mc,bt,nr,zt,ur,cp,sk,xy") then
if gysfm(ewlie("form"),ewbiao,"ew_id="&aiint(aireq("id"))&"","ew_",2) then
if aireq("sn")<>aireq("y_sn") and (aireq("lian")="1" or aireq("lian")="2") then'处理内容分类编码更换,内容太多速度会比较慢。
Call gysgx(saidbqz&"ai","ai_ew="&aireq("sn")&"","ai_ew="&aireq("y_sn")&"")
Call gysgx(saidbqz&"ef","ef_ew="&aireq("sn")&"","ef_ew="&aireq("y_sn")&"")
Call gysgx(saidbqz&"ep","ep_ew="&aireq("sn")&"","ep_ew="&aireq("y_sn")&"")
if aireq("lian")="2" then
Call gysgx(saidbqz&"ed","ed_ew="&aireq("sn")&"","ed_ew="&aireq("y_sn")&"")
Call gysgx(saidbqz&"ek","ek_ew="&aireq("sn")&"","ek_ew="&aireq("y_sn")&"")
Call gysgx(saidbqz&"eq","eq_ew="&aireq("sn")&"","eq_ew="&aireq("y_sn")&"")
Call gysgx(saidbqz&"uk","uk_ew="&aireq("sn")&"","uk_ew="&aireq("y_sn")&"")
Call gysgx(saidbqz&"gg","gg_ew="&aireq("sn")&"","gg_ew="&aireq("y_sn")&"")
Call gysgx(saidbqz&"ey","ey_ew="&aireq("sn")&"","ey_ew="&aireq("y_sn")&"")
Call gysgx(saidbqz&"ee","ee_ew="&aireq("sn")&"","ee_ew="&aireq("y_sn")&"")
end if
end if
e_ma=e_ma&aitiao(s_umxgs&s_udews&s_ztcg,e_ur0,i_nmtz)
e_ma=e_ma&eskod(17,77,esapm(0,s_udew&g_apj))
else
e_ma=e_ma&aigo(s_umxgs&s_udews&s_ztsb,1)
end if
else
e_ma=e_ma&aigo(s_umxgs&s_udews&s_ztsb,1)
end if
else
if gysread(ewlie("all"),ewbiao,"ew_id="&aiint(g_u3)&"","") then
e_ma=ewform(1)&e_ma
else
e_ma=e_ma&aigo(s_udews&s_ztno,1)
end if
end if
End Function
'-----------------------------------
'del
'=ewdel()
'-----------------------------------
Function ewdel()
ew_bt=s_udews&s_umscs&","&ew_bt:ew_zt=s_udews&s_umscs&","&ew_zt:ew_nr=s_udews&s_umscs&","&ew_nr
e_wl=e_wl&" &gt;&gt; "&s_udews&s_umscs&""
e_mt=esbts(s_udxew,s_udlew,s_umscs&s_udews,s_umtjs&s_udews&g_gy&e_ur1&g_gx&s_udews&s_umlbs&g_gy&e_ur0)
if e_gdj>2 then
if aiint(g_u3)>0 then
if gysdel(ewbid,ewbiao,"ew_id="&aiint(g_u3)) then
e_ma=e_ma&aitiao(s_udews&s_umscs&s_ztcg,e_ur0,i_nmtz)
e_ma=e_ma&eskod(17,77,esapm(0,s_udew&g_apj))
else
e_ma=e_ma&aigo(s_udews&s_umscs&s_ztsb,1)
end if
elseif aibj(g_u2,s_umsc&"-x") then
if gysdel(ewbid,ewbiao,0) then
e_ma=e_ma&aitiao(s_udews&s_umscs&s_ztcg,e_ur0,i_nmtz)
e_ma=e_ma&eskod(17,77,esapm(0,s_udew&g_apj))
else
e_ma=e_ma&aigo(s_udews&s_umscs&s_ztsb,1)
end if
end if
end if
End Function
'-----------------------------------
'list
'=ewlist()
'-----------------------------------
Function ewlist()
e_mt=esbts(s_udxew,s_udlew,s_udews&s_umlbs&g_gy&e_ur0,s_umtjs&s_udews&g_gy&e_ur1)
if esky(1,e_gdj) then
if gysfm(ewlie(s_umlb&"s"),ewbiao,1,"ew_",22) then
e_ma=e_ma&aitiao(s_umxgs&s_udews&s_ztcg,e_ur0,i_nmtz)
e_ma=e_ma&eskod(17,77,esapm(0,s_udew&g_apj))
else
e_ma=e_ma&aigo(s_umxgs&s_udews&s_ztsb,1)
end if
else
'@@ew_id,1ew_sn,2ew_mc,3ew_bt,4ew_nr,5ew_zt,6ew_cp,7ew_sk,8ew_xy
if gystop(i_nmtp,ewbid,ewlie(s_umlb),ewbiao,"",ewordermo,"") then
e_ma=e_ma&"<div class=""l-f""><form id=""EESaiForm"" name=""EESaiForm"" action="""" method=""post""><ul>"
gysax=split(gysar,g_gx)
for gysi=0 to ubound(gysax)
gysay=split(gysax(gysi),g_gy)
if gysi mod 2=0 then
e_lcss="l1"
else
e_lcss="l2"
end if
if aiint(gysay(8))>1 then
e_lcss=e_lcss&" ftt"
elseif aiint(gysay(8))<1 then
e_lcss=e_lcss&" ftq"
end if
e_ma=e_ma&"<li class="""&e_lcss&""">名称："&aiinput("","mc","",0,50,"*","f-a1|f-b1|f-c1",gysay(2))&"编码："&aiinput("","sn","",6,50,"*","f-a1|f-b1|f-c1",gysay(1))&"标题："&aiinput("","bt","",6,200,"","f-a1|f-b1|f-c1",gysay(3))&"主题："&aiinput("","zt","",0,200,"*","f-a1|f-b1|f-c1",gysay(5))&"</li>"
e_ma=e_ma&"<li class="""&e_lcss&""">状态："&aiselect("xy","","","f-s1",gysay(8),0,i_bxy)&"介绍："&aiinput("","nr","",0,200,"*","f-a1|f-b1|f-c1",gysay(4))&"风格："&aiinput("","sk","",0,200,"*","f-a1|f-b1|f-c1",gysay(7))&"版权："&aiinput("","cp","",0,200,"*","f-a1|f-b1|f-c1",gysay(6))&aiinput("hidden","id","",0,0,"","",gysay(0))&aibutton(2,"","","f-se","快速"&s_umxgs)&aibuttonk(eshref(s_umgl&g_urg&s_udew&g_urg&s_umxg&g_urg&gysay(0)&g_urz,77),"","","","f-se","详细"&s_umxgs)&aibuttonk(eshref(s_umgl&g_urg&s_udew&g_urg&s_umsc&g_urg&gysay(0)&g_urz,77),s_umscs&s_udews&s_ztqr,"","","f-se",s_umscs)&"</li>"
next
e_ma=e_ma&eskyx(0,2,2)
e_ma=e_ma&"<li class=""l-sb"">"&aibutton(2,"","","f-sb",s_umxgs)&aibutton(1,"","","f-sb",s_ztcz)&aibuttonk(eshref(s_umgl&g_urg&s_udew&g_urg&s_umsc&"-x"&g_urz,77),s_umscs&s_udews&s_ztqr,"","","f-sb","清空")&"</li>"
e_ma=e_ma&"</ul></form></div>"
else
e_ma=e_ma&aigo(s_udews&s_ztno,e_ur1)
end if
end if
End Function
%>