<%@ page language="C#" autoeventwireup="true" inherits="admin_ad_add, Fm.Web" %>

<!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">
    <title>广告页</title>
     <link href="../Admin/skin/css.css" rel="stylesheet" type="text/css" />
    <link href="../images/css/inbox.css" rel="stylesheet" type="text/css" />
    <script language=javascript>
    function UploadCheck()
    {
        if(document.getElementById("FileUpload1").value=="")
        {
            alert("请选择所上传的图片");
            return false;
        }
        else
        {
            return true;
        }
    }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table style="width: 100%" class=Ibx_gTable_Con>
            <tr>
                <td colspan="2">
                    广告添加&gt;<a href="ad.aspx" style="color:Green">返回广告管理</a></td>
            </tr>
            <tr>
                <td width="20%">
                    所属广告分类:</td>
                <td>
                    <asp:DropDownList ID="Drop_adclass" runat="server">
                    </asp:DropDownList></td>
            </tr>
            <tr>
                <td width="20%">
                    广告文字:</td>
                <td>
                    <asp:TextBox ID="txt_letter" runat="server" Width="400px"></asp:TextBox></td>
            </tr>
            <tr>
                <td width="20%">
                    广告图片地址:</td>
                <td>
                    <asp:TextBox ID="txt_pic" runat="server" Width="200px"></asp:TextBox>
                    <asp:FileUpload ID="FileUpload1" runat="server" />
                    <asp:Button ID="btn_save" runat="server" OnClientClick="return UploadCheck()" OnClick="btn_save_Click" Text="上 传" /></td>
            </tr>
            <tr>
                <td width="20%">
                    广告JS地址(联盟广告调用):</td>
                <td>
                    <asp:TextBox ID="txt_js" runat="server" Rows="3" TextMode="MultiLine" Width="400px"></asp:TextBox></td>
            </tr>
            <tr>
                <td width="20%">
                    广告链接地址:</td>
                <td>
                    <asp:TextBox ID="txt_url" runat="server" Width="400px"></asp:TextBox></td>
            </tr>
            <tr>
                <td>
                </td>
                <td>
                    <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/admin/skin/images/button_save.gif"
                        OnClick="ImageButton1_Click" /></td>
            </tr>
        </table>
    
    </div>
    </form>
</body>
</html>
