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

<!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" />
</head>
<body>
    <form id="form1" runat="server">
    <div id="right_dqwz">公文模板管理</div>
    <table cellpadding="0" cellspacing="1" border="0" width="100%">
      <tr>
        <td colspan="6" class="topic"><a href="Template_Edit.aspx">添加模板</a></td>
      </tr>   
    </table>
    <asp:ListView ID="lvList" runat="server" ItemPlaceholderID="items" onitemcommand="lvList_ItemCommand"  DataKeyNames="id">
        <LayoutTemplate>
          <table cellpadding="0" cellspacing="1" border="0" width="100%" class="border">            
          <tr class="suphead">
              <td width="30%">缩略图</td>
              <td>名称</td>
              <td width="20%">操作</td>
          </tr>
          <asp:PlaceHolder runat="server" ID="items"></asp:PlaceHolder>
          </table>
        </LayoutTemplate>   
        <ItemTemplate>
            <tr class="lines" onmouseover="this.style.backgroundColor='#ffffff';" onmouseout="this.style.backgroundColor='#f5f5f5';">
            <td><img src='<%# Eval("Photo")%>' width="160" height="120" class="brd" /></td>
            <td><a href='Template_Edit.aspx?id=<%# Eval("id")%>'><%# Eval("Title")%></a></td>
            <td>
            <asp:LinkButton ID="LinkButton1" runat="server" CommandName="editobj" CommandArgument='<%# Eval("id") %>'>编辑</asp:LinkButton>
						|
						<asp:LinkButton ID="LinkButton2" OnLoad="Delete_Load" runat="server" CommandName="deleteobj" CommandArgument='<%# Eval("id") %>'>删除</asp:LinkButton>
            </td>
            </tr>
        </ItemTemplate>     
        <EmptyDataTemplate>
            暂时没有数据.
        </EmptyDataTemplate>       
    </asp:ListView>

    </form>
</body>
</html>
