<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Manage.aspx.cs" Inherits="TotCms.Web.Office.Privilege.Manage" %>

<!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="../style/global.css" rel="stylesheet" type="text/css" />
  <script src="../js/common.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div id="right_dqwz">
      <asp:Literal ID="pvTitle" runat="server"></asp:Literal>
      权限设置</div>
      <table cellpadding="0" cellspacing="1" border="0" width="100%">
      <tr>
        <td colspan="6" class="topic">
          <img alt="" src="../images/plus.png" height="14" />
          <asp:HyperLink ID="hlAdd" runat="server">添加</asp:HyperLink></td>
      </tr>   
    </table>

    <asp:ListView ID="lvList" runat="server" ItemPlaceholderID="items"
        onitemdeleting="lvList_ItemDeleting" 
        onitemcommand="lvList_ItemCommand" 
        onitemcanceling="lvList_ItemCanceling" 
        DataKeyNames="id">
        <LayoutTemplate>
          <table cellpadding="0" cellspacing="1" border="0" width="100%" class="border">            
          <tr class="suphead">
              <td>名称</td>              
              <td>权限</td>
              <td>操作</td>
          </tr>
          <asp:PlaceHolder runat="server" ID="items"></asp:PlaceHolder>
          </table>
        </LayoutTemplate>
        <AlternatingItemTemplate>
          <tr class="alterlines">
          <td><%# Eval("Title")%></td>          
          <td><%# GetType(Eval("IsVal"))%></td>
          <td>
              <asp:Button ID="DeleteButton" runat="server" CommandName="Delete" 
                  Text="删除" OnClientClick="return confirm('确定删除吗?')" />
          </td>
          </tr>
        </AlternatingItemTemplate>
        <EmptyDataTemplate>
            <div class="info">暂时没有数据.</div>
        </EmptyDataTemplate>

        <ItemTemplate>
            <tr class="lines">
            <td><%# Eval("Title")%></td>            
            <td><%# GetType(Eval("IsVal"))%></td>
            <td>
                    <asp:Button ID="DeleteButton" runat="server" CommandName="Delete" 
                        Text="删除" OnClientClick="return confirm('确定删除吗?')" />
            </td>
            </tr>
        </ItemTemplate>
        
    </asp:ListView>    
    </form>
    <div align="center"><input id="Button1" type="button" value="返回" onclick="javascript:history.back();" /></div>
  
</body>
</html>
