<%@ Page Language="C#" AutoEventWireup="true" ValidateRequest="false" CodeBehind="YC_Bar_Add.aspx.cs" Inherits="YCHR.Web.admin.Adv.YC_Bar_Add" %>
<!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="../images/style.css" />
<script type="text/javascript" src="../js/jquery.js"></script>
<script type="text/javascript" src="../js/jquery.validate.min.js"></script>
<script type="text/javascript" src="../js/messages_cn.js"></script>
<script type="text/javascript" src="../js/jquery.form.js"></script>
<script type="text/javascript" src="../js/calendar.js"></script>
<script type="text/javascript" src="../js/cursorfocus.js"></script>
<script type="text/javascript" src="../js/singleupload.js"></script>
<script type="text/javascript">

        $(function () {
            //表单验证JS
            $("#form1").validate({
                //出错时添加的标签
                errorElement: "span",
                success: function (label) {
                    //正确时的样式
                    label.text(" ").addClass("success");
                }
            });
        });
    </script>
<style type="text/css">
.style1 {
	width: 19%;
}
</style>
</head>
<body style="padding:10px;">
<form id="form1" runat="server">
  <div class="navigation"> <span class="back"><a href="YC_Bar_List.aspx?aid=">返回列表</a></span><b>您当前的位置：管理中心 &gt; 系统管理 &gt; 增加广告</b> </div>
  <div class="spClear"></div>
  <table width="100%" border="0" align="center" cellpadding="2" cellspacing="1" >
    <tr>
      <td height=25  ><b>&nbsp; 管理选项：</b><a href="YC_ADV_List.aspx">广告管理首页</a> |<a href="YC_Bar_List.aspx?apid=<%=this.apid %>">广告列表</a> |[<a href="javascript:location.reload()">刷新页面</a>]</td>
    </tr>
    <tr>
      <td height=25 class="pl20"></td>
    </tr>
  </table>
  <table width="100%" border="0" cellspacing="0" cellpadding="0" class="msgtable">
    <tr>
      <th colspan="2" align="left">发布广告</th>
    </tr>
    <tr>
      <td align="right" class="style1">所属广告位：</td>
      <td width="75%"><asp:Literal ID="lblAdTitle" runat="server"></asp:Literal></td>
    </tr>
    <tr>
      <td align="right" class="style1">广告名称：</td>
      <td><asp:TextBox ID="txtadvsname" runat="server" CssClass="input w250 required" size="30" 
            maxlength="50" HintTitle="广告标题名称" HintInfo="请填写广告名称以方便标识，如果是文字广告，将直接显示该文字，不能大于50个字符。"></asp:TextBox></td>
    </tr>
    <tr>
      <td align="right" class="style1">投放时间：</td>
      <td><asp:TextBox ID="txtStartTime" runat="server" CssClass="input required dateISO" size="20" maxlength="20"
            onClick="ShowCalendar(this.id)"></asp:TextBox></td>
    </tr>
    <tr>
      <td align="right" class="style1">到期时间：</td>
      <td><asp:TextBox ID="txtEndTime" runat="server" CssClass="input required dateISO" size="20" maxlength="20"
          onClick="ShowCalendar(this.id)"></asp:TextBox></td>
    </tr>
    <tr id="advsurl" runat="server">
      <td align="right" class="style1"><asp:Literal ID="Litadvsurl" Text="图片地址：" runat="server"></asp:Literal></td>
      <td><asp:TextBox ID="txtImgUrl" runat="server" CssClass="input w250 left" maxlength="250"></asp:TextBox>
        <a class="files" href="javascript:void(0);">
        <input id="FileUpload" name="FileUpload" type="file" />
        </a> <span class="uploading">正在上传，请稍候...</span></td>
    </tr>
    <tr id="advslink" runat="server">
      <td align="right" class="style1"><asp:Literal ID="Litadvslink" Text="图片链接：" runat="server"></asp:Literal></td>
      <td><input type="text" name="txtadvslink" id="txtadvslink" value="" size="40" class="input"  runat="server" />
        * 请输入广告指向的 URL 链接地址</td>
    </tr>
    <tr id="advsalt" runat="server">
      <td align="right" class="style1"><asp:Literal ID="Lit3" Text="替换文字：" runat="server"></asp:Literal></td>
      <td><input type="text" name="txtadvsalt" id="txtadvsalt" value="" size="40" class="input" runat="server"/>
        *请输入广告的鼠标悬停文字信息</td>
    </tr>
    <tr>
      <td align="right" class="style1">备注：</td>
      <td><asp:TextBox ID="txtAdRemark" runat="server" CssClass="textarea" style="width:300px;height:80px;" 
            HintTitle="备注(代码)" HintInfo="选填项，如果该广告位类别是代码，请务必将内容填写在这里，如果该广告位类别是文字、图片、幻灯片、动画、视频，该项可以为空。" TextMode="MultiLine"></asp:TextBox></td>
    </tr>
    <tr>
      <td align="right" class="style1">排序：</td>
      <td><asp:TextBox ID="txtorderid" Text="0" runat="server" CssClass="input"></asp:TextBox></td>
    </tr>
    <tr>
      <td align="right" class="style1">活动状态：</td>
      <td><asp:RadioButtonList ID="rblIsLock" runat="server" 
                 RepeatDirection="Horizontal" RepeatLayout="Flow">
          <asp:ListItem Selected="True" Value="0">正常 </asp:ListItem>
          <asp:ListItem Value="1">暂停</asp:ListItem>
        </asp:RadioButtonList></td>
    </tr>
  </table>
  <div style="margin-top:10px; text-align:center;">
    <asp:Button ID="btnSave" runat="server" Text="确认保存" CssClass="submit" 
                onclick="btnSave_Click" />
    &nbsp;&nbsp;
    <input type="reset" name="button" id="btnReset" value="重 置" class="submit" />
  </div>
</form>
</body>
</html>
