<!--#include file="inc/conn.asp"-->
<!--#include file="inc/Conn_User.asp"-->
	<script type=text/javascript>var xijuan={channel:"video"}</script>
	<script type=text/javascript src="Inc/main.js"></script>
<%
if Request.Cookies("asp163")("UserName")="" then
	response.Redirect "User_Login.asp"
end if


ClassID=trim(Request("ClassID"))
SpecialID=session("SpecialID")
UserID=session("UserID")
if ClassID="" then
	ClassID=0
else
	ClassID=Clng(ClassID)
end if
if SpecialID="" then
	SpecialID=0
else
	SpecialID=Clng(SpecialID)
end if
sql="select * from " & db_User_Table & " where " & db_User_ID & "=" & UserID
set rs=server.createobject("adodb.recordset")
rs.open sql,Conn_User,1,1
if rs.bof and rs.eof then
	FoundErr=True
	ErrMsg=ErrMsg & "<br><li>找不到指定的用户<li>"
else
	UserName=rs(db_User_Name)
	PageTitle="用户信息：" & UserName
	end if
dim CommentID
CommentID=trim(request("CommentID"))
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="MicroPhoto FrontPage 3.0">
<title>添加图片</title>
<link rel="stylesheet" type="text/css" href="new/css.css">

<script language = "JavaScript">
function CheckForm()
{
  if (document.myform.ClassID.value=="")
  {
    alert("分类不能为空！");
	document.myform.ClassID.focus();
	return false;
  }
  if (document.myform.ClassID.value==0)
  {
    alert("分类不能为空！");
	document.myform.ClassID.focus();
	return false;
  }
  if (document.myform.ClassID.value=="-1")
  {
    alert("你没有添加权限！");
	document.myform.ClassID.focus();
	return false;
  }
  if (document.myform.PhotoName.value=="")
  {
    alert("标题不能为空！");
	document.myform.PhotoName.focus();
	return false;
  }
  if (document.myform.Keyword.value=="")
  {
    alert("关键字不能为空！");
	document.myform.Keyword.focus();
	return false;
  }
  if (document.myform.PhotoUrl_Thumb.value=="")
  {
    alert("地址不能为空！");
	document.myform.PhotoUrl_Thumb.focus();
	return false;
  }
  if (document.myform.PhotoSize_Thumb.value=="")
  {
    alert("文件大小不能为空！");
	document.myform.PhotoSize_Thumb.focus();
	return false;
  }
  if (document.myform.PhotoUrl.value=="")
  {
    alert("图片地址不能为空！");
	document.myform.PhotoUrl.focus();
	return false;
  }
  if (document.myform.PhotoSize.value=="")
  {
    alert("文件大小不能为空！");
	document.myform.PhotoSize.focus();
	return false;
  }
}
</script>
<style type="text/css">
BODY {
	scrollbar-face-color:#DDDDDD;
	scrollbar-highlight-color: #cccccc;
	scrollbar-shadow-color: #CCCCCC;
	scrollbar-3dlight-color: #F5F5F5;
	scrollbar-darkshadow-color: #F5F5F5;
	scrollbar-track-color: #F0F0F0;
	scrollbar-arrow-color: #FFFFFF;
	margin-left: 10px;
	margin-top: 10px;
	margin-right: 10px;
	margin-bottom: 10px;
}

#Layer1 {
	position:absolute;
	left:218px;
	top:99px;
	width:290px;
	height:54px;
	z-index:1;
}
</style></head>
<body>

 <form method="POST" name="myform" onSubmit="return CheckForm();" action="User_flvSave.asp" target="_self">
   <table width="100%" border="0" cellspacing="0" cellpadding="0">
     <tr>
       <td width="1" height="1"></td>
       <td height="1" bgcolor="#BCBCBC"></td>
       <td width="1" height="1"></td>
     </tr>
     <tr>
       <td bgcolor="#BCBCBC"></td>
       <td height="25" align="center" bgcolor="f2f2f2"><strong>--- 添加相片 ---</strong></td>
       <td bgcolor="#BCBCBC"></td>
     </tr>
   </table>
   <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                      <tr align="center">
                        <td>
                          <table width="100%" border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#bcbcbc">
                           <tr bgcolor="#FFFFFF">
                              <td width="21%" align="right"><strong>分 &nbsp;&nbsp;类：</strong></td>
                             <td width="79%">  <%
UserNamed=Request.Cookies("asp163")("UserName")
set rsc=server.createobject("adodb.recordset")
sql="select * from [flvztclass] where UserName='"&UserNamed&"' order by classid desc"
rsc.open sql,Conn,1,1
%>
                               <select name="ClassID" >
                                 <%if rsc.recordcount=0 then%>
                                 <option value="0">请先添加分类</option>
                                 <%else%>
                                 <%do while not rsc.eof
%>
                                 <option value="<%=rsc("classid")%>"><%=rsc("classname")%></option>
                                 <%rsc.movenext
loop%>
                                 <%end if%>
                               </select>
                               <%rsc.close
set rsc=nothing%> </td>
                            </tr>
                            <tr bgcolor="#FFFFFF">
                              <td width="21%" align="right"><strong>标 &nbsp;&nbsp;题：</strong></td>
                              <td width="79%"><input name="PhotoName" type="text" id="PhotoName" value="" size="40" maxlength="255">
                                <input name="Keyword" type="hidden"
           id="Keyword" value="d">
                                  <strong>
                                                                  <input name="Author" type="hidden"
           id="Author3" size="17" maxlength="100" >
                                </strong>




 </td></tr>
                            <tr bgcolor="#FFFFFF" class="tdbg">
                              <td rowspan="2" align="right"><strong>缩略图：</strong></td>
                              <td>
                                <input name="PhotoUrl_Thumb" type="text" id="PhotoUrl_Thumb" size="40" maxlength="200">
                                <input name="PhotoUrl_Thumbsm" type="hidden" id="PhotoUrl_Thumbsm" size="40" maxlength="200">
                                <input name="PhotoUrl" type="hidden" id="PhotoUrl" size="40" maxlength="200"></td>
                            </tr>  <tr bgcolor="#FFFFFF" class="tdbg">
                              <td><iframe style="top:2px" id="UploadFiles" src="upload_flvs.asp?PhotoUrlID=0" frameborder=0 scrolling=no width="290" height="25"></iframe> </td>
                              </tr>
                            <tr bgcolor="#FFFFFF" class="tdbg">
                              <td align="right" valign="middle"><strong><FONT color=red>视屏地址：</FONT></strong>&nbsp; </td><td>
            <table width="100%" height="5" border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td></td>
              </tr>
            </table>
<input name="PhotoIntro" type="text" id="textarea" value="" size="40" ><BR>
<iframe style="top:2px" id="UploadFiles" src="1upload_flvs.asp?PhotoIntro=0" frameborder=0 scrolling=no width="290" height="25"></iframe>                             
<input name="PhotoSize_Thumb" type="hidden" id="PhotoSize_Thumb" size="1" maxlength="10">
<input name="PhotoSize" type="hidden" id="PhotoSize5" size="1" maxlength="10" value="0">                               </td>
                            </tr>
                            <tr bgcolor="f2f2f2" class="tdbg">





                              <td align="right" valign="middle"><strong><FONT color=red>视屏简介：</FONT></strong>&nbsp; </td><td>
            <table width="100%" height="5" border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td></td>
              </tr>
            </table>
<INPUT name=AuthorHomepage style="WIDTH: 320px; HEIGHT: 33px" id=AuthorHomepage size=30 value="<%=rsPhoto("AuthorHomepage")%>" size="40">                              </td>
                            </tr>
                            <tr bgcolor="f2f2f2" class="tdbg">




                              <td colspan="2" align="center" valign="middle"><input name="Action" type="hidden" id="Action2" value="Add">
                      <input
  name="Add" type="submit"  id="Add2" value=" 添 加 " style="cursor:hand;"></td>
                            </tr>
                        </table>  
</td>
                      </tr>
   </table>
</form>
			<div class="caption">
				<span class="blue_bold font14">版权信息说明及提示</span><br />
					1. 您应保证您上传的内容正当、合法,不侵犯他人的肖像权、名誉权、知识产权等任何合法权益。<br />
					2. 您的上传代表您同意以任何方式使用您的内容且无须支付费用，除非双方另有约定。<br />
					3. 芜湖播客家园网如果认为您上传的内容不适当,有权删除或者修改。<br />
					4. 芜湖播客家园作为网络服务提供者，对非法转载，盗版行为的发生不具备充分的监控能力。
					   但是一经发现，负有移除盗版和非法转载作品以及停止继续传播的义务。芜湖播客家园网对
					   他人在网站上实施的此类侵权行为不承担法律责任，侵权的法律责任概由其本人承担。
			</div>
		</div>
	</div>
</div>
</body>
</html>
<%
call CloseConn()
%>
