<%@ Page Language="C#" MasterPageFile="../Admin.Master" AutoEventWireup="true" CodeBehind="Ad.aspx.cs"
    Inherits="ETongJin.Search.Web.Admin.Ad" ValidateRequest="false" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server"></asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
  <table class="tableBorder" border="0" cellpadding="3" cellspacing="1">
    <tr>
      <th colspan="2" id="bttitle" runat="server"> 添加广告 </th>
    </tr>
    <tr>
      <td width="150" class="td2"> 广告位置： </td>
      <td class="td1"><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="td2"> 匹配的关键词： </td>
      <td class="td1"><asp:TextBox ID="txtKeyword" runat="server" TextMode="MultiLine" Rows="4" Columns="40" Width="80%"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" Display="Dynamic" ControlToValidate="txtKeyword" ErrorMessage="不能为空！"></asp:RequiredFieldValidator><br />多个关键词之间请用竖线&quot;|&quot;分割。 </td>
    </tr>
    <tr>
      <td class="td2"> 最高出价： </td>
      <td class="td1"><asp:TextBox ID="txtPrice" runat="server" CssClass="ym12_input2" Width="50px">10</asp:TextBox>
        积分（只能输入整数，出价越高，您的广告排名越靠前） </td>
    </tr>
    <tr>
      <td class="td2"> 广告类型： </td>
      <td class="td1"><script type="text/javascript">
            function gx(obj)
            {
            switch(obj.id)
            {
               case "Radio0":
                    $("#gx0").show(); 
                    $("#gx1").show();
                    break;
               case "Radio1":
                    $("#gx0").hide(); 
                    $("#gx1").hide();
                    if($("#<%=txtUrl.ClientID %>").val()=="http://") $("#<%=txtUrl.ClientID %>").val("");
                    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="td2"> 标题： </td>
      <td class="td1"><asp:TextBox ID="txtName" runat="server" CssClass="ym12_input3" MaxLength="35"></asp:TextBox>
      </td>
    </tr>
    <tr id="gx1">
      <td class="td2"> 广告链接页面： </td>
      <td class="td1"><asp:TextBox ID="txtUrl" runat="server" CssClass="ym12_input3" Text="http://"></asp:TextBox>
      </td>
    </tr>
    <tr>
      <td class="td2"> 广告内容： </td>
      <td class="td1"><asp:TextBox ID="txtContents" runat="server" Height="70px" TextMode="MultiLine" Width="80%"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtContents" ErrorMessage="广告内容不能为空!"></asp:RequiredFieldValidator>
      </td>
    </tr>
    <tr>
      <td class="td2"> 广告状态： </td>
      <td class="td1"><asp:RadioButtonList ID="rblAdStatus" 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:ListItem Text="未审核，广告主暂停" Value="-3"></asp:ListItem>
        </asp:RadioButtonList>
      </td>
    </tr>
    <tr>
      <td colspan="2" class="td3"> <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text=" 添 加 " CssClass="btn02" onmouseover="this.className='btn04'" onmouseout="this.className='btn02'" /></th>
    </tr>
  </table>
</asp:Content>
