<%@ page language="C#" autoeventwireup="true" inherits="Admin_sy, App_Web_gqabgzwv" enableEventValidation="false" %>
<%@ 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/style.css" rel="stylesheet" type="text/css" />
    <link href="../Admin/css/Layer.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
     <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%" 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>
                    <table width="100%" border="0" cellpadding="0" cellspacing="0">
                        <tr>
                            <td>
                            <hr />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:RadioButton ID="RadioButton1" runat="server" Text="显示Flash" GroupName="show" OnCheckedChanged="RadioButton1_CheckedChanged" AutoPostBack="True"  />
                                <asp:RadioButton ID="RadioButton2"  runat="server" Text="显示变换图片" GroupName="show" OnCheckedChanged="RadioButton2_CheckedChanged" AutoPostBack="True" />
                                <asp:HiddenField ID="HiddenField1" runat="server" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:LinkButton ID="LinkButton1" runat="server" OnClick="LinkButton1_Click">添加新的图片</asp:LinkButton>
                                <asp:FormView ID="FormView2" runat="server" Width="100%">
                                    <ItemTemplate>
                                    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="770" height="302">
                                      <param name="movie" value="<%# "../zhixinimages/"+Eval("LinkValue") %>" />
                                      <param name="quality" value="high" />
                                      <embed src="<%# "../zhixinimages/"+Eval("LinkValue") %>" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="770" height="302"></embed>
                                    </object>
                                    </ItemTemplate>
                                </asp:FormView>
                                <asp:DataList ID="DataList1" runat="server" Width="100%" OnItemCommand="DataList1_ItemCommand">
                                    <ItemTemplate>
                                       <table border="0" cellpadding="0" cellspacing="0">
                                            <tr>
                                                <td align="center">
                                                    <asp:ImageButton ID="ImageButton1" Width="770px" CommandName="use"  CommandArgument='<%# Eval("LinkID") %>' Height="302px" runat="server" ImageUrl='<%# "~/zhixinimages/"+Eval("LinkValue") %>' />
                                                </td>
                                            </tr>
                                            
                                        </table>
                                    </ItemTemplate>
                                </asp:DataList>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                 <table width="100%" border="0" cellpadding="2"  cellspacing="1" bgcolor="#d9ebff">
                                    
                                    <tr>
                                        <td align="right" bgcolor="#ffffff">
                                            文字：
                                        </td>
                                        <td bgcolor="#ffffff">
                                            <asp:TextBox ID="tbxLinkTitle" runat="server"></asp:TextBox>
                                           </td>
                                    </tr>
                                    <tr>
                                        <td align="right" bgcolor="#ffffff">
                                            链接地址：
                                        </td>
                                        <td bgcolor="#ffffff">
                                            <asp:TextBox ID="tbxLinkUrl" runat="server" Width="300px"></asp:TextBox>
                                             
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right" bgcolor="#ffffff">
                                            图片：
                                        </td>
                                        <td bgcolor="#ffffff">
                                            <asp:FileUpload ID="FileUpload1" runat="server" />
                                            <asp:Button ID="btnUpload"  runat="server" Text="上传" OnClick="btnUpload_Click" /></td>
                                    </tr>
                                    <tr>
                                        <td align="right" bgcolor="#ffffff">
                                            图片预览：
                                        </td>
                                        <td bgcolor="#ffffff">
                                            <asp:Image ID="imgLinkValue" runat="server" /></td>
                                    </tr>
                                    <tr>
                                        <td bgcolor="#ffffff">
                                        </td>
                                        <td bgcolor="#ffffff">
                                            &nbsp;<asp:Button ID="btnUpdate" runat="server" Text="提交" OnClick="btnUpdate_Click"  />
                                            <asp:Button ID="btnDel" runat="server" Text="删除" OnClick="btnDel_Click" />
                                            <asp:HiddenField ID="hideLinkID" runat="server" />
                                        
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                        <div>
                        </div>
                        <div>
                        </div>
                        <div>
                        </div>
                        <div>
                        </div>
                        <div>
                        </div>
                </div>
            </ContentTemplate>
        </asp:UpdatePanel>
    </form>
</body>
</html>
