<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="JingJia.aspx.cs" Inherits="ETongJin.Search.UI.TuiGuang.JingJia" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<title>竞价价格查询服务</title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
<script>
function fEvent(sType,oInput){
  switch (sType){
   case "focus" :
    oInput.isfocus = true;
   case "mouseover" :
    oInput.style.borderColor = '#9ecc00';
    break;
   case "blur" :
    oInput.isfocus = false;
   case "mouseout" :
    if(!oInput.isfocus){
     oInput.style.borderColor='#84a1bd';
    }
    break;
  }
 }
</script>
</head>
<body style="background:#dfebf5 url(images/bg.gif) repeat-x left top;text-align:left">
<form id="form1" runat="server">
  <div id="wrap">
    <div class="head">
      <div class="logo"></div>
      <div class="logotxt">- 竞价价格查询</div>
      <div class="headlink" ><a href="/">首页</a> | <a href="login.aspx">已有帐号返回登录</a> | <a href="http://www.etongjin.com/" target="_blank">E桶金官方</a></div>
      <div class="clearit"></div>
    </div>
    <div class="main">
      <div class="main_top_com">
        <div style="height:34px;"></div>
        <p class="title" style="margin-top:10px;">竞价查询<span class="title_sub orange">E桶金聚合搜索引擎推广平台，助您赢得人生的第一桶金！</span> </p>
        <ul class="maintable">
          <li>
            <div class="mt_l"><span class="red">*</span>查询关键词：</div>
            <div class="mt_r" style="z-index:3;">
              <div class="inputbox">
                <input name="title" type="text" runat="server" id="title" maxlength="40" onBlur="fEvent('blur',this)" onMouseOver="fEvent('mouseover',this)" onFocus="fEvent('focus',this)" onMouseOut="fEvent('mouseout',this)" />
              </div>
              <div class="onWrap">
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="title" Display="Dynamic" ErrorMessage="不能为空！"></asp:RequiredFieldValidator>
              </div>
              <div class="inputtxt zi_9">最多可输入40的汉字。</div>
            </div>
          </li>
        </ul>
        <div class="main_cen">
          <ul class="maintable">
            <li>
              <div class="mt_l"><span class="red">*</span>验证码：</div>
              <div class="mt_r" style="z-index:3;">
                <div class="inputbox">
                  <input type="text" runat="server" id="entered_imagecode" maxlength="8" style="width:80px" onBlur="fEvent('blur',this)" onMouseOver="fEvent('mouseover',this)" onFocus="fEvent('focus',this)" onMouseOut="fEvent('mouseout',this)" />
                  <img src="../gif.aspx" onclick="this.src='../gif.aspx?'+Date()" style="cursor: pointer;" alt="验证码"/> </div>
                <div class="onWrap">
                  <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="title" Display="Dynamic" ErrorMessage="不能为空！"></asp:RequiredFieldValidator>
                </div>
              </div>
            </li>
            <li>
              <div class="mt_l"></div>
              <div class="mt_r">
                <asp:Button ID="Button1" runat="server" Text=" 查 询 " OnClick="Button1_Click" CssClass="sign" />
              </div>
            </li>
            <%if (DT != null)
         {%>
            <p class="title">关键词“<span class="orange"><%=title.Value %></span>”的当前竞价价格：</p>
            <%if (DT.Rows.Count > 0)
			{
				int i = 1;
				foreach (System.Data.DataRow dr in DT.Rows)
				{%>
            <li>
              <div class="mt_l">当前排名：</div>
              <div class="mt_r">第<%=i++%>名</div>
            </li>
            <li>
              <div class="mt_l">广告标题：</div>
              <div class="mt_r"><%=dr["title"]%></div>
            </li>
            <li>
              <div class="mt_l">广告内容：</div>
              <div class="mt_r"><%=dr["contents"]%></div>
            </li>
            <li>
              <div class="mt_l">URL 地址：</div>
              <div class="mt_r"><a href="<%=dr["url"] %>" target="_blank"><%=dr["url"]%></a></div>
            </li>
            <li>
              <div class="mt_l">最高出价：</div>
              <div class="mt_r"><%=dr["maxPrice"]%>个积分，相当于<%=Decimal.Parse(dr["maxPrice"].ToString())/100%>元</div>
            </li>
            <%}
		}
		else
		{%>
            <li>
              <div class="mt_l"></div>
              <div class="mt_r">该关键词尚未销售,最低竞价为<%=ETongJin.Search.Config.SiteConfig.Instance.MinPrice %>个积分，即<%=ETongJin.Search.Config.SiteConfig.Instance.MinPrice/100.0%>元。</div>
            </li>
            <%} 
          }%>
          </ul>
        </div>
        <div class="main_bottom"></div>
      </div>
    </div>
    <div id="foot" class="Area">Copyright &copy; 2009-
      <script type="text/javascript">document.write(new Date().getFullYear()+1);</script>
      <a title="E桶金提供技术支持" target="_blank" href="http://www.etongjin.com">Etongjin.com</a> Inc. All Rights Reserved.</div>
  </div>
</form>
</body>
</html>
<%=ETongJin.Search.Config.SiteConfig.Instance.Statistics%>