<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="VideoAdd.aspx.cs" Inherits="WstWeb.Admin.Video.VideoAdd" %>
<%@ Register src="../UC/ClassRelationSelect.ascx" tagname="ClassRelationSelect" tagprefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
   <link rel="stylesheet" type="text/css" href="../css/style.css" />
   <script src="../Js/jquery-1.6.min.js" type="text/javascript"></script>
   <script src="../Js/easyui/jquery.easyui.min.js" type="text/javascript"></script>
   <script src="../Js/easyui/easyui-lang-zh_CN.js" type="text/javascript"></script>
    <script src="../Js/PublicComm.js" type="text/javascript"></script>
    <script src="../Js/WinFuns.js" type="text/javascript"></script>
    <script src="../Js/pageloader.js" type="text/javascript"></script>
                <script src="../kindeditor/kindeditor-min.js" type="text/javascript"></script>
    <script src="../kindeditor/lang/zh_CN.js" type="text/javascript"></script>
    <script src="../Js/CommonHtmlEditInit.js" type="text/javascript"></script>
    <script type="text/javascript">
        var editor;
        KindEditor.ready(function(K) {
            editor = K.create('textarea[id="txtContent"]', _kindeditoritemsJson);
        });
        </script>
    <script type="text/javascript">
        var AddBackAction = function(v_IsContinue) {
            var _from='<%=Request["from"]%>';
            if (v_IsContinue) {
                location.href = 'VideoAdd.aspx?timespan=' + new Date().getTime();
                }
            else
            {
                 if(_from=='main')
                {
                    top.RunIFrameFuns("RefreshPage", false);
			        top.IndexCloseNewWindow();
                }
                else
                {
                   location.href = 'VideoList.aspx';
                }
            }
        }
        var EditBackAction = function() {
			top.RunIFrameFuns("RefreshPage", false);
			top.IndexCloseNewWindow();
            }

        </script>
</head>
<body>
    <form id="form1" runat="server"><asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
  <div class="ctright">
    <asp:Literal ID="litLinks" runat="server" Visible="false">
   <div class="map"><h3><strong class="left">新增视频</strong><strong class="right search_icon"><a href="JavaScript:void(0)" onclick="EditInfo(-1)"></a></strong></h3></div>
  </asp:Literal>
  <div class="formclum"></div>
  <div class="form">
<table class="table1" width="100%" border="1" cellspacing="0" cellpadding="0">
  <tbody>
<tr>
<td width="150" bgcolor="f1f7fc"><span class="mag">
标题<font color='red'>*</font>：</span>
</td>
<td>
<asp:TextBox ID="txtTitle" CssClass="inp1" runat="server" MaxLength="200" Width="250"></asp:TextBox>
</td>
</tr>
<tr>
<td bgcolor="f1f7fc"><span class="mag">
所属分类<font color='red'>*</font>：</span>
</td>
<td>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
     <uc1:ClassRelationSelect ID="ClassRelationSelect1" _tableName="VideoClass" runat="server" />
    </ContentTemplate>
    </asp:UpdatePanel>
</td>
</tr>
<tr>
<td bgcolor="f1f7fc"><span class="mag">
详细内容<font color='red'>*</font>：</span>
</td>
<td>
<asp:TextBox ID="txtContent"  CssClass="inp1" runat="server" TextMode="MultiLine" Width="750" Height="250"></asp:TextBox>
</td>
</tr>
<tr>
<td bgcolor="f1f7fc"><span class="mag">
视频预览图：</span>
</td>
<td>
&nbsp;<img src="../images/nopic.gif" id="imgPicurl1" width="120"  height="100" runat="server" />
<br />
&nbsp;<asp:FileUpload ID="FileLoUrl" Width="290px" runat="server" />
    <asp:Button ID="Button1"
    runat="server" Text="点击上传" onclick="Button1_Click" />
    
</td>
</tr>
<tr>
<td bgcolor="f1f7fc"><span class="mag">
视频地址：</span>
</td>
<td>
外网链接：<asp:TextBox ID="txtVideoUrl" runat="server" Width="250"></asp:TextBox><br />
或者
本地上传：&nbsp;
<asp:Literal ID="litLocalVideoUrl" runat="server"></asp:Literal>
<asp:FileUpload ID="FileUpload1" Width="290px" runat="server" />
    <asp:Button ID="Button2"
    runat="server" Text="点击上传" onclick="Button2_Click" />
    
</td>
</tr>
<tr>
<td bgcolor="f1f7fc"><span class="mag">
视频属性</span>
</td>
<td>
<asp:DropDownList ID="ddlInfoAttribute" Width="80" CssClass="inp1"  runat="server">
<asp:ListItem Value="1">普通</asp:ListItem>
<asp:ListItem Value="2">热点</asp:ListItem>
</asp:DropDownList>
</td>
</tr>
<tr>
<td bgcolor="f1f7fc"><span class="mag">
信息状态：</span>
</td>
<td>
<asp:DropDownList ID="ddlStatus" Width="80" CssClass="inp1" runat="server">
<asp:ListItem Value="1">正常</asp:ListItem>
<asp:ListItem Value="2">备用</asp:ListItem>
</asp:DropDownList>
</td>
</tr>
<tr>
<td bgcolor="f1f7fc"><span class="mag">
发布人：</span>
</td>
<td>
<asp:Label ID="txtIssueOpCode" runat="server"></asp:Label>
</td>
</tr>
<tr>
<td bgcolor="f1f7fc"><span class="mag">
发布时间：</span>
</td>
<td>
<asp:Label ID="dateTxtIssueTime"  runat="server"></asp:Label>
</td>
</tr>
<tr>
<td bgcolor="f1f7fc"><span class="mag">
显示点击量：</span>
</td>
<td>
<asp:TextBox ID="txtHits" CssClass="inp1" Text="0" runat="server" MaxLength="4" Width="120"></asp:TextBox>
</td>
</tr>
<tr>
<td bgcolor="f1f7fc"><span class="mag">
实际点击量：</span>
</td>
<td>
<asp:Label ID="txtRealHits" runat="server"></asp:Label>
</td>
</tr>
<tr>
<td bgcolor="f1f7fc"><span class="mag">
Seo标题：</span>
</td>
<td>
<asp:TextBox ID="txtSeoTitle" CssClass="inp1" runat="server" MaxLength="200" Width="250"></asp:TextBox>
</td>
</tr>
<tr>
<td bgcolor="f1f7fc"><span class="mag">
Seo关键词：</span>
</td>
<td>
<asp:TextBox ID="txtSeoKey"  CssClass="inp1" runat="server" TextMode="MultiLine" Width="200" Height="50"></asp:TextBox>
</td>
</tr>
<tr>
<td bgcolor="f1f7fc"><span class="mag">
Seo描述：</span>
</td>
<td>
<asp:TextBox ID="txtSeoDesc"  CssClass="inp1" runat="server" TextMode="MultiLine" Width="200" Height="50"></asp:TextBox>
</td>
</tr>
<tr>
  <td>&nbsp;</td>
  <td>
  
  <asp:Button ID="btnSave" runat="server" CssClass="button3" Text="" onclick="btnSave_Click"/>
  <asp:CheckBox ID="chkIsAddContiue" Text="是否继续" runat="server" /></td>
</tr>
</tbody>
</table>
</div> 
</div>
<input type="hidden" id="hdnId" runat="server" value="-1" />
</form>
</body>
</html>
