<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Set_Soft.aspx.cs" Inherits="Csc_aspx_admin_Set_Soft" %>
<%@ Import Namespace="D.Common" %>
<%@ Import Namespace="D.BLL" %>
<!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 id="Head1" runat="server">
    <title></title>
    <link id="CssName" rel="stylesheet" type="text/css" runat="server" />
    <script type="text/javascript" src="/js/jquery-1.4.2.min.js"></script>
    <script type="text/javascript" src="/js/date/date.js"></script>
    <script type="text/javascript" src="/js/common.js"></script>
    <script type="text/javascript" src="/js/color.js"></script>
    <script type="text/javascript" src="/js/Linkage.js"></script>
    <script type="text/javascript" src="/js/zh-cn/listbox.js"></script>
    <script type="text/javascript" src="/js/zh-cn/Shop.js"></script>
    <script type="text/javascript" charset="utf-8" src="/editor/ueditor/ueditor.config.js"></script>
    <script type="text/javascript" src="/editor/ueditor/ueditor.all.min.js"></script>
    <script type="text/javascript" language="javascript" src="/js/info/Soft.js"></script>
    <script type="text/javascript" language="javascript" src="/js/lhgdialog/lhgcore.lhgdialog.min.js?self=true&skin=<%=Function.GetCssNameColor()%>"></script>
</head>
<body>
    <form id="form1" runat="server"><asp:TextBox ID="FilePicPath" runat="server" style="display:none">user|0</asp:TextBox><asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
    <table class="dh" cellpadding="0" cellspacing="0" border="0" align="center">
        <tr>
            <td>
                <asp:Image ID="P_Go" runat="server" ImageAlign="AbsMiddle" />
                您现在的位置：<a href="../info.aspx">后台管理</a> >>
                <asp:Literal ID="LitModelName" runat="server"></asp:Literal>
                >>
                <asp:Literal ID="LitSetName" runat="server"></asp:Literal>
            </td>
        </tr>
    </table>
    <table class="border" cellspacing="1" cellpadding="0" width="99%" border="0" align="center">        
        <tr>
<td class="bqleft">软件名称：</td>
<td class="bqright"><asp:TextBox ID="DianCMS_Name" runat="server" CssClass="in1" style="width:300px" Text=""></asp:TextBox> </td>
</tr>
<tr>
<td class="bqleft">作者/开发商：</td>
<td class="bqright"><asp:TextBox ID="DianCMS_Author" runat="server" CssClass="in1" style="width:200px" Text=""></asp:TextBox> </td>
</tr>
<tr>
<td class="bqleft">首页图片：</td>
<td class="bqright"><table border="0" cellpadding="0" cellspacing="0"><tr><td><asp:TextBox ID="DianCMS_Pic" runat="server" CssClass="in1" style="width:300px;float:left"></asp:TextBox><asp:TextBox ID="DianCMS_Pic_small" runat="server" CssClass="in1" style="display:none;float:left"></asp:TextBox><input id="DianCMS_Pic_Btu" type="button" value="上传图片" class="btn" style="float:left" onclick="WinOpenLhgDialog('上传图片','../common/uploadpic.aspx?ControlId=DianCMS_Pic&FieldId=101',620,280,'')" /><input id="DianCMS_Pic_Btu_2" type="button" value="从服务器上选择" style="float:left" class="btn" onclick="SelectFile('../common/SelectUploadFile2.aspx?filetype=image&ControlId=DianCMS_Pic','')" /> </td></tr></table></td>
</tr>
<tr>
<td class="bqleft">软件属性：</td>
<td class="bqright"><asp:CheckBox ID="DianCMS_IsRecommend" runat="server" Text="推荐" /><asp:CheckBox ID="DianCMS_IsFocus" runat="server" Text="焦点" /><asp:CheckBox ID="DianCMS_IsHeader" runat="server" Text="头条" /><asp:CheckBox ID="DianCMS_IsTop" runat="server" Text="置顶" /><asp:CheckBox ID="DianCMS_IsComment" runat="server" Text="允许评论" /><asp:CheckBox ID="DianCMS_IsCreate" runat="server" Text="是否生成" /></td>
</tr>
<tr>
<td class="bqleft">软件简介：</td>
<td class="bqright">                <asp:TextBox ID="DianCMS_Content" runat="server" TextMode="MultiLine"></asp:TextBox>
                <script type="text/javascript">
                    UE.getEditor('DianCMS_Content', {
                        //这里可以选择自己需要的工具按钮名称
                        toolbars: [['FullScreen', 'Source', 'Undo', 'Redo','bold','italic', 'underline', '|', 'strikethrough', 'superscript', 'subscript', '|','justifyleft', 'justifycenter', 'justifyright', 'justifyjustify']],
                        initialFrameWidth:'100%',
                        initialFrameHeight:200,
                        serverUrl:'/editor/ueditor/net/controller.ashx?FilePicPath=<%=FilePicPath.Text%>'
                    })
                </script>
 
</td>
</tr>
<tr>
<td class="bqleft">软件地址：</td>
<td class="bqright"><table cellpadding="0" cellspacing="0" border="0"><tr><td><asp:ListBox ID="DianCMS_SoftUrl" runat="server" Height="150px" Width="400px" SelectionMode="Single"></asp:ListBox><asp:TextBox ID="DianCMS_SoftUrl_Text" style="display:none" runat="server"></asp:TextBox></td><td><input id="DianCMS_SoftUrl_BtuEdit" type="button" value="修改选中软件" class="btn" onclick="EditOneListBoxSoft('','DianCMS_SoftUrl','<%=Function.GetCssName()%>')" /><br/><input id="DianCMS_SoftUrl_BtuDel" type="button" value="删除选中软件" class="btn" style="margin-top:5px;" onclick="DelOneListBox('DianCMS_SoftUrl')" /><br/><input id="DianCMS_SoftUrl_BtuDelAll" type="button" value="清空所有软件" class="btn" style="margin-top:5px;" onclick="DelAllListBox('DianCMS_SoftUrl')" /><br/><input id="DianCMS_SoftUrl_BtuUp" type="button" value="向上移动" style="margin-top:5px;" class="btn" onclick="MoveListBox('DianCMS_SoftUrl','up')" /><br/><input id="DianCMS_SoftUrl_BtuDown" type="button" value="向下移动" class="btn" style="margin-top:5px;" onclick="MoveListBox('DianCMS_SoftUrl','down')" /> </td></tr><tr><td><input id="DianCMS_SoftUrl_Btu_Upload" type="button" value="上传软件" class="btn" onclick="WinOpenLhgDialog('上传软件','../common/BatchUploadSoft.aspx?ControlId=DianCMS_SoftUrl',500,200,'')" /><input id="DianCMS_SoftUrl_Btu_SelServer" type="button" value="从服务器上选择软件" class="btn" style="margin-left:5px;"  onclick="SelectFile('../common/SelectUploadFile.aspx?filetype=soft&ControlId=DianCMS_SoftUrl','<%=Function.GetCssName()%>')" /><input id="DianCMS_SoftUrl_Btu_OutUrl" type="button" value="添加外部地址" class="btn" style="margin-left:5px;"  onclick="WinOpenLhgDialog('添加外部地址','/common/BatchEditUrlSoft.aspx?ControlId=DianCMS_SoftUrl',600,150,'<%=Function.GetCssName()%>')" /></td></tr></table></td>
</tr>
<tr>
<td class="bqleft">软件大小：</td>
<td class="bqright"><table cellpadding=0 border=0><tr><td><asp:TextBox ID="DianCMS_SoftSize" runat="server" CssClass="in1" style="width:100px" Text=""></asp:TextBox> </td><td><asp:RadioButtonList ID="DianCMS_SoftUnit" runat="server" RepeatDirection="Horizontal" RepeatColumns="4"></asp:RadioButtonList> </td></tr></table></td>
</tr>
<tr>
<td class="bqleft">软件版本：</td>
<td class="bqright"><asp:TextBox ID="DianCMS_SoftVersion" runat="server" CssClass="in1" style="width:200px" Text=""></asp:TextBox> </td>
</tr>
<tr>
<td class="bqleft">软件来源：</td>
<td class="bqright"><asp:TextBox ID="DianCMS_SoftSource" runat="server" CssClass="in1" style="width:300px" Text=""></asp:TextBox> </td>
</tr>
<tr>
<td class="bqleft">软件演示地址：</td>
<td class="bqright"><asp:TextBox ID="DianCMS_DemoUrl" runat="server" CssClass="in1" style="width:400px" Text="http://"></asp:TextBox> </td>
</tr>
<tr>
<td class="bqleft">软件操作系统：</td>
<td class="bqright"><asp:TextBox ID="DianCMS_Softos" runat="server" CssClass="in1" style="width:400px" Text="2000/2003/XP/Vista"></asp:TextBox> <br/>平台选择：<span style="margin:0px 2px 0px 2px;cursor:hand" onclick="SelOperat('Linux')">Linux</span>/<span style="margin:0px 2px 0px 2px;cursor:hand" onclick="SelOperat('DOS')">DOS</span>/<span style="margin:0px 2px 0px 2px;cursor:hand" onclick="SelOperat('9x')">9x</span>/<span style="margin:0px 2px 0px 2px;cursor:hand" onclick="SelOperat('95')">95</span>/<span style="margin:0px 2px 0px 2px;cursor:hand" onclick="SelOperat('98')">98</span>/<span style="margin:0px 2px 0px 2px;cursor:hand" onclick="SelOperat('Me')">Me</span>/<span style="margin:0px 2px 0px 2px;cursor:hand" onclick="SelOperat('NT')">NT</span>/<span style="margin:0px 2px 0px 2px;cursor:hand" onclick="SelOperat('2000')">2000</span>/<span style="margin:0px 2px 0px 2px;cursor:hand" onclick="SelOperat('2003')">2003</span>/<span style="margin:0px 2px 0px 2px;cursor:hand" onclick="SelOperat('XP')">XP</span>/<span style="margin:0px 2px 0px 2px;cursor:hand" onclick="SelOperat('.NET')">.NET</span>/<span style="margin:0px 2px 0px 2px;cursor:hand" onclick="SelOperat('Vista')">Vista</span>/</td>
</tr>
<tr>
<td class="bqleft">软件属性：</td>
<td class="bqright"><asp:DropDownList ID="DianCMS_SoftProperty" runat="server"><asp:ListItem Value="0">请选择</asp:ListItem></asp:DropDownList> </td>
</tr>
<tr>
<td class="bqleft">软件语言：</td>
<td class="bqright"><asp:DropDownList ID="DianCMS_SoftLanguage" runat="server"><asp:ListItem Value="0">请选择</asp:ListItem></asp:DropDownList> </td>
</tr>
<tr>
<td class="bqleft">软件授权：</td>
<td class="bqright"><asp:DropDownList ID="DianCMS_SoftLicence" runat="server"><asp:ListItem Value="0">请选择</asp:ListItem></asp:DropDownList> </td>
</tr>
<tr>
<td class="bqleft">解压密码：</td>
<td class="bqright"><asp:TextBox ID="DianCMS_DecompressPassword" runat="server" CssClass="in1" style="width:200px" Text=""></asp:TextBox> </td>
</tr>
<tr>
<td class="bqleft">软件评分等级：</td>
<td class="bqright"><asp:DropDownList ID="DianCMS_SoftStart" runat="server"><asp:ListItem Value="0">请选择</asp:ListItem></asp:DropDownList> </td>
</tr>
<script>
            function SelOperat(val) {
                if (DianCMS_$("DianCMS_Softos").value == "") {
                    DianCMS_$("DianCMS_Softos").value = val;
                }
                else {
                    DianCMS_$("DianCMS_Softos").value = DianCMS_$("DianCMS_Softos").value+"/" + val;
                }
            }
        </script><tr>
<td class="bqleft">测试附件：</td>
<td class="bqright">{D_F_ceshifujian}</td>
</tr>

        <tr>
            <td class="bqleft">
            </td>
            <td class="bqright" height="50">
                <asp:button id="Button1" runat="server" text=" 确认 " cssclass="btn" onclick="Button1_Click" OnClientClick="return ReturnIsOk()"/>
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
