<%@ Page Language="C#" MasterPageFile="~/Member/UserManage.master" AutoEventWireup="true"
    CodeFile="SincereAgentEdit.aspx.cs" Inherits="Member_Agent_SincereAgentEdit"
    Title="管理诚招代理加盟" %>

<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContInfo" runat="Server">
    <form id="form1" action="">

        <script type="text/javascript">
         function showadv()
         {
            var rowTest=document.getElementById("ctl00_ContInfo_table_more");
            if(document.getElementById('ctl00_ContInfo_table_more').style.display=='none')
            {
                rowTest.style.display = "block";
            }
            else
            {
                rowTest.style.display = "none";
                
            }
        }
        </script>

        <div>
            <asp:HiddenField ID="txtProvince" runat="server"></asp:HiddenField>
            <asp:HiddenField ID="txtCity" runat="server"></asp:HiddenField>
            <asp:HiddenField ID="txtCounty" runat="server"></asp:HiddenField>
            <table cellspacing="0" cellpadding="0" width="100%" border="0">
                <tr>
                    <td>
                        代理加盟名称
                    </td>
                    <td>
                        <asp:TextBox ID="txtName" runat="server" Width="200px"></asp:TextBox>
                        <div id="txt0">
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        代理加盟所属类目
                    </td>
                    <td>
                        <asp:ListBox ID="lstParentType" runat="server" AutoPostBack="True" DataSourceID="sdsBindParentType"
                            DataTextField="Name" DataValueField="ID" Height="140px" Width="132px"></asp:ListBox>
                        <asp:SqlDataSource ID="sdsBindParentType" runat="server" ConnectionString="<%$ ConnectionStrings:sqlData %>"
                            SelectCommand="SELECT * FROM [W_AgentType] WHERE ([ParentID] = @ParentID)">
                            <SelectParameters>
                                <asp:Parameter DefaultValue="0" Name="ParentID" Type="Int32" />
                            </SelectParameters>
                        </asp:SqlDataSource>
                    </td>
                </tr>
                <tr>
                    <td>
                        信息标题
                    </td>
                    <td>
                        <asp:TextBox ID="txtTitle" runat="server" Width="200px"></asp:TextBox>
                        <div id="txt1">
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        信息有效期
                    </td>
                    <td>
                        <asp:RadioButtonList ID="radlValidity" runat="server" RepeatDirection="Horizontal"
                            RepeatLayout="Flow">
                            <asp:ListItem Value="10">10天</asp:ListItem>
                            <asp:ListItem Value="20">20天</asp:ListItem>
                            <asp:ListItem Value="30">1个月</asp:ListItem>
                            <asp:ListItem Value="90">3个月</asp:ListItem>
                            <asp:ListItem Value="180" Selected="True">6个月</asp:ListItem>
                        </asp:RadioButtonList></td>
                </tr>
                <tr>
                    <td>
                        品牌
                    </td>
                    <td>
                        <asp:TextBox ID="txtBrand" runat="server" Width="200px"></asp:TextBox><div id="txt2">
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        基本投资额
                    </td>
                    <td>
                        <asp:DropDownList ID="dropInvestment" runat="server">
                            <asp:ListItem>请选择</asp:ListItem>
                            <asp:ListItem>0-0.5万</asp:ListItem>
                            <asp:ListItem>0.5-1万</asp:ListItem>
                            <asp:ListItem>1-5万</asp:ListItem>
                            <asp:ListItem>5-10万</asp:ListItem>
                            <asp:ListItem>10-50万</asp:ListItem>
                            <asp:ListItem>50-100万</asp:ListItem>
                            <asp:ListItem>大于100万</asp:ListItem>
                        </asp:DropDownList></td>
                </tr>
                <tr>
                    <td>
                        保证金额
                    </td>
                    <td>
                        <asp:TextBox ID="txtAmount" runat="server" Width="200px"></asp:TextBox>
                        元<div id="txt3">
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        加盟费
                    </td>
                    <td>
                        <asp:TextBox ID="txtInitialFee" runat="server" Width="200px"></asp:TextBox>
                        元<div id="txt4">
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        项目区域要求
                    </td>
                    <td>
                        <asp:DropDownList ID="dropRequire" runat="server">
                        </asp:DropDownList><a style="cursor: pointer" onclick="showadv()">更多属性</a></td>
                </tr>
                <tr>
                    <td colspan="2">
                        <table id="table_more" style="display: none" width="100%" border="0" cellspacing="0"
                            runat="server" cellpadding="0">
                            <tr>
                                <td>
                                    品牌发源地
                                </td>
                                <td>
                                    <asp:TextBox ID="txtCradle" runat="server" Width="200px"></asp:TextBox><div id="txt5">
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    预计回报率
                                </td>
                                <td>
                                    <asp:TextBox ID="txtPayback" runat="server" Width="200px"></asp:TextBox>
                                    %<div id="txt6">
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    预计回报周期
                                </td>
                                <td>
                                    <asp:TextBox ID="txtPeriod" runat="server" Width="200px"></asp:TextBox>
                                    年<div id="txt7">
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    特许权使用费
                                </td>
                                <td>
                                    <asp:TextBox ID="txtConcession" runat="server" Width="200px"></asp:TextBox>
                                    元<div id="txt8">
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    合同期限
                                </td>
                                <td>
                                    <asp:TextBox ID="txtContract" runat="server" Width="200px"></asp:TextBox>
                                    年<div id="txt9">
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    加盟商总数
                                </td>
                                <td>
                                    <asp:TextBox ID="txtCount" runat="server" Width="200px"></asp:TextBox>
                                    家<div id="txt10">
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    特许经营时间
                                </td>
                                <td>
                                    <asp:TextBox ID="txtBusinessDate" runat="server" Width="200px"></asp:TextBox>
                                    年<div id="txt11">
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    是否多品牌经营
                                </td>
                                <td>
                                    <asp:RadioButtonList ID="radlisMoreBrand" runat="server" RepeatDirection="Horizontal"
                                        RepeatLayout="Flow">
                                        <asp:ListItem Value="True">是</asp:ListItem>
                                        <asp:ListItem Value="False">否</asp:ListItem>
                                    </asp:RadioButtonList></td>
                            </tr>
                            <tr>
                                <td>
                                    经营模式
                                </td>
                                <td>
                                    <asp:CheckBoxList ID="chklBusinessMode" runat="server" RepeatDirection="Horizontal"
                                        RepeatLayout="Flow">
                                        <asp:ListItem Value="0">经销</asp:ListItem>
                                        <asp:ListItem Value="1">代理</asp:ListItem>
                                        <asp:ListItem Value="2">特许</asp:ListItem>
                                        <asp:ListItem Value="3">合作</asp:ListItem>
                                        <asp:ListItem Value="4">自由连锁</asp:ListItem>
                                        <asp:ListItem Value="5">直营</asp:ListItem>
                                        <asp:ListItem Value="6">其他</asp:ListItem>
                                    </asp:CheckBoxList></td>
                            </tr>
                            <tr>
                                <td style="height: 20px">
                                    发展模式
                                </td>
                                <td style="height: 20px">
                                    <asp:CheckBoxList ID="chklDevelopmental" runat="server" RepeatDirection="Horizontal"
                                        RepeatLayout="Flow">
                                        <asp:ListItem Value="0">经销</asp:ListItem>
                                        <asp:ListItem Value="1">区域代理</asp:ListItem>
                                        <asp:ListItem Value="2">自由代理</asp:ListItem>
                                        <asp:ListItem Value="3">单店特许</asp:ListItem>
                                        <asp:ListItem Value="4">区域开发</asp:ListItem>
                                        <asp:ListItem Value="5">二级特许</asp:ListItem>
                                        <asp:ListItem Value="6">其他</asp:ListItem>
                                    </asp:CheckBoxList></td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td>
                        详细说明
                    </td>
                    <td>
                        <FCKeditorV2:FCKeditor ID="Detail" runat="server" BasePath="~/Control/fckeditor/"
                            ToolbarSet="Basic" Height="400" Width="640">
                        </FCKeditorV2:FCKeditor>
                    </td>
                </tr>
                <tr>
                    <td>
                        上传图片
                    </td>
                    <td>
                        <asp:HiddenField ID="ImgUrl1" runat="server" />
                        <asp:HiddenField ID="HiddUserID" runat="server" />
                        <a href="" id="txturldz" target="_blank">
                            <img border="0" src="../../Images/System/wutu.gif" id="ImgUrl" alt="" runat="server"
                                style="width: 106px; height: 95px" /></a><br />
                        <input id="txtupload" type="button" value="上传" onclick="return rowTest()" /><br />
                        <div id="rowTest" style="display: none">
                            <iframe name="tag" src="../Tool/Upload.html" style="width: 550px; height: 190px"
                                frameborder="0" scrolling="no" onload="this.height=tag.document.body.scrollHeight">
                            </iframe>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td colspan="2" align="center" style="height: 91px">
                        <asp:Button ID="btnSave" runat="server" Text="我要发布" OnClick="btnSave_Click" />
                        <asp:Button ID="btnCancel" runat="server" Text="取消" />
                    </td>
                </tr>
            </table>
        </div>
    </form>

    <script type="text/javascript" src="../../js/Common.js"></script>

    <script type="text/javascript" src="../js/SincereAgent.js"></script>

</asp:Content>
