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

<%@ Register TagName="meta" TagPrefix="UC" Src="~/e/meta.ascx" %>
<%@ Register TagName="head" TagPrefix="UC" Src="~/e/head.ascx" %>
<%@ Register TagName="foot" TagPrefix="UC" Src="~/e/foot.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">
    <UC:meta ID="meta1" runat="server" />
</head>
<body>
    <form id="form1" runat="server" autocomplete="off">
    <asp:Label ID="pathcode" runat="server" Style="display: none;">&nbsp;&raquo;&nbsp;同城网购&nbsp;&raquo;&nbsp;参数设置</asp:Label>
    <UC:head ID="head2" runat="server" />
    <%--main start--%>
    <asp:Panel ID="PanelBoxDo" runat="server" Visible="false">
        <div class="c1 mt5">
            <div class="b1">
                <table width="100%" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td class="b1_l">
                        </td>
                        <td>
                            <div class="con1">
                                <ul>
                                    <li class="on"><a href="#" onclick="return false;">修改属性</a></li></ul>
                                <div class="clear"></div>
                            </div>
                        </td>
                        <td align="right">
                        </td>
                        <td class="b1_r">
                        </td>
                    </tr>
                </table>
            </div>
            <div class="v1">
                <div class="do1" style="padding-top: 5px; padding-left: 5px;">

                    <script type="text/javascript">
                        function BoxDoCheck()
                        {
                            if(document.getElementById("strsql").value.toLowerCase().indexOf("where")==-1){alert("SQL语句必须含有where！");return false;}
                            if(document.getElementById("strsql").value.toLowerCase().indexOf("order by")==-1){alert("SQL语句必须含有order by！");return false;}
                            if(regNum.test(document.getElementById("sorting").value)){alert("排序值只能为数字！");return false;}
                            if(regNum.test(document.getElementById("indexsize").value)){alert("显示数量只能为数字！");return false;}
                            if(regNum.test(document.getElementById("pagesize").value)){alert("分页大小只能为数字！");return false;}
                        }
                    </script>

                    <table border="0" cellpadding="0" cellspacing="0" class="table1">
                        <tr>
                            <td class="tt">
                                <b>名称：</b>
                            </td>
                            <td>
                                <table border="0" cellpadding="0" cellspacing="0">
                                    <tr>
                                        <td>
                                            <asp:TextBox ID="n" runat="server" CssClass="inp1" Width="350" MaxLength="20" autocomplete="off"></asp:TextBox>
                                        </td>
                                        <td class="tt">
                                            <b>排序值：</b>
                                        </td>
                                        <td>
                                            <asp:TextBox ID="sorting" runat="server" CssClass="inp1" Width="100" MaxLength="8" autocomplete="off" Style="ime-mode: disabled;"></asp:TextBox>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td class="tt">
                                <b>显示数量：</b>
                            </td>
                            <td>
                                <table border="0" cellpadding="0" cellspacing="0">
                                    <tr>
                                        <td>
                                            <asp:TextBox ID="indexsize" runat="server" CssClass="inp1" Width="100" MaxLength="2" autocomplete="off" Style="ime-mode: disabled;"></asp:TextBox>
                                        </td>
                                        <td class="tt">
                                            <b>分页大小：</b>
                                        </td>
                                        <td>
                                            <asp:TextBox ID="pagesize" runat="server" CssClass="inp1" Width="100" MaxLength="3" autocomplete="off" Style="ime-mode: disabled;"></asp:TextBox>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td class="tt">
                                <b>SQL语句：</b>
                            </td>
                            <td>
                                <asp:TextBox ID="strsql" runat="server" TextMode="MultiLine" CssClass="inp1" Width="650" Height="150" autocomplete="off"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="tt">
                                <b>title页面标题：</b>
                            </td>
                            <td>
                                <asp:TextBox ID="pagetitle" runat="server" CssClass="inp1" Width="350" autocomplete="off"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="tt">
                                <b>keywords关键字：</b>
                            </td>
                            <td>
                                <asp:TextBox ID="pagekeywords" runat="server" TextMode="MultiLine" CssClass="inp1" Width="500" Height="80" autocomplete="off"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="tt">
                                <b>description描述：</b>
                            </td>
                            <td>
                                <asp:TextBox ID="pagedescription" runat="server" TextMode="MultiLine" CssClass="inp1" Width="500" Height="80" autocomplete="off"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="tt">
                                所属底下片段：
                            </td>
                            <td>
                                <asp:TextBox ID="adcode" runat="server" TextMode="MultiLine" CssClass="inp1" Width="690" Height="220" autocomplete="off"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="tt">
                                &nbsp;
                            </td>
                            <td>
                                <asp:Button ID="ButtonSubmit" runat="server" CssClass="but1" Text="确定修改" OnClick="ButtonSubmit_Click" OnClientClick="return BoxDoCheck()" /><input class="but1" style="margin-left: 10px" type="button" value="返回" onclick="window.location='mall_set.aspx'" />
                            </td>
                        </tr>
                    </table>
                </div>
            </div>
        </div>
    </asp:Panel>
    <asp:Panel ID="PanelBox" runat="server">
        <div class="c1">
            <div class="b1">
                <table width="100%" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td class="b1_l">
                        </td>
                        <td>
                            <div class="con1">
                                <ul>
                                    <li class="on"><a href="#" onclick="return false;">首页版块</a></li>
                                    <li><a href="mall_set.aspx?act=add">添加版块</a></li>
                                </ul>
                                <div class="clear"></div>
                            </div>
                        </td>
                        <td align="right">
                        </td>
                        <td class="b1_r">
                        </td>
                    </tr>
                </table>
            </div>
            <div class="v1">
                <asp:Repeater ID="Repeater1" runat="server">
                    <HeaderTemplate>
                        <div class="list1">
                            <table id="listtable" border="0" cellspacing="1" cellpadding="0" width="100%">
                                <tr>
                                    <th width="80">
                                        <div>操作</div>
                                    </th>
                                    <th width="80">
                                        <div>编号</div>
                                    </th>
                                    <th width="150">
                                        <div>名称</div>
                                    </th>
                                    <th>
                                        <div>页面标题</div>
                                    </th>
                                    <th width="70">
                                        <div>显示数量</div>
                                    </th>
                                    <th width="70">
                                        <div>分页大小</div>
                                    </th>
                                    <th width="70">
                                        <div>排序值</div>
                                    </th>
                                </tr>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <tr>
                            <td>
                                <a href="mall_set.aspx?act=del&id=<%#Eval("id")%>" onclick="return confirm('确定删除吗？')">删除</a>&nbsp; <a href="mall_set.aspx?act=mod&id=<%#Eval("id")%>">修改</a>
                            </td>
                            <td>
                                <blockquote>
                                    <a href="view.aspx?table=a_log&id=1" target="_blank"><%#Eval("id")%></a></blockquote>
                            </td>
                            <td>
                                <%#Eval("n")%>
                            </td>
                            <td>
                                <%#Eval("pagetitle")%>
                            </td>
                            <td>
                                <%#Eval("indexsize")%>
                            </td>
                            <td>
                                <%#Eval("pagesize")%>
                            </td>
                            <td>
                                <%#Eval("sorting")%>
                            </td>
                        </tr>
                    </ItemTemplate>
                    <FooterTemplate>
                        </table> </div>
                    </FooterTemplate>
                </asp:Repeater>
            </div>
        </div>
        <div class="c1 mt5">
            <div class="b1">
                <table width="100%" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td class="b1_l">
                        </td>
                        <td>
                            <div class="con1">
                                <ul>
                                    <li class="on" onclick="movearea(this,'moveareav1')"><a href="mall_set.aspx" onfocus="this.blur()">参数设置</a></li>
                                </ul>
                                <div class="clear"></div>
                            </div>
                        </td>
                        <td align="right">
                            <div class="con2"></div>
                        </td>
                        <td class="b1_r">
                        </td>
                    </tr>
                </table>
            </div>
            <div class="v1">
                <div class="do1">
                    <div id="moveareav1">
                        <blockquote class="block">
                            <table border="0" cellpadding="0" cellspacing="0" class="table1">
                                <tr>
                                    <td class="tt">
                                        <b>商城名称：</b>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="mallname" runat="server" CssClass="inp1" Width="200" MaxLength="50" autocomplete="off"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tt">
                                        <b>页面标题：</b>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="title" runat="server" CssClass="inp1" Width="350" MaxLength="500" autocomplete="off"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tt">
                                        <b>页面关键字：</b>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="keywords" runat="server" CssClass="inp1" Width="550" Height="80" TextMode="MultiLine" autocomplete="off"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tt">
                                        <b>页面描述：</b>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="description" runat="server" CssClass="inp1" Width="550" Height="80" TextMode="MultiLine" autocomplete="off"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tt">
                                        <b>顶部广告栏：</b>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="TopAD" runat="server" CssClass="inp1" Width="550" Height="80" TextMode="MultiLine" autocomplete="off"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tt">
                                        团购热卖自定义片段：
                                    </td>
                                    <td>
                                        <asp:TextBox ID="CustomTuan" runat="server" CssClass="inp1" Width="550" Height="80" TextMode="MultiLine" autocomplete="off"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tt">
                                        <b>幻灯片帧一：</b>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="slide1" runat="server" CssClass="inp1" Width="550" MaxLength="500" autocomplete="off"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tt">
                                        <b>幻灯片帧二：</b>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="slide2" runat="server" CssClass="inp1" Width="550" MaxLength="500" autocomplete="off"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tt">
                                        幻灯片帧三：
                                    </td>
                                    <td>
                                        <asp:TextBox ID="slide3" runat="server" CssClass="inp1" Width="550" MaxLength="500" autocomplete="off"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tt">
                                        幻灯片帧四：
                                    </td>
                                    <td>
                                        <asp:TextBox ID="slide4" runat="server" CssClass="inp1" Width="550" MaxLength="500" autocomplete="off"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tt">
                                        幻灯片帧五：
                                    </td>
                                    <td>
                                        <asp:TextBox ID="slide5" runat="server" CssClass="inp1" Width="550" MaxLength="500" autocomplete="off"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tt">
                                        <b>最新动态（新闻栏目ID）：</b>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="announcement" runat="server" CssClass="inp1" Width="100" MaxLength="4" autocomplete="off" Style="ime-mode: disabled;"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tt">
                                        指定主页团购（团购ID）：
                                    </td>
                                    <td>
                                        <asp:TextBox ID="highlighttuanid" runat="server" CssClass="inp1" Width="100" MaxLength="8" autocomplete="off" Style="ime-mode: disabled;"></asp:TextBox><span style="margin-left: 10px"><span class="msgon">不填写则显示最新的一期团购！</span></span>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tt">
                                        <b>搜索栏产品TAG：</b>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="tag1" runat="server" CssClass="inp1" Width="550" Height="160" TextMode="MultiLine" autocomplete="off"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tt">
                                        <b>推荐栏产品TAG：</b>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="tag2" runat="server" CssClass="inp1" Width="550" Height="160" TextMode="MultiLine" autocomplete="off"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tt">
                                        <b>商城导航菜单：</b>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="nav" runat="server" CssClass="inp1" Width="630" Height="460" TextMode="MultiLine" autocomplete="off"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tt">
                                        <b>商城底部菜单区域：</b>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="bottommenu" runat="server" CssClass="inp1" Width="630" Height="460" TextMode="MultiLine" autocomplete="off"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tt">
                                        商品列表页左侧自定：
                                    </td>
                                    <td>
                                        <asp:TextBox ID="ListSideCustom" runat="server" CssClass="inp1" Width="630" Height="220" TextMode="MultiLine" autocomplete="off"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tt">
                                        商品内容页左侧自定：
                                    </td>
                                    <td>
                                        <asp:TextBox ID="ViewSideCustom" runat="server" CssClass="inp1" Width="630" Height="220" TextMode="MultiLine" autocomplete="off"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tt">
                                        <b>是否允许普通会员发布：</b>
                                    </td>
                                    <td>
                                        <asp:DropDownList ID="LimitedVipAdd" runat="server" Width="200">
                                            <asp:ListItem Value="0">不允许普通会员发布商品</asp:ListItem>
                                            <asp:ListItem Value="1">允许普通会员发布商品</asp:ListItem>
                                        </asp:DropDownList>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tt">
                                        <b>商品图片是否加水印：</b>
                                    </td>
                                    <td>
                                        <asp:DropDownList ID="mallswitchwater1" runat="server" Width="200">
                                            <asp:ListItem Value="0">不添加水印</asp:ListItem>
                                            <asp:ListItem Value="1">添加水印</asp:ListItem>
                                        </asp:DropDownList>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2">
                                        &nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tt">
                                        商城二级类别宽度设置：
                                    </td>
                                    <td>
                                        <table border="0" cellpadding="0" cellspacing="0">
                                            <tr>
                                                <td>
                                                    <asp:TextBox ID="sidesubclasswidth" runat="server" CssClass="inp1" Width="100" Height="230" TextMode="MultiLine" autocomplete="off"></asp:TextBox>
                                                </td>
                                                <td class="tt">
                                                    商城二级类别高度定位：
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="sidesubclassmargin" runat="server" CssClass="inp1" Width="100" Height="230" TextMode="MultiLine" autocomplete="off"></asp:TextBox>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tt">
                                        商城三级类别断行设置：
                                    </td>
                                    <td>
                                        <asp:TextBox ID="sidesonclassbr" runat="server" CssClass="inp1" Width="630" Height="460" TextMode="MultiLine" autocomplete="off"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tt">
                                        &nbsp;
                                    </td>
                                    <td>
                                        <asp:Button ID="ButtonSubmit1" runat="server" CssClass="but1" Text="保存参数" OnClick="ButtonSubmit1_Click" />
                                    </td>
                                </tr>
                            </table>
                        </blockquote>
                    </div>
                </div>
            </div>
        </div>
    </asp:Panel>
    <%--main end--%>
    <UC:foot ID="foot1" runat="server" />
    </form>
</body>
</html>
