<%@ page language="C#" autoeventwireup="true" inherits="Admin_scroll, App_Web_gqabgzwv" validaterequest="false" enableeventvalidation="false" %>
<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<%@ Register Assembly="AjaxFileUploadHelper" Namespace="Jeffz.Web" TagPrefix="cc2" %>

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

    <script src="../js/lib.js"></script>
</head>
<body>
    <form id="form1" runat="server" onsubmit="MyObject.UpdateEditorFormValue(); return true;">
    <div>
    <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <cc2:ajaxfileuploadhelper id="AjaxFileUploadHelper1" runat="server"></cc2:ajaxfileuploadhelper>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <div style="width:auto;">
                    <table width="100%" class="" border="0" cellpadding="0" cellspacing="0">
                        <tr>
                        <td>
                            <table width="100%" height="94" border="0" cellpadding="0" cellspacing="0">
                              <tr>
                                <td align="right" background="images/chanye1.jpg"><table width="671" height="94" border="0" cellpadding="0" cellspacing="0">
                                  <tr>
                                    <td align="left" background="images/chanye.jpg"><table width="162" height="19" border="0" cellpadding="0" cellspacing="0">
                                      <tr>
                                        <td align="right" class="biaoti18">浮动广告</td>
                                      </tr>
                                    </table></td>
                                  </tr>
                                </table></td>
                              </tr>
                            </table>
                        </td>
                        </tr>
                       
                        <tr><td style="width: 100%">&nbsp;
                       
                         <hr />
                            </td></tr>
                        <tr>
                            <td style="width: 699px">
                                
                               <table width="100%" border="0" cellpadding="0" cellspacing="3">
                                  <tr>
                                    <td>
                                    &nbsp;
                                    </td>
                                    <td>
                                    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CellPadding="4"
                                        ForeColor="#333333" GridLines="None" Width="100%" OnRowDeleting="GridView1_RowDeleting" OnSelectedIndexChanging="GridView1_SelectedIndexChanging" DataKeyNames="ContentID">
                                        <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                                        <Columns>
                                            <asp:BoundField DataField="ContentTitle" HeaderText="标题">
                                                <ItemStyle HorizontalAlign="Center" />
                                            </asp:BoundField>
                                            <asp:CommandField ShowSelectButton="True" ShowDeleteButton="true">
                                                <ItemStyle HorizontalAlign="Right" />
                                            </asp:CommandField>
                                        </Columns>
                                        <RowStyle BackColor="#D9EBFF" ForeColor="#333333" />
                                        <SelectedRowStyle BackColor="#637991" Font-Bold="True" ForeColor="White" />
                                        <PagerStyle BackColor="#637991" ForeColor="White" HorizontalAlign="Center" />
                                        <HeaderStyle BackColor="#4a6b84" Font-Bold="True" ForeColor="White" />
                                        <AlternatingRowStyle BackColor="White" />
                                    </asp:GridView>
                                    </td>
                                  </tr>
                                  <tr>
                                    <td>&nbsp;</td>
                                    <td>
                                        <asp:RadioButtonList ID="RadioButtonList1" runat="server" AutoPostBack="True" RepeatDirection="Horizontal" OnSelectedIndexChanged="RadioButtonList1_SelectedIndexChanged">
                                            <asp:ListItem Value="text" Selected="true">文字显示</asp:ListItem>
                                            <asp:ListItem Value="img">图片显示</asp:ListItem>
                                        </asp:RadioButtonList>
                                    </td>
                                  </tr>
                                  <tr>
                                    <td>&nbsp;</td>
                                    <td>
                                        <asp:LinkButton ID="LinkButton1" runat="server" OnClick="LinkButton1_Click">添加新的</asp:LinkButton>
                                    </td>
                                  </tr>
                               </table>
                                <asp:Panel ID="plText" runat="server">
                                <table width="100%" border="0" cellpadding="0" cellspacing="3">
                                    <tr>
                                        <td align="right">
                                            标题：
                                        </td>
                                        <td>
                                            <asp:TextBox ID="tbxTitleText" runat="server" Width="300px"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right">
                                            内容:
                                        </td>
                                        <td>
                                            <fckeditorv2:fckeditor id="FCKeditor1" runat="server" toolbarset="Defaults" Height="330px" Width="90%"></fckeditorv2:fckeditor>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                        </td>
                                        <td>
                                            <asp:Button CssClass="bttn99" ID="btnAddText" runat="server" Text="添加" OnClick="btnAddText_Click"  />
                                            <asp:Button CssClass="bttn99" ID="btnSaveText" runat="server" Text="修改" OnClick="btnSaveText_Click"  />
                                            <asp:Button CssClass="bttn99" ID="btnDelText" runat="server" Text="删除" OnClick="btnDelText_Click"  />
                                            <asp:HiddenField ID="hideText" runat="server" />
                                        </td>
                                    </tr>
                                </table>
                                </asp:Panel>
                                <asp:Panel ID="plImg" runat="server">
                                <table width="100%" border="0" cellpadding="0" cellspacing="3">
                                    <tr>
                                        <td align="right">
                                            标题：
                                        </td>
                                        <td>
                                            <asp:TextBox ID="tbxTitleImg" runat="server" Width="300px"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right">图片</td>
                                        <td>
                                            <asp:Image ID="Image1" runat="server" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td></td>
                                        <td>
                                            <asp:FileUpload ID="FileUpload1" runat="server" />
                                            <asp:Button ID="Button1" runat="server" Text="图片预览" OnClick="Button1_Click" /></td>
                                    </tr>
                                    <tr>
                                        <td align="right">
                                            链接地址:
                                        </td><td>
                                            <asp:TextBox ID="tbxLinkUrl" runat="server" Width="200px"></asp:TextBox></td>
                                    </tr>
                                    <tr>
                                        <td>
                                        </td>
                                        <td>
                                            <asp:Button CssClass="bttn99" ID="btnAddImg" runat="server" Text="添加" OnClick="btnAddImg_Click"  />
                                            <asp:Button CssClass="bttn99" ID="btnSaveImg" runat="server" Text="修改" OnClick="btnSaveImg_Click" />
                                            <asp:Button CssClass="bttn99" ID="btnDelImg" runat="server" Text="删除" OnClick="btnDelImg_Click"  />
                                            <asp:HiddenField ID="hideImg" runat="server" />
                                        </td>
                                    </tr>
                                 </table>
                                </asp:Panel>
                                 
                                 
                            </td>
                        </tr>
                    </table>
                </div>
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
    </form>
</body>
</html>
