<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ZengJiaShiPin.aspx.cs" Inherits="Admin_NeiRong_ZengJiaShiPin" %>

<!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 runat="server">
    <title>无标题页</title>
    <link rel="Stylesheet" href="../Images/Admin.css" type="text/css" />
    <script type="text/javascript" src="../Images/ColorDialog.js"></script>
    <script type="text/javascript" src="../Images/Admin.js"></script>
    <script type="text/javascript">
        function SheZhiShuLiang(ShuLiang)
        {
            var ShiPinDaiMa="";
            
            for(var i=0;i<ShuLiang;i++)
            {
                ShiPinDaiMa+="视频"+(i+1)+"：<input type=\"file\" name=\"f"+(i+1)+"\" />";
                if(i%2==1)
                    ShiPinDaiMa+="<br/>";
            }
            
            document.getElementById("ShiPinDaiMa").innerHTML=ShiPinDaiMa;
        }
        function SheZhiTuShuLiang(ShuLiang)
        {
            var TuPianDaiMa="";
            
            for(var i=0;i<ShuLiang;i++)
            {
                TuPianDaiMa+="图片"+(i+1)+"：<input type=\"file\" name=\"t"+(i+1)+"\" />";
                if(i%2==1)
                    TuPianDaiMa+="<br/>";
            }
            
            document.getElementById("TuPianDaiMa").innerHTML=TuPianDaiMa;
        }
    </script>
</head>
<body>
    <form id="form1" runat="server" onkeydown="if(event.ctrlKey&&event.keyCode==13){this.submit();}" enctype="multipart/form-data">
    <div>
    <div style="height:18px">
    位置：<a href="ShiPinLanMu.aspx">视频栏目</a> &gt; <%=分类代码 %> 增加视频
    </div>
    <div style="height:5px"></div>
    <table class="tab1" border="0" cellpadding="0" cellspacing="0">
    <tr>
        <td>
            <table class="tab2" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td class="tab2_bt">
                增加视频
                </td>
            </tr>
            <tr>
                <td>
                        
                                <table class="tab3" border="0" cellpadding="0" cellspacing="1">
                                    <tr>
                                        <td style="width:200px">
                                            &nbsp; &nbsp; &nbsp; 视频标题<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"
                                                ControlToValidate="BiaoTi" ErrorMessage="RequiredFieldValidator" SetFocusOnError="True">标题不能为空</asp:RequiredFieldValidator></td>
                                        <td>
                                            <asp:TextBox ID="BiaoTi" runat="server" MaxLength="50" Width="250px"></asp:TextBox>
                                            <asp:CheckBox ID="JianChaChongFuBiaoTi" runat="server" Text="检查重复标题" />&nbsp; 颜色<asp:TextBox
                                                ID="BiaoTiYangShi_YanSe" runat="server" MaxLength="7" onfocus="colordialog()"
                                                Width="50px"></asp:TextBox>
                                            <asp:CheckBox ID="BiaoTiYangShi_ChuTi" runat="server" Text="粗体" />
                                            <asp:CheckBox ID="BiaoTiYangShi_XieTi" runat="server" Text="斜体" />
                                            <asp:CheckBox ID="BiaoTiYangShi_ShanChuXian" runat="server" Text="删除线" /></td>
                                    </tr>
                                    <tr>
                                        <td style="width: 200px">
                                            &nbsp; &nbsp; 内容状态</td>
                                        <td>
                                            外部链接<asp:TextBox ID="WaiBuLianJie" runat="server" Width="201px"></asp:TextBox>
                                            时间<asp:TextBox ID="FaBuShiJian" runat="server" Width="99px"></asp:TextBox>
                                            <asp:CheckBox ID="ShiFouTuiJian" runat="server" Text="是否推荐" /></td>
                                    </tr>
                                    <tr>
                                        <td style="width: 200px">
                                            &nbsp; &nbsp; &nbsp; 视频简介</td>
                                        <td>
                                            <asp:TextBox ID="ShiPinJianJie" runat="server" Height="130px" MaxLength="4000"
                                                TextMode="MultiLine" Width="400px"></asp:TextBox></td>
                                    </tr>
                                    <tr>
                                        <td style="width:200px">
                                            &nbsp; &nbsp; 图片数量
                                        </td>
                                        <td>
                                            <input type="text" id="tsl" value="9" />
                                            <input type="button" value="设置" onclick="SheZhiTuShuLiang(tsl.value)" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="width:200px">
                                            &nbsp; &nbsp; 图片文件
                                        </td>
                                        <td id="TuPianDaiMa">
                                            图片1：<input type="file" name="t1" />
                                            图片2：<input type="file" name="t2" /><br />
                                            图片3：<input type="file" name="t3" />
                                            图片4：<input type="file" name="t4" /><br />
                                            图片5：<input type="file" name="t5" />
                                            图片6：<input type="file" name="t6" /><br />
                                            图片7：<input type="file" name="t7" />
                                            图片8：<input type="file" name="t8" /><br />
                                            图片9：<input type="file" name="t9" />
                                            图片10：<input type="file" name="t10" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="width:200px">
                                            &nbsp; &nbsp; &nbsp; 视频数量
                                        </td>
                                        <td>
                                            <input type="text" id="sl" value="9" />
                                            <input type="button" value="设置" onclick="SheZhiShuLiang(sl.value)" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="width:200px">
                                            &nbsp; &nbsp; &nbsp; 视频文件
                                        </td>
                                        <td id="ShiPinDaiMa">
                                            
                                            视频1：<input type="file" name="f1" />
                                            视频2：<input type="file" name="f2" /><br />
                                            视频3：<input type="file" name="f3" />
                                            视频4：<input type="file" name="f4" /><br />
                                            视频5：<input type="file" name="f5" />
                                            视频6：<input type="file" name="f6" /><br />
                                            视频7：<input type="file" name="f7" />
                                            视频8：<input type="file" name="f8" /><br />
                                            视频9：<input type="file" name="f9" /><br />
                                        </td>
                                    </tr>
                                <tr>
                                    <td style="width:200px">
                                        &nbsp; &nbsp; 内容评论</td>
                                    <td>
                                        <asp:CheckBox ID="ZengJiaShuiYin" runat="server" Checked="True" Text="图片增加水印" />
                                        <asp:CheckBox ID="ShiFouGuanBiPingLun" runat="server" Text="关闭评论" />
                                        &nbsp;&nbsp;
                                        <span class="text_pt"></span></td>
                                </tr>
                                <tr>
                                    <td style="width: 200px">
                                        &nbsp; &nbsp; 内容模板</td>
                                    <td>
                                        内容模板<asp:DropDownList ID="NeiRongMoBan" runat="server">
                                        </asp:DropDownList><input type="button" value="管理" onclick="location.href='../MoBan/NeiRongMoBan.aspx?type=<%=Server.UrlEncode("查看内容") %>'" />
                                        3G内容模板<asp:DropDownList ID="NeiRongMoBan_3G" runat="server">
                                        </asp:DropDownList><input type="button" value="管理" onclick="location.href='../MoBan/NeiRongMoBan.aspx?type=<%=Server.UrlEncode("查看内容") %>'" />
                                        <br />
                                        评论模板<asp:DropDownList ID="PingLunMoBan" runat="server">
                                        </asp:DropDownList><input type="button" value="管理" onclick="location.href='../MoBan/NeiRongMoBan.aspx?type=<%=Server.UrlEncode("评论列表") %>'" />
                                        3G评论模板<asp:DropDownList ID="PingLunMoBan_3G" runat="server">
                                        </asp:DropDownList><input type="button" value="管理" onclick="location.href='../MoBan/NeiRongMoBan.aspx?type=<%=Server.UrlEncode("评论列表") %>'" />
                                        
                                        </td>
                                </tr>
                                <tr>
                                    <td style="width: 200px">
                                        &nbsp; &nbsp; 访问权限</td>
                                    <td>
                                        <asp:CheckBox ID="QuanXian_JinXiaoHuiYuan" runat="server" Text="仅限会员阅读" />
                                        &nbsp; 阅读需要等级<asp:TextBox ID="QuanXian_XuYaoDenJi" runat="server" Width="40px">0</asp:TextBox>级
                                        &nbsp;&nbsp; 阅读扣除积分<asp:TextBox ID="QuanXian_KouChuJiFen" runat="server" Width="40px">0</asp:TextBox>点</td>
                                </tr>
                                <tr>
                                    <td style="width: 200px">
                                        &nbsp; &nbsp;
                                        <asp:CheckBox ID="KuaiSuZengJia" runat="server" Text="快速增加" /></td>
                                    <td>
                                        <asp:Button ID="Button3" runat="server" Text="发布视频" />
                                        <input type="reset" value="重新填写" />
                                        <asp:HiddenField ID="SuoYouZiYuan" runat="server" Value="" />
                                        </td>
                                </tr>
                                </table>
                </td>
            </tr>
            </table>
        </td>
    </tr>
    </table>
    </div>
    </form>
    <object id="dlgHelper" classid="clsid:3050f819-98b5-11cf-bb82-00aa00bdce0b" width="0px" height="0px"></object>
</body>
</html>
