<%@ page language="C#" autoeventwireup="true" inherits="user_company_store, ZKCMS" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Register TagName="meta" TagPrefix="UC" Src="~/s/include/meta.ascx" %>
<%@ Register TagName="head" TagPrefix="UC" Src="~/s/include/head.ascx" %>
<%@ Register TagName="tip_bar" TagPrefix="UC" Src="~/s/include/tip_bar.ascx" %>
<%@ Register TagName="foot" TagPrefix="UC" Src="~/s/include/foot.ascx" %>
<%@ Register TagName="side_menu" TagPrefix="UC" Src="~/user/side_menu.ascx" %>
<!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="X-UA-Compatible" content="IE=EmulateIE7" />
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    <title>会员中心_
        <%=ZK.config("sitetitle") %></title>
    <meta name="keywords" content="<%=ZK.config("sitekeywords") %>" />
    <meta name="description" content="<%=ZK.config("sitedescription") %>" />
    <UC:meta ID="meta1" runat="server" />
</head>
<body>
    <div class="wrap">
        <a name="pagetop" id="pagetop"></a>
        <UC:head ID="head1" runat="server" />
        <UC:tip_bar ID="tip_bar1" runat="server" />
        <form id="form1" runat="server" autocomplete="off">
        <div class="box">
            <div class="hot">
                <div class="fl" style="width: 180px">
                    <div class="c1 mt5">
                        <div class="b">
                            <div class="fl">
                            </div>
                            <div class="con" style="width: 80px">
                                功能菜单</div>
                            <div class="fr">
                            </div>
                            <div class="clear">
                            </div>
                        </div>
                        <div class="v">
                            <UC:side_menu ID="side_menu1" runat="server" />
                            <script type="text/javascript">showonly_user_side_menu("2,3,4,5,6");</script>
                        </div>
                    </div>
                </div>
                <div class="fr flow" style="width: 765px">
                    <div class="c1 mt5">
                        <div class="b">
                            <div class="fl">
                            </div>
                            <div class="con">
                                商家介绍
                            </div>
                            <div class="fr" style="width:300px"><asp:Literal ID="Literal1" runat="server"></asp:Literal>
                            </div>
                            <div class="clear">
                            </div>
                        </div>
                        <div class="v">
                            <div class="do1">

                                <script type="text/javascript">             
            function check(){
  if(document.getElementById("HiddenField_classid").value==""||document.getElementById("HiddenField_classid").value=="0"){alert("请选择所属类别！");return false;}            
            if(document.getElementById("companyname").value==""){alert("请填写商家名称！");return false;}
            if(document.getElementById("companyname").value.length<2){alert("商家名称太短！");return false;}
            if(!ifHasChn(document.getElementById("companyname").value)){alert("商家名称不符合规范！");return false;}
            if(document.getElementById("areaid").value==""){alert("请选择所在区域！");return false;}
            }
                                </script>

                                <table border="0" cellpadding="0" cellspacing="0" class="table1">
                                    <tr>
                                        <td class="tt">
                                            <b>所属类别：</b>
                                        </td>
                                        <td>
                                            <asp:DropDownList ID="parentclassid" runat="server" Width="200" CssClass="sel1" onchange="setDropDownListSubClass(this.value,'classid','company_store.aspx?act=ajax&type=getsubclass',0,0,'classid',0,0)">
                                            </asp:DropDownList>
                                            <asp:DropDownList ID="classid" runat="server" Width="195" CssClass="sel1" Style="display: none"
                                                onchange="document.getElementById('HiddenField_classid').value=this.value;setCustomCode(this.value,0,'company_store.aspx?act=ajax&type=custom')">
                                            </asp:DropDownList>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tt">
                                            <b>商家名称：</b>
                                        </td>
                                        <td>
                                            <asp:TextBox ID="companyname" runat="server" MaxLength="60" CssClass="inp4" Width="392"></asp:TextBox><span
                                                style="margin-left: 10px"><span class="msgon">请填写商家名称！</span></span>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tt">
                                            形象图片：
                                        </td>
                                        <td>
                                            <table border="0" cellpadding="0" cellspacing="0" style="cursor: default">
                                                <tr>
                                                    <td>
                                                        <div class="abs" style="*display: none">
                                                            <table width="400" border="0" cellspacing="0" cellpadding="0" height="24">
                                                                <tr>
                                                                    <td id="upimg1_txt" width="322" style="border: solid 1px #ccc">
                                                                        &nbsp;
                                                                    </td>
                                                                    <td>
                                                                        &nbsp;
                                                                    </td>
                                                                    <td width="72" style="border: solid 1px #ccc" class="ce" style="color: #333">
                                                                        浏览...
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                        </div>
                                                        <asp:FileUpload ID="upimg1" runat="server" size="55" CssClass="inp4 self_inp4" ToolTip="jpg,jpeg,gif,bmp,png" />
                                                    </td>
                                                    <td style="padding-left: 8px">
                                                        <div id="thumbnailviewbox">
                                                            <asp:Literal ID="thumbnailview" runat="server"></asp:Literal></div>
                                                        <asp:HiddenField ID="thumbnail" runat="server" />
                                                    </td>
                                                </tr>
                                            </table>
                                            <style type="text/css">
                                                .self_inp4
                                                {
                                                    width: 393px; *width:400px;height:20px;*height:24px;filter:-moz-opacity:0;opacity:0;font-size:12px;}
                                                #CustomArea td
                                                {
                                                    padding-top: 5px;
                                                }
                                                #CustomArea .self_custom_inp
                                                {
                                                    font-size: 12px;
                                                    padding-left: 6px;
                                                }
                                            </style>

                                            <script type="text/javascript">
                                     if (navigator.userAgent.indexOf('Firefox') >= 0){document.getElementById("upimg1").style.width="400px";  document.getElementById("upimg1").style.height="24px";}
                                            </script>

                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tt">
                                            <b>所在区域：</b>
                                        </td>
                                        <td>
                                            <asp:DropDownList ID="areaid" runat="server" Width="200" CssClass="sel1">
                                            </asp:DropDownList>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tt">
                                            <b>地图坐标：</b>
                                        </td>
                                        <td>
                                            <table border="0" cellpadding="0" cellspacing="0">
                                                <tr>
                                                        <td><div style="position:absolute;"><img style="cursor:pointer" onclick="self_showMap()" src="/skin/public/none.gif" width="240" height="28" /></div><asp:TextBox ID="sjmap" runat="server" MaxLength="50" CssClass="inp4" Width="230"></asp:TextBox><asp:HiddenField ID="sjmap_" runat="server" />
                                                    </td>
                                                    <td class="tt" style="width:90px">
                                                    
                                                    <script type="text/javascript">
                                                    var self_mapA="sjmap";var self_mapB="sjmap_";var self_ll="<%=ZK.BaiduMapDefaultLL %>";if(document.getElementById(self_mapA).value!="")self_ll=document.getElementById(self_mapA).value;
                                                    
                                                    function self_showMap(){  
                                                    document.getElementById(self_mapB).value=document.getElementById(self_mapA).value;
                                                    var self_xx="";
                                                   if(document.getElementById("companyname").value.length>1) self_xx+="&t="+base64en(document.getElementById("companyname").value);                                                                                          
                                                   //if(document.getElementById("address").value.length>2) self_xx+="&c="+base64en(document.getElementById("address").value);
                                                    TINY.box.show("<iframe frameborder=\"0\" scrolling=\"no\" src=\"/user/map.aspx?ll="+self_ll+"&obj="+self_mapA+self_xx+"&rd="+Math.random()+"\" width=\"650\" height=\"450\"></iframe>",0,650,450,1,0);
                                                    self_getMap();
                                                    }
                                                    
                                                    function self_getMap(){
                                                    function self_getMap_(){if(document.getElementById(self_mapA).value!=document.getElementById(self_mapB).value){
                                                    clearInterval(Interva_self_getMap);TINY.box.hide();
                                                    if(document.getElementById(self_mapA).value=="0")document.getElementById(self_mapA).value="";else {self_ll=document.getElementById(self_mapA).value;alert("地图经纬标注成功！");}                                                    
                                                    }}
                                                    var Interva_self_getMap=setInterval(self_getMap_,1000);
                                                    }                                                   
                                                    </script>
                                                    
                                                  <a href="javascript:void(0)" onclick="self_showMap()" style="color:#f30">标注地图坐标&raquo;</a>
                                                    </td>
                                                
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tt">
                                            <b>详细介绍：</b>
                                            <asp:HiddenField ID="UID" runat="server" />
                                            <asp:HiddenField ID="HiddenField_classid" runat="server" />
                                            <asp:Literal ID="JS_classid" runat="server"></asp:Literal>
                                        </td>
                                        <td>
                                            <%@ register assembly="FredCK.FCKeditorV2" namespace="FredCK.FCKeditorV2" tagprefix="FCKeditorV2" %>
                                            <FCKeditorV2:FCKeditor ID="FCKeditor1" runat="server" BasePath="~/s/tool/fck/" Height="400"
                                                Width="620" ToolbarSet="Edit1">
                                            </FCKeditorV2:FCKeditor>
                                        </td>
                                    </tr>
                                    
                                    <tr>
                                        <td class="tt">
                                            <b>公司地址：</b><asp:HiddenField ID="HiddenField1" runat="server" />
                                        </td>
                                        <td>
                                            <asp:TextBox ID="address" runat="server" MaxLength="200" CssClass="inp4" Width="300"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tt">
                                            邮政编码：
                                        </td>
                                        <td>
                                            <asp:TextBox ID="postcode" runat="server" MaxLength="6" CssClass="inp4" Width="150"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tt">
                                            联系人：
                                        </td>
                                        <td>
                                            <asp:TextBox ID="contact" runat="server" MaxLength="10" CssClass="inp4" Width="150"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tt">
                                            <b>联系电话：</b>
                                        </td>
                                        <td>
                                            <asp:TextBox ID="phone" runat="server" MaxLength="33" CssClass="inp4" Width="150"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tt">
                                            联系手机：
                                        </td>
                                        <td>
                                            <asp:TextBox ID="tel" runat="server" MaxLength="11" CssClass="inp4" Width="150"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tt">
                                            联系邮箱：
                                        </td>
                                        <td>
                                            <asp:TextBox ID="email" runat="server" MaxLength="200" CssClass="inp4" Width="300"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tt">
                                            联系QQ：
                                        </td>
                                        <td>
                                            <asp:TextBox ID="qq" runat="server" MaxLength="20" CssClass="inp4" Width="150"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tt">
                                            公司网址：
                                        </td>
                                        <td>
                                            <asp:TextBox ID="homepage" runat="server" MaxLength="200" CssClass="inp4" Width="300"></asp:TextBox>
                                        </td>
                                    </tr>
                                    
                                     <tr>
                                        <td class="tt">
                                            黄页推荐：
                                        </td>
                                        <td>
                                            <table border="0" cellpadding="0" cellspacing="0">
                                                <tr>
                                                    <td>
                                                        <asp:DropDownList ID="istj" runat="server" Width="98" CssClass="">
                                                            <asp:ListItem></asp:ListItem>
                                                            <asp:ListItem Value="1">置顶推荐</asp:ListItem>
                                                        </asp:DropDownList>
                                                    </td>                                                
                                                    <td width="510" style="padding-left: 8px;">
                                                        <div style="*margin-top: -12px;">
                                                            <span class="msgon" style="float: none">
                                                                <asp:Literal ID="Literal_remaining" runat="server" Visible="false"><a href="chongzhi.aspx" style="color:#ff6600" target="_blank">您的余额不足，请充值！</a></asp:Literal>设为置顶推荐需花费<%=ZK.isYellowPageMoneyCost%>金币，推荐后的黄页将会突显在主要位置。</span>
                                                        </div>
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tt">
                                            &nbsp;
                                        </td>
                                        <td>
                                            <asp:Button ID="ButtonSubmit" runat="server" CssClass="but4" Text="确定提交" OnClick="ButtonSubmit_Click"
                                                OnClientClick="return check()" onmouseover="hover(this,0.8)" onmouseout="hover(this,1)" />
                                        </td>
                                    </tr>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="clear">
                </div>
            </div>
        </div>
        </form>
        <UC:foot ID="foot1" runat="server" />
    </div>
</body>
</html>
