<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Index.aspx.cs" Inherits="KZS.Web.Manage.Down.Index" %>

<%@ Register TagPrefix="FTB" Namespace="FreeTextBoxControls" Assembly="FreeTextBox" %>
<!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>
    <script src="/Common/ajax.js" type="text/javascript"></script>
    <link href="../Template/Images/global.css" rel="stylesheet" type="text/css" />
    <script language="JavaScript" type="text/javascript">
        function del() {
            if (confirm("真的要删除这条记录吗？删除后将无法恢复！")) {
                return true;
            }
            else {
                return false;
            }
        }
    </script>
        <script src="/Common/UEditor/editor_config.js" type="text/javascript"></script>
    <script src="/Common/UEditor/editor_all_min.js" type="text/javascript"></script>
    <link rel="stylesheet" type="text/css" href="/Common/UEditor/themes/default/ueditor.css" />
</head>
<body>
    <div id="topitem">
    </div>
    <form id="form1" runat="server">
    <div id="sEdit" runat="server">
        <table border="1" width="100%" class="lsttab" style="border-collapse: collapse" bordercolor="#C0C0C0">
            <tr>
                <td width="100" class="tit">
                    下载名称
                </td>
                <td>
                    <input type="text" name="DownName" size="20" value="<%=DownName %>"  style="width:50%;" />
                </td>
            </tr>
            <tr>
                <td class="tit">
                    所属分类
                </td>
                <td>
                    <%=LibHelper.ClassControl.getclsHtml("AllClass", LibHelper.ClassType.下载分类, "DownClassType", DownClassType, "span")%>
                </td>
            </tr>
            <tr>
                <td class="tit">
                    下载地址
                </td>
                <td>
                    <input type="text" name="DownUrl" value="<%=DownUrl %>" size="30"  style="width:50%;" />
                    软件下载地址，如：http://www.kezhishang.com/kzs.rar
                </td>
            </tr>
            <tr>
                <td class="tit">
                    下载版本
                </td>
                <td>
                    <input type="text" name="DownVer" value="<%=DownVer %>" size="20"  style="width:50%;" />
                    软件版本，如：正式版 V1.0
                </td>
            </tr>
            <tr>
                <td class="tit">
                    环境要求
                </td>
                <td>
                    <input type="text" name="DownMust" value="<%=DownMust %>" size="20"  style="width:50%;" />
                    软件的运行环境，如：Win XP/SQL 2000
                </td>
            </tr>
            <tr>
                <td class="tit">
                    下载大小
                </td>
                <td>
                    <input type="text" name="DownSpace" value="<%=DownSpace %>" size="10" />
                    软件大小，如：10.5MB
                </td>
            </tr>
            <tr>
                <td class="tit">
                    发布日期
                </td>
                <td>
                    <input type="text" name="AddTime" value="<%=AddTime.ToString("yyyy-MM-dd") %>" size="10" />
                </td>
            </tr>
            <tr>
                <td class="tit">
                    下载次数
                </td>
                <td>
                    <input type="text" readonly name="DownNum" value="<%=DownNum %>" size="5" />
                    次
                </td>
            </tr>
            <tr>
                <td class="tit">
                    缩略图
                </td>
                <td> 
                    <asp:FileUpload ID="FacePic" runat="server" /><%=li_careful%>（像素为：240 X 240）
                </td>
            </tr>
            <tr>
                <td class="tit">
                    下载简介
                </td>
                <td>
                <script id="ArtContent" type="text/plain"><%=DownInfo %></script>
                <script type="text/javascript" language="javascript">
                    var editor = new baidu.editor.ui.Editor({
                        textarea: 'ArtContent'
                    });
                    editor.render("ArtContent");
                </script>
                </td>
            </tr>
            <tr>
                <td class="tit">
                </td>
                <td>
                    <input name="submit" type="submit" value="<%=Request["Action"]=="Add"?"添加":"修改" %>" />
                  
                       <input type="button" value="返回"  onclick="javascript:history.go(-1); " />
                </td>
            </tr>
        </table>
    </div>
    <div id="sList" runat="server">
        <table border="1" width="100%" class="lsttab" style="border-collapse: collapse" bordercolor="#C0C0C0">
            <tr>
                <td colspan="5" class="Pager">
                    <a href="?Action=Add">添加</a>
                </td>
            </tr>
            <tr class="tit talc">
                <td>
                    软件名称
                </td>
                <td>
                    版本
                </td>
                <td>
                    发布日期
                </td>
                <td>
                    下载次数
                </td>
                <td>
                    操作
                </td>
            </tr>
           <%-- <asp:Repeater ID="tList" runat="server">
                <ItemTemplate>
                    <tr>
                        <td>
                            <%#Eval("DownName")%>
                        </td>
                        <td>
                            <%#Eval("DownVer")%>
                        </td>
                        <td>
                            <%# Convert.ToDateTime( Eval("AddTime")).ToString("yyyy-MM-dd") %> 
                        </td>
                        <td>
                            <%#Eval("DownNum") %>
                        </td>
                        <td>
                            <a href="?Action=Edit&Id=<%#Eval("Id") %>">修改</a> <a href="?Action=Del&Id=<%#Eval("Id") %>"
                                onclick="return del();">删除</a>
                        </td>
                    </tr>
                </ItemTemplate>
            </asp:Repeater>--%>
            <%=strList%>
            <tr>
                <td colspan="5" id="Pager" class="Pager" runat="server">
                    &nbsp;
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
