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

<%@ Import Namespace="D.Common" %>
<%@ Import Namespace="D.BLL" %>
<%@ Register Assembly="System.Web.Extensions" Namespace="System.Web.UI" TagPrefix="asp" %>
<!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></title>
    <link id="CssName" rel="stylesheet" type="text/css" runat="server" />

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

    <script src="../../js/lhgdialog/lhgcore.lhgdialog.min.js?self=true&skin=<%=Function.GetCssNameColor()%>" type="text/javascript"></script>

</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <table class="dh" cellpadding="0" cellspacing="0" border="0" align="center">
        <tr>
            <td>
                <asp:Image ID="P_Go" runat="server" ImageAlign="AbsMiddle" />
                您现在的位置：<a href="../info.aspx">后台管理</a> >> 商店参数设置
            </td>
        </tr>
    </table>
    <table class="tabs" cellpadding="0" cellspacing="0" border="0" align="center">
        <tr>
            <td id="TabTitle0" class="title6" onclick="ShowTabs(0)">
                基本设置
            </td>
            <td id="TabTitle1" class="title5" onclick="ShowTabs(1)">
                购物车模板
            </td>
            <td id="TabTitle2" class="title5" onclick="ShowTabs(2)">
                物流设置
            </td>
            <td class="titleline">
                &nbsp;
            </td>
        </tr>
    </table>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <table class="border" cellspacing="1" cellpadding="0" border="0" align="center">
                <tbody id="Tabs0">
                    <tr>
                        <td class="bqleft">
                            是否允许游客购买商品：
                        </td>
                        <td class="bqright">
                            <asp:RadioButtonList ID="IsGuestBuy" runat="server" RepeatDirection="Horizontal">
                                <asp:ListItem Value="True">是</asp:ListItem>
                                <asp:ListItem Value="False" Selected="True">否</asp:ListItem>
                            </asp:RadioButtonList>
                        </td>
                    </tr>
                    <tr>
                        <td class="bqleft">
                            结算方式：
                        </td>
                        <td class="bqright">
                            <asp:RadioButtonList ID="RadioJieSuan" runat="server" RepeatDirection="Horizontal">
                                <asp:ListItem Value="1" Selected="True">使用金钱结算</asp:ListItem>
                                <asp:ListItem Value="2">使用积分结算</asp:ListItem>
                            </asp:RadioButtonList>
                        </td>
                    </tr>
                    <tr>
                        <td class="bqleft">
                            用户点击购买后：
                        </td>
                        <td class="bqright">
                            <asp:RadioButtonList ID="BuyOperation" runat="server" RepeatDirection="Horizontal"
                                RepeatColumns="2">
                                <asp:ListItem Value="1">提示成功加入购物车，并进入购物车</asp:ListItem>
                                <asp:ListItem Value="2">提示成功加入购物车，停留在当前页面</asp:ListItem>
                                <asp:ListItem Value="3" Selected="True">不提示，直接进入购物车</asp:ListItem>
                                <asp:ListItem Value="4">不提示，并停留在当前页面</asp:ListItem>
                            </asp:RadioButtonList>
                        </td>
                    </tr>
                    <tr>
                        <td class="bqleft">
                            加入购物车后：
                        </td>
                        <td class="bqright">
                            <table cellpadding="0" cellspacing="0" border="0">
                                <tr>
                                    <td>
                                        <asp:RadioButtonList ID="BuyAddNumber" runat="server" RepeatDirection="Horizontal"
                                            RepeatColumns="3">
                                            <asp:ListItem Value="1">增加数量</asp:ListItem>
                                            <asp:ListItem Value="2">保存不变</asp:ListItem>
                                        </asp:RadioButtonList>
                                    </td>
                                </tr>
                                <tr>
                                    <td><font color=red>该选项针对商品已经存在购物车时，再次点击购买该商品时应有的变动。</font></td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td class="bqleft">
                            库存不足是否允许下单：
                        </td>
                        <td class="bqright">
                            <asp:RadioButtonList ID="radkucun" runat="server" RepeatColumns="2" RepeatDirection="Horizontal">
                                <asp:ListItem Value="1" Selected="True">允许下单</asp:ListItem>
                                <asp:ListItem Value="0">不允许下单</asp:ListItem>
                            </asp:RadioButtonList>
                        </td>
                    </tr>
                    <tr>
                        <td class="bqleft">
                            默认商品税率优惠类型：
                        </td>
                        <td class="bqright">
                            <asp:RadioButtonList ID="TaxRateType" runat="server" RepeatColumns="2" RepeatDirection="Horizontal">
                                <asp:ListItem Value="1" Selected="True">含税，不开发票时有税率优惠</asp:ListItem>
                                <asp:ListItem Value="2">含税，不开发票时没有税率优惠</asp:ListItem>
                                <asp:ListItem Value="3">不含税，开发票时需要加收税费</asp:ListItem>
                                <asp:ListItem Value="4">不含税，开发票时不需要加收税费</asp:ListItem>
                            </asp:RadioButtonList>
                        </td>
                    </tr>
                    <tr>
                        <td class="bqleft">
                            默认税率设置：
                        </td>
                        <td class="bqright">
                            <asp:TextBox ID="txtTaxRate" runat="server" Columns="8" CssClass="in1"></asp:TextBox>%
                        </td>
                    </tr>
                    <tr>
                        <td class="bqleft">
                            自动清空购物车间隔：
                        </td>
                        <td class="bqright">
                            <asp:TextBox ID="txtCartSaveDate" runat="server" CssClass="in1" Text="1" Columns="8"></asp:TextBox>小时
                            购物车无任何操作时，自动保存时间
                        </td>
                    </tr>
                    <tr>
                        <td class="bqleft">
                            订单编号前缀：
                        </td>
                        <td class="bqright">
                            <asp:TextBox ID="txtOrderPrefixNum" runat="server" CssClass="in1" Columns="15" Text="Dian"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="bqleft">
                            在线支付单编号前缀：
                        </td>
                        <td class="bqright">
                            <asp:TextBox ID="txtOnlinePayPrefixNum" runat="server" CssClass="in1" Columns="15"
                                Text="DianOP"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="bqleft">
                            购物车中显示商品图片：
                        </td>
                        <td class="bqright">
                            <asp:RadioButtonList ID="IsPicture" runat="server" RepeatDirection="Horizontal">
                                <asp:ListItem Value="True" Selected="True">显示</asp:ListItem>
                                <asp:ListItem Value="False">不显示</asp:ListItem>
                            </asp:RadioButtonList>
                            图片宽度：<asp:TextBox ID="PictureWidth" runat="server" Columns="4" CssClass="in1" Text="100"></asp:TextBox>
                            图片高度：<asp:TextBox ID="PictureHeight" runat="server" Columns="4" CssClass="in1" Text="100"></asp:TextBox><br />
                            <font color=red>设置图片显示的最大宽度和高度，如图片实际宽度和高度超出设置限制，显示时将自动等比例缩小</font>
                        </td>
                    </tr>
                    <tr>
                        <td class="bqleft">
                            购物车中显示商品重量：
                        </td>
                        <td class="bqright">
                            <asp:RadioButtonList ID="IsWeight" runat="server" RepeatDirection="Horizontal">
                                <asp:ListItem Value="True" Selected="True">显示</asp:ListItem>
                                <asp:ListItem Value="False">不显示</asp:ListItem>
                            </asp:RadioButtonList>
                        </td>
                    </tr>
                    <tr>
                        <td class="bqleft">
                            我所在区域：
                        </td>
                        <td class="bqright">
                            <asp:DropDownList ID="DropProvince" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DropProvince_SelectedIndexChanged">
                            </asp:DropDownList>
                            <asp:DropDownList ID="DropCity" runat="server">
                            </asp:DropDownList>
                        </td>
                    </tr>
                </tbody>
                <tbody id="Tabs1" style="display: none">
                    <tr>
                        <td class="bqleft">
                            购物车模版：
                        </td>
                        <td class="bqright">
                            <asp:TextBox ID="txtCartTemplate" runat="server" Columns="50" CssClass="in1"></asp:TextBox>
                            <input id="Button2" type="button" value="选择模板" class="btn" onclick="WinOpenLhgDialog('选择模板','../template/SelectTemplate.aspx?ControlId=txtCartTemplate',650,450,'')" /><font
                                color="#ff0066">*</font><br />
                            在模版页中放入：{D_UC_shopCart}
                        </td>
                    </tr>
                    <tr>
                        <td class="bqleft">
                            结算页模版：
                        </td>
                        <td class="bqright">
                            <asp:TextBox ID="txtCheckOutTemplate" runat="server" Columns="50" CssClass="in1"></asp:TextBox>
                            <input id="Button3" type="button" value="选择模板" class="btn" onclick="WinOpenLhgDialog('选择模板','../template/SelectTemplate.aspx?ControlId=txtCheckOutTemplate',650,450,'')" /><font
                                color="#ff0066">*</font><br />
                            在模版页中放入：{D_UC_shoppingCheckOut}
                        </td>
                    </tr>
                    <tr>
                        <td class="bqleft">
                            完成页模版：
                        </td>
                        <td class="bqright">
                            <asp:TextBox ID="txtSuccessTemplate" runat="server" Columns="50" CssClass="in1"></asp:TextBox>
                            <input id="Button3" type="button" value="选择模板" class="btn" onclick="WinOpenLhgDialog('选择模板','../template/SelectTemplate.aspx?ControlId=txtSuccessTemplate',650,450,'')" /><font
                                color="#ff0066">*</font><br />
                            在模版页中放入：{D_UC_shoppingDone}
                        </td>
                    </tr>
                </tbody>
                <tbody id="Tabs2" style="display: none">
					<tr>
                        <td class="bqleft">
                            接口说明：
                        </td>
                        <td class="bqright">
                            1、物流查询数据来自【<a href="http://www.kuaidi.com/" target="_blank">快递网</a>】的专业数据<br />2、该接口默认每天只能查询100次物流状态，需要申请购买解除限制<br />3、请联系QQ：965447940、电话：18980660337进行申请购买。
                        </td>
                    </tr>
					<tr>
                        <td class="bqleft">
                            查询Key：
                        </td>
                        <td class="bqright">
                            <asp:TextBox ID="txtWuLiuKey" runat="server" Columns="50" CssClass="in1"></asp:TextBox>
                        </td>
                    </tr>
                </tbody>
                <tr>
                    <td class="bqleft">
                    </td>
                    <td class="bqright" height="40">
                        <asp:Button ID="Button1" runat="server" Text=" 确认 " CssClass="btn radius30 pad_0_30" OnClick="Button1_Click" />
                    </td>
                </tr>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>
    </form>
</body>
</html>
