<%@language=vbscript codepage=936 %>
<%
response.buffer=true	
Const PurviewLevel=2 
Const CheckChannelID=4
Const PurviewLevel_Photo=3
%>
<!--#include file="inc/conn1.asp"-->
<!--#include file="inc/config.asp"-->
<!--#include file="Admin_ChkPurview.asp"-->
<!--#include file="inc/function.asp"-->
<!--#include file="inc/admin_code_Flv.asp"-->
<%
dim ClassID,SpecialID,rsPhoto
dim SkinID,LayoutID,SkinCount,LayoutCount,ClassMaster,BrowsePurview,AddPurview
ClassID=session("ClassID_Photo")
SpecialID=session("SpecialID_Photo")
if ClassID="" then
	ClassID=0
else
	ClassID=Clng(ClassID)
end if
if SpecialID="" then
	SpecialID=0
else
	SpecialID=Clng(SpecialID)
end if
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="MicroPhoto FrontPage 3.0">
<title>添加图片</title>
<link href="Common/Style.css" rel="stylesheet" type="text/css">
<div id="All">
<div id="ShowMain">
  <div class="TitleBar">通过丰富的配置,您可以建立一个属于您自己的播客家园.</div>
  <div id="TabContent">
    <div class="ShowSimpleCon">
<DIV id=All>
<link rel="stylesheet" type="text/css" href="Admin_Style.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.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>
</head>
<body leftmargin="2" topmargin="0" marginwidth="0" marginheight="0">
<form method="POST" name="myform" onSubmit="return CheckForm();" action="Admin_FlvSave.asp" target="_self">
  <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
      <td width="1" bgcolor="#D6D5D9"></td>
      <td height="34" align=left bgcolor="#F8F8F9"><strong>&nbsp;&nbsp;管理导航：</strong><a href="Admin_FlvManage.asp">视屏管理</a>&nbsp;|&nbsp;<a href="Admin_FlvAdd.asp">添加视屏</a>&nbsp;|
<a href="Admin_FlvComment.asp">视屏评论管理</a></td>
      <td width="1" bgcolor="#D6D5D9"></td>
    </tr>
    <tr>
      <td width="1" bgcolor="#F8F8F9"></td>
      <td height="1" bgcolor="#D6D5D9" ></td>
      <td width="1" bgcolor="#F8F8F9"></td>
    </tr>
  </table>
  <table width="100%" height="8" border="0" cellpadding="0" cellspacing="0">
    <tr>

    </tr>
  </table>

	<table width="100%" border="0" cellpadding="6" cellspacing="1" bgcolor="#CCCCCC">
	  <tr > 
            <td height="30" colspan="3" align="center" bgcolor="#F8F8F9"><strong>-- 添加影片(视屏) --</strong></td>
      </tr>
          <tr > 
            <td width="100" align="right" bgcolor="#F8F8F9"><strong>所属分类：</strong></td>
            <td colspan="2" bgcolor="#F8F8F9">              <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td><select name='ClassID'>
                    <%call Admin_ShowClass_Option(3,ClassID)%>
                  </select></td>
                  <td><%response.write "<font color='#FF0000'><strong>注意：</strong></font><font color='#0000FF'>1、不能指定为含有子栏目的栏目，或者外部栏目"
			if AdminPurview=2 and AdminPurview_Article=3 then
              response.write "<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2、你只能在<font color='#FF0000'>红色栏目</font>及其子栏目中发表文章</font>"
			end if%>                  </td>
                </tr>
              </table>            </td>
          </tr>
          <tr > 
            <td width="100" align="right" bgcolor="#F8F8F9"><strong>视屏名称：</strong></td>
            <td colspan="2" bgcolor="#F8F8F9"><input name="PhotoName" type="text" id="PhotoName" value="" size="50" maxlength="255"> 
            <font color="#FF0000">*</font></td>
          </tr>
          <tr > 
            <td width="100" align="right" bgcolor="#F8F8F9"><strong>关键字：</strong></td>
            <td colspan="2" bgcolor="#F8F8F9"><input name="Keyword" type="text"
           id="Keyword" size="50" maxlength="255"> <font color="#FF0000">*</font><font color="#0000FF">中间用<font color="#FF0000">“|”</font>隔开。不能出现&quot;&quot;'*?,.()等字符。</font></td>
          </tr>
                            <tr bgcolor="#F8F8F9">
                              <td  align="right"><strong>图 &nbsp;&nbsp;片：</strong></td>
                              <td colspan="2" >
                                <table border="0" cellspacing="0" cellpadding="0">
                                  <tr>
                                    <td width="257" valign="top"><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>
                                    <td><iframe style="top:2px" id="UploadFiles" src="../upload_Flvs.asp?PhotoUrlID=0" frameborder=0 scrolling=no width="290" height="25"></iframe></td>
                                  </tr>
                                </table>                              </td>
                            </tr>  
         








                            <tr bgcolor="#F8F8F9">

                              <td  align="right"><strong>视 &nbsp;&nbsp;屏：</strong></td>
                              <td colspan="2" >
                                <table border="0" cellspacing="0" cellpadding="0">
                                  <tr>
                                    <td width="257" valign="top">

<input name="PhotoIntro" type="text" id="textarea" value="" size="40" >

              <input name="AuthorHomepage" type="hidden"
           id="AuthorHomepage" value="暂无作品介绍" size="28" maxlength="100">
              <input name="AuthorEmail" type="hidden" id="AuthorEmail" size="28" maxlength="100">
                                  <input name="Author" type="hidden"
           id="Author3" size="17" maxlength="100" ><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>
                                    <td><iframe style="top:2px" id="UploadFiles" src="../1upload_flvs.asp?PhotoIntro=0" frameborder=0 scrolling=no width="290" height="25"></iframe>

</td>
                                  </tr>
                                </table>                              </td>
                            </tr>  
          <tr > 













  
            <td width="100" align="right" valign="middle" bgcolor="#F8F8F9"><strong>视屏简介：</strong><br></td>
            <td colspan="2" bgcolor="#F8F8F9"><INPUT name=AuthorHomepage style="WIDTH: 520px; HEIGHT: 53px" id=AuthorHomepage size=30 value="<%'=rsPhoto("AuthorHomepage")%>" size="40">
     











             </td>
          </tr>
<%if AdminPurview=1 or AdminPurview_Photo<=2 then%>
          <tr > 
            <td width="100" align="right" bgcolor="#F8F8F9"><strong>视屏属性：</strong></td>
            <td bgcolor="#F8F8F9"> <input name="OnTop" type="checkbox" id="OnTop" value="yes">
              固顶&nbsp;&nbsp;&nbsp;&nbsp; <input name="Hot" type="checkbox" id="Hot" value="yes" onClick="javascript:document.myform.Hits.value=<%=HitsOfHot%>">
              热门视屏&nbsp;&nbsp;&nbsp; <input name="Elite" type=checkbox id="Elite" value="yes">
            推荐视屏</td>
            <td bgcolor="#F8F8F9"><strong>视屏评分等级：</strong> <select name="Stars" id="Stars">
                <option value="5">★★★★★</option>
                <option value="4">★★★★</option>
                <option value="3" selected>★★★</option>
                <option value="2">★★</option>
                <option value="1">★</option>
                <option value="0">无</option>
            </select> <font color="#FF0000">*</font></td>
          </tr>
          <tr > 
            <td width="100" align="right" bgcolor="#F8F8F9"><strong>查看次数：</strong></td>
            <td colspan="2" bgcolor="#F8F8F9">本日： 
              <input name="DayHits" type="text" id="DayHits" value="0" size="10" maxlength="10"> 
              &nbsp;&nbsp;&nbsp;&nbsp;本周： 
              <input name="WeekHits" type="text" id="WeekHits" value="0" size="10" maxlength="10"> 
              &nbsp;&nbsp;&nbsp;&nbsp;本月： 
              <input name="MonthHits" type="text" id="MonthHits" value="0" size="10" maxlength="10"> 
              &nbsp;&nbsp;&nbsp;&nbsp;总计： 
            <input name="Hits" type="text" id="Hits" value="0" size="10" maxlength="10"></td>
          </tr>
<%end if%>
          <tr > 
            <td width="100" align="right" bgcolor="#F8F8F9"><strong>查看等级：</strong></td>
            <td colspan="2" bgcolor="#F8F8F9"><select name="PhotoLevel" id="select">
                <option value="9999" selected>游客</option>
                <option value="999">注册用户</option>
                <option value="99">收费用户</option>
                <option value="9">VIP用户</option>
                <option value="5">管理员</option>
            </select> &nbsp;&nbsp;&nbsp;<font color="#0000FF">只有具有相应权限的人才能查看此视屏。</font></td>
          </tr>
          <tr > 
            <td width="100" align="right" bgcolor="#F8F8F9"><strong>查看点数：</strong></td>
            <td colspan="2" bgcolor="#F8F8F9"><input name="PhotoPoint" type="text" id="PhotoPoint" value="0" size="5" maxlength="3"> 
            &nbsp;&nbsp;&nbsp;&nbsp; <font color="#0000FF">如果大于0，则用户查看此视屏时将消耗相应点数。（对游客和管理员无效）</font></td>
          </tr>
<%if AdminPurview=1 or AdminPurview_Photo<=2 then%>
          <tr > 
            <td width="100" align="right" bgcolor="#F8F8F9"><strong>录入时间：</strong></td>
            <td colspan="2" bgcolor="#F8F8F9"><input name="UpdateTime" type="text" id="UpdateTime" value="<%=now()%>" maxlength="50">
            时间格式为“年-月-日 时:分:秒”，如：<font color="#0000FF">2003-5-12 16:32:47</font>
            <input name="Passed" type="hidden" id="Passed" value="yes" checked></td>
          </tr>
<%end if%>
  </table>

  <div align="center"> 
    <p> 
      <input name="Action" type="hidden" id="Action" value="Add">
      <input
  name="Add" type="submit"  id="Add" value=" 添 加 " class="ActionBtn style="cursor:hand;">
      &nbsp; 
      <input name="Cancel" type="button" id="Cancel" value=" 取 消 " onClick="window.location.href='Admin_FlvManage.asp'"  class="ActionBtn style="cursor:hand;">
    </p>
  </div>
</form>

<%
call CloseConn()
%>
   </div>
    <div style="clear:both"></div>
  </div>
</div>
<div class="FooterDiv">
<p class="Text"><span>Copyright &copy; 2006-2007 <a href="Http://Www.WuhU263.Cn/" target="_blank">芜湖播客家园</a> 版权所有. 并保留一切权利.</p>
</div>
</div>
</body>