<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Guide.master" AutoEventWireup="true" CodeBehind="UserExpLogGuide.aspx.cs" Inherits="PowerEasy.Module.General.WebSite.Admin.User.UserExpLogGuide" %>
<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="UserExpLog.aspx?SearchType=0" target="main_right">全部记录</a></li>
            <li><a href="UserExpLog.aspx?SearchType=1" target="main_right">所有积分收入</a></li>
            <li><a href="UserExpLog.aspx?SearchType=2" 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">用户名称</option>
                    <option value="4">订单编号</option>
                </select>
            </li>
            <li id="key" style="display: ">
                <input id="TxtKeyword" style="width: 134px;" type="text" 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 key = document.getElementById("TxtKeyword").value.trim();
            var objSel = document.getElementById("SelField");
            if (key.length == 0) {
                alert("请输入关键字！");
                return;
            }
            var searchType = objSel.value;
            var userName = '';
            var keyword = '';
            if (objSel.value == 0) {
                userName = escape(key);
            } else {
                keyword = key;
            }
            
            var url = "UserExpLog.aspx?SearchType="+searchType+"&Keyword=" + keyword +"&UserName="+userName;
            JumpToMainRight(url);
        }
    </script>
</asp:Content>
