📄 templateadmin.ascx
字号:
<%@ Control Language="c#" AutoEventWireup="false" Codebehind="TemplateAdmin.ascx.cs" Inherits="Seaskyer.WebApp.skyNews.Pages.AdminMSC.TemplateAdmin" TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %>
<table class="awidth" align="center" cellspacing="0" cellpadding="0">
<tr>
<td class="mframe-t-left"></td>
<td class="mframe-t-mid"><span class="mframe-t-text"><%= lang.AppName%></span></td>
<td class="mframe-t-right"></td>
</tr>
</table>
<table class="awidth" align="center" cellspacing="0" cellpadding="0">
<tr>
<td class="mframe-m-left"></td>
<td class="mframe-m-mid">
<asp:Label width="100%" style="TEXT-ALIGN:center" id="label1" runat="server" Visible="False" />
<asp:DataGrid id="DataGrid1" runat="server" Width="100%" Align="center" ShowHeader="True" ShowFooter="True"
AutoGenerateColumns="false" AllowPaging="False" DataKeyField="ID" ItemStyle-CssClass="tdbg"
CellSpacing="0" CellPadding="3" OnItemDataBound="DataGrid1_ItemDataBound" OnItemCreated="DataGrid1_ItemCreated">
<HeaderStyle HorizontalAlign="center" CssClass="summary-title" Height="25" />
<ItemStyle Height="22" />
<EditItemStyle CssClass="tdbg-dark" />
<Columns>
<asp:TemplateColumn ItemStyle-Width="40" ItemStyle-HorizontalAlign="center">
<ItemTemplate>
<a href='/skyNews/Admin/TemplateAdd.aspx?templateID=<%# DataBinder.Eval(Container.DataItem, "ID")%>'>修改</a>
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn>
<ItemStyle Width="150px" HorizontalAlign="Left" />
<ItemTemplate>
<a href="/skyNews/Admin/TemplateEdit.aspx?templateID=<%# DataBinder.Eval(Container.DataItem, "ID")%>" title="打开窗口编辑该模板"><span style="color:<%# DataBinder.Eval(Container.DataItem, "Enable").ToString() == "1" ? "red" : ""%>;"><%# DataBinder.Eval(Container.DataItem, "Name")%></span></a>
</ItemTemplate>
</asp:TemplateColumn>
<asp:BoundColumn HeaderText="模板路径(相对)" DataField="Path">
<ItemStyle HorizontalAlign="Left" />
</asp:BoundColumn>
<asp:BoundColumn HeaderText="类型" DataField="type">
<ItemStyle Width="100px" HorizontalAlign="center" />
</asp:BoundColumn>
<asp:TemplateColumn ItemStyle-Width="120" ItemStyle-HorizontalAlign="center" HeaderText="预览图">
<ItemTemplate>
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn ItemStyle-Width="40" ItemStyle-HorizontalAlign="center" HeaderText="<input type="checkbox" onclick="checkFormAll(this.form, this.checked)">">
<ItemTemplate>
<input type="checkbox" name="chk" value='<%# DataBinder.Eval(Container.DataItem, "ID")%>' />
</ItemTemplate>
<FooterTemplate><asp:Button ID="delBtn" Runat="server" OnClick="Delete_OnClick" Text="删除" /></FooterTemplate>
</asp:TemplateColumn>
</Columns>
</asp:DataGrid>
<table align="center" width="100%" height="30"><tr><td><asp:Label ID="pageLabel" Runat="server" /></td><td width="50" align="right"></td></tr></table>
</td>
<td class="mframe-m-right"></td>
</tr>
</table>
<table class="awidth" align="center" cellspacing="0" cellpadding="0">
<tr>
<td class="mframe-b-left"></td>
<td class="mframe-b-mid"> </td>
<td class="mframe-b-right"></td>
</tr>
</table>
<br />
<!-- #Include File="Footer.Inc" -->
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -