<%@ page language="C#" autoeventwireup="true" inherits="admin_flash, aoshuosoft" %>

<!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>制作Flash幻灯片</title>
    <link rel="stylesheet" href="admin.css" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:Panel ID="addedit" runat="server" Height="50px" Width="100%" Visible="false">
            <table class="adminmaintable" border="0" cellpadding="3" cellspacing="1">
                <tr>
                    <td class="bt" colspan="2" style="text-align: center; height: 35px;">
                        <asp:Literal ID="actionbt" runat="server"></asp:Literal></td>
                </tr>
                <tr>
                    <td>
                        幻灯片名称：</td>
                    <td>
                        <asp:TextBox ID="flashname" runat="server" Width="279px"></asp:TextBox></td>
                </tr>
                <tr>
                    <td>
                        显示宽度：</td>
                    <td>
                        <asp:TextBox ID="width" runat="server" Width="80px">220</asp:TextBox></td>
                </tr>
                <tr>
                    <td>
                        显示高度：</td>
                    <td>
                        <asp:TextBox ID="height" runat="server" Width="80px">180</asp:TextBox></td>
                </tr>
                <tr>
                    <td >
                        幻灯图片（1）</td>
                    <td >
                        <table border="0" cellpadding="0" cellspacing="0">
                            <tr>
                                <td >
                                    图片地址：</td>
                                <td style="width: 179px" >
                                    <asp:TextBox ID="imgone" runat="server" Width="220px"></asp:TextBox></td>
                                <td >
                                    标题：</td>
                                <td >
                                    <asp:TextBox ID="titlelone" runat="server" Width="160px"></asp:TextBox></td>
                                <td >
                                    连接：</td>
                                <td >
                                    <asp:TextBox ID="linkone" runat="server" Width="180px"></asp:TextBox></td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td >
                        幻灯图片（2）</td>
                    <td ><table border="0" cellpadding="0" cellspacing="0">
                        <tr>
                            <td >
                                图片地址：</td>
                            <td >
                                <asp:TextBox ID="imgtwo" runat="server" Width="220px"></asp:TextBox></td>
                            <td >
                                标题：</td>
                            <td >
                                <asp:TextBox ID="titleltwo" runat="server" Width="160px"></asp:TextBox></td>
                            <td >
                                连接：</td>
                            <td >
                                <asp:TextBox ID="linktwo" runat="server" Width="180px"></asp:TextBox></td>
                        </tr>
                    </table>
                    </td>
                </tr>
                <tr>
                    <td >
                        幻灯图片（3）</td>
                    <td ><table border="0" cellpadding="0" cellspacing="0">
                        <tr>
                            <td >
                                图片地址：</td>
                            <td >
                                <asp:TextBox ID="imgthree" runat="server" Width="220px"></asp:TextBox></td>
                            <td >
                                标题：</td>
                            <td >
                                <asp:TextBox ID="titlelthree" runat="server" Width="160px"></asp:TextBox></td>
                            <td >
                                连接：</td>
                            <td >
                                <asp:TextBox ID="linkthree" runat="server" Width="180px"></asp:TextBox></td>
                        </tr>
                    </table>
                    </td>
                </tr>
                <tr>
                    <td >
                        幻灯图片（4）</td>
                    <td ><table border="0" cellpadding="0" cellspacing="0">
                        <tr>
                            <td >
                                图片地址：</td>
                            <td >
                                <asp:TextBox ID="imgfour" runat="server" Width="220px"></asp:TextBox></td>
                            <td >
                                标题：</td>
                            <td >
                                <asp:TextBox ID="titlelfour" runat="server" Width="160px"></asp:TextBox></td>
                            <td >
                                连接：</td>
                            <td >
                                <asp:TextBox ID="linkfour" runat="server" Width="180px"></asp:TextBox></td>
                        </tr>
                    </table>
                    </td>
                </tr>
                <tr>
                    <td >
                        幻灯图片（5）</td>
                    <td ><table border="0" cellpadding="0" cellspacing="0">
                        <tr>
                            <td >
                                图片地址：</td>
                            <td >
                                <asp:TextBox ID="imgfive" runat="server" Width="220px"></asp:TextBox></td>
                            <td >
                                标题：</td>
                            <td >
                                <asp:TextBox ID="titlelfive" runat="server" Width="160px"></asp:TextBox></td>
                            <td >
                                连接：</td>
                            <td >
                                <asp:TextBox ID="linkfive" runat="server" Width="180px"></asp:TextBox></td>
                        </tr>
                    </table>
                    </td>
                </tr>
                <tr>
                    <td >
                        幻灯图片（6）</td>
                    <td ><table border="0" cellpadding="0" cellspacing="0">
                        <tr>
                            <td >
                                图片地址：</td>
                            <td >
                                <asp:TextBox ID="imgsix" runat="server" Width="220px"></asp:TextBox></td>
                            <td >
                                标题：</td>
                            <td >
                                <asp:TextBox ID="titlelsix" runat="server" Width="160px"></asp:TextBox></td>
                            <td >
                                连接：</td>
                            <td >
                                <asp:TextBox ID="linksix" runat="server" Width="180px"></asp:TextBox></td>
                        </tr>
                    </table>
                    </td>
                </tr>
                <tr>
                    <td colspan="2" style="text-align: left">
                        <asp:CheckBox ID="Notitlel" runat="server" Text="不显示标题" ForeColor="#6600FF" /></td>
                </tr>
                <tr>
                    <td style="text-align: left" colspan="2">
                        可以不填完，但最少填写一个幻灯图片！连接：点击图片时要打开的网页地址。</td>
                </tr>
                <tr>
                    <td colspan="2" style="text-align: center">
                        <asp:Button ID="add" runat="server" Text="添 加" Width="100px" OnClick="add_Click" />
                        <asp:Button ID="edit" runat="server" Text="修 改" Width="100px" OnClick="edit_Click" /></td>
                </tr>
            </table>
        </asp:Panel>
        <asp:Panel ID="flash" runat="server" Height="50px" Width="100%" Visible="false">
            <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False" Width="100%" CellPadding="4" ForeColor="#333333" GridLines="None" PageSize="20">
                <Columns>
                    <asp:BoundField HeaderText="幻灯片名称" DataField="flashname" />
                    <asp:TemplateField HeaderText="调条用标签"><ItemTemplate>{$sflash(<%#Eval("id") %>)}</ItemTemplate></asp:TemplateField>
                    <asp:TemplateField HeaderText="编辑"><ItemTemplate><a href="flash.aspx?action=edit&id=<%#Eval("id") %>">编辑</a></ItemTemplate></asp:TemplateField>
                    <asp:TemplateField HeaderText="删除"><ItemTemplate><a href="flash.aspx?action=del&id=<%#Eval("id") %>" onclick="return confirm('删除将不可恢复，您真的要删除吗？')">删除</a></ItemTemplate></asp:TemplateField>
                </Columns>
                <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                <RowStyle BackColor="#EFF3FB" />
                <EditRowStyle BackColor="#2461BF" />
                <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                <AlternatingRowStyle BackColor="White" />
            </asp:GridView>
            <asp:Literal ID="tj" runat="server"></asp:Literal></asp:Panel>
    
    </div>
    </form>
</body>
</html>
