<%@ page language="C#" autoeventwireup="true" inherits="Admin_Admin_SoftEdit, App_Web_ahimsrpm" %>

<html>
<head id="Head1" runat="server">
    <title>软件添加或修改</title>
    <link type="text/css" href="css/style.css" rel="stylesheet" />
    <link type="text/css" href="../css/Admin.css" rel="stylesheet" />

    <script type="text/javascript" src="DatePicker/WdatePicker.js" charset="gb2312"></script>

</head>
<body>
    <form id="uploadForm" runat="server">

        <script type="text/javascript" src="/Inc/cover.js" charset="gb2312"></script>
        
        <script type="text/javascript">
            $(function(){
                $("#btn_Save").click(function(){
                    if(WebForm_OnSubmit())
                    {
                     $.cover.show()//现实遮罩层  
                    }
                   
                });
            });
            
        </script>
        <script type="text/javascript" src="/Inc/SoftExist.js" charset="gb2312"></script>
        <div style="margin: 0px auto 0px auto; text-align: left;">
            <div class="tips">
                软件添加或修改。您可以通过 【<a href="Admin_SoftList.aspx">软件列表</a>】 来查看已经添加的软件！
            </div>
            <div class="tips">
                软件上传：浏览文件路径后点击"保存"按钮即可上传文件！
            </div>
            <table class="main">
                <thead>
                    <tr>
                        <td colspan="4" align="center">
                            软件信息</td>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td valign="middle" width="13%">
                            软件名称</td>
                        <td style="text-align: left;" colspan="3" align="left">
                            <Ws:TextBox ID="txt_SoftName" runat="server" Width="60%" ValidType="str" ValidNull="False"></Ws:TextBox>
                            <span id="SoftExist"></span>
                        </td>
                    </tr>
                    <tr>
                        <td valign="middle" width="13%">
                            添加者
                        </td>
                        <td style="text-align: left;" align="left" width="37%">
                            <Ws:TextBox ID="txt_AdderLoginName" runat="server" Width="90%" ValidType="No" ValidNull="False"></Ws:TextBox>
                        </td>
                        <td valign="middle" width="13%">
                            下载数</td>
                        <td style="text-align: left;" align="left" width="37%">
                            <Ws:TextBox ID="txt_DownCount" runat="server" Width="90%" ValidType="Int" ValidNull="False">0</Ws:TextBox></td>
                    </tr>
                    <tr>
                        <td valign="middle">
                            添加时间</td>
                        <td style="text-align: left;" align="left">
                            <Ws:TextBox ID="txt_AddTime" runat="server" Width="90%" onfocus="WdatePicker({skin:'whyGreen',dateFmt:'yyyy-MM-dd HH:mm:ss'})"
                                ValidNull="False"></Ws:TextBox></td>
                        <td valign="middle">
                            下载所需点数</td>
                        <td style="text-align: left;" align="left">
                            <Ws:TextBox ID="txt_NeedPointCount" runat="server" Width="90%" ValidType="Int" ValidNull="False">0</Ws:TextBox></td>
                    </tr>
                    <tr>
                        <td valign="middle">
                            类别名称
                        </td>
                        <td style="text-align: left;" align="left" width="31%">
                            <asp:DropDownList ID="DropsoftClass" Width="60%" runat="server">
                            </asp:DropDownList>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="*类别不能为空" ControlToValidate="DropsoftClass"></asp:RequiredFieldValidator>
                        </td>
                        <td valign="middle">
                            回复数
                        </td>
                        <td style="text-align: left;" align="left">
                            <Ws:TextBox ID="txt_ReplyCount" runat="server" Width="90%" ValidType="Int" ValidNull="False">0</Ws:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td valign="middle">
                            授权类型</td>
                        <td style="text-align: left;" align="left">
                            <asp:DropDownList ID="drop_RightType" Width="60%" runat="server">
                            </asp:DropDownList>
                        </td>
                        <td valign="middle">
                            推荐次数
                        </td>
                        <td style="text-align: left;" align="left">
                            <Ws:TextBox ID="txt_recommendCount" runat="server" Width="90%" ValidType="Int" ValidNull="False">0</Ws:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td valign="middle">
                            是否审核</td>
                        <td style="text-align: left;" align="left">
                            <asp:DropDownList ID="drop_isAudit" Width="60%" runat="server">
                            </asp:DropDownList>
                        </td>
                        <td valign="middle">
                            年下载数</td>
                        <td style="text-align: left;" align="left">
                            <Ws:TextBox ID="txt_downYearCount" runat="server" Width="90%" ValidType="Int" ValidNull="False">0</Ws:TextBox></td>
                    </tr>
                    <tr>
                        <td valign="middle">
                            软件语言</td>
                        <td style="text-align: left;" align="left">
                            <asp:DropDownList ID="drop_SoftLanguage" Width="60%" runat="server">
                            </asp:DropDownList>
                        </td>
                        <td valign="middle">
                            月下载数</td>
                        <td style="text-align: left;" align="left">
                            <Ws:TextBox ID="txt_downMonthCount" runat="server" Width="90%" ValidType="Int" ValidNull="False">0</Ws:TextBox></td>
                    </tr>
                    <tr>
                        <td valign="middle">
                            官方网址
                        </td>
                        <td style="text-align: left;" align="left">
                            <Ws:TextBox ID="txt_OfficialWebsite" runat="server" Width="90%" ValidType="No"></Ws:TextBox>
                        </td>
                        <td valign="middle">
                            周下载数
                        </td>
                        <td style="text-align: left;" align="left">
                            <Ws:TextBox ID="txt_downWeekCount" runat="server" Width="90%" ValidType="Int" ValidNull="False">0</Ws:TextBox>
                        </td>
                    </tr>
                    <tr valign="middle">
                        <td valign="middle">
                            软件上传地址
                        </td>
                        <td style="text-align: left;" align="left">
                            <Ws:TextBox ID="txt_softUrl" runat="server" Width="90%" Enabled="false"></Ws:TextBox>
                        </td>
                        <td valign="middle">
                            日下载数</td>
                        <td style="text-align: left;" align="left">
                            <Ws:TextBox ID="txt_downDayCount" runat="server" Width="90%" ValidType="Int" ValidNull="False">0</Ws:TextBox></td>
                    </tr>
                    <tr valign="middle">
                        <td valign="middle">
                            软件图片</td>
                        <td colspan="3" style="text-align: left;" align="left">
                            <asp:FileUpload ID="fil_SoftImage" Width="60%" runat="server" />
                            <asp:RegularExpressionValidator ID="FileUpLoadValidator" runat="server" ErrorMessage="*图片格式错误"
                                ValidationExpression="^(([a-zA-Z]:)|(\\{2}\w+)\$?)(\\(\w[\w].*))(.JPEG|.jpeg|.JPG|.jpg|.GIF|.gif|.bmp|.BMP)$"
                                ControlToValidate="fil_SoftImage"></asp:RegularExpressionValidator>
                        </td>
                    </tr>
                    <tr valign="middle">
                        <td valign="middle">
                            软件上传
                        </td>
                        <td colspan="3" style="text-align: left;" align="left">
                            <asp:FileUpload ID="SoftUpload" Width="60%" runat="server" />
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ErrorMessage="*软件格式错误"
                                ValidationExpression="^(([a-zA-Z]:)|(\\{2}\w+)\$?)(\\(\w[\w].*))(.RAR|.rar|.ZIP|.zip)$"
                                ControlToValidate="SoftUpload"></asp:RegularExpressionValidator>
                            </td>
                    </tr>
                    <tr>
                        <td valign="middle">
                            运行环境
                        </td>
                        <td colspan="3" style="text-align: left;" align="left">
                            <asp:CheckBoxList ID="CheckrunTimeEnvironment" runat="server" RepeatDirection="Horizontal"
                                RepeatLayout="Flow">
                            </asp:CheckBoxList></td>
                    </tr>
                    <tr>
                        <td valign="middle">
                            服务器连接
                        </td>
                        <td colspan="3" style="text-align: left;" align="left">
                            <asp:CheckBoxList ID="Checksofturl" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
                            </asp:CheckBoxList>
                        </td>
                    </tr>
                    <tr>
                        <td valign="middle">
                            说明
                        </td>
                        <td colspan="3" style="text-align: left;" align="left">
                            <Ws:TextBox ID="txt_Remark" runat="server" Width="50%" Rows="10" ValidType="str"
                                TextMode="MultiLine"></Ws:TextBox></td>
                    </tr>
                    <tr>
                        <td align="center" colspan="4" valign="middle">
                            <asp:Button ID="btn_Save" runat="server" Text=" 保  存 " CssClass="ButtonBlur" OnClick="btn_Save_Click" />&nbsp;
                            <Ws:Button ID="btn_return" runat="server" Text=" 返  回 " Type="OkChangUrlOrCancel"
                                Format-Value="确定要返回吗？" Format-SrcOk="Admin_SoftList.aspx" CausesValidation="False"
                                UseSubmitBehavior="False" />
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
    </form>
</body>
</html>
