<%@ Page Language="C#" AutoEventWireup="true" Inherits="System_Other_Link, QianboCMS" EnableEventValidation="false" %>
<!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 %></title>
    <script type="text/javascript" src="../../Js/Common.js"></script>
    <link type="text/css" href="../Css/layout.css" rel="Stylesheet" />
    <script language="javascript">
        function EWEBeditor_Create(s_ID, s_Style) {
            document.write('<input type="hidden" name="' + s_ID + '" value="">'
                + '<iframe id="' + s_ID + '__Iframe" src="../../Editor/eWebEditor/eWebEditor.htm?id=' + s_ID + '&style=' + s_Style + '" width="0" height="0" style="display: none;" frameborder="0" scrolling="no"></iframe>');
        }
        function EWEBeditor_ShowDialog(s_ID, s_Type, s_Mode, s_LinkID_SavePathFileName, s_LinkID_SaveFileName, s_LinkID_OriginalFileName) {
            var editor = document.getElementById(s_ID + '__Iframe').contentWindow;
            editor.openUploadDialog(s_Type, s_Mode, s_LinkID_SavePathFileName, s_LinkID_SaveFileName, s_LinkID_OriginalFileName)
        }
        EWEBeditor_Create("eWebEditor1", "standard650");
    </script>
</head>

<body>
    <form id="form1" runat="server">
        <table cellspacing="1" cellpadding="0" class="wzdh" align="center">
            <tr>
                <td style="padding-left: 10px;">
                    <img src="../Images/Skin/Default/you.gif" align="absmiddle" />
                    您现在的位置：<a href="../SystemInfo.aspx">后台管理</a> &gt;&gt; <a href="LinkList.aspx">友情链接管理</a> &gt;&gt; 设置友情链接
				</td>
            </tr>
        </table>
        <table cellspacing="1" cellpadding="0" class="border" align="center">
            <tr>
                <td class="wzlist"><a href="LinkList.aspx">所有友情链接</a></td>
            </tr>
        </table>
        <table class="border" align="center" cellpadding="0" cellspacing="1">
            <tr>
                <td class="bqleft">链接类型：</td>
                <td class="bqright">
                    <asp:RadioButton ID="rbTextLink" runat="server" GroupName="LinkType" Checked="true" />文字链接
					<asp:RadioButton ID="rbPicLink" runat="server" GroupName="LinkType" />图片链接
				</td>
            </tr>
            <tr>
                <td class="bqleft">所属分类：</td>
                <td class="bqright">
                    <asp:DropDownList ID="ddlLinkCategory" runat="server"></asp:DropDownList>
				</td>
            </tr>
            <tr>
                <td class="bqleft">站点名称：</td>
                <td class="bqright">
                    <asp:TextBox ID="txtRegSiteName" runat="server" Columns="50" MaxLength="50"></asp:TextBox>
                    <span style="color: red;">*</span>
				</td>
            </tr>
            <tr>
                <td class="bqleft">站点Url：</td>
                <td class="bqright">
                    <asp:TextBox ID="txtRegUrl" runat="server" Columns="50" MaxLength="255"></asp:TextBox>
                    <span style="color: red;">*</span>
				</td>
            </tr>
            <tr>
                <td class="bqleft">站点Logo：</td>
                <td class="bqright">
                    <asp:TextBox ID="txtRegLogo" runat="server" Columns="50" MaxLength="255"></asp:TextBox>
					<input type="button" runat="server" class="btn" value="上传图片" onclick="EWEBeditor_ShowDialog('eWebEditor1', 'image', '0', 'txtRegLogo', '', '')" />
                    <span class="tips">当为图片链接时必填，可以使用外部链接。</span>
				</td>
            </tr>
            <tr>
                <td class="bqleft">站长名称：</td>
                <td class="bqright">
                    <asp:TextBox ID="txtRegName" runat="server" Columns="50" MaxLength="50"></asp:TextBox>
				</td>
            </tr>
            <tr>
                <td class="bqleft">联系邮箱：</td>
                <td class="bqright">
                    <asp:TextBox ID="txtEmail" runat="server" Columns="50" MaxLength="50"></asp:TextBox>
				</td>
            </tr>
            <tr id="TrStatus" runat="server">
                <td class="bqleft">审核状态：</td>
                <td class="bqright">
                    <asp:Label ID="lbStatus" runat="server"></asp:Label>
                    <asp:Button ID="btnSetPass" runat="server" Text="通过审核" OnClick="btnSetPass_Click" />
				</td>
            </tr>
            <tr id="TrIsDisable" runat="server">
                <td class="bqleft">是否停用：</td>
                <td class="bqright">
                    <asp:Label ID="lbIsDisable" runat="server"></asp:Label>
                    <asp:Button ID="btnDisable" runat="server" OnClick="btnDisable_Click" />
				</td>
            </tr>
            <tr>
                <td class="bqleft">站点描述：</td>
                <td class="bqright">
                    <asp:TextBox ID="txtDescription" runat="server" TextMode="MultiLine" MaxLength="200" Width="350px"></asp:TextBox>
				</td>
            </tr>
            <tr>
                <td class="bqleft"></td>
                <td class="bqright">
                    <asp:Button ID="btnReg" runat="server" Text="修改" CssClass="btn" OnClick="btnUpdate_Click" />
                    <input id="btnReset" type="reset" value="重置" class="btn" />
				</td>
            </tr>
        </table>
    </form>
    <asp:Literal ID="LitMsg" runat="server"></asp:Literal>
</body>
</html>