{layout:default} {class:Shop.Admin.theme.SEO}
<lbhead>
   <title>SEO - <%=site.title%></title>
</lbhead>
<lbfile>
    <style>
        .bottom{height: 0;overflow: hidden;display: none;}
    </style>
</lbfile>
<lbpath>
    <div class="tools">
    <ul>
    <li class="name"><span id="navIgation"><%=Tag("当前位置")%>：
    <a href="<%=site.AdminPath %>/Ajax/ajax_admin.aspx?__Action=MenuJump&pid=0"><%=Tag("管理首页")%></a> > 
    <%=Tag("页面优化")%></span></li>
    </ul>
    </div>
</lbpath>
<lbbody>
    <div class="searchbox">
        <input name="key" type="text" id="key" class="input-query" value="<%=key %>" onkeydown="if(event.keyCode==13){search_();}" /><input type="button" id="btnSou" class="btn-query" onclick="search_();" align="absmiddle" />
    </div>
    <table class="datalist">
        <tr class="title">
            <th style="width:150px">
                <%=Tag("代码")%>
            </th>
            <th style="width:200px">
                <%=Tag("名称")%>
            </th>
            <th style="width:200px">
                <%=Tag("页面")%>
            </th>
            <th>
                <%=Tag("操作")%>
            </th>
        </tr>
        <%foreach (DB.LebiShop.Lebi_Theme_Page model in models)
          {%>
        <tr class="list" ondblclick="Editobj(<%=model.id %>);">
            <td>
                <%=model.Code %>
            </td>
            <td>
                <%=Lang(model.Name) %>
            </td>
            <td>
                <%=model.PageName%>
            </td>
           
            <td>
                <a href="javascript:void(0)" onclick="Editobj(<%=model.id %>);"><%=Tag("编辑")%></a> 
            </td>
        </tr>
        <%} %>
    </table>
    <script type="text/javascript">
        function search_() {
            var key = $("#key").val();
            window.location = "?key=" + escape(key);
        }
        function Editobj(id) {
            var title_ = "<%=Tag("编辑")%>";
            if (id == 0)
                var title_ = "<%=Tag("添加")%>";
            var url_ = "seo_edit_window.aspx?id=" + id
            var width_ = 600;
            var height_ = "auto";
            var modal_ = true;
            EditWindow(title_, url_, width_, height_, modal_);
        }
    </script>
</lbbody>
<lbbottom>
    <div class="bottom" id="body_bottom">
    </div>
</lbbottom>