<%@ Page Title="友情链接信息" StylesheetTheme="AdminSkin" Language="C#" MasterPageFile="~/Others/AdminMasterPage.Master" AutoEventWireup="true" CodeBehind="FriendLinkInfo.aspx.cs" Inherits="Solution.Admin.Contents.FriendLinkInfo" %>

<%@ Register Src="../Controls/WebFileUpload.ascx" TagName="WebFileUpload" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="AdminContentHead" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="AdminContentCenter" runat="server">
    <form id="form1" runat="server">
        <div class="formtextfield">
            <div class="title">
                <h4><span>友情链接信息</span></h4>
            </div>
            <div class="content">
                <table width="100%" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td class="fieldname">所属分组:
                        </td>
                        <td class="fieldvalue">
                            <asp:DropDownList ID="ddlLinkCategory" DataTextField="CategoryName" DataValueField="CategoryID" runat="server">
                            </asp:DropDownList>
                        </td>
                        <td class="fielddescription"></td>
                    </tr>
                    <tr>
                        <td class="fieldname">链接名称:
                        </td>
                        <td class="fieldvalue">
                            <asp:TextBox ID="txtLinkName" runat="server" Width="282" MaxLength="25" CssClass="text form-validate"></asp:TextBox>
                            <asp:CustomValidator ControlToValidate="txtLinkName" ClientValidationFunction="Validator.NonEmpty" ErrorMessage="不能为空" ValidateEmptyText="true" CssClass="fielderror" runat="server"></asp:CustomValidator>
                        </td>
                        <td class="fielddescription"></td>
                    </tr>
                    <tr>
                        <td class="fieldname">链接地址:
                        </td>
                        <td class="fieldvalue">
                            <asp:TextBox ID="txtLinkUrl" runat="server" Width="282" MaxLength="100" CssClass="text form-validate">http://</asp:TextBox>
                            <asp:CustomValidator ControlToValidate="txtLinkUrl" ClientValidationFunction="Validator.NonEmpty" ErrorMessage="不能为空" ValidateEmptyText="true" CssClass="fielderror" runat="server"></asp:CustomValidator>
                        </td>
                        <td class="fielddescription"></td>
                    </tr>
                    <tr>
                        <td class="fieldname">链接类型:
                        </td>
                        <td class="fieldvalue">
                            <asp:RadioButtonList ID="rbtLinkType" runat="server" RepeatDirection="Horizontal">
                                <asp:ListItem Selected="True" Value="1">文字链接</asp:ListItem>
                                <asp:ListItem Value="2">图片链接</asp:ListItem>
                            </asp:RadioButtonList>
                        </td>
                        <td class="fielddescription"></td>
                    </tr>
                    <tr>
                        <td class="fieldname">网站Logo地址:
                        </td>
                        <td class="fieldvalue">
                            <uc1:WebFileUpload ID="txtLinkLogo" runat="server" UploadPath="../ajax/FileUpload.ashx?cmd=thumbnail" />
                        </td>
                        <td class="fielddescription"></td>
                    </tr>
                    <tr>
                        <td class="fieldname">是否推荐:
                        </td>
                        <td class="fieldvalue">
                            <asp:CheckBox ID="ckbIsRecommend" runat="server" Checked="true" Text="推荐" />
                        </td>
                        <td class="fielddescription"></td>
                    </tr>
                    <tr>
                        <td class="fieldname" valign="top">备注:
                        </td>
                        <td class="fieldvalue">
                            <asp:TextBox ID="txtRemark" runat="server" TextMode="MultiLine" Height="73px"
                                Width="282px"></asp:TextBox>
                        </td>
                        <td class="fielddescription"></td>
                    </tr>
                    <tr>
                        <td class="fieldname">状态:
                        </td>
                        <td class="fieldvalue">
                            <asp:RadioButtonList ID="rbtLinkStatus" runat="server"
                                RepeatDirection="Horizontal">
                                <asp:ListItem Selected="True" Value="1">显示</asp:ListItem>
                                <asp:ListItem Value="2">隐藏</asp:ListItem>
                            </asp:RadioButtonList>
                        </td>
                        <td class="fielddescription"></td>
                    </tr>
                </table>
            </div>
            <table width="100%" border="0" cellpadding="2" cellspacing="1">
                <tr>
                    <td colspan="2" align="center">
                        <asp:Button ID="btnSaveInfo" runat="server" Text="保存" OnClick="btnSaveInfo_Click" SkinID="ButtonSave" />
                        <asp:Button ID="btnCancel" runat="server" Text="取消" SkinID="ButtonCancel" CausesValidation="false" OnClick="Cancel_Click" />
                    </td>
                </tr>
            </table>
        </div>
    </form>
</asp:Content>
