<%dbs="../"%>
<!--#include file="../inc/config.asp"-->
<!--#include file="uccook.asp"-->
<!--#include file="uc.asp"-->
<%
id=request("id")
if id="" or IsNumeric(id)<>true then
response.Write "<script >alert('提示：\n\n对不起，系统错误...');location.href='index.asp';</script>"
response.End()
end if
'得到所有原始数据
set rs=Server.CreateObject("Adodb.Recordset")
	sql="select * from H_pic where id="&id&""
	rs.open sql,conn,1,1
	if rs.eof then
	response.Write "系统出错请联系管理员或者开发商http://www.hn22.com"
	else
	H_class=rs("H_class")
	H_name=rs("H_name")
	H_pic=rs("H_pic")
	H_txt=rs("H_txt")
	H_KEY=rs("H_KEY")
	H_IX=rs("H_IX")
	UID=rs("UID")
	end if
	rs.close

%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML xmlns="http://www.w3.org/1999/xhtml">
<HEAD>
<title><%=W_title%>,会员中心</title>

<META http-equiv=Content-Type content="text/html; charset=gb2312">
<LINK href="style.css" type=text/css rel=stylesheet>
<SCRIPT language=javascript src="images/jquery.js" 
type=text/javascript></SCRIPT>

<SCRIPT language=javascript src="images/function.js" 
type=text/javascript></SCRIPT>

<SCRIPT language=javascript type=text/javascript>
<!--


/*
function AddnewType()
*/
-->
</SCRIPT>

<META content="MSHTML 6.00.3790.4426" name=GENERATOR>
</HEAD>
<BODY><!--用户中心头部-->
<!--#include file="top.asp"-->
<table width="960" border="0" cellpadding="0" cellspacing="0">
    <tr>
        <td width="150" valign="top"><!--#include file="left.asp"--></td>
        <td width="810" align="right" valign="top"><table width="800" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td width="20" align="center"><img src="images/ico_4.gif" width="12" height="12"></td>
                <td height="30" align="left"><a href="index.asp" target="_self">用户中心</a> <span class="uc_huise">&gt; 修改照片信息</span></td>
            </tr>
            <tr>
                <td height="1" colspan="2" bgcolor="#EEEEEE"></td>
                </tr>
        </table>
            <table width="600" height="5" border="0" cellpadding="0" cellspacing="0">
                <tr>
                    <td></td>
                </tr>
            </table>
			<form action="pic_edit_save.asp?id=<%=id%>" method="post" target="_self">
			
            <table width="800" border="0" cellpadding="0" cellspacing="1" bgcolor="#EEEEEE">
                <tr>
                    <td height="30" colspan="2" align="left" bgcolor="#FFFFFF" class="uc_huise">修改照片                        </td>
                </tr>
                <tr>
                  <td height="30" align="left" bgcolor="#FFFFFF" class="uc_huise">&nbsp;</td>
                  <td height="30" align="left" bgcolor="#FFFFFF" class="uc_huise"><%
		set rs=Server.CreateObject("Adodb.Recordset")
	sql="select * from H_Class where UID="&UID&" and PCF=2 order by PCX desc"
	rs.open sql,conn,1,1
	if rs.eof then
	response.Write "你没有相册，请<a href=cpic.asp target=_self>增加相册</a>"
	else
		%>
		<select name="H_class" id="H_class">
		 <option value="<%=picclass%>" selected>不改变分类</option>
		<%
		
	do while not rs.eof 
		%>
		  <option value="<%=rs("ID")%>"><%=rs("PCN")%></option>
				<%
				rs.movenext 
				loop
				rs.close
				%>		
				</select>
					<a href="cpic.asp" target="_self" class="fc_green">管理我的相册</a>
				<%end if%>						</td>
                </tr>
                <tr>
                    <td width="77" height="28" bgcolor="#FFFFFF" class="uc_huise">照片预览：</td>
                    <td width="720" align="left" bgcolor="#FFFFFF" style="padding-left:10px;"><img src="../UpLoadUC/<%=H_pic%>" class="biao" border="0" onload='javascript:if(this.width>300){this.width=300}' /><br> 

</td>
                </tr>
                <tr>
                    <td height="28" bgcolor="#FFFFFF" class="uc_huise">照片名称：</td>
                    <td bgcolor="#FFFFFF" class="uc_huise"><input name="H_name" type="text" id="H_name" value="<%=H_name%>"></td>
                </tr>
                <tr>
                    <td height="28" bgcolor="#FFFFFF" class="uc_huise">照片说明：</td>
                    <td bgcolor="#FFFFFF" class="uc_huise">
                        <textarea name="H_txt" cols="80" rows="5" id="H_txt"><%=H_txt%></textarea>                    </td>
                </tr>
                <tr>
                    <td height="28" bgcolor="#FFFFFF" class="uc_huise">照片权限：</td>
                    <td bgcolor="#FFFFFF" class="uc_huise"><input name="H_KEY" type="radio" value="1" <%if H_KEY=1 then%>checked<%end if%>>
                      完全公开 
                            <input type="radio" name="H_KEY" value="2"<%if H_KEY=2 then%>checked<%end if%>>
                            好友可看
                            <input type="radio" name="H_KEY" value="3" <%if H_KEY=3 then%>checked<%end if%>> 
                            完全保密</td>
                </tr>
                <tr>
                    <td height="28" colspan="2" align="center" bgcolor="#FFFFFF" ><input name="Submit" type="submit" class="biao" value="立即修改"></td>
                    </tr>
            </table>
	        
			</form>
			
		</td>
    </tr>
</table>
<!--#include file="end.asp"-->

</BODY></HTML>
