<!--#Include File="Connection.Asp"-->
 
<%
Dim JaZ,C,flyN,B,cur
Set JaZ = new q_zone
B = JaZ.JaKillStr(Request.QueryString("JaUid"))
If B="" Then
B= "2"
End If
C=Split(JaZ.GetHeadElement("*",B,"JaFaceSet",""),"<><><>")
flyN = split(Trim(C(2)),"|")
If Cint(Trim(C(1)))<>0 Then
cur = "CURSOR:url('cur/"&C(1)&".ani');"
Else
cur = ""
End If 
Dim albumID,photoID
albumID = JaZ.JaKillStr(Request.QueryString("albumID"))
photoID = JaZ.JaKillStr(Request.QueryString("photoID"))
%>

<%
Dim JaCheckIsLog
JaCheckIsLog = JaZ.JaIsUser(B)
If JaCheckIsLog = "yes" Then

Dim Jatitle,Jahassign,Jacontent,strLens
Dim JaInSQL,JaInwWhe
Dim JaVicNum
JaVicNum = SESSION("VicNum")
Jatitle = JaZ.JaKillStr(Trim(Request.Form("photoname")))
Jahassign = Trim(Request.Form("photofrom"))
Jacontent = JaZ.JaKillStr(Trim(Request.Form("photomemo")))
strLens = JaZ.strLen(Jacontent)
If strLens>75 Then
Response.Write "<script language=javascript>alert('照片描述的长度在75个汉字以内!');"
Response.Write "window.document.location.href='javascript:history.go(-1)';</script>"
Else

JaInSQL = "JaPhotoName='"&Jatitle&"',JaPhotoFrom='"&Jahassign&"',JaPhotoMemo='"&Jacontent&"' "
JaInwWhe = "JaUid='"&JaVicNum&"' and ID="&photoID&" and JaAlbumID="&albumID&" "
JaZ.JaVicBlog JaInSQL,"JaPhoto",JaInwWhe

Response.Write "<script language=javascript>alert('修改成功!');"
Response.Write "window.document.location.href='AlbumMenu.Asp?JaUid="&JaVicNum&"&albumID="&albumID&"';</script>"
End if
Else
Response.Write "<script language=javascript>alert('你没有权限观看该页面!');"
Response.Write "window.document.location.href='javascript:history.go(-1)';</script>"
End if
%>
