<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Customer_Edit.aspx.cs" Inherits="TotCms.Web.Office.Customer.Customer_Edit" ValidateRequest="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 id="Head1" runat="server">
    <title>客户信息</title>
    <link href="../style/global.css" rel="stylesheet" type="text/css" />
    <script src="../js/common.js" type="text/javascript"></script>
    <script src="../../js/jquery-1.5.1.min.js" type="text/javascript"></script>
    <script src="../../js/jquery-ui-1.8.10/js/jquery-ui-1.8.10.custom.min.js" type="text/javascript"></script>
    <link href="../../js/jquery-ui-1.8.10/css/ui-lightness/jquery-ui-1.8.10.custom.css" rel="stylesheet" type="text/css" />
    <script src="../../js/jquery-ui-1.8.10/js/i18n/jquery.ui.datepicker-zh-CN.js" type="text/javascript"></script>
    <script src="../../ckeditor/ckeditor.js" type="text/javascript"></script>
    <script src="../../js/areas.js" type="text/javascript"></script>    
    <script type="text/javascript">
      $(function () {
        $('.dates').datepicker($.datepicker.regional["zh-CN"]);
        $("#dialog:ui-dialog").dialog("destroy");
        $("#dialog-win").dialog({
          autoOpen: false,
          height: 350,
          width: 450,
          modal: true,
          buttons: {
            "关闭窗口": function () {
              $(this).dialog("close");
            }
          },
          close: function () {

          }
        });

        $("#selclass").click(function () {
          $("#dialog-win").dialog("open");
        });
      });
      function CloseFrame() {
        $("#dialog-win").dialog("close");
      }
      function ReturnValue(v, t) {
        $('#tbStaffs').val(t);
        $('#tbStaffId').val(v);
        CloseFrame();
      }
      function SelectProvince(id) {
        var prv = document.getElementById('Province');
        for (var i = 0; i < prv.options.length; i++) {
          if (parseInt(prv.options[i].value) == parseInt(id)) {
            prv.options[i].selected = true;            
          }
        }
      }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div id="dialog-win" title="选择员工">
        <iframe src="../Staff/Staff_Select.aspx" width="370" height="350" frameborder="0"
            scrolling="auto"></iframe>
    </div>
    <div class="br"></div>
    <div>
        <table cellpadding="0" cellspacing="1" border="0" width="100%" class="border">
            <tr class="suphead">
                <td colspan="2">
                    客户信息
                </td>
            </tr>
            <tr>
                <td width="100" class="fields_text">
                    客户类别：</td>
                <td class="fields_input">
                    <asp:RadioButtonList ID="rbComClass" runat="server" 
                      RepeatDirection="Horizontal" RepeatLayout="Flow">
                      <asp:ListItem Value="0">个人</asp:ListItem>
                      <asp:ListItem Value="1">企业</asp:ListItem>
                    </asp:RadioButtonList>
                </td>
            </tr>
            <tr>
                <td width="100" class="fields_text">
                    公司名称:</td>
                <td class="fields_input">
                    <asp:TextBox ID="tbComName" runat="server" CssClass="input_middle"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                      ControlToValidate="tbComName" ErrorMessage="请填写公司名称" SetFocusOnError="True"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="fields_text">
                    来源：</td>
                <td class="fields_input">
                    <asp:DropDownList ID="ddComFrom" runat="server">                    
                  </asp:DropDownList>
                    &nbsp;&nbsp;星级：<asp:DropDownList ID="ddComStar" runat="server">
                    <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:DropDownList>
                    　状态：<asp:DropDownList ID="ddStatus" runat="server">                    
                  </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="fields_text">
                    责任人：</td>
                <td class="fields_input">
                    <asp:TextBox ID="tbStaffs" runat="server" ></asp:TextBox>
                    <asp:TextBox ID="tbStaffId" runat="server" CssClass="hidden">0</asp:TextBox>
                    <input id="selclass" name="selclass" type="button" value="选择" class="selclass" /></td>
            </tr>
           <tr>
      <td class="fields_text">
          行业：</td>
      <td class="fields_input">
        <asp:DropDownList ID="ddIndustry" runat="server">
                  </asp:DropDownList>
      </td>
    </tr>
                        
            
           <tr>
      <td class="fields_text">
          地区：</td>
      <td class="fields_input">
                  <select id="Province" name="Province" onchange="GetAreaChilds(this.options[this.selectedIndex].value,0,'City')">
                    <option value="0">选择省</option> 
                    <script type="text/javascript">document.write(GetAreaFirst(0, ''));</script>                 
                  </select> &gt; <select id="City" name="City">
                    <option value="0">--</option>
                  </select>
      </td>
    </tr>
                        
            
           <tr>
      <td class="fields_text">
          联系人：</td>
      <td class="fields_input">
        <asp:TextBox ID="tbContactMan" runat="server"></asp:TextBox>
&nbsp;职位：<asp:TextBox ID="tbManPosition" runat="server"></asp:TextBox>
&nbsp;邮箱：<asp:TextBox ID="tbEmail" runat="server"></asp:TextBox>
      </td>
    </tr>
                        
            
           <tr>
      <td class="fields_text">
          电话：</td>
      <td class="fields_input">
        <asp:TextBox ID="tbTel" runat="server"></asp:TextBox>
&nbsp;QQ：<asp:TextBox ID="tbQQ" runat="server"></asp:TextBox>
&nbsp;手机：<asp:TextBox ID="tbMobile" runat="server"></asp:TextBox>
      </td>
    </tr>
                        
            
           <tr>
      <td class="fields_text">
          传真：</td>
      <td class="fields_input">
        <asp:TextBox ID="tbFax" runat="server"></asp:TextBox>
&nbsp;主页：<asp:TextBox ID="tbHomePage" runat="server"></asp:TextBox>
      </td>
    </tr>
                        
            
           <tr>
      <td class="fields_text">
          地址：</td>
      <td class="fields_input">
        <asp:TextBox ID="tbAddress" runat="server" CssClass="input_middle"></asp:TextBox>
      </td>
    </tr>
                        
            
           <tr>
      <td class="fields_text">
          开户行：</td>
      <td class="fields_input">
        <asp:TextBox ID="tbBankName" runat="server"></asp:TextBox>
&nbsp;帐号：<asp:TextBox ID="tbBankId" runat="server"></asp:TextBox>
&nbsp;开户人：<asp:TextBox ID="tbBankPerson" runat="server"></asp:TextBox>
      </td>
    </tr>
                        
            
           <tr>
      <td class="fields_text">
          创建者：</td>
      <td class="fields_input">
        <asp:TextBox ID="tbCreateBy" runat="server"></asp:TextBox>
&nbsp;创建日期：<asp:TextBox ID="tbCreateDate" runat="server" CssClass="dates"></asp:TextBox>
      </td>
    </tr>
                        
            
           <tr>
      <td class="fields_text">
          修改者：</td>
      <td class="fields_input">
        <asp:TextBox ID="tbModBy" runat="server"></asp:TextBox>
&nbsp;修改日期：<asp:TextBox ID="tbModDate" runat="server" CssClass="dates"></asp:TextBox>
      </td>
    </tr>
                        
            
           <tr>
      <td class="fields_text">
          详细介绍：</td>
      <td class="fields_input">
      <asp:TextBox ID="Content" runat="server" TextMode="MultiLine"></asp:TextBox>
          <script type="text/javascript">
		      //<![CDATA[
            // Replace the <textarea id="Content"> with an CKEditor instance.
            var editor = CKEDITOR.replace('Content',
			      {
			        filebrowserBrowseUrl: '../../ckfinder/ckfinder.html', //启用浏览功能
			        filebrowserImageBrowseUrl: '../../ckfinder/ckfinder.html?Type=Images',
			        filebrowserFlashBrowseUrl: '../../ckfinder/ckfinder.html?Type=Flash',
			        filebrowserUploadUrl: '../../ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Files',
			        filebrowserImageUploadUrl: '../../ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Images',
			        filebrowserFlashUploadUrl: '../../ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Flash'
			      }
            );
		      //]]>
		      </script>
      </td>
    </tr>
                        
            
            <tr>
                <td align="center">&nbsp;
                    </td>
                <td align="left" height="35">
                    <asp:Button CssClass="button_blue" ID="btnSubmit" runat="server" Text="确定" OnClick="btnSubmit_Click" /> <input type="button" class="button_gray" onclick="javascript:history.back();" value="返 回" /></td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
