<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="../Include/Connect.asp"-->
<!--#include file="FCKeditor/fckeditor.asp" -->
<%
Username=Checkstr(request.querystring("Username"))
if Username="" then
response.end()
end if

if session("username") <> Username then
response.write("你没有权限！")
response.redirect("../default.asp")
response.end()
end if
%>
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK href="../CSS/Hompy/hompy.css" type=text/css rel=stylesheet>
<title></title>
<script language="JavaScript">
function insertSmiley(smiley){
if(document.addphoto.content.createTextRange){
document.addphoto.content.focus();
document.selection.createRange().duplicate().text=smiley;
}else{
document.addphoto.content.value+=smiley;
}
}
</script>
<SCRIPT language="javascript">
<!--
function formcheck()
{
    if(addphoto.photosysgroup.value == "")
	{
		alert("请选择像册系统分类！");
		addphoto.photosysgroup.focus();
	}
    else if(addphoto.photogroup.value == "")
	{
		alert("请选择像册个人分类！");
		addphoto.photogroup.focus();
	}
　　else if(addphoto.topic.value == "")
	{
		alert("请填写像册标题！");
		addphoto.topic.focus();
	}
　　else if(addphoto.filename.value == "")
	{
		alert("请上传照片！");
	}
	else if(addphoto.content.value == "")
	{
		alert("请填写照片简介！");
		addphoto.content.focus();
	}
	else
	{
		document.addphoto.submit();
	}

}
//-->
</SCRIPT>
</head>
<body  oncontextmenu="window.event.returnValue=false">
<TABLE cellSpacing=0 cellPadding=0 width=473 border=0>
  <TBODY>
    <TR> 
      <TD height=33 valign="top"> 
        <div align="center"> 
          <table width="97%" border="0" cellspacing="0" cellpadding="0">
            <TR> 
              <TD width="397" height=25 class="orange2_b">上传照片</TD>
              <TD width="62" class=font_gray9b>&nbsp;</TD>
            </TR>
            <TR> 
              <TD height=1 colspan="2" bgColor=#dddddd></TD>
            </TR>
          </table>
        </div></TD>
    </TR>
    <TR> 
      <TD height=24><div align="center"> 
<table width="97%"  border="0" cellspacing="0" cellpadding="0">
<form name="addphoto" action="upload_photo_save.asp?Username=<%=Username%>" method="post" >
  <tr>
    <td><TABLE cellSpacing=0 cellPadding=0 width=97% border=0>
                    <TBODY>
                    <TR>
                      <TD 
                      style="BORDER-RIGHT: #ffffff 1px solid; BORDER-LEFT: #ffffff 1px solid" 
                      bgColor=#bcbcbc height=1></TD></TR>
                    <TR>
                      <TD 
                      style="BORDER-RIGHT: #bcbcbc 1px solid; BORDER-LEFT: #bcbcbc 1px solid" 
                      align=middle>
                        <TABLE cellSpacing=0 cellPadding=0 width=458 border=0>
                          <TBODY>
                          <TR>
                            <TD width=59 height=28>
                              <DIV align=center>系统分类</DIV></TD>
                            <TD width=260><SELECT name=photosysgroup> 
							    <OPTION value="" selected>请选择照片系统分类&gt;&gt;</OPTION>
<%
set rs = server.CreateObject("adodb.recordset")
sql="select * from Show5_PhotoSysgroup Order By GroupID"
rs.open sql,cn
do while not rs.eof
%> 
                                <OPTION value=<%=rs("GroupID")%>><%=rs("Groupname")%></OPTION>
<%
rs.movenext
loop
%>
								</SELECT> </TD></TR>
                          <TR>
                            <TD width=59 height=28>
                              <DIV align=center>个人分类</DIV></TD>
                            <TD width=260><SELECT name=photogroup> 
							    <OPTION value="" selected>请选择照片分类&gt;&gt;</OPTION>
<%
set rs = server.CreateObject("adodb.recordset")
sql="select * from Show5_Photogroup where Username='"&session("username")&"'"
rs.open sql,cn
do while not rs.eof
%> 
                                <OPTION value=<%=rs("GroupID")%>><%=rs("Groupname")%></OPTION>
<%
rs.movenext
loop
%>
								</SELECT> </TD></TR>
                          <TR>
                            <TD class=li_x_02 colSpan=3 height=1></TD></TR>
                          <TR>
                            <TD width=59 height=28>
                              <DIV align=center>题目</DIV></TD>
                            <TD width=260><INPUT class=input id=topic 
                              style="WIDTH: 240px; HEIGHT: 21px" maxLength=30 
                              name=topic> </TD></TR>
                          <TR>
                            <TD class=li_x_02 colSpan=3 height=1></TD></TR>
                          <TR>
                            <TD width=59 height=28><DIV align=center>照片</DIV></TD>
                            <TD width=260><iframe border="0" frameborder="0" framespacing="0" height="23" marginheight="0" marginwidth="0" scrolling="No" width="260" vspale="0" src="upload_photo_f.asp"></iframe></TD>
                            <TD class=p9><INPUT class=input id=filename style="border:0px solid; width:135px; text-align:right;" maxLength=30 name=filename readonly></TD>
                            </TR></TBODY></TABLE>
                        <DIV id=imgview style="DISPLAY: none">
                        <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
                          <TBODY>
                          <TR>
                            <TD class=li_x_02 height=1></TD></TR></TBODY></TABLE>
                          </DIV>
                        <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
                          <TBODY>
                          <TR>
                            <TD class=li_x_02 height=1></TD></TR></TBODY></TABLE>
                        <%
Dim oFCKeditor
Set oFCKeditor = New FCKeditor
oFCKeditor.BasePath = "FCKeditor/"

oFCKeditor.ToolbarSet = "Upphoto"
oFCKeditor.Width = "100%"
oFCKeditor.Height = "200"
oFCKeditor.Value = "请输入相片简介！"
oFCKeditor.Create "content"
%></TD>
                      </TR>
                    <TR>
          <TD 
                      style="BORDER-RIGHT: #ffffff 1px solid; BORDER-LEFT: #ffffff 1px solid" 
                      bgColor=#bcbcbc height=1></TD></TR></TBODY></TABLE>
          <table width="97%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td width="62%" height="27" align="right" style="PADDING-LEFT: 6px"><img src="../Images/Hompy/Bt_goback.gif" width="39" height="18" align="absmiddle"> &nbsp;<A href="javascript:formcheck();"><img src="../Images/Hompy/Bt_confirm.gif" width="39" height="18" border="0" align="absmiddle"></a></td>
  </tr>
</table></td>
  </tr>
</form>
</table>
<table width="97%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td width="62%" height="27" align="center">&nbsp;</td>
  </tr>
</table>
   </div></TD>
    </TR>
  </TBODY>
</TABLE>
</body>
</html>
