<!--#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 JaCheckIsLog
JaCheckIsLog = JaZ.JaIsUser(B)
If JaCheckIsLog <> "yes" Then
Response.Write "<script language=javascript>alert('你没有权限观看该页面!');"
Response.Write "window.document.location.href='javascript:history.go(-1)';</script>"
End if

Dim phstr,albumID,photoID,abname
albumID = JaZ.JaKillStr(Request.QueryString("albumID"))
photoID = JaZ.JaKillStr(Request.QueryString("photoID"))
phstr = JaZ.GetBlogRe("*","JaPhoto","ID="&photoID&" and JaUid='"&B&"' and JaAlbumID="&albumID&" ")
abname = JaZ.GetCount("JaAlbumName","JaAlbum","Where ID="&phstr(1,0)&" and JaUid='"&B&"' ")
%>
<html>
<head>
<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>JaZone</title>
<link type="text/css" rel="stylesheet" href="Style/<%=Trim(C(5))%>/css.css">
</head>
<script>
function CheckJaUser() {
         if (document.form1.photoname.value=="")
           {
           alert("照片名称不能为空!");
           document.form1.photoname.focus();
           return false;
           }
         if (document.form1.photomemo.value=="")
           {
           alert("照片描述不能为空!");
           document.form1.photomemo.focus();
           return false;
           }
}
</script>
<body leftMargin=2 topMargin=0 marginheight="0" marginwidth="0" style="background-color:transparent;<%=cur%>" text="#cccccc" link="#cccccc" vlink="#cccccc" alink="#cccccc">
<table width="100%"  border="0" cellspacing="0" cellpadding="0">
  <tr> 
    <td width="845" height="23" background="Style/<%=Trim(C(5))%>/titleback.gif"><span class="classs"><img src="Style/<%=Trim(C(5))%>/b.gif" width="1" height="1" align="absmiddle" class="ltitle">&nbsp;<b> 修改照片</b></span></td>
    <td width="29" valign="middle" background="Style/<%=Trim(C(5))%>/titleback.gif"><div align="right"><img src="Qz/p_icon10.gif" width="15" height="15"></div></td>
    <td width="131" valign="middle" background="Style/<%=Trim(C(5))%>/titleback.gif"><a href="AlbumAll.asp?JaUid=<%=B%>">返回相册 
      </a> </td>
  </tr>
  <tr> 
    <td height="2"></td>
    <td></td>
    <td></td>
  </tr>
</table>
<BR>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr> 
    <td><div align="center">
        <form name="form1" method="post" action="PhotoEdit2.Asp?JaUid=<%=B%>&albumID=<%=albumID%>&photoID=<%=photoID%>" onSubmit="return CheckJaUser();">
          <table width="90%" border="0" cellspacing="2" cellpadding="0">
            <tr> 
              <td colspan="2"><table width="25%" border="0" align="center" cellpadding="2" cellspacing="0">
                  <tr>
                    <td><div align="center">
<img src="UpLoad/<%=phstr(5,0)%>" onload="javascript:if(this.width>360)this.width=360;" onMouseOver="javascript:if(this.width>360)this.width=360;"></div></td>
                  </tr>
                </table></td>
            </tr>
            <tr> 
              <td width="21%">照片名称：</td>
              <td width="79%"><input name="photoname" type="text" id="albumname2" value="<%=phstr(3,0)%>" maxlength="16">
                * (8个汉字以内)</td>
            </tr>
            <tr> 
              <td>相册分类：</td>
              <td><%=abname%></td>
            </tr>
            <tr> 
              <td>照片来源：</td>
              <td><input name="photofrom" type="radio" value="原创" <%If Trim(phstr(4,0))="原创" Then Response.Write "checked"%>>
                原创 
                <input type="radio" name="photofrom" value="转载" <%If Trim(phstr(4,0))="转载" Then Response.Write "checked"%>>
                转载</td>
            </tr>
            <tr> 
              <td>照片描述：</td>
              <td><textarea name="photomemo" cols="35" rows="5" id="photomemo"><%=phstr(6,0)%></textarea></td>
            </tr>
            <tr> 
              <td colspan="2"><div align="center"> 
                  <input name="imageField" type="image" src="Qz/b.gif" width="1" height="1" border="0" class="submit" onClick="return checkAndSub()">
                  <input name="imageField" type="image" src="Qz/b.gif" width="1" height="1" border="0" class="reset" onClick="javascript:form1.reset();return false;">
                </div></td>
            </tr>
          </table>
        </form>
      </div></td>
  </tr>
</table>
</body>
</html>
