<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeBehind="Modify.aspx.cs" Inherits="Maticsoft.Web.adManage.Modify" Title="修改页" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
   <script language="javascript" type="text/javascript">
 function check()
   {

  //alert(document.getElementById("txtadName").value);
   if(document.getElementById("<%=txtadName.ClientID %>").value=="")
   
   {
   alert("请填写广告名称!");
   return false;
   }
   if(document.getElementById("<%=txtadUrl.ClientID %>").value=="")
   {
   alert("请上传图片!");
   return false;
   }
   return true;
   }
        </script>

    <table width="90%" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="#c6d7e7"
        style="margin-top: 10px">

     
        <tr>
            <td height="25" width="15%" align="right" class="tt1">
                广告名称：
            </td>
            <td width="*" height="25" align="left" bgcolor="#FFFFFF">
                &nbsp;<asp:TextBox ID="txtadName" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td height="25" width="15%" align="right" class="tt1">
                广告图片路径：
            </td>
            <td width="*" height="25" align="left" bgcolor="#FFFFFF">
                &nbsp;<asp:TextBox ID="txtadUrl" runat="server"></asp:TextBox>
                <asp:FileUpload ID="FileUpload1" runat="server" />
                <asp:Button ID="Button1" runat="server" Text="上传" CssClass="button2" OnClick="Button1_Click" />
                <asp:Label ID="info" runat="server"></asp:Label>
            </td>
        </tr>
        <tr>
            <td height="25" width="15%" align="right" class="tt1">
                广告链接:
            </td>
            <td width="*" height="25" align="left" bgcolor="#FFFFFF">
                <asp:TextBox ID="txtUrl" runat="server" Width="168px" Text="http://"></asp:TextBox>
                请填写http://
            </td>
        </tr>
        <tr>
            <td height="25" width="15%" align="right" class="tt1">
                是否滚动:</td>
            <td width="*" height="25" align="left" bgcolor="#FFFFFF">
                <asp:CheckBox ID="checks" runat="server" Text="是" />
            </td>
        </tr>
        <tr>
            <td height="25" width="15%" align="right" class="tt1">
                添加人：
            </td>
            <td width="*" height="25" align="left" bgcolor="#FFFFFF">
                &nbsp;<asp:Label ID="txtaddName" runat="server"></asp:Label>
            </td>
        </tr>
        <tr>
            <td height="35" colspan="2" bgcolor="#FFFFFF">
                <div align="center">
                    <asp:Button ID="btnAdd" runat="server" Text="提 交" OnClick="btnAdd_Click" CssClass="button2">
                    </asp:Button>
                    <asp:Button ID="btnCancel" runat="server" Text="取 消" CssClass="button2"></asp:Button>
                </div>
            </td>
        </tr>
    </table>
    <asp:HiddenField ID="HiddenField_id" runat="server" />
</asp:Content>
