<%@ page language="C#" autoeventwireup="true" inherits="UserInfoShop, LebiMall" %>

<!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">
    <title><%=model_t.Title %></title>
    <meta name="description" content="<%=model_t.Description %>" />
    <meta name="keywords" content="<%=model_t.Keywords %>" />
    <meta name="generator" content="LBMall 3.0.0" />
    <script type="text/javascript" src="images/js/shopjs.js"></script>
    <link href="images/css/css.css" rel="stylesheet" type="text/css">
    <link href="images/css/style-woycn03.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
        function validate(){   
            var phone_=document.getElementById("phone").value;
            var mobile_=document.getElementById("mobile").value;
            if(phone_==""&&mobile_==""){
                document.getElementById("msg").innerHTML="电话或手机至少填一个";
                return false;
            }else{
                return true;
            }
        }
        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>
    <form id="form1" runat="server">
        <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_t.WebPath %>/">
                    <img src="Upload/WebAdminImages/<%=model_t.Logoimg %>" border="0" /></a></div>
        </div>
        <div id="sp-menu">
           <ul>
            <li><a href="http://<%=Request.Url.Host %><%=model_t.WebPath %>/">首页</a></li>
            <%for (int i = 0; i < ds_tab.Tables[0].Rows.Count; i++){ %>
            <li><%if (model_t.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_t.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" class="FR w680">
                    <table class="table-list" cellspacing="1" border="0" style="margin-top: 10px;">
                        <tbody>
                            <tr class="table-title">
                                <th style="background-color: #db1616" colspan="2">
                                    订购信息</th>
                            </tr>
                            <tr>
                                <th align="center" width="20%">
                                    <span class="word4">网店类型</span></th>
                                <td align="left">
                                    <%=ds.Tables[0].Rows[0]["Sname"].ToString() %>
                                    &nbsp;<%=ds.Tables[0].Rows[0]["Pricename"].ToString()%>
                                </td>
                            </tr>
                            <tr>
                                <th align="center">
                                    <span class="word4">产品上限</span></th>
                                <td align="left">
                                    <%=ds.Tables[0].Rows[0]["Commoditymax"].ToString() %>
                                    &nbsp;件
                                </td>
                            </tr>
                            <tr>
                                <th align="center">
                                    <span class="word4">首页推荐</span></th>
                                <td align="left">
                                    <%=ds.Tables[0].Rows[0]["Index_recommend_count"].ToString()%>
                                    &nbsp;件
                                </td>
                            </tr>
                            <tr>
                                <th align="center">
                                    <span class="word4">网店价格</span></th>
                                <td align="left">
                                    保障金：<%=ds.Tables[0].Rows[0]["SecurityMoney"].ToString()%>
                                    元 + 店铺价：<%=price%>
                                    元 =
                                    <%=pricesum %>
                                    元
                                </td>
                            </tr>
                            <tr>
                                <th align="center">
                                    <span class="word4">期限截止到</span></th>
                                <td align="left">
                                    <%=endtime %>
                                </td>
                            </tr>
                            <tr id="isnotfree" runat="server">
                                <td align="center" colspan="2">
                                    <input id="Button1" type="button" value="开店" runat="server" onserverclick="Button1_ServerClick" /></td>
                            </tr>
                        </tbody>
                    </table>
                    <table class="table-list" cellspacing="1" border="0" style="margin-top: 10px;" id="ff1"
                        runat="server">
                        <tbody>
                            <tr class="table-title">
                                <th colspan="2">
                                    付款方式 一</th>
                            </tr>
                            <tr>
                                <th align="center" width="20%">
                                    在线支付</th>
                                <td align="left">
                                    <input id="btn1" type="button" value="在线支付" runat="server" onserverclick="btn1_ServerClick" /></td>
                            </tr>
                        </tbody>
                    </table>
                    <table class="table-list" cellspacing="1" border="0" style="margin-top: 10px;" id="ff2"
                        runat="server">
                        <tbody>
                            <tr class="table-title">
                                <th colspan="2">
                                    付款方式 二</th>
                            </tr>
                            <tr>
                                <th align="center" width="20%">
                                    门店名称</th>
                                <td align="left">
                                    <input type="text" runat="server" id="companyname" />
                                </td>
                            </tr>
                            <tr>
                                <th align="center">
                                    联系地址</th>
                                <td align="left">
                                    <input type="text" runat="server" id="adderss" />
                                </td>
                            </tr>
                            <tr>
                                <th align="center">
                                    联系电话</th>
                                <td align="left">
                                    <input type="text" runat="server" id="phone" />
                                </td>
                            </tr>
                            <tr>
                                <th align="center">
                                    手机</th>
                                <td align="left">
                                    <input type="text" runat="server" id="mobile" />
                                </td>
                            </tr>
                            <tr>
                                <th align="center">
                                    联系人</th>
                                <td align="left">
                                    <input type="text" runat="server" id="linkman" />
                                </td>
                            </tr>
                            <tr>
                                <th align="center">
                                </th>
                                <td align="left">
                                        <asp:Button ID="Button2" runat="server" Text="提交信息"  OnClick="Button2_Click"  OnClientClick="return validate();" />
                                        <span id="msg" style="color:Red;"></span>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="3" align="left" class="word3">
                                    注：请填写以上信息，客服人员会第一时间联系您，协助完成订单</td>
                            </tr>
                        </tbody>
                    </table>
                </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>
    </form>
</body>
</html>
