<%@ page language="C#" autoeventwireup="true" inherits="RegShop, LebiMall" %>
<%@ 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 id="Head1" runat="server">
     <title><%=model.Title %>-网上开店</title>
    <meta name="description" content=<%=model.Description %> />
    <meta name="keywords" content=<%=model.Keywords %> />
    <meta name="generator" content="LBMall 3.0.0" />
    <link href="images/css/css3.css" rel="stylesheet" type="text/css" />
    <link href="images/css/css.css" rel="stylesheet" type="text/css" />
    <link href="images/css/shopcss.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="images/js/shopjs.js"></script>
    <script type="text/javascript">
            
            function GetRdio()
            {
                var rdio=document.getElementsByName("rdio");
                var rdioname="";
                for(var i=0;i<rdio.length;i++)
                {
                    if(rdio[i].checked)
                    {
                        rdioname=rdio[i].value.toString(); 
                    }
                }
                document.getElementById("hiddenRdio").value= rdioname;
            }
            function val(){        
                 var flag=true;   
                 var isdns_="<%=isdns %>";
                 if(isdns_==1){
                     var txt_yu=document.getElementById("txtyuming").value;
                     var flag1=txt_yu.search(/^[A-Za-z0-9-]+$/);
                     if(txt_yu==""){
                        document.getElementById("msg").innerHTML="不能为空！";
                        flag = false;
                     }
                     if(flag1==0){
                        if(txt_yu=="blog" || txt_yu=="about" || txt_yu=="news" || txt_yu=="zhidao" || txt_yu=="class" || txt_yu=="dazhe" || txt_yu=="admin" || txt_yu=="bbs" || txt_yu=="http"){
                            document.getElementById("msg").innerHTML="不能填写关键字！";
                            flag = false;
                        }
                     }else{
                        flag = false;
                     }
                 }
                 var shopname=document.getElementById("txtName").value;
                 if(shopname==""){
                    document.getElementById("error_msg").innerHTML="<span class='msg_submit'>店铺名称不能为空！</span>";
                    flag=false;
                 }
                 var payl=document.getElementById("txtPayLimit").value;
                 if(payl==""){
                    document.getElementById("error_msg").innerHTML="<span class='msg_submit'>运费限额不能为空！</span>";
                    flag=false;
                 }
                 if(flag){
                    document.form1.submit();
                 }
            }
        function search2(){
            var texts2=document.getElementById("ser2").value;
            var select_v2=document.getElementById("Select3").value;
            window.location="list.aspx?tid="+select_v2+"&titlec="+escape(texts2);
        }
    </script>
</head>
<body>
    <div id="top-menu02">
        <div id="top-menu">
            <div class="right">
                <script type="text/javascript">indexhead();</script>
            </div>
        </div>
    </div>
    <div id="top">
        <div id="logo">
            <a href="http://<%=Request.Url.Host %><%=model.WebPath %>/">
                <img src="Upload/WebAdminImages/<%=model.Logoimg %>" border="0" /></a></div>
    </div>
    <div id="sp-menu">
        <ul>
            <li><a href="http://<%=Request.Url.Host %><%=model.WebPath %>/">首页</a></li>
            <%for (int i = 0; i < ds_tab.Tables[0].Rows.Count; i++){ %>
            <li><%if (model.Tab == "1"){ %>
                <a href="<%= ds_tab.Tables[0].Rows[i]["tdirname"]%>/" target="_blank"><%= ds_tab.Tables[0].Rows[i]["tname"]%></a>
                <%}else{%>
                <a href="TopTab.aspx?type=<%= ds_tab.Tables[0].Rows[i]["tdirname"]%>" target="_blank"><%= ds_tab.Tables[0].Rows[i]["tname"]%></a>
                <%} %></li>
            <%} %>
            <li><a href="http://<%=Request.Url.Host %><%=model.WebPath %>/News/" target="_blank">资讯</a></li>
        </ul>
        <p>
            <span><a href="ShopCoupon.aspx">优惠券</a></span></p>
    </div>
    <div id="contenter2">
        <div id="contenter">
            <div id="right">
                <div class="page-title">
                    <a class="back" href="#" onclick="javascript:window.history.back();"><span>返回上一页</span></a>
                    <h2 class="shop clearfix">
                        网店注册
                    </h2>
                </div>
                <div class="contenter">
                    <form id="form1" name="form1" action="ShopStyle.aspx" method="post">
                        <div class="rtitle">
                            店铺设置</div>
                        <div class="rbody">
                            <table>
                                <tr>
                                    <td>
                                        名称：</td>
                                    <td style="width: 174px">
                                        <input type="text" id="txtName" name="txtName" runat="server" class="rstext" /></td>
                                    <td>
                                        运费限额：</td>
                                    <td>
                                        <input type="text" id="txtPayLimit" name="txtPayLimit" class="rstext" runat="server" size=5 /> 元
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="3">
                                    </td>
                                    <td class="rsFont1">
                                        所购商品多件时，按该标准只收一次运费</td>
                                </tr>
                                <tr>
                                    <td>
                                        电话：</td>
                                    <td style="width: 174px">
                                        <input type="text" id="txtPhone" name="txtPhone" class="rstext" runat="server" /></td>
                                    <td>
                                        QQ：</td>
                                    <td>
                                        <input type="text" id="txtQQ" name="txtQQ" class="rstext" runat="server" />
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="3">
                                    </td>
                                    <td class="rsFont1">
                                        可填写多个QQ，用","隔开</td>
                                </tr>
                                <tr height="35px">
                                    <td>
                                        省/市：</td>
                                    <td>
                                        <select name="hw_1" onchange="hw_select()">
                                        </select>
                                        <select name="hw_2" onchange="hw_select()">
                                        </select>
                                        <input type="hidden" id="hidd_diqu" name="hidd_diqu" runat="server" />

                                        <script type="text/javascript" src="images/js/area1.js"></script>

                                        <script> 
                                        document.getElementsByName("hw_1")[0].value = "<%=this.hw1 %>";
                                        hw_select();
                                        document.getElementsByName("hw_2")[0].value = "<%=this.hw2 %>";
                                        </script>

                                    </td>
                                    <td>
                                        详细地址：</td>
                                    <td>
                                        <input type="text" id="txtAddress" name="txtAddress" class="rstext" runat="server" />
                                    </td>
                                </tr>
                                <tr id="dnsd" runat="server">
                                    <td>
                                        店铺域名：
                                    </td>
                                    <td>
                                        http://<input type="text" id="txtyuming" name="txtyuming" class="rstext1" runat="server" size=5 /><%=yuming2%>/
                                    </td>
                                    <td>
                                        (只能输入英文、数字、减号) &nbsp;<br /><span id="msg" runat="server" style="color: Red;"></span></td>
                                </tr>
                                <tr>
                                    <td>
                                        店铺公告：</td>
                                    <td colspan="3">
                                        <FCKeditorV2:FCKeditor ID="FCKeditor1" runat="server" BasePath="~/images/js/fckeditor/"
                                            Height="260px" Width="600px">
                                        </FCKeditorV2:FCKeditor>
                                    </td>
                                </tr>
                            </table>
                        </div>
                        <input type="hidden" id="endtime" name="endtime" runat="server" />
                        <input type="hidden" id="smax" name="smax" runat="server" />
                        <input type="hidden" id="isfree" name="isfree" runat="server" />
                        <span id="error_msg"></span>
                        <div class="rbody">
                            <input type="button" id="btnSubmit" value="下一步" onclick="val();" class="btn_submit" /></div>
                    </form>
                </div>
            </div>
            <div style="clear: both;">
            </div>
           <div id="footer">
                <div id="copyright">
                    <div class="search">
                        <div class="search-left">
                            <div class="search-left-title">
                                搜索：</div>
                            <div class="search-left-form">
                                <input type="text" runat="server" id="ser2" size="30" /></div>
                            <div class="search-left-list">
                                <select id="Select3" runat="server">
                                </select>
                            </div>
                            <div class="search-left-button">
                                <img src="images/search-buttom.gif" width="60" height="20" onclick="search2()" /></div>
                        </div>
                        <div class="search-right">
                            <div runat=server id="div_s2"></div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="copyright" runat="server" id="copr"></div>
        </div>
    </div>
</body>
</html>
