<%@ Page Language="C#" MasterPageFile="~/Admin/Guide.master" Codebehind="PromotionOrderGuide.aspx.cs"
    Inherits="PowerEasy.Module.Promotion.WebSite.Admin.Promotion.PromotionOrderGuide" AutoEventWireup="True"
    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" style="display: ">
        <ul>
            <li><a href="PromotionOrder.aspx?ListType=-1" target="main_right">所有推广订单</a> </li>
            <li><a href="PromotionOrder.aspx?ListType=10" target="main_right">10天内的推广订单</a> </li>
            <li><a href="PromotionOrder.aspx?ListType=11" 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="1" selected="selected">推广人</option>
                    <option value="2">订单编号</option>
                </select>
            </li>
            <li>
                <input id="TxtKeyWord" style="width: 134px;" type="text" class="inputtext" onmouseover="this.select()" onclick="javascript:{if (aspnetForm.TxtKeyWord.value == '请输入关键字...')aspnetForm.TxtKeyWord.value=''; };" value="请输入关键字..."/>
            </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 = "PromotionOrder.aspx?ListType=" + field + "&KeyWord=" + escape(keyword);
        JumpToMainRight(url);
    }
    </script>
</asp:Content>

