<%@ Page Title="地区信息编辑" Language="C#" Theme="AdminSkin" MasterPageFile="~/Others/AdminMasterPage.Master" AutoEventWireup="true" CodeBehind="AreaEdit.aspx.cs" Inherits="Solution.Admin.Contents.AreaEdit" %>

<%@ Register Src="../Controls/WebFileUpload.ascx" TagName="WebFileUpload" TagPrefix="uc1" %>
<%@ Register Src="../Controls/SelectDialog.ascx" TagName="SelectDialog" TagPrefix="uc2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="AdminContentHead" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="AdminContentCenter" runat="server">
    <form id="form1" runat="server" method="post" enctype="multipart/form-data">
        <div class="formtextfield">
            <div class="title">
                <h4><span>地区信息编辑</span></h4>
            </div>
            <div class="content">
                <table style="width: 100%;" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td class="fieldname">名称:</td>
                        <td class="fieldvalue">
                            <asp:TextBox ID="txtAreaName" MaxLength="50" runat="server" Width="451px" CssClass="text form-validate"></asp:TextBox>
                            <asp:CustomValidator ControlToValidate="txtAreaName" 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="txtAliasName" MaxLength="50" runat="server" Width="451px"></asp:TextBox>
                        </td>
                        <td class="fielddescription">推荐使用拼音</td>
                    </tr>

                    <tr>
                        <td class="fieldname">父级城市:</td>
                        <td class="fieldvalue">
                            <uc2:SelectDialog ID="SelectDialogParentCity" runat="server" Type="area" />
                        </td>
                        <td class="fielddescription"></td>
                    </tr>

                    <tr>
                        <td class="fieldname">缩略图:</td>
                        <td class="fieldvalue">
                            <uc1:WebFileUpload ID="txtThumbnail" runat="server" UploadPath="/ajax/FileUpload.ashx?cmd=demoimg" />
                        </td>
                        <td class="fielddescription"></td>
                    </tr>
                    <tr>
                        <td class="fieldname">排序:</td>
                        <td class="fieldvalue">
                            <asp:TextBox ID="txtSequence" MaxLength="10" runat="server" Width="100px" Text="11"></asp:TextBox>
                            <asp:CustomValidator ControlToValidate="txtSequence" ClientValidationFunction="Validator.Digit" ErrorMessage="请填写数字" ValidateEmptyText="true" CssClass="fielderror" runat="server"></asp:CustomValidator>
                        </td>
                        <td class="fielddescription"></td>
                    </tr>
                    <tr>
                        <td class="fieldname">状态:</td>
                        <td class="fieldvalue">
                            <asp:CheckBox ID="ckbStatus" Text="隐藏" runat="server" />&nbsp;
                                
                        </td>
                        <td class="fielddescription"></td>
                    </tr>
                    <tr>
                        <td class="fieldname">是否推荐:</td>
                        <td class="fieldvalue">
                            <asp:CheckBox ID="ckbRecommend" Text="推荐" runat="server" />
                        </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 CssClass="btn btngreen" ID="btnSave" runat="server" Text="保存" OnClick="btnSave_Click" SkinID="ButtonSave" />&nbsp;&nbsp;
                        <asp:Button ID="btnCancel" runat="server" Text="取消" SkinID="ButtonCancel" CausesValidation="false" OnClick="Cancel_Click" />
                    </td>
                </tr>
            </table>
        </div>
    </form>
</asp:Content>
