-
Notifications
You must be signed in to change notification settings - Fork 0
/
View.ascx
125 lines (122 loc) · 6.9 KB
/
View.ascx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="View.ascx.cs" Inherits="FortyFingers.FilecuumCleaner.View" %>
<%@ Register TagPrefix="dnn" TagName="Label" Src="~/controls/LabelControl.ascx" %>
<script type="text/javascript">
jQuery(function ($) {
var setupModule = function () {
$('#filecuumCleanerPanels').dnnPanels();
$('#filecuumCleanerFiles').dnnTabs();
};
setupModule();
Sys.WebForms.PageRequestManager.getInstance().add_endRequest(function () {
// note that this will fire when _any_ UpdatePanel is triggered,
// which may or may not cause an issue
setupModule();
});
});
</script>
<asp:Label runat="server" ID="OnlyForSuperUsers" resourcekey="OnlyForSuperUsers" CssClass="dnnFormMessage dnnFormValidationSummary" Visible="False"></asp:Label>
<asp:Panel runat="server" ID="ModuleContent">
<div class="dnnForm" id="filecuumCleanerPanels">
<h2 class="dnnFormSectionHead" id='panel1-<%= TabModuleId.ToString() %>'>
<a href="#">
<asp:Label runat="server" ID="lblStatus" resourcekey="lblStatus" CssClass="SubSubHead">Status</asp:Label></a>
</h2>
<fieldset>
<div class="dnnFormItem">
<dnn:Label resourcekey="lblCurrentlyExecuting" ID="lblCurrentlyExecuting" runat="server" Text="currently executing" CssClass="dnnLabel" />
<div>
<asp:Label ID="lblExecutingJob" runat="server" CssClass="NormalBold" Width="150"></asp:Label>
<asp:LinkButton runat="server" ID="ClearRunningJobButton" resourcekey="ClearRunningJobButton" Text="clear (does NOT stop job)" CssClass="dnnPrimaryAction" OnClick="ClearRunningJobButton_Click"></asp:LinkButton>
</div>
</div>
<div class="dnnFormItem">
<dnn:Label runat="server" ID="lblSchedulerStatus" resourcekey="lblSchedulerStatus" Text="scheduler status" CssClass="dnnLabel"></dnn:Label>
<div>
<asp:Label runat="server" ID="lblSchedulerEnabledDisabled" Width="150"></asp:Label> <asp:LinkButton runat="server" ID="btnEnableDisable" CssClass="dnnPrimaryAction" OnClick="btnEnableDisable_Click"></asp:LinkButton>
</div>
</div>
</fieldset>
<h2 class="dnnFormSectionHead" id='panel2-<%= TabModuleId.ToString() %>'>
<a href="#">
<asp:Label runat="server" ID="lblJobs" resourcekey="lblJobs" CssClass="SubSubHead"></asp:Label></a>
</h2>
<fieldset class="dnnClear">
<div class="dnnFormMessage dnnFormInfo">
<asp:Label runat="server" ID="lblInformation" resourcekey="lblInformation"></asp:Label>
</div>
<asp:Repeater runat="server" ID="rptJobs" OnItemDataBound="rptJobs_ItemDataBound" OnItemCommand="rptJobs_ItemCommand">
<HeaderTemplate>
<table width="100%">
<tr class="dnnGridHeader">
<th>Enabled</th>
<th>Name</th>
<th>Commands</th>
<th style="text-align: right;">Reorder</th>
</tr>
</HeaderTemplate>
<FooterTemplate>
</table>
</FooterTemplate>
<ItemTemplate>
<tr class="dnnGridItem">
<td>
<asp:CheckBox runat="server" ID="chkJobActive" Enabled="False"></asp:CheckBox>
</td>
<td>
<asp:Label runat="server" ID="lblJobName"></asp:Label>
</td>
<td>
<asp:HyperLink runat="server" ID="btnEditJob" resourcekey="btnEditJob" CssClass="dnnSecondaryAction"></asp:HyperLink>
<asp:LinkButton runat="server" ID="btnDeleteJob" resourcekey="btnDeleteJob" CommandName="DeleteJob" CssClass="dnnSecondaryAction"></asp:LinkButton>
<asp:LinkButton runat="server" ID="btnRunJob" resourcekey="btnRunJob" CommandName="RunJob" CssClass="dnnSecondaryAction"></asp:LinkButton>
<asp:LinkButton runat="server" ID="btnTestJob" resourcekey="btnTestJob" CommandName="TestJob" CssClass="dnnSecondaryAction" Visible="False"></asp:LinkButton>
<asp:LinkButton runat="server" ID="btnShowFiles" resourcekey="btnShowFiles" CommandName="ShowFiles" CssClass="dnnSecondaryAction"></asp:LinkButton>
</td>
<td style="text-align: right;">
<asp:LinkButton runat="server" ID="btnJobUp" resourcekey="btnJobUp" CommandName="JobUp"></asp:LinkButton>
<asp:LinkButton runat="server" ID="btnJobDn" resourcekey="btnJobDn" CommandName="JobDn"></asp:LinkButton>
</td>
</tr>
</ItemTemplate>
</asp:Repeater>
</fieldset>
</div>
<asp:Panel runat="server" ID="ShowFilesPanel" Visible="False" EnableViewState="False" CssClass="ShowFilesPanel">
<div class="dnnForm" id="filecuumCleanerFiles">
<ul class="dnnAdminTabNav">
<li><a href="#FilesHit">
<asp:Label resourcekey="plFilesHit" ID="plFilesHit" controlname="lstFilesHit" runat="server" Text="id" /></a></li>
<li><a href="#FilesSkipped">
<asp:Label resourcekey="plFilesSkipped" ID="plFilesSkipped" controlname="lstFilesSkipped" runat="server" Text="id" /></a></li>
</ul>
<div id="FilesHit">
<asp:Repeater runat="server" OnItemDataBound="rptFiles_ItemDataBound" ID="rptFilesHit" EnableViewState="False">
<HeaderTemplate>
<ul>
</HeaderTemplate>
<FooterTemplate>
</ul>
</FooterTemplate>
<ItemTemplate>
<li>
<asp:Label runat="server" ID="FileLabel"></asp:Label></li>
</ItemTemplate>
</asp:Repeater>
</div>
<div id="FilesSkipped">
<asp:Repeater runat="server" OnItemDataBound="rptFiles_ItemDataBound" ID="rptFilesSkipped" EnableViewState="False">
<HeaderTemplate>
<ul>
</HeaderTemplate>
<FooterTemplate>
</ul>
</FooterTemplate>
<ItemTemplate>
<li>
<asp:Label runat="server" ID="FileLabel"></asp:Label></li>
</ItemTemplate>
</asp:Repeater>
</div>
</div>
</asp:Panel>
</asp:Panel>