<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Ad.aspx.cs" Inherits="ETongJin.Search.Web.TuiGuang.Ad"
    ValidateRequest="false" %>
<!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 id="Head1" runat="server">
<title>竞价广告 - 推广中心</title>
<link rel="stylesheet" type="text/css" href="css/mainstyle.css"/>
<script type="text/javascript" src="../../scripts/jquery-1.3.2.min.js"></script>
<%if (false)
{%>
<script type="text/javascript" src="../../scripts/jquery-1.3.2-vsdoc.js"></script>
<%}%>
</head>
<body>
<form id="form1" runat="server">
  <div class="weizhi">
    <div class="weizhi_bj" id="titlebt" runat="server"> 添加广告</div>
  </div>
  <table cellpadding="6" cellspacing="1" class="tb">
    <tr>
      <td class="tl"><span class="f_red">*</span> 广告位置</td>
      <td class="tr"><asp:RadioButtonList ID="rblPosition" runat="server" RepeatDirection="Horizontal">
        <asp:ListItem Selected="true" Text="左边上面" Value="0"></asp:ListItem>
        <asp:ListItem Text="左边下面" Value="1"></asp:ListItem>
        <asp:ListItem Text="右边" Value="2"></asp:ListItem>
      </asp:RadioButtonList></td>
    </tr>
    <tr>
      <td class="tl"><span class="f_red">*</span> 匹配的关键词</td>
      <td class="tr f_gray"><asp:TextBox ID="txtKeyword" runat="server" TextMode="MultiLine" Height="80px" Width="80%" ></asp:TextBox>
      <asp:RequiredFieldValidator ID="RequiredFieldValidator3" Display="Dynamic" runat="server" ControlToValidate="txtKeyword" ErrorMessage="不能为空！"></asp:RequiredFieldValidator><br/>
      多个关键词之间请用竖线&quot;|&quot;分割</td>
    </tr>
    <tr>
      <td class="tl"><span class="f_red">*</span> 您的出价</td>
      <td class="tr"><asp:TextBox ID="txtPrice" runat="server" CssClass="ym12_input2" Width="60px">10</asp:TextBox>
      积分&nbsp;&nbsp;&nbsp; <a href="jingjia.aspx" target="_blank" style="color:Red;text-decoration:underline;">查询竞价价格</a><br />
      （只能输入整数，出价越高，您的广告排名越靠前,1个积分相当于0.01元人民币）</td>
    </tr>
    <tr>
      <td class="tl"><span class="f_red">*</span> 广告类型</td>
      <td class="tr f_gray"><script type="text/javascript">
            function gx(obj)
            {
            switch(obj.id)
            {
               case "Radio0":
                    $("#gx0").show(); 
                    $("#gx1").show();
                    break;
               case "Radio1":
                    $("#gx0").hide(); 
                    $("#gx1").hide();
                    break ;
            }
            }
            </script>
      <input id="Radio0" type="radio" value="0" name="adtype" checked="checked" onClick="gx(this);" /><label for="Radio0"> 标准广告</label>
      <input id="Radio1" type="radio" name="adtype" value="1" onClick="gx(this);" />
      <label for="Radio1"> HTML代码</label></td>
    </tr>
    <tr id="gx0">
      <td class="tl"><span class="f_red">*</span>标题</td>
      <td class="tr"><asp:TextBox ID="txtName" runat="server" CssClass="ym12_input3" MaxLength="35"></asp:TextBox></td>
    </tr>
    <tr id="gx1">
      <td class="tl"><span class="f_red">*</span>广告链接页面</td>
      <td class="tr f_gray"><asp:TextBox ID="txtUrl" runat="server" CssClass="ym12_input3" Text="http://"></asp:TextBox></td>
    </tr>
    <tr>
      <td class="tl"><span class="f_red">*</span>广告内容</td>
      <td class="tr"><asp:TextBox ID="txtContents" runat="server" Height="80px" TextMode="MultiLine" Width="80%"></asp:TextBox>
      <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtContents" ErrorMessage="广告内容不能为空!"></asp:RequiredFieldValidator></td>
    </tr>
    <tr>
      <td class="tl">广告状态</td>
      <td class="tr f_gray"><asp:RadioButtonList ID="rblAdStatus" runat="server" RepeatDirection="Horizontal">
        <asp:ListItem Text="广告正常" Value="-2" Selected="True"></asp:ListItem>
        <asp:ListItem Text="广告暂停" Value="-3"></asp:ListItem>
      </asp:RadioButtonList>
      <asp:Label ID="lbIsMark" runat="server" Font-Bold="True" ForeColor="Red"></asp:Label></td>
    </tr>
    <tr>
      <td class="tl">&nbsp;</td>
      <td class="tr"><asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="确认添加" CssClass="btn" />
      &nbsp;&nbsp;<input type="reset" value="取消操作" name="B12" class="btn" /></td>
    </tr>
  </table>
</form>
</body>
</html>
<%=config.Statistics %>