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

<!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="../images/Admin_Style.css" rel="stylesheet" type="text/css" />
    <script language="javascript" src="../MyITJob.js" type="text/javascript"></script>    
    <script language='javascript' type="text/javascript">
    function CheckAll(form){
      for (var i=0;i<form.elements.length;i++){
        var e = form.elements[i];
        if (e.name != 'chkAll' && e.disabled == false && e.type == 'checkbox') {
          e.checked = form.chkAll.checked;
        }
      }
    }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <table width='100%' border='0' align='center' cellpadding='2' cellspacing='1' class='border'>
                <tr class='topbg2'>
                    <td width="100%" align='center'>
                        <strong class="Glow">文 章 管 理</strong>
                    </td>
                </tr>
            </table>
    <table width='100%' border='0' align='center' cellpadding='6' cellspacing='1' class='border'>
                    <tr class='topbg2'>
                        <td width="12%" align='center'>
                           <span class="Glow"><strong>时间</strong></span>
                        </td>
                        <td width="7%" align='center'>
                            <span class="Glow"><strong>用户名</strong></span>
                        </td>                        
                        <td width="24%" align='center'>
                            <span class="Glow"><strong>发言</strong></span>
                        </td>
                        <td width="17%" align='center'>
                            <span class="Glow"><strong>企业</strong></span>
                        </td>
                        <td width="32%" align='center'>
                            <span class="Glow"><strong>回复</strong></span>
                        </td>
                        <td width="8%" align='center'>
                            <span class="Glow"><strong>常规操作</strong></span>
                        </td>
                    </tr>
                    <asp:Repeater ID="ManageGuest" runat="server">
                        <ItemTemplate>
                            <tr class='tdbg' onmouseout="this.className='tdbg'" onmouseover="this.className='tdbgmouseover'">
                                <td align='center'>
                                    <input id="Checkbox" name="Checkbox" type="checkbox" value="<%#Eval("id") %>" /><%#Eval("AddTime")%>
                                </td>
                                <td><%#Eval("username") %></td>
                                <td>
                                    <%#FormatLeft(Eval("neirong").ToString(), 24, 24)%>
                                </td>
                                <td>
                                    <%#Eval("CompanyName")%>
                                </td>
                                <td>
                                    <%#FormatLeft(Eval("huifu").ToString(), 24, 24)%>
                                </td>
                                <td align='center'>
                                    <a href="?Action=Del&id=<%# Eval("id")%>" onclick="return confirm('确定要删除此项吗？此操作不可逆。')">删除</a>
                                </td>
                            </tr>
                        </ItemTemplate>
                    </asp:Repeater>
              </table>
      <div id="pading" runat="server"></div>
              <div>
                    <input name='chkAll' type='checkbox' onclick='CheckAll(this.form)' value='checkbox' />
                    <span style="color: Red">全选</span> 
                  <asp:Button ID="Button1" runat="server" Text="批量删除" onclick="Button1_Click" /></div>
    </div>
    </form>
</body>
</html>
