<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="banneradd.aspx.cs" Inherits="library.system.banneradd" %>

<!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 href="../css/style.css" rel="stylesheet">
    <style type="text/css">

        .style1
        {            height: 15px;
        }
        .style2
        {
            height: 15px;
            width: 63px;
            text-align: right;
        }
        .style3
        {
            height: 14px;
            width: 63px;
            text-align: right;
        }
        .style4
        {
            text-align: left;
            width: 290px;
        }
    </style>
 <script>
     function uppic() {
         var wName;
         var RadNum = Math.random();
         wName = window.showModalDialog('../upload.aspx?txtname=txtfujian&Radstr=' + RadNum, '', 'dialogWidth:500px;DialogHeight=300px;status:no;help:no;resizable:yes;');
         if (wName == null || wName == "")
         { }
         else {
             window.document.getElementById("txtpic").value = wName;
         }
     }
</script>
</head>
<body>
    <form id="form1" runat="server">
          <input name="id" type="hidden" value="">
    <div>
        <table height="126" width="400"  border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td height="29" class="style2">&nbsp;编号：</td>
        <td class="style4">
            <asp:TextBox ID="txtbianhao" 
                runat="server" Height="16px" Width="168px"></asp:TextBox>
            &nbsp;</td>
      </tr>
      <tr>
        <td height="29" class="style3">图片地址：</td>
        <td class="style4">
            <asp:TextBox ID="txtpic" 
                runat="server" Height="16px" Width="168px"></asp:TextBox><input type="button" name="Submit24" value="上传图片" 
                onclick="javascript:window.open('../upload.aspx?txtname=txtpic','上传照片','width=600,height=300')"/>
          </td>
      </tr>
      <tr>
        <td height="29" class="style2">链接地址：</td>
        <td class="style4">
            <asp:TextBox ID="txturl" runat="server" Height="16px" Width="166px"></asp:TextBox>
            <asp:HiddenField ID="hidpic" runat="server" />
          </td>
      </tr>
      <tr>
        <td height="22" align="center" class="style1" colspan="2">
            &nbsp;&nbsp;
            <asp:Button ID="Button1" runat="server" CssClass="btn_grey" 
                onclick="Button1_Click" Text="保存" />
            <asp:Button ID="Button2" runat="server" CssClass="btn_grey" Text="修改" 
                Visible="False"  onclick="Button2_Click" />
&nbsp;&nbsp;
<asp:Label 
                ID="labmsg" runat="server" Text=""></asp:Label>
          </td>
      </tr>
    </table>
    </div>
    </form>
</body>
</html>
