<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Vote.aspx.cs" Inherits="MyITJob.Admin.Vote" %>

<!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><%=Application["PageTitle"] %>——投 票 管 理</title>
    <link href="../images/Admin_Style.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
        <div>
        <asp:Panel ID="AddVote" runat="server">
            <table width='100%' border='0' align='center' cellpadding='2' cellspacing='1' class='border'>
                <tr class='topbg2'>
                    <td colspan="2" align='center'>
                        <strong class="Glow">职 位 列 表 管 理</strong></td>
                </tr>
                <tr class='tdbg'>
                    <td>
                        <div align="right">
                            <strong>投票名称：</strong></div>
                    </td>
                    <td width="76%">
                        <asp:TextBox ID="TextBox1" runat="server" MaxLength="20" Width="240px" /></td>
                </tr>
                <tr class='tdbg'>
                    <td>
                        <div align="right">
                            <strong>投票内容</strong>：<br />
                            一行即为一个投票选项。<br />
                            如果是修改的话，请不要删除投票项和“,”<br />否则容易导致程序错误。</div>
                    </td>
                    <td>
                        <asp:TextBox ID="TextBox2" runat="server" Height="420px" TextMode="MultiLine" Width="438px"></asp:TextBox></td>
                </tr>
                <tr class='tdbg'>
                    <td>&nbsp;
                        </td>
                    <td>
                        <asp:Button ID="Button1" runat="server" Text="添加" OnClick="Button1_Click" />
                        <input id="Reset1" type="reset" value="重置" />
                        <asp:Label ID="Label1" runat="server" ForeColor="Red"></asp:Label></td>
                </tr>
            </table>
            </asp:Panel>
            <asp:Panel ID="ManageVote" runat="server" Visible="false">
                        <table width='100%' border='0' align='center' cellpadding='2' cellspacing='1' class='border'>
                <tr class='topbg2'>
                    <td width="16%" align='center'>
                        <strong class="Glow">序号</strong></td>
                    <td width="60%" align='center'>
                        <strong class="Glow">投票名称</strong></td>
                    <td width="24%" align='center'>
                        <strong class="Glow">操作</strong></td>
                </tr>
                <asp:Repeater ID="RP1" runat="server">
                    <ItemTemplate>
                        <tr class='tdbg'>
                            <td align='center'>
                                <%#Eval("ID") %>                            </td>
                            <td align='center'>
                                <%#Eval("Vote_Title") %>                            </td>
                            <td align='center'>
                                <a href="?Action=Edit&id=<%#Eval("ID") %>">修改</a> | <a href="?id=<%#Eval("ID") %>&Action=Del"
                                    onclick="return confirm('确定要删除此项吗？此操作不可逆。');">删除</a></td>
                        </tr>
                    </ItemTemplate>
                </asp:Repeater>
            </table>
            <table width="100%" border="0" cellpadding="0" cellspacing="0">
                <tr>
                    <td width="669" height="18">
                        共<b>
                            <asp:Label ID="LbRecord" runat="server" ForeColor="Red"></asp:Label>
                        </b>条记录 页数:
                        <asp:Label ID="CurrentPage" runat="server" ForeColor="Red"></asp:Label>
                        /
                        <asp:Label ID="TotalPage" runat="server" ForeColor="Red"></asp:Label>
                        页 <b>
                            <asp:Label ID="LbPageRecord" runat="server"></asp:Label>
                        </b>篇文章/页
                        <asp:HyperLink ID="Linkhead" runat="server">首页</asp:HyperLink>
                        <asp:HyperLink ID="LinkPrev" runat="server">上一页</asp:HyperLink>
                        <asp:HyperLink ID="LinkNext" runat="server">下一页</asp:HyperLink>
                        <asp:HyperLink ID="LinkFoot" runat="server">尾页</asp:HyperLink></td>
                </tr>
            </table>
            </asp:Panel>
            <table width="100%" border="0" cellpadding="0" cellspacing="0" class="border">
                <tr>
                    <td>
                        <table width="100%" border="0" cellspacing="1" cellpadding="3">
                            <tr>
                                <td class="topbg">
                                    <div align="center">
                                        Copyright 2009-2019  <%=Application["PageTitle"] %> All Rights Reserved.</div>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </div>
    </form>
</body>
</html>
