<%@ page language="C#" autoeventwireup="true" inherits="user_shop, 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" />
    <style type="text/css">
    .self_tip
    {
    	border:solid 1px #ffe5a5;
    	background:#fff5de url(/s/skin/prompt_small.gif) no-repeat 10px 9px;
    	padding:6px 6px 6px 32px;
    	color:#666;
    	width:703px;
    }
     .self_tip a,.self_tip a:hover
    {
    	color:#f60;
    }
    </style>
    <script type="text/javascript">
        function checkdomain(value) {
            value=value.replace(/ /,"").replace(/　/,"").toLowerCase();
            if(value=="")return;
            if(!/^[0-9a-zA-Z]{2,20}$/.test(value)){
                alert("域名不符合规范，请重新填写！");document.getElementById("domain").value="";return;
            }
            document.getElementById("domain").value=value;
            ajax("get","shop.aspx?act=ajax&type=checkdomain&value="+value+"&mod=<%=WMcompare.IsEqual(IsEdit.ToString(),"True","1","0")%>&rd="+Math.random(),"",function OnHandler(){if(xmlHttp.readyState == 4){if(xmlHttp.responseText=="False"){alert("这个域名已经被使用了，请更换！");document.getElementById("domain").value="";}}})
        }
    </script>
</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" style="width: 400px; padding-left: 0">
                                <div class="moveareab1">
                                    <ul>
                                        <li class="on"><a href="javascript:void(0)" style="cursor:default;color:#fff">设置店铺</a></li>
                                        <asp:Literal ID="Literal2" runat="server"></asp:Literal>                                     
                                    </ul>
                                    <div class="clear"></div>
                                </div>
                            </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">
                            <asp:Literal ID="Literal_Tip1" runat="server" Visible="false"><div class="self_tip">您不是VIP会员，无权开通店铺主页！&nbsp;您可以<a href="vip.aspx" target="_blank">[升级成为VIP会员]</a>&nbsp;&nbsp;<a href="vip.aspx?introduce" target="_blank">[了解VIP会员特权]</a></div><div class="flow" style="height:10px"></div></asp:Literal>
                                <script type="text/javascript">             
                                    function check(){
                                    if(document.getElementById("HiddenField_classid").value==""||document.getElementById("HiddenField_classid").value=="0"){alert("请选择所属行业类别！");return false;}            
                                    if(document.getElementById("sjname").value==""){alert("请填写您的商家店铺名称！");return false;}
                                    if(document.getElementById("sjname").value.length<2){alert("商家店铺名称太短！");return false;}
                                    //if(!ifHasChn(document.getElementById("sjname").value)){alert("商家店铺名称不符合规范！");return false;}
                                    if(document.getElementById("areaid").value==""){alert("请选择所在区域！");return false;}
                                    if(document.getElementById("sjmap").value==""){alert("地图坐标不能为空，请标注地理位置！");return false;}
                                    if(document.getElementById("address").value==""){alert("店铺地址不能为空！");return false;}
                                    if(document.getElementById("traffic").value==""){alert("交通线路不能为空！");return false;}
                                    if(document.getElementById("phone").value==""){alert("联系电话不能为空！");return false;}
                                    if(document.getElementById("qq").value==""){alert("联系QQ不能为空！");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','shop.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,'shop.aspx?act=ajax&type=custom')">
                                            </asp:DropDownList>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tt">
                                            <b>商家店铺名称：</b>
                                        </td>
                                        <td>
                                            <asp:TextBox ID="sjname" runat="server" MaxLength="30" 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("sjname").value.length>1) self_xx+="&t="+base64en(document.getElementById("sjname").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>
                                        </td>
                                        <td>
                                            <asp:DropDownList ID="cssid" runat="server" CssClass="sel1" Width="200">
                                            <asp:ListItem Value="1">店铺风格一</asp:ListItem>
                                            <asp:ListItem Value="2">店铺风格二</asp:ListItem>
                                            </asp:DropDownList>
                                        </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="610" 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="400"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tt">
                                               <b>交通线路：</b>
                                        </td>
                                        <td>
                                            <asp:TextBox ID="traffic" runat="server" MaxLength="200" CssClass="inp4" Width="400"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tt">
                                            <b>营业时间：</b>
                                        </td>
                                        <td>
                                            <asp:TextBox ID="workdaytime" runat="server" MaxLength="30" CssClass="inp4" Width="150" Text="8:00—17:30"></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">
                                            <b>联系QQ：</b>
                                        </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="email" runat="server" MaxLength="100" CssClass="inp4" Width="300" onblur="this.value=this.value.replace('＠','@');"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tt">
                                            主页背景音乐：
                                        </td>
                                        <td>
                                            <asp:TextBox ID="music" runat="server" MaxLength="200" CssClass="inp4" Width="350"></asp:TextBox><span class="msgon" style="margin-left:6px">请输入mp3音乐地址</span>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tt">
                                            头部背景图片：
                                        </td>
                                        <td>
                                            <asp:TextBox ID="headbg" runat="server" MaxLength="200" CssClass="inp4" Width="350" ToolTip="图片最佳尺寸（950*148）像素"></asp:TextBox><span class="msgon" style="margin-left:6px">请输入JPG图片地址</span>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tt">
                                            二级域名：
                                        </td>
                                        <td>
                                            <asp:TextBox ID="domain" runat="server" MaxLength="20" CssClass="inp4" Width="80" onblur="checkdomain(this.value);"></asp:TextBox><span class="msgon s14 str" style="background:none; margin-left:0; padding-left:2px; font-family:Arial;">.<%=WMdomain.GetMainDomain()%></span>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tt">
                                            掌柜寄语：
                                        </td>
                                        <td>
                                            <asp:TextBox ID="foreword" runat="server" TextMode="MultiLine" CssClass="inp4" Width="500" Height="140" style="overflow-y:scroll; line-height:20px"></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)" /><asp:Literal
                                                    ID="Literal3" runat="server" Visible="false"><input type="button" id="ButtonSubmit_" class="but4" value="开通主页" onclick="alert('只有VIP会员才可以开通商家店铺主页，请先升级成为本站VIP会员！');" /></asp:Literal>
                                        </td>
                                    </tr>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="clear">
                </div>
            </div>
        </div>
        </form>
        <UC:foot ID="foot1" runat="server" />
    </div>
</body>
</html>
