<%@ Page Language="C#" MasterPageFile="~/Admin/Guide.master" AutoEventWireup="true"
  CodeBehind="CodeSnippetGuide.aspx.cs" Inherits="PowerEasy.Module.General.WebSite.Admin.Template.CodeSnippetGuide"
  Title="代码段管理向导" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CphTitle" runat="Server">
  代码段管理
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="CphSubMenu" runat="Server">
  <div class="guideexpand" onclick="Switch(this)">
    管理操作</div>
  <div class="guide">
    <ul>
      <li><a href="CodeSnippetManage.aspx" target="main_right">管理代码段</a></li>
      <li><a href="CodeSnippet.aspx" target="main_right">添加代码段</a></li>
    </ul>
  </div>
      <div class="guideexpand" onclick="Switch(this)">
        代码段查询</div>
    <div class="guidesearch">
        <ul>
            <li>
                <select id="SelField" style="width: 140px">
                    <option selected="selected" value="0">代码段名包含</option>
                    <option value="1">代码段内容包含</option>
                </select>
            </li>
            <li>
                <input id="TxtKeyWord" style="width: 134px;" type="text" class="inputtext" />
            </li>
            <li>
                <input id="BtnSearch" type="button" class="inputbutton" value="查询" onclick="OpenMainRight()"  />
            </li>
        </ul>
    </div>
    <script type="text/javascript">
      function OpenMainRight() {
        var field = 0;
        var keyword = document.getElementById("TxtKeyWord").value.trim();
        var objSel = document.getElementById("SelField");
        field = objSel.options[objSel.selectedIndex].value;
        var url = "CodeSnippetManage.aspx?type=1&field=" + field + "&keyword=" + escape(keyword);
        JumpToMainRight(url);
      }
    </script>
</asp:Content>
