<%@ Page Language="vb" AutoEventWireup="false" MasterPageFile="~/Master/User.Master" CodeBehind="Upload.aspx.vb" Inherits="Dingtai.Website.Upload2" 
    title="无标题页" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div id="body_left">
<div class="body_left_top"></div>
<div id="body_left_conter">
<div id="upload_title"><ul>
<li id="two1" onClick=""   class="hover">上传<%=IIf(isHd, "高清", "普通")%><%=IIf(_Type = DingTai.BLL.Media.MediaType.Video, "视", "音")%>频<span style="color:#fff; ">·</span></li>
<%--<li id="two1" onClick="setTab('two',1,2)"   class="hover">上传新视频<span style="color:#fff; ">·</span></li>
<li id="two2" onClick="setTab('two',2,2)" >上传高清视频</li>--%>
</ul>
<%--<div class="step">
<span class="step1">1.填写信息</span><span class="step2">2.开始上传</span><span class="step3">3.完成</span>
</div>--%>
<div class="clear"></div>
<div class="back"><%--<a href="javascript:history.back(-1)">返回上页</a>--%></div>
</div>
<!--tab1-->
<div id="tab_two_1">
<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager> 

<div class="detailed">
<div class="text0">
<div class="text01"><%= TypeName %>：<asp:TextBox ID="txtName" runat="server" 
        MaxLength="25"></asp:TextBox>
</div></div>

<div class="text02">频&nbsp;&nbsp;&nbsp;&nbsp;道：<asp:DropDownList ID="selChannel" runat="server">
    </asp:DropDownList>
专&nbsp;&nbsp;&nbsp;&nbsp;辑：<asp:DropDownList ID="selAlbum" runat="server">
    </asp:DropDownList>
 
    </div>
<div class="text03">允许下载：<asp:CheckBox ID="chkDownload" runat="server" />用户主页推荐：<asp:CheckBox ID="chkUserBest" runat="server" />用户主页置顶：<asp:CheckBox ID="chkUserTop" runat="server" /> 默认视频截图时间 : 第 <asp:TextBox ID="second" runat="server" Text="3" style=" text-align:center;" Width="14"></asp:TextBox>秒</div>
<div class="text04"><%= TypeName %>标签：<asp:TextBox ID="txtTag" runat="server"></asp:TextBox>
</div>
<div class="text05"><%= TypeName %>简介：<asp:TextBox ID="txtDetail" runat="server" TextMode="MultiLine"></asp:TextBox></div>

    
</div>


<div class="browse">
<div class="browse_txt">
<p>注意事项：</p>
·支持最大不超过200M<br>·支持的音视频格式有 .wmv .wm .wma .wav .asf .asx .3gp .mp3 .mp4 .m4v .rm .ra<br>&nbsp;&nbsp;.rmvb .ram .mpg .mpeg .mpe .vob .mov .avi .flv<br>·此处只允许上传符合支持格式的音视频文件
<div class="clear"></div>
</div>

<div class="browse_text"> <span>
  <label>上传文件：</label>   <muc:FileUpload ID="FileUpload" runat="server" FileWidth="350px" CssClass="page-framemain-upload" />  
  </span>  
  
  
  <div class="clear"></div>
  <input type="file" onChange="document.getElementById('viewfile').value=this.value;this.style.display='none';" class="file" id="upload" />  
</div>
<div class="both"></div>
</div>
<div class="text06">
<div id="divMsg" style="color:Red; padding-left:80px; padding-bottom:10px;"></div>
<asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="" /></div>
<script src="/JS/jquery-1.6.js" type="text/javascript"></script>
<script type="text/javascript">
    Dingtai.UploadVerification = function() {
        jQuery("#divMsg").html("");
        jQuery("#<%= FileUpload.ClientID %>_List").contents().find("input").each(function() {
            if (jQuery(this).attr("type") == "file") {

                if (jQuery(this).val() == "") {
                    jQuery("#divMsg").html("请选择要上传的文件！");
                    return false;
                }
            }
        });
        if (jQuery("#divMsg").html() == "") {
            if (jQuery("#<%= txtName.ClientID %>").val() == "") {
                jQuery("#divMsg").html("请填写<%= TypeName %>！");
                return false;
            }
            return true;
        }
        else {
            return false;
        }
    };
</script>
</div>
</div>
<div class="body_left_bottom"></div>
</div>

</asp:Content>
