<%@ page title="" language="C#" masterpagefile="~/lovecenter/LoveCenterMaster.master" autoeventwireup="true" inherits="lovecenter_BusinessInfo, App_Web_ubyenibr" enableEventValidation="false" %>
<%@ Import Namespace="System.IO" %>
<%@ Register assembly="FredCK.FCKeditorV2" namespace="FredCK.FCKeditorV2" tagprefix="FCKeditorV2" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">

    <script type="text/javascript" src="/js/data.js"></script>
    <script type="text/javascript">
        $(function() {
            $(".menuitem a").bind("click", function() {
                $(".menuitem a").each(function() {
                    $(this).attr("class", "");
                });

                $("#t_info").hide();
                $("#t_price").hide();
                $("#t_solu").hide();

                $(this).attr("class", "chk");

                switch ($(this).attr("id")) {
                    case "b_info":
                        $("#t_info").show();
                        break;
                    case "b_price":
                        $("#t_price").show();
                        break;
                    case "b_solu":
                        $("#t_solu").show();
                        break;
                }
            });

            $("#t_price").hide();
            $("#t_solu").hide();
        });
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div class="rightbody">
        <div class="menutit">
            <%= PageTitle %>
        </div>
        <div class="bodycotent">
            <div class="menutab">
                <div class="menuitem">
                    <a id="b_info" class="chk" href="javascript:void(0);">编辑资料</a>
                    <a id="b_price" href="javascript:void(0);">服务报价</a>
                    <a id="b_solu" href="javascript:void(0);">成功案例</a>
                </div>
                <div class="menusub">
                    请认真完善您的资料
                </div>
            </div>
            <div class="body">
                <div class="descr"></div>
                <div class="list inputs">
                    <table id="t_info" width="100%" cellpadding="5" cellspacing="0" border="0">
		                <tr><td width="100">&nbsp;&nbsp;公司名称 <label>*</label></td><td colspan="3">
                            <asp:TextBox ID="txtcompanyname" runat="server" Width="300" MaxLength="20"></asp:TextBox>
		                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="请输入公司名称" ControlToValidate="txtcompanyname"  ForeColor="#404040" CssClass="err" Display="Dynamic"></asp:RequiredFieldValidator></td></tr>
		                <tr><td width="100">&nbsp;&nbsp;会员等级</td><td colspan="3"><%= _Mry_businessuserDetails.viplevel == 0 ? "普通商家" : "VIP商家"%></td></tr>
		                <tr><td width="100">&nbsp;&nbsp;商家分类</td><td colspan="3">
                            <asp:HiddenField ID="hidCid" runat="server" />
                            <script type="text/javascript">
                                new DropdownLists(arrBusinessCategorys, "<%= hidCid.ClientID %>", null, false);</script>
                        </td></tr>
		                
		                <tr><td width="100">&nbsp;&nbsp;营业时间</td><td colspan="3">
                            <asp:TextBox ID="txtofficetimes" runat="server" MaxLength="25"></asp:TextBox></td></tr>
		                
		                <tr><td width="100">&nbsp;&nbsp;公司所在地</td><td colspan="3">
                            <asp:HiddenField ID="hidArea" runat="server" />
		                    <script type="text/javascript">
		                        new DropdownLists(arrCity, "<%= hidArea.ClientID %>", null, true);</script>
		                </td></tr>
		                <tr><td width="100">&nbsp;&nbsp;公司地址</td><td colspan="3">
                            <asp:TextBox ID="txtaddress" runat="server" Width="300" MaxLength="100"></asp:TextBox></td></tr>
		                    
		                <tr><td width="100">&nbsp;&nbsp;联系人 <label>*</label></td><td >
                            <asp:TextBox ID="txtcontact" runat="server" MaxLength="10"></asp:TextBox>
		                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="请输入联系人" ControlToValidate="txtcontact"  ForeColor="#404040" CssClass="err" Display="Dynamic"></asp:RequiredFieldValidator></td>
		                
		                    <td width="100">&nbsp;&nbsp;官方网站</td><td><asp:TextBox ID="txtsiteurl" 
                                runat="server" MaxLength="100"></asp:TextBox></td>
		                </tr>
		                
		                
		                <tr><td width="100">&nbsp;&nbsp;联系电话 <label>*</label></td><td>
                            <asp:TextBox ID="txttel" runat="server" MaxLength="25"></asp:TextBox>
		                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="请输入联系电话" ControlToValidate="txttel"  ForeColor="#404040" CssClass="err" Display="Dynamic"></asp:RequiredFieldValidator></td>
		                    <td width="100">&nbsp;&nbsp;移动电话</td><td><asp:TextBox ID="txtmobile" 
                                runat="server" MaxLength="25"></asp:TextBox></td></tr>
		                
		                <tr><td width="100">&nbsp;&nbsp;传真号码</td><td><asp:TextBox ID="txtFax" 
                                runat="server" MaxLength="25"></asp:TextBox></td>
		                    <td width="100">&nbsp;&nbsp;E-Mail <label>*</label></td><td>
                            <asp:TextBox ID="txtEmail" runat="server" MaxLength="100"></asp:TextBox><asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ErrorMessage="请输入Email电子邮件" ControlToValidate="txtEmail"  ForeColor="#404040" CssClass="err" Display="Dynamic"></asp:RequiredFieldValidator></td></tr>
		                    
		                <tr><td width="100">&nbsp;&nbsp;QQ</td><td><asp:TextBox ID="txtqq" runat="server" 
                                MaxLength="20"></asp:TextBox></td>
		                    <td width="100">&nbsp;&nbsp;MSN</td><td><asp:TextBox ID="txtmsn" runat="server" 
                                MaxLength="50"></asp:TextBox></td></tr>
		                
		                <tr><td width="100">&nbsp;&nbsp;商铺介绍</td><td colspan="3">
		                    <FCKeditorV2:FCKeditor ID="txtdescrfile" runat="server" ToolbarSet="my" Height="400"></FCKeditorV2:FCKeditor>
		                </td></tr>
		                
		                <tr><td width="100">&nbsp;&nbsp;公司标志LOGO <label>*</label></td>
		                <td colspan="3">
		                    <% if (_Mry_businessuserDetails.logo != "" && _Mry_businessuserDetails.logo !=null)
                         { %>
                            <img src="/uploadfiles/<%= _Mry_businessuserDetails.logo %>" /><br />
		                    <%} %>
		                    <asp:FileUpload ID="FileUpload1" runat="server" width="300"/>
		                    <% if (_Mry_businessuserDetails.logo == "" || _Mry_businessuserDetails.logo == null)
                         { %>
		                    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ErrorMessage="公司标志LOGO" ControlToValidate="FileUpload1"  ForeColor="#404040" CssClass="err" Display="Dynamic"></asp:RequiredFieldValidator><br />
		                    <%} %>
		                    <span class="cap1">请上传200x200像素的图片</span>
		                    </td>
		                    </tr>
		                    
                        <tr><td width="100">&nbsp;&nbsp;LOGO 缩略图</td>
		                <td colspan="3">
		                    <% if (_Mry_businessuserDetails.logo != "" && _Mry_businessuserDetails.logo !=null)
                         { %>
                            <img src="/uploadfiles/<%= _Mry_businessuserDetails.logo %>_small.jpg" /><br />
		                    <%} %>
		                    <asp:FileUpload ID="FileUpload3" runat="server" width="300"/>
		                    <span class="cap1">请上传120x60像素的图片</span>
		                    </td>
		                    </tr>
		                    
		                <tr><td width="100">&nbsp;&nbsp;黄页店招</td>
		                <td colspan="3">
		                    <% if (File.Exists(Request.MapPath("~/uploadfiles/sign/" + _Mry_businessuserDetails.buid.ToString() + ".jpg")))
                         { %>
                            <img src="/uploadfiles/sign/<%= _Mry_businessuserDetails.buid %>.jpg" width="500" /><br />
		                    <%}
                         else
                         {
                             %>
                            <img src="/images/def_shop_head.jpg" width="500" /><br />
                             <%
                         } %>
		                    <asp:FileUpload ID="FileUpload2" runat="server" width="300"/>
		                    <span class="cap1">请上传950x150像素的图片</span>
		                    </td>
		                    </tr>
                </table>
                
                <table id="t_price" width="100%" cellpadding="5" cellspacing="0" border="0">
                    <tr><td width="100">&nbsp;&nbsp;服务报价</td><td colspan="3">
		                    <FCKeditorV2:FCKeditor ID="txtpricesfile" runat="server" ToolbarSet="my" Height="400"></FCKeditorV2:FCKeditor></td></tr>
                </table>                
                
                <table id="t_solu" width="100%" cellpadding="5" cellspacing="0" border="0">
                    <tr><td width="100">&nbsp;&nbsp;成功案例</td><td colspan="3">
		                    <FCKeditorV2:FCKeditor ID="txtsolutionsfile" runat="server" ToolbarSet="my" Height="400"></FCKeditorV2:FCKeditor></td></tr>
                </table>
                
                </div>
                <div class="submits">
                    <asp:LinkButton ID="btnOK" runat="server" CssClass="okbtn" onclick="btnOK_Click" >保存</asp:LinkButton>
                    <a href="BusinessQuestionsList.aspx" class="okbtn">取消</a> 
                    
                    <a href="/shopdetail/?buid=<%= _Mry_businessuserDetails.buid %>" target="_blank" class="okbtn">预览</a> 
                    预览需保存后有效
                </div>
            </div>
        </div>
    </div>
</asp:Content>

