<%@ Page Title="" Language="C#" MasterPageFile="Site.Master" AutoEventWireup="true" CodeBehind="old_search.aspx.cs" Inherits="FanXian.Web.old_search" %>
<%@ Import Namespace="FanXian.Globals" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">搜索{QueryString:q}返现</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        #nav_search { color:#000000;font-weight:bold;text-decoration:none; }
    </style>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
    <h3>搜索<font color="red">{QueryString:q}</font>返现</h3>
    <table width="100%" cellpadding="6" cellspacing="0" border="1" bordercolor="#CCCCCC" style="border-collapse:collapse;">
        <tr>
            <td colspan="4">
                排序：
                <select id="sort" onchange="location.href='search.aspx?q={QueryString:q}&sort='+this.value;">
                    <option value="default">默认排序</option>
                    <option value="price_desc">价格从高到低</option>
                    <option value="price_asc">价格从低到高</option>
                    <option value="credit_desc">信用等级从高到低</option>
                    <option value="commissionRate_desc">返现比率从高到底</option>
                    <option value="commissionRate_asc">返现比率从低到高</option>
                    <option value="commissionNum_desc">成交量成高到低</option>
                    <option value="commissionNum_asc">成交量从低到高</option>
                    <option value="commissionVolume_desc">返现金额从高到底</option>
                    <option value="commissionVolume_asc">返现金额从低到高</option>
                    <option value="delistTime_desc">商品下架时间从高到底</option>
                    <option value="delistTime_asc">商品下架时间从低到高</option>
                </select>
                <script type="text/javascript">
                    var sort = document.getElementById('sort');
                    sort.value = '{QueryString:sort}';
                </script>
            </td>
        </tr>
        <!--list:template-->
        <tr onmouseover="this.style.backgroundColor='#FFFFCC';" onmouseout="this.style.backgroundColor='#FFFFFF'">
            <td>
                <a href="gotoitem.aspx?id={item:gotoitem}&ClickUrl={item:ClickUrl}" target="_blank">
                    <img src="{item:PicUrl}_160x160.jpg" alt="{item:Title}" width="100" border="0" />
                </a>
            </td>
            <td valign="top">
                <a href="gotoitem.aspx?id={item:gotoitem}&ClickUrl={item:ClickUrl}" target="_blank">{item:Title}</a>
                <br />
                <br />
                卖家信用：<img src="content/images/level_{item:SellerCreditScore}.gif" align="absmiddle" alt="卖家信用" />
                <br />
                掌柜名称：{item:Nick}
                <a target="_blank" href="http://amos.im.alisoft.com/msg.aw?v=2&uid={item:Nick}&site=cntaobao&s=1"><img border="0" src="http://amos.im.alisoft.com/online.aw?v=2&uid={item:Nick}&site=cntaobao&s=1" alt="点击这里给我发消息" align="absmiddle" /></a>
            </td>
            <td valign="top">
                淘宝价：<b style="font-size:16px;color:red;">{item:Price}</b>元
                <br />
                可返现：<b style="font-size:16px;color:red;">{item:new_Commission}</b>{config:fanxian_unit}
            </td>
            <td valign="bottom">
                <a href="search.aspx?q={item:TitleKey}"><img src="content/images/bibi.gif" alt="比比看" border="0" /></a>
                <br />
                <br />
                <a href="gotoitem.aspx?id={item:gotoitem}&ClickUrl={item:ClickUrl}" target="_blank">马上去淘宝购买</a>
            </td>
        </tr>
        <!--/list:template-->
        <tr>
            <td colspan="4">
                <div class="page">
                    {list:page_view}
                </div>
            </td>
        </tr>
    </table>
</asp:Content>
