<!--#include file="../Inc.asp"-->
<!--#include file="../ydzq.asp"-->
<%call head()
Call saycardd("编辑菜单")

dim p,ydbbsname,nam,brr,cent,sore,yc,hyin,oopp,sellkf,idi,txt,typeID,ydnum,did
p=request("p")
ID=request("ID")
typeID=request("typeID")
if p="" or IsNumeric(p)=False then
  Call Error("选择类别无效！")
  end if
if ID="" or IsNumeric(ID)=False then
  Call Error("版块ID无效！")
  end if
p=clng(p)
if p=10 then ydbbsname="最新帖子<br/>"
if p=20 then ydbbsname="动态帖子<br/>"
if p=30 then ydbbsname="精华帖子<br/>"
if p=40 then ydbbsname="最新相片<br/>"
if p=31 then ydbbsname="最热帖子<br/>"
if p=60 then ydbbsname="随机帖子<br/>"
if p=4 then ydbbsname="WML标签<br/>"
if p=3 then ydbbsname="新的页面<br/>"
if p=1 then ydbbsname="同城论坛<br/>"
if p=2 then ydbbsname="超级连接<br/>"
if p=0 then ydbbsname="UBB标签<br/>"
response.write"项目类型:"&ydbbsname&""

set rs=Server.CreateObject("ADODB.Recordset")
rs.open"select * from ydbbs where ID="&id,conn,1,1
if rs.eof then
  Call Error("不存在的版块！")
  end if
nam=rs("name")
brr=rs("brr")
cent=rs("myjbin")
sore=rs("myjyin")
yc=rs("yc")
hyin=rs("hyin")
oopp=rs("oopp")
sellkf=rs("sellkf")
idi=rs("pid")
txt=rs("test")
did=rs("did")
ydnum=rs("ydnum")
bklogo=rs("logo")
bkvicexs=rs("vicexs")
bkids=rs("ids")
rs.close
set rs=nothing

if p=1 then
response.write"----------<br/>"
response.write"版块名称<br/>"
if saytk>1 then
Response.write "<form name=""form"" method=""post"" action=""adminbkcl.asp?ID="&id&"&amp;typeID="&typeID&"&amp;sid="&sid&"&amp;saytk="&saytk&""">"
response.write"<input name='nam' value='"&nam&"' title='版块名称'/><br/>"
response.write"版块后面:<select name='brr' value='"&brr&"'>"
response.write"<option value='1'>自动换行</option>"
response.write"<option value='0'>不换行</option>"
response.write"</select><br/>"
response.write"显示顺序:<input name='idi' title='显示顺序' format='*N' maxlength='6' value='"&idi&"' size='10' emptyok='false'/><br/>"
response.write"进入"&getcent&":<input name='cent' format='*N' value='"&cent&"' size='8' emptyok='false'/><br/>"
response.write"进入经验:<input name='sore' format='*N' value='"&sore&"' size='8' emptyok='false'/><br/>"
response.write"公开方式:<select name='yc' value='"&yc&"'>"
response.write"<option value='0'>正常显示</option>"
response.write"<option value='1'>隐藏显示</option>"
response.write"</select><br/>"
response.write"进入权限:<select name='hyin' value='"&hyin&"'>"
response.write"<option value='0'>没有限制</option>"
response.write"<option value='1'>会员进入</option>"
response.write"<option value='2'>版主进入</option>"
response.write"</select><br/>"
response.write"禁模拟器:<select name='oopp' value='"&oopp&"'>"
response.write"<option value='0'>开放浏览</option>"
response.write"<option value='1'>禁止浏览</option>"
response.write"</select><br/>"
response.write"发帖状态:<select name='sellkf' value='"&sellkf&"'>"
response.write"<option value='0'>允许发帖</option>"
response.write"<option value='1'>禁止发帖</option>"
response.write"</select><br/>"
response.write "<input type=""hidden"" name=""p"" value=""1""/>"
response.write "<input type=""hidden"" name=""tp"" value=""1""/>"
response.write "<input type=""submit"" name=""Submit"" value=""确定提交""></form><br/>"
else
response.write"<input name='nam"&tt&"' value='"&nam&"' title='版块名称'/><br/>"
response.write"版块后面:<select name='brr"&tt&"' value='"&brr&"'>"
response.write"<option value='1'>自动换行</option>"
response.write"<option value='0'>不换行</option>"
response.write"</select><br/>"
response.write"显示顺序:<input name='idi"&tt&"' title='显示顺序' format='*N' maxlength='6' value='"&idi&"' size='10' emptyok='false'/><br/>"
response.write"进入"&getcent&":<input name='cent"&tt&"' format='*N' value='"&cent&"' size='8' emptyok='false'/><br/>"
response.write"进入经验:<input name='sore"&tt&"' format='*N' value='"&sore&"' size='8' emptyok='false'/><br/>"
response.write"公开方式:<select name='yc"&tt&"' value='"&yc&"'>"
response.write"<option value='0'>正常显示</option>"
response.write"<option value='1'>隐藏显示</option>"
response.write"</select><br/>"
response.write"进入权限:<select name='hyin"&tt&"' value='"&hyin&"'>"
response.write"<option value='0'>没有限制</option>"
response.write"<option value='1'>会员进入</option>"
response.write"<option value='2'>版主进入</option>"
response.write"</select><br/>"
response.write"禁模拟器:<select name='oopp"&tt&"' value='"&oopp&"'>"
response.write"<option value='0'>开放浏览</option>"
response.write"<option value='1'>禁止浏览</option>"
response.write"</select><br/>"
response.write"发帖状态:<select name='sellkf"&tt&"' value='"&sellkf&"'>"
response.write"<option value='0'>允许发帖</option>"
response.write"<option value='1'>禁止发帖</option>"
response.write"</select><br/>"
response.write"<anchor>[确定提交]<go href='adminbkcl.asp?ID="&id&"&amp;typeID="&typeID&"&amp;sid="&sid&"&amp;saytk="&saytk&"' method='post' accept-charset='utf-8'>"
response.write"<postfield name='nam' value='$(nam"&tt&")'/>"
response.write"<postfield name='idi' value='$(idi"&tt&")'/>"
response.write"<postfield name='hyin' value='$(hyin"&tt&")'/>"
response.write"<postfield name='sellkf' value='$(sellkf"&tt&")'/>"
response.write"<postfield name='yc' value='$(yc"&tt&")'/>"
response.write"<postfield name='cent' value='$(cent"&tt&")'/>"
response.write"<postfield name='sore' value='$(sore"&tt&")'/>"
response.write"<postfield name='brr' value='$(brr"&tt&")'/>"
response.write"<postfield name='oopp' value='$(oopp"&tt&")'/>"
response.write"<postfield name='p' value='1'/>"
response.write"<postfield name='TP' value='1'/>"
response.write"</go></anchor><br/>"end if
elseif p=2 then
response.write"----------<br/>"
response.write"连接名称<br/>"
if saytk>1 then
Response.write "<form name=""form"" method=""post"" action=""adminbkcl.asp?ID="&id&"&amp;typeID="&typeID&"&amp;sid="&sid&"&amp;saytk="&saytk&""">"
response.write"<input name='nam' value='"&nam&"' title='连接名称'/><br/>"
response.write"连接地址<br/>"
response.write"<input name='txt' value='"&ubb(txt)&"' title='连接地址'/><br/>"
response.write"连接后面:<select name='brr' value='"&brr&"'>"
response.write"<option value='1'>自动换行</option>"
response.write"<option value='0'>不换行</option>"
response.write"</select><br/>"
response.write"显示顺序:<input name='idi' title='显示顺序' format='*N' maxlength='6' value='"&idi&"' size='10' emptyok='false'/><br/>"
response.write"公开方式:<select name='yc' value='"&yc&"'>"
response.write"<option value='0'>正常显示</option>"
response.write"<option value='1'>隐藏显示</option>"
response.write"</select><br/>"
response.write "<input type=""hidden"" name=""p"" value=""2""/>"
response.write "<input type=""hidden"" name=""tp"" value=""1""/>"
response.write "<input type=""submit"" name=""Submit"" value=""确定提交""></form><br/>"
else
response.write"<input name='nam"&tt&"' value='"&nam&"' title='连接名称'/><br/>"
response.write"连接地址<br/>"
response.write"<input name='txt"&tt&"' value='"&ubb(txt)&"' title='连接地址'/><br/>"
response.write"连接后面:<select name='brr"&tt&"' value='"&brr&"'>"
response.write"<option value='1'>自动换行</option>"
response.write"<option value='0'>不换行</option>"
response.write"</select><br/>"
response.write"显示顺序:<input name='idi"&tt&"' title='显示顺序' format='*N' maxlength='6' value='"&idi&"' size='10' emptyok='false'/><br/>"
response.write"公开方式:<select name='yc"&tt&"' value='"&yc&"'>"
response.write"<option value='0'>正常显示</option>"
response.write"<option value='1'>隐藏显示</option>"
response.write"</select><br/>"
response.write"<anchor>[确定提交]<go href='adminbkcl.asp?ID="&id&"&amp;typeID="&typeID&"&amp;sid="&sid&"&amp;saytk="&saytk&"' method='post' accept-charset='utf-8'>"
response.write"<postfield name='nam' value='$(nam"&tt&")'/>"
response.write"<postfield name='idi' value='$(idi"&tt&")'/>"
response.write"<postfield name='txt' value='$(txt"&tt&")'/>"
response.write"<postfield name='yc' value='$(yc"&tt&")'/>"
response.write"<postfield name='brr' value='$(brr"&tt&")'/>"
response.write"<postfield name='p' value='2'/>"
response.write"<postfield name='TP' value='1'/>"
response.write"</go></anchor><br/>"end if
elseif p=3 then
response.write"----------<br/>"
response.write"页面名称<br/>"
if saytk>1 then
Response.write "<form name=""form"" method=""post"" action=""adminbkcl.asp?ID="&id&"&amp;typeID="&typeID&"&amp;sid="&sid&"&amp;saytk="&saytk&""">"
response.write"<input name='nam' value='"&nam&"' title='连接名称'/><br/>"
response.write"页面后面:<select name='brr' value='"&brr&"'>"
response.write"<option value='1'>自动换行</option>"
response.write"<option value='0'>不换行</option>"
response.write"</select><br/>"
response.write"显示顺序:<input name='idi' title='显示顺序' format='*N' maxlength='6' value='"&idi&"' size='10' emptyok='false'/><br/>"
response.write"公开方式:<select name='yc' value='"&yc&"'>"
response.write"<option value='0'>正常显示</option>"
response.write"<option value='1'>隐藏显示</option>"
response.write"</select><br/>"
response.write"禁模拟器:<select name='oopp' value='"&oopp&"'>"
response.write"<option value='0'>开放浏览</option>"
response.write"<option value='1'>禁止浏览</option>"
response.write"</select><br/>"
response.write "<input type=""hidden"" name=""p"" value=""3""/>"
response.write "<input type=""hidden"" name=""tp"" value=""1""/>"
response.write "<input type=""submit"" name=""Submit"" value=""确定提交""></form><br/>"
else
response.write"<input name='nam"&tt&"' value='"&nam&"' title='连接名称'/><br/>"
response.write"页面后面:<select name='brr"&tt&"' value='"&brr&"'>"
response.write"<option value='1'>自动换行</option>"
response.write"<option value='0'>不换行</option>"
response.write"</select><br/>"
response.write"显示顺序:<input name='idi"&tt&"' title='显示顺序' format='*N' maxlength='6' value='"&idi&"' size='10' emptyok='false'/><br/>"
response.write"公开方式:<select name='yc"&tt&"' value='"&yc&"'>"
response.write"<option value='0'>正常显示</option>"
response.write"<option value='1'>隐藏显示</option>"
response.write"</select><br/>"
response.write"禁模拟器:<select name='oopp"&tt&"' value='"&oopp&"'>"
response.write"<option value='0'>开放浏览</option>"
response.write"<option value='1'>禁止浏览</option>"
response.write"</select><br/>"
response.write"<anchor>[确定提交]<go href='adminbkcl.asp?ID="&id&"&amp;sid="&sid&"&amp;saytk="&saytk&"' method='post' accept-charset='utf-8'>"
response.write"<postfield name='nam' value='$(nam"&tt&")'/>"
response.write"<postfield name='idi' value='$(idi"&tt&")'/>"
response.write"<postfield name='yc' value='$(yc"&tt&")'/>"
response.write"<postfield name='oopp' value='$(oopp"&tt&")'/>"
response.write"<postfield name='brr' value='$(brr"&tt&")'/>"
response.write"<postfield name='p' value='3'/>"
response.write"<postfield name='TP' value='1'/>"
response.write"</go></anchor><br/>"end if

elseif p=0 then
response.write"----------<br/>"
response.write"文本名称(用于标记)<br/>"
if saytk>1 then
Response.write "<form name=""form"" method=""post"" action=""adminbkcl.asp?ID="&id&"&amp;typeID="&typeID&"&amp;sid="&sid&"&amp;saytk="&saytk&""">"
response.write"<input name='nam' value='"&nam&"' title='文本名称'/><br/>"
response.write"文本内容(支持UBB)<br/>"
response.write"<input name='txt' value='"&ubb(txt)&"' title='输出内容'/><br/>"
response.write"文本后面:<select name='brr"&tt&"' value='"&brr&"'>"
response.write"<option value='1'>自动换行</option>"
response.write"<option value='0'>不换行</option>"
response.write"</select><br/>"
response.write"显示顺序:<input name='idi' title='显示顺序' format='*N' maxlength='6' value='"&idi&"' size='10' emptyok='false'/><br/>"
response.write"公开方式:<select name='yc' value='"&yc&"'>"
response.write"<option value='0'>正常显示</option>"
response.write"<option value='1'>隐藏显示</option>"
response.write"</select><br/>"
response.write "<input type=""hidden"" name=""p"" value=""0""/>"
response.write "<input type=""hidden"" name=""tp"" value=""1""/>"
response.write "<input type=""submit"" name=""Submit"" value=""确定提交""></form><br/>"
else
response.write"<input name='nam"&tt&"' value='"&nam&"' title='文本名称'/><br/>"
response.write"文本内容(支持UBB)<br/>"
response.write"<input name='txt"&tt&"' value='"&ubb(txt)&"' title='输出内容'/><br/>"
response.write"文本后面:<select name='brr"&tt&"' value='"&brr&"'>"
response.write"<option value='1'>自动换行</option>"
response.write"<option value='0'>不换行</option>"
response.write"</select><br/>"
response.write"显示顺序:<input name='idi"&tt&"' title='显示顺序' format='*N' maxlength='6' value='"&idi&"' size='10' emptyok='false'/><br/>"
response.write"公开方式:<select name='yc"&tt&"' value='"&yc&"'>"
response.write"<option value='0'>正常显示</option>"
response.write"<option value='1'>隐藏显示</option>"
response.write"</select><br/>"
response.write"<anchor>[确定提交]<go href='adminbkcl.asp?ID="&id&"&amp;typeID="&typeID&"&amp;sid="&sid&"&amp;saytk="&saytk&"' method='post' accept-charset='utf-8'>"
response.write"<postfield name='nam' value='$(nam"&tt&")'/>"
response.write"<postfield name='idi' value='$(idi"&tt&")'/>"
response.write"<postfield name='txt' value='$(txt"&tt&")'/>"
response.write"<postfield name='yc' value='$(yc"&tt&")'/>"
response.write"<postfield name='brr' value='$(brr"&tt&")'/>"
response.write"<postfield name='p' value='0'/>"
response.write"<postfield name='TP' value='1'/>"
response.write"</go></anchor><br/>"end if

elseif p=4 then
response.write"----------<br/>"
response.write"WML标签(用于标记)<br/>"
if saytk>1 then
Response.write "<form name=""form"" method=""post"" action=""adminbkcl.asp?ID="&id&"&amp;typeID="&typeID&"&amp;sid="&sid&"&amp;saytk="&saytk&""">"
response.write"<input name='nam' value='"&nam&"' title='文本名称'/><br/>"
response.write"WML标签内容<br/>"
response.write"<input name='txt' value='"&Ubb1(txt)&"' title='输出内容'/><br/>"
response.write"WML后面:<select name='brr' value='"&brr&"'>"
response.write"<option value='1'>自动换行</option>"
response.write"<option value='0'>不换行</option>"
response.write"</select><br/>"
response.write"显示顺序:<input name='idi' title='显示顺序' format='*N' maxlength='6' value='"&idi&"' size='10' emptyok='false'/><br/>"
response.write"公开方式:<select name='yc' value='"&yc&"'>"
response.write"<option value='0'>正常显示</option>"
response.write"<option value='1'>隐藏显示</option>"
response.write"</select><br/>"
response.write "<input type=""hidden"" name=""p"" value=""4""/>"
response.write "<input type=""hidden"" name=""tp"" value=""1""/>"
response.write "<input type=""submit"" name=""Submit"" value=""确定提交""></form><br/>"
else
response.write"<input name='nam"&tt&"' value='"&nam&"' title='文本名称'/><br/>"
response.write"WML标签内容<br/>"
response.write"<input name='txt"&tt&"' value='"&Ubb1(txt)&"' title='输出内容'/><br/>"
response.write"WML后面:<select name='brr"&tt&"' value='"&brr&"'>"
response.write"<option value='1'>自动换行</option>"
response.write"<option value='0'>不换行</option>"
response.write"</select><br/>"
response.write"显示顺序:<input name='idi"&tt&"' title='显示顺序' format='*N' maxlength='6' value='"&idi&"' size='10' emptyok='false'/><br/>"
response.write"公开方式:<select name='yc"&tt&"' value='"&yc&"'>"
response.write"<option value='0'>正常显示</option>"
response.write"<option value='1'>隐藏显示</option>"
response.write"</select><br/>"
response.write"<anchor>[确定提交]<go href='adminbkcl.asp?ID="&id&"&amp;typeID="&typeID&"&amp;sid="&sid&"&amp;saytk="&saytk&"' method='post' accept-charset='utf-8'>"
response.write"<postfield name='nam' value='$(nam"&tt&")'/>"
response.write"<postfield name='idi' value='$(idi"&tt&")'/>"
response.write"<postfield name='txt' value='$(txt"&tt&")'/>"
response.write"<postfield name='yc' value='$(yc"&tt&")'/>"
response.write"<postfield name='brr' value='$(brr"&tt&")'/>"
response.write"<postfield name='p' value='4'/>"
response.write"<postfield name='TP' value='1'/>"
response.write"</go></anchor><br/>"
end if
else
response.write"----------<br/>"
response.write"调用名称(用于后台标记)<br/>"
if saytk>1 then
Response.write "<form name=""form"" method=""post"" action=""adminbkcl.asp?ID="&id&"&amp;typeID="&typeID&"&amp;sid="&sid&"&amp;saytk="&saytk&""">"
response.write"<input name='nam' value='"&nam&"' title='调用名称'/><br/>"
response.write"调用论坛(不能留空0为全部论坛,多个请用|隔开):<br/>论坛ID<input name='did' title='调用ID' format='*N' value='"&did&"' size='10' emptyok='false'/><br/>"
response.write"调用条数:<input name='ydnum' title='调用条数' format='*N' maxlength='6' value='"&ydnum&"' size='10' emptyok='false'/><br/>"
response.write"UBB显示字数:(长度)<br/><input name=""logo"" title=""条数""  emptyok=""false"" value="""&bklogo&"""/><br/>"
response.write"UBB前显示内容:<br/><select name=""vicexs"" value="""&bkvicexs&""">"
            response.write"<option value=""0"">不显配置内容</option>"
			response.write"<option value=""1"">显示配置内容</option>"
			response.write"</select><br/>"

response.write"(回复/人气):<select name=""ids"" value="""&bkids&""">"
            response.write"<option value=""0"">不显数量</option>"
			response.write"<option value=""1"">显示数量</option>"
			response.write"</select><br/>"
response.write"调用后面:<select name='brr' value='"&brr&"'>"
response.write"<option value='1'>自动换行</option>"
response.write"<option value='0'>不换行</option>"
response.write"</select><br/>"
response.write"显示顺序:<input name='idi' title='显示顺序' format='*N' maxlength='6' value='"&idi&"' size='10' emptyok='false'/><br/>"
response.write"公开方式:<select name='yc' value='"&yc&"'>"
response.write"<option value='0'>正常显示</option>"
response.write"<option value='1'>隐藏显示</option>"
response.write"</select><br/>"
response.write "<input type=""hidden"" name=""p"" value="""&p&"""/>"
response.write "<input type=""hidden"" name=""tp"" value=""1""/>"
response.write "<input type=""submit"" name=""Submit"" value=""确定提交""></form><br/>"
else
response.write"<input name='nam"&tt&"' value='"&nam&"' title='调用名称'/><br/>"
response.write"调用论坛(不能留空0为全部论坛,多个请用|隔开):<br/>论坛ID<input name='did"&tt&"' title='调用ID' format='*N' value='"&did&"' size='10' emptyok='false'/><br/>"
response.write"调用条数:<input name='ydnum"&tt&"' title='调用条数' format='*N' maxlength='6' value='"&ydnum&"' size='10' emptyok='false'/><br/>"

response.write"UBB显示字数:(长度)<br/><input name=""logo"" title=""条数""  emptyok=""false"" value="""&bklogo&"""/><br/>"
response.write"UBB前显示内容:<br/><select name=""vicexs"" value="""&bkvicexs&""">"
            response.write"<option value=""0"">不显配置内容</option>"
			response.write"<option value=""1"">显示配置内容</option>"
			response.write"</select><br/>"

response.write"(回复/人气):<select name=""ids"" value="""&bkids&""">"
            response.write"<option value=""0"">不显数量</option>"
			response.write"<option value=""1"">显示数量</option>"
			response.write"</select><br/>"
response.write"调用后面:<select name='brr"&tt&"' value='"&brr&"'>"
response.write"<option value='1'>自动换行</option>"
response.write"<option value='0'>不换行</option>"
response.write"</select><br/>"
response.write"显示顺序:<input name='idi"&tt&"' title='显示顺序' format='*N' maxlength='6' value='"&idi&"' size='10' emptyok='false'/><br/>"
response.write"公开方式:<select name='yc"&tt&"' value='"&yc&"'>"
response.write"<option value='0'>正常显示</option>"
response.write"<option value='1'>隐藏显示</option>"
response.write"</select><br/>"
response.write"<anchor>[确定提交]<go href='adminbkcl.asp?ID="&id&"&amp;typeID="&typeID&"&amp;sid="&sid&"&amp;saytk="&saytk&"' method='post' accept-charset='utf-8'>"
response.write"<postfield name='nam' value='$(nam"&tt&")'/>"
response.write"<postfield name='did' value='$(did"&tt&")'/>"
response.write"<postfield name='ydnum' value='$(ydnum"&tt&")'/>"
response.write"<postfield name='idi' value='$(idi"&tt&")'/>"
response.write"<postfield name='txt' value='$(txt"&tt&")'/>"
response.write"<postfield name='yc' value='$(yc"&tt&")'/>"
response.write"<postfield name='brr' value='$(brr"&tt&")'/>"
response.write"<postfield name='ids' value='$(ids"&tt&")'/>"
response.write"<postfield name='p' value='"&p&"'/>"
response.write"<postfield name='TP' value='1'/>"
response.write"</go></anchor><br/>"
end if
end if
response.write"<a href=""adminbbsdel.asp?id="&id&"&amp;sid="&sid&"&amp;saytk="&saytk&""">[删除项目]</a>"

if typeid<>"" then
response.write"<br/><a href=""adminbbsll.asp?id="&typeid&"&amp;sid="&sid&"&amp;saytk="&saytk&""">[上级页面]</a>"
end if
response.write"<br/><a href=""adminbbs.asp?sid="&sid&"&amp;saytk="&saytk&""">[同城设计]</a>"
%><!--#include file="fanhui.asp"-->
<%response.write""
call headsay()%>
