<!--#include file="../main.asp" -->
<!--#include file="../IsLogin.asp" -->
<!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>管理中心-这里是所有管理的入口</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312"><LINK 
href="images/global.css" type=text/css rel=stylesheet><LINK 
href="images/main.css" type=text/css rel=stylesheet>
<META content="MSHTML 6.00.3790.218" name=GENERATOR>
<script language="javascript">
<!--
function CheckData()
{
  if (document.form1.username.value=="")
  {
    alert("对不起，相册名称不能为空！");
	document.form1.username.focus();
	return false;
   }
  if (document.form1.type.value=="")
  {
    alert("对不起，相册类别不能为空！");
	document.form1.type.focus();
	return false;
   }

}

//-->
</script></HEAD>
<BODY id=main background="../images/bj.gif">
<%
dim m_UserID
m_UserID = Request.Cookies("aspxnet")("CurUserID")
%>
<DIV id=wrapper>
<!--#include file="top.asp"-->
<DIV class=row>
<!--#include file="left.asp"-->
<DIV class=right_side>
<DIV class=col id=bulletin>
<DIV class=col_head>
<H3><IMG height=16 alt=a hspace=3 src="images/ico_dots.gif" 
width=20 align=left vspace=3>我的相册</H3>
<SPAN class=float_right><STRONG><a href="photo_add.asp">添加相册</a></STRONG></SPAN><SPAN class=float_right>------</SPAN>
<SPAN class=float_right><STRONG><a href="photo_individual.asp">管理相册</a></STRONG></SPAN><SPAN class=float_right>------</SPAN>
<SPAN class=float_right><STRONG><a href="pic_individual_add.asp">添加相片</a></STRONG></SPAN><SPAN class=float_right>------</SPAN>
<SPAN class=float_right><STRONG><a href="pic_individual.asp">管理相片</a></STRONG></SPAN></DIV>
<DIV class=col_body><P>
<%sql="select * from photo where F_userid="&session("goid")&" order by id desc"
set rs=server.createobject("ADODB.Recordset")
rs.open sql,conn,1,1
if rs.eof then
response.Write("还没有相册,请添加相册!")
else
while not rs.eof%>&#8226;<a href="pic_individual.asp?id=<%=rs("id")%>" class="STYLE2"><%=rs("F_username")%></a><%rs.movenext
wend
end if
rs.Close()
%></P>
</DIV>
</DIV>
</DIV><DIV class=right_side>
<DIV class=col id=bulletin>
<DIV class=col_head>
<H3><IMG height=16 alt=a hspace=3 src="images/ico_dots.gif" 
width=20 align=left vspace=3>添加相册</H3>
</DIV>
<DIV class=col_body><P>
<table width="559" border="0" align=center cellpadding="0" cellspacing="0" bordercolor="#B5DFDE">
<form name="form1" method="post" action="photo_save.asp" onSubmit="return CheckData()"><tr>
    <td width="16%" align=right height=30>相册名称:</td>
	<td width="84%"><input name="username" type="text" id="username" size="45" maxlength="40"></td>
  </tr>
  <tr>
    <td align=right height=30>是否公开:</td>
    <td>
      <input name="key" type="radio" value="是" checked />
      是
        <input type="radio" name="key" value="否" />
        否</td>
  </tr>
  <tr>
    <td align=right height=30>相册分类:</td>
    <td><select name="type" id="type">
<%sql="Select * From Photo_Category  Order by F_Grade"
set rs=server.createobject("ADODB.Recordset")
rs.open sql,conn,1,1
if rs.eof then%>
<option value="" selected>没有分类</option>
<%else%>
<option value="" selected>请选择相册分类</option>
<%while not rs.eof%>
<option value="<%=rs("F_ID")%>"><%=rs("F_Value")%></option>
<%rs.movenext
wend
end if
rs.Close()
%> 
</select></td>
  </tr><tr>
    <td align=right height=102>相册介绍:</td>
	<td class=forumRow>
<textarea name="book" cols="60" rows="10" id="book"></textarea></td>
  </tr>
  <tr>
    <td height=30 align="center" colspan="2"><input type="submit" name="Submit" value="提 交" class="input1"></td>
  </tr>
</form>
</table>
</P>
</DIV>
</DIV>
</DIV>
</DIV>
<!--#include file="bottom.asp"-->

</DIV></BODY></HTML>
