<%@ Page Language="C#" MasterPageFile="~/Admin/Guide.master" AutoEventWireup="true" CodeBehind="VoteGuide.aspx.cs" Inherits="PowerEasy.Module.General.WebSite.Admin.Vote.VoteGuide" 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="Vote.aspx" target="main_right">添加投票</a></li>
            <li><a href="VoteManage.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 value="0" selected="selected">投票ID</option>
                    <option value="1">投票主题</option>
                </select>
            </li>
            <li>
                <input id="TxtKeyWord" style="width: 134px;" type="text" value="" class="inputtext" />
            </li>
            <li>
                <input id="BtnSearch" type="button" class="inputbutton" value="查询" onclick="return 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");
        
        if (keyword =="")
        {
            alert("请输入要查询的条件！"); 
            return false; 
        }
        field = objSel.options[objSel.options.selectedIndex].value;

        var url = "VoteManage.aspx?SearchType=" + field + "&KeyWord=" + escape(keyword);
        JumpToMainRight(url);
    }
    </script>
</asp:Content>