<%@language=vbscript codepage=936 %> <% option explicit response.buffer=true Const PurviewLevel=2 Const CheckChannelID=4 Const PurviewLevel_Photo=3 %> <% dim PhotoID,rsPhoto,sql,FoundErr,ErrMsg,PurviewChecked dim ClassID,tClass,ClassName,RootID,ParentID,Depth,ParentPath,ClassMaster dim SkinID,LayoutID,SkinCount,LayoutCount,BrowsePurview,AddPurview PurviewChecked=False FoundErr=False PhotoID=trim(request("PhotoID")) if PhotoID="" then FoundErr=True ErrMsg=ErrMsg & "
  • 请指定要修改的图片ID
  • " call WriteErrMsg() call CloseConn() response.end else PhotoID=CLng(PhotoID) end if sql="select * from Photo where PhotoID=" & PhotoID & "" Set rsPhoto= Server.CreateObject("ADODB.Recordset") rsPhoto.open sql,conn,1,1 if rsPhoto.bof and rsPhoto.eof then FoundErr=True ErrMsg=ErrMsg & "
  • 找不到图片
  • " call WriteErrMsg() else ClassID=rsPhoto("ClassID") set tClass=conn.execute("select ClassName,RootID,ParentID,Depth,ParentPath,ClassMaster From PhotoClass where ClassID=" & ClassID) if tClass.bof and tClass.eof then founderr=True ErrMsg=ErrMsg & "
  • 找不到指定的栏目
  • " else ClassName=tClass(0) RootID=tClass(1) ParentID=tClass(2) Depth=tClass(3) ParentPath=tClass(4) ClassMaster=tClass(5) end if if rsPhoto("Editor")=AdminName and rsPhoto("Passed")=False then PurviewChecked=True else if AdminPurview=1 or AdminPurview_Photo<=2 then PurviewChecked=True else PurviewChecked=CheckClassMaster(ClassMaster,AdminName) if PurviewChecked=False and ParentID>0 then set tClass=conn.execute("select ClassMaster from PhotoClass where ClassID in (" & ParentPath & ")") do while not tClass.eof PurviewChecked=CheckClassMaster(tClass(0),AdminName) if PurviewChecked=True then exit do tClass.movenext loop end if end if if PurviewChecked=False then FoundErr=True ErrMsg=ErrMsg & "
  • 对不起,您的权限不够,不能修改此张图片!
  • " end if end if end if if FoundErr=True then call WriteErrMsg() else %> 修改图片
    修 改 图 片
    <%if AdminPurview=1 or AdminPurview_Photo<=2 then%> <%end if%> <%if AdminPurview=1 or AdminPurview_Photo<=2 then%> <%end if%>
    所属栏目:
    <% if AdminPurview=1 or AdminPurview_Photo<=2 then response.write "" response.write "注意:1、不能指定为含有子栏目的栏目,或者外部栏目" else call Admin_ShowPath2(ParentPath,ClassName,Depth) response.write "" end if %>  
    图片名称: " size="50" maxlength="255"> *
    关键字: " size="50" maxlength="255"> *
    用来查找相关图片,可输入多个关键字,中间用“|”隔开。不能出现""'*?,.()等字符。
    图片作者: " size="20" maxlength="100">   信箱: " size="30" maxlength="100">  主页: " size="30" maxlength="100">
    缩略图地址: " size="30" maxlength="200">
    原始图片地址: " size="30" maxlength="200">
    图片地址二: " size="30" maxlength="200">
    图片地址三: " size="30" maxlength="200">
    图片地址四: " size="30" maxlength="200">
    图片简介:
    支持各种UBB代码
    图片大小: 缩略图: " size="6" maxlength="10"> K    原始图片: " size="6" maxlength="10"> K     图片二: " size="6" maxlength="10"> K     图片三: " size="6" maxlength="10"> K      图片四: " size="6" maxlength="10"> K
    图片属性: > 固顶图片    热门图片    > 推荐图片 图片评分等级: *
    查看次数: 本日: " size="10" maxlength="10">     本周: " size="10" maxlength="10">     本月: " size="10" maxlength="10">     总计: " size="10" maxlength="10">
    查看等级:    只有具有相应权限的人才能查看此图片。
    查看点数: " size="5" maxlength="3">      如果大于0,则用户查看此图片时将消耗相应点数。(对游客和管理员无效)
    录入时间: " maxlength="50"> 时间格式为“年-月-日 时:分:秒”,如:2003-5-12 12:32:47
    立即发布: > 是(如果选中的话将直接发布,否则审核后才能发布。)

     

    <% end if rsPhoto.close set rsPhoto=nothing call CloseConn() %>