温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:破竹CMS4.0免安装版源码
当前文件:
PozhuCMS/admin/Log/EditLogTypes.aspx,打开代码结构图
PozhuCMS/admin/Log/EditLogTypes.aspx,打开代码结构图1<%@ Page Language="C#" MasterPageFile="~/admin/Manage.master" AutoEventWireup="true" CodeFile="EditLogTypes.aspx.cs" Inherits="admin_Log_EditLogTypes" Title="Untitled Page" %> 2
<asp:Content ID="Content1" ContentPlaceHolderID="cphMain" Runat="Server"> 3
<div id="tabChildMenu"> 4
<asp:LinkButton ID="cmdReturn" runat="server" CausesValidation="False" OnClick="cmdReturn_Click" 5
Text="Return"><span class="icon_back">返回</span></asp:LinkButton> 6
<a href="EditLogTypes.aspx?action=add"><span class="add">添加</span></a> 7
</div> 8
<asp:Panel ID="pnlLogTypeConfigInfo" runat="server"> 9
<asp:DataGrid ID="dgLogTypeConfigInfo" runat="server" AutoGenerateColumns="False" border="1" Width="100%" CellPadding="4" DataKeyField="ID" OnEditCommand="dgLogTypeConfigInfo_EditCommand" 10
summary="This table shows the log configuration entries." GridLines=Horizontal> 11
<Columns> 12
<asp:EditCommandColumn EditText="Edit"> 13
</asp:EditCommandColumn> 14
<asp:BoundColumn DataField="LogTypeKey" HeaderText="LogType"> 15
</asp:BoundColumn> 16
<asp:BoundColumn DataField="LogTypeSiteID" HeaderText="Portal"> 17
</asp:BoundColumn> 18
<asp:BoundColumn DataField="LoggingIsActive" HeaderText="Active"> 19
</asp:BoundColumn> 20
<asp:BoundColumn DataField="LogFilename" HeaderText="FileName"> 21
</asp:BoundColumn> 22
</Columns> 23
<ItemStyle CssClass="listItem" /> 24
<AlternatingItemStyle CssClass="listAlternatingItem" /> 25
<HeaderStyle CssClass="listHeader" /> 26
</asp:DataGrid></asp:Panel> 27
<asp:Panel ID="pnlEditLogTypeConfigInfo" runat="server"> 28
29
<table id="tblSettings" runat="server" border="0" cellpadding="2" cellspacing="2"> 30
<tr> 31
<td class="SubHead" width="150"> 32
是否启用: 33
</td> 34
<td class="Normal"> 35
<asp:CheckBox ID="chkIsActive" runat="server" AutoPostBack="True" OnCheckedChanged="chkIsActive_CheckedChanged" /></td> 36
</tr> 37
<tr> 38
<td class="SubHead" width="150"> 39
事件类型: 40
</td> 41
<td class="Normal"> 42
<asp:DropDownList ID="ddlLogTypeKey" runat="server"> 43
</asp:DropDownList></td> 44
</tr> 45
<tr> 46
<td class="SubHead" width="150"> 47
站点: 48
</td> 49
<td class="Normal"> 50
<asp:DropDownList ID="ddlLogTypePortalID" runat="server"> 51
</asp:DropDownList></td> 52
</tr> 53
<tr> 54
<td class="SubHead" width="150"> 55
保留记录: 56
</td> 57
<td class="Normal"> 58
<asp:DropDownList ID="ddlKeepMostRecent" runat="server"> 59
</asp:DropDownList></td> 60
</tr> 61
<tr> 62
<td class="SubHead" width="150"> 63
名称: 64
</td> 65
<td class="Normal"> 66
<asp:TextBox ID="txtFileName" runat="server" Width="300"></asp:TextBox></td> 67
</tr> 68
</table> 69
<br> 70
<hr size="1" /> 71
<table id="tblEmailSettings" runat="server" border="0" cellpadding="2" cellspacing="2"> 72
<tr> 73
<td class="SubHead" width="180"> 74
启用Email通知: 75
</td> 76
<td class="Normal"> 77
<asp:CheckBox ID="chkEmailNotificationStatus" runat="server" AutoPostBack="True" OnCheckedChanged="chkEmailNotificationStatus_CheckedChanged" /></td> 78
</tr> 79
<tr> 80
<td class="SubHead" width="180"> 81
选择需要发送的日志发生频率: 82
</td> 83
<td class="Normal"> 84
<asp:DropDownList ID="ddlThreshold" runat="server"> 85
</asp:DropDownList> 86
<asp:Label ID="lblIn" runat="server" Font-Bold="True" resourcekey="In">in</asp:Label> 87
<asp:DropDownList ID="ddlThresholdNotificationTime" runat="server"> 88
<asp:ListItem Value="1"> 89
</asp:ListItem> 90
<asp:ListItem Value="2"> 91
</asp:ListItem> 92
<asp:ListItem Value="3"> 93
</asp:ListItem> 94
<asp:ListItem Value="4"> 95
</asp:ListItem> 96
<asp:ListItem Value="5"> 97
</asp:ListItem> 98
<asp:ListItem Value="6"> 99
</asp:ListItem> 100
<asp:ListItem Value="7"> 101
</asp:ListItem> 102
<asp:ListItem Value="8"> 103
</asp:ListItem> 104
<asp:ListItem Value="9"> 105
</asp:ListItem> 106
<asp:ListItem Value="10"> 107
</asp:ListItem> 108
<asp:ListItem Value="20"> 109
</asp:ListItem> 110
<asp:ListItem Value="30"> 111
</asp:ListItem> 112
<asp:ListItem Value="60"> 113
</asp:ListItem> 114
<asp:ListItem Value="90"> 115
</asp:ListItem> 116
<asp:ListItem Value="120"> 117
</asp:ListItem> 118
</asp:DropDownList> 119
<asp:DropDownList ID="ddlThresholdNotificationTimeType" runat="server"> 120
<asp:ListItem Value="1">Seconds</asp:ListItem> 121
<asp:ListItem Value="2">Minutes</asp:ListItem> 122
<asp:ListItem Value="3">Hours</asp:ListItem> 123
<asp:ListItem Value="4">Days</asp:ListItem> 124
</asp:DropDownList></td> 125
</tr> 126
<tr> 127
<td class="SubHead" width="180"> 128
Mail From Address: 129
</td> 130
<td class="Normal"> 131
<asp:TextBox ID="txtMailFromAddress" runat="server" Width="300"></asp:TextBox></td> 132
</tr> 133
<tr> 134
<td class="SubHead" width="180"> 135
Mail To Address: 136
</td> 137
<td class="Normal"> 138
<asp:TextBox ID="txtMailToAddress" runat="server" Width="300"></asp:TextBox></td> 139
</tr> 140
</table> 141
<p> 142
<asp:LinkButton ID="cmdUpdate" runat="server" CssClass="save" OnClick="cmdUpdate_Click" Text="更新"></asp:LinkButton> 143
<asp:LinkButton ID="cmdCancel" runat="server" BorderStyle="none" CausesValidation="False" CssClass="cancel" OnClick="cmdCancel_Click" 144
Text="取消"></asp:LinkButton> 145
<asp:LinkButton ID="cmdDelete" runat="server" CausesValidation="False" CssClass="delete" OnClick="cmdDelete_Click" Text="删除"></asp:LinkButton> 146
</p> 147
</asp:Panel> 148
149
</asp:Content> 150
151




