<%@ Page Language="C#" AutoEventWireup="true" CodeFile="SincereAgentEdit.aspx.cs"
    Inherits="admin_Agent_SincereAgentEdit" %>

<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<!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">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>招商信息管理</title>
<link rel="stylesheet" href="../skin/style.css" type="text/css" />
<script type="text/javascript">
	 function showadv()
	 {
		var rowTest=document.getElementById("table_more");
		if(document.getElementById('table_more').style.display=='none')
		{
			rowTest.style.display = "block";
		}
		else
		{
			rowTest.style.display = "none";
		}
	}
</script>
</head>
<body>
    <form id="form1" runat="server">
        <div class="itemtitle_tect">
            <ul>
                <li>通过用户管理，您可以进行编辑会员资料、用户组、权限、积分、授权会员勋章以及删除会员等操作；</li>
                <li>请先根据条件搜索用户，然后选择相应的操作。</li>
            </ul>
        </div>
        <div class="clr">
        </div>
        <div class="talbe_border">
            <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 border="0" cellpadding="0" cellspacing="0" class="talbe_list">
                <tr>
                    <th colspan="2" class="header tou">
                        编辑招商信息</th>
                </tr>
                <tr>
                    <td width="16%" class="left1">
                        代理加盟名称：
                    </td>
                    <td class="left2">
                        <span>
                            <asp:TextBox ID="txtName" runat="server" Width="300"></asp:TextBox></span>
                        <div id="txt0">
                        </div>
                    </td>
                </tr>
                <tr>
                    <td width="16%" class="left1">
                        代理加盟所属类目：
                    </td>
                    <td class="left2">
                        <asp:ListBox ID="lstParentType" runat="server" AutoPostBack="True" DataSourceID="sdsBindParentType"
                            DataTextField="Name" DataValueField="ID" Height="140px" OnSelectedIndexChanged="lstParentType_SelectedIndexChanged"
                            Width="132px"></asp:ListBox><asp:ListBox ID="lstSonType" runat="server" 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 width="16%" class="left1">
                        信息标题：
                    </td>
                    <td class="left2">
                        <span>
                            <asp:TextBox ID="txtTitle" runat="server" Width="200px"></asp:TextBox></span>
                        <div id="txt1">
                        </div>
                    </td>
                </tr>
                <tr>
                    <td width="16%" class="left1">
                        信息有效期：
                    </td>
                    <td class="left2">
                        <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 width="16%" class="left1">
                        品牌：
                    </td>
                    <td class="left2">
                        <span>
                            <asp:TextBox ID="txtBrand" runat="server" Width="200px"></asp:TextBox></span>
                        <div id="txt2">
                        </div>
                    </td>
                </tr>
                <tr>
                    <td width="16%" class="left1">
                        基本投资额：
                    </td>
                    <td class="left2">
                        <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 width="16%" class="left1">
                        保证金额：
                    </td>
                    <td class="left2">
                        <span>
                            <asp:TextBox ID="txtAmount" runat="server" Width="200px"></asp:TextBox>元</span>
                        <div id="txt3">
                        </div>
                    </td>
                </tr>
                <tr>
                    <td width="16%" class="left1">
                        加盟费：
                    </td>
                    <td class="left2">
                        <span>
                            <asp:TextBox ID="txtInitialFee" runat="server" Width="200px"></asp:TextBox>元</span>
                        <div id="txt4">
                        </div>
                    </td>
                </tr>
                <tr>
                    <td width="16%" class="left1">
                        项目区域要求：
                    </td>
                    <td class="left2">
                        <asp:DropDownList ID="dropRequire" runat="server">
                        </asp:DropDownList>
                    </td>
                </tr>
                            <tr>
                                <td class="left1">
                                    品牌发源地：</td>
                                <td class="left2">
                                    <SPAN><asp:TextBox ID="txtCradle" runat="server" Width="200px"></asp:TextBox></SPAN>
                                    <div id="txt5">
                                    </div>
                              </td>
                            </tr>
                            <tr>
                                <td class="left1">
                                    预计回报率：</td>
                                <td class="left2">
                                    <SPAN><asp:TextBox ID="txtPayback" runat="server" Width="200px"></asp:TextBox>
                                    %</SPAN><div id="txt6">
                                    </div>
                              </td>
                            </tr>
                            <tr>
                                <td class="left1">
                                    预计回报周期：</td>
                                <td class="left2">
                                    <SPAN><asp:TextBox ID="txtPeriod" runat="server" Width="200px"></asp:TextBox>
                                    年</SPAN><div id="txt7">
                                    </div>
                              </td>
                            </tr>
                            <tr>
                                <td class="left1">
                                    特许权使用费：</td>
                                <td class="left2">
                                    <SPAN><asp:TextBox ID="txtConcession" runat="server" Width="200px"></asp:TextBox>
                                    元</SPAN><div id="txt8"></div>
                              </td>
                            </tr>
                            <tr>
                                <td class="left1">
                                    合同期限：</td>
                                <td class="left2">
                                    <SPAN><asp:TextBox ID="txtContract" runat="server" Width="200px"></asp:TextBox>
                                    年</SPAN><div id="txt9">
                                    </div>
                              </td>
                            </tr>
                            <tr>
                                <td class="left1">
                                    加盟商总数：</td>
                                <td class="left2">
                                    <SPAN><asp:TextBox ID="txtCount" runat="server" Width="200px"></asp:TextBox>
                                    家</SPAN><div id="txt10">
                                    </div>
                              </td>
                            </tr>
                            <tr>
                                <td class="left1">
                                    特许经营年限：</td>
                                <td class="left2">
                                    <SPAN><asp:TextBox ID="txtBusinessDate" runat="server" Width="200px" MaxLength="3"></asp:TextBox>
                                    年</SPAN><div id="txt11">
                                    </div>
                              </td>
                            </tr>
                            <tr>
                                <td class="left1">
                                    是否多品牌经营：</td>
                                <td class="left2">
                                    <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 class="left1">
                                    经营模式：</td>
                                <td class="left2">
                                    <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 class="left1">
                                    发展模式：</td>
                                <td class="left2">
                                    <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>
                <tr>
                    <td width="16%" class="left1">
                        详细说明：
                    </td>
                    <td><FCKeditorV2:FCKeditor ID="Detail" runat="server" BasePath="~/Control/fckeditor/" ToolbarSet="Basic" Height="400" Width="640"></FCKeditorV2:FCKeditor></td>
                </tr>
                <tr>
                    <td width="16%" class="left1">
                        上传图片：
                    </td>
                    <td>
                        <div style="float: left">
                            <asp:HiddenField ID="HiddUserID" runat="server" />
                            <asp:HiddenField ID="ImgUrl1" 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="../UpFile/Upload.html" style="width: 550px; height: 135px"
                                    frameborder="0" scrolling="no" onload="this.height=tag.document.body.scrollHeight">
                                </iframe>
                            </div>
                            <div id="Upload">
                            </div>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td colspan="2" bgcolor="#F0F7FD">
                        <asp:Button ID="btnSave" runat="server" Text="确定" OnClick="btnSave_Click" CssClass="i_button" /><asp:Button ID="btnBack" runat="server" Text="取消" OnClick="bntBack_Click" CssClass="i_button" />
                        
                    </td>
                </tr>
          </table>
        </div>
    </form>
    <script type="text/javascript" src="../../js/Common.js"></script>
    <script type="text/javascript" src="../js/SincereAgent.js"></script>
</body>
</html>
