-
Notifications
You must be signed in to change notification settings - Fork 4
/
SendReminders.ascx
executable file
·196 lines (196 loc) · 10.4 KB
/
SendReminders.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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
<%@ Control Language="vb" AutoEventWireup="false" CodeBehind="SendReminders.ascx.vb" Inherits="Ventrian.SubscriptionTools.SendReminders" %>
<%@ Register TagPrefix="dnn" TagName="Label" Src="~/controls/LabelControl.ascx" %>
<%@ Register TagPrefix="dnn" TagName="SectionHead" Src="~/controls/SectionHeadControl.ascx" %>
<table cellpadding="0" cellspacing="0" width="100%">
<tr>
<td align="left">
<asp:Repeater ID="rptBreadCrumbs" Runat="server">
<ItemTemplate>
<a href='<%# DataBinder.Eval(Container.DataItem, "Url") %>' class="NormalBold">
<%# DataBinder.Eval(Container.DataItem, "Caption") %>
</a>
</ItemTemplate>
<SeparatorTemplate>
»
</SeparatorTemplate>
</asp:Repeater>
</td>
</tr>
<tr>
<td height="5" colspan="2"></td>
</tr>
</table>
<div align="left">
<dnn:sectionhead id="dshReminderSettings" cssclass="Head" runat="server" text="Reminder Settings"
section="tblReminderSettings" resourcekey="ReminderSettings" includerule="True"></dnn:sectionhead>
<TABLE id="tblReminderSettings" cellSpacing="0" cellPadding="2" width="100%" summary="Reminder Settings Details Design Table"
border="0" runat="server">
<TR>
<TD colSpan="3">
<asp:label id="lblReminderSettingsHelp" cssclass="Normal" runat="server" resourcekey="ReminderSettingsHelp"
enableviewstate="False"></asp:label></TD>
</TR>
<tr>
<TD width="25"><IMG height=1 src='<%= Page.ResolveUrl("~/Images/Spacer.gif") %>' width=25></TD>
<td class="SubHead" width="200"><dnn:label id="plReminderPeriod" text="Reminder Period" runat="server" suffix=":" controlname="txtReminderPeriod"></dnn:label></td>
<td valign="top">
<asp:textbox id="txtReminderPeriod" runat="server" maxlength="10" width="50" cssclass="NormalTextBox"></asp:textbox>
<asp:dropdownlist id="drpReminderPeriodMeasurement" runat="server" cssclass="NormalTextBox">
<asp:listitem resourcekey="Seconds" value="s">Seconds</asp:listitem>
<asp:listitem resourcekey="Minutes" value="m">Minutes</asp:listitem>
<asp:listitem resourcekey="Hours" value="h">Hours</asp:listitem>
<asp:listitem resourcekey="Days" value="d">Days</asp:listitem>
</asp:dropdownlist>
</td>
</tr>
<tr>
<TD width="25"><IMG height=1 src='<%= Page.ResolveUrl("~/Images/Spacer.gif") %>' width=25></TD>
<td class="SubHead" width="200"><dnn:label id="plReminderFrequency" text="Reminder Frequency" runat="server" suffix=":" controlname="txtReminderFrequency"></dnn:label></td>
<td valign="top">
<asp:textbox id="txtReminderFrequency" runat="server" maxlength="10" width="50" cssclass="NormalTextBox"></asp:textbox>
<asp:dropdownlist id="drpReminderFrequencyMeasurement" runat="server" cssclass="NormalTextBox">
<asp:listitem resourcekey="Seconds" value="s">Seconds</asp:listitem>
<asp:listitem resourcekey="Minutes" value="m">Minutes</asp:listitem>
<asp:listitem resourcekey="Hours" value="h">Hours</asp:listitem>
<asp:listitem resourcekey="Days" value="d">Days</asp:listitem>
</asp:dropdownlist>
</td>
</tr>
<TR>
<TD width="25"><IMG height=1 src='<%= Page.ResolveUrl("~/Images/Spacer.gif") %>' width=25></TD>
<td class="SubHead" width="200"><dnn:label id="plSubject" runat="server" resourcekey="Subject" suffix=":" controlname="txtSubject"></dnn:label></td>
<TD>
<asp:textbox id="txtSubject" cssclass="NormalTextBox" width="300px" maxlength="100" runat="server" />
<asp:requiredfieldvalidator id="valSubject" runat="server" CssClass="NormalRed" ControlToValidate="txtSubject"
ResourceKey="valSubject.ErrorMessage" ErrorMessage="<br>Subject Is Required." Display="Dynamic"></asp:requiredfieldvalidator>
</TD>
</TR>
<TR>
<TD width="25"><IMG height=1 src='<%= Page.ResolveUrl("~/Images/Spacer.gif") %>' width=25></TD>
<td class="SubHead" width="200"><dnn:label id="plReminderText" runat="server" resourcekey="Content" suffix=":" controlname="txtTemplate"></dnn:label></td>
<TD>
<asp:textbox id="txtTemplate" cssclass="NormalTextBox" runat="server" width="300" rows="10" textmode="MultiLine"></asp:textbox>
<asp:requiredfieldvalidator id="valTemplate" runat="server" CssClass="NormalRed" ControlToValidate="txtTemplate"
ResourceKey="valTemplate.ErrorMessage" ErrorMessage="<br>Template Is Required." Display="Dynamic"></asp:requiredfieldvalidator>
</TD>
</TR>
<TR>
<TD width="25"><IMG height=1 src='<%= Page.ResolveUrl("~/Images/Spacer.gif") %>' width=25></TD>
<td class="SubHead" width="200"><dnn:label id="plBCCEmail" runat="server" resourcekey="plBCCEmail" suffix=":" controlname="txtBCCEmail"></dnn:label></td>
<TD>
<asp:textbox id="txtBCCEmail" cssclass="NormalTextBox" runat="server" width="300"></asp:textbox>
</TD>
</TR>
</TABLE>
<br>
<dnn:sectionhead id="dshSchedulerSettings" cssclass="Head" runat="server" text="Scheduler Settings"
section="tblSchedulerSettings" resourcekey="SchedulerSettings" includerule="True"></dnn:sectionhead>
<TABLE id="tblSchedulerSettings" cellSpacing="0" cellPadding="2" width="100%" summary="Scheduler Settings Details Design Table"
border="0" runat="server">
<TR>
<TD colSpan="3">
<asp:label id="lblSchedulerSettingsHelp" cssclass="Normal" runat="server" resourcekey="SchedulerSettingsHelp"
enableviewstate="False"></asp:label></TD>
</TR>
<tr>
<TD width="25"><IMG height=1 src='<%= Page.ResolveUrl("~/Images/Spacer.gif") %>' width=25></TD>
<td class="SubHead" width="200"><dnn:label id="plSchedulerEnabled" text="Enabled?" runat="server" controlname="chkEnabled"></dnn:label></td>
<td valign="top">
<asp:CheckBox ID="chkEnabled" Runat="server" />
</td>
</tr>
<TR vAlign="top">
<TD width="25"><IMG height=1 src='<%= Page.ResolveUrl("~/Images/Spacer.gif") %>' width=25></TD>
<TD class="SubHead" width="200">
<dnn:label id="plTimeLapse" runat="server" controlname="txtTimeLapse" suffix=":" text="Time Lapse:"></dnn:label></TD>
<TD class="Normal">
<asp:textbox id="txtTimeLapse" runat="server" maxlength="10" width="50" cssclass="NormalTextBox"></asp:textbox>
<asp:dropdownlist id="drpTimeLapseMeasurement" runat="server" cssclass="NormalTextBox">
<asp:listitem resourcekey="Seconds" value="s">Seconds</asp:listitem>
<asp:listitem resourcekey="Minutes" value="m">Minutes</asp:listitem>
<asp:listitem resourcekey="Hours" value="h">Hours</asp:listitem>
<asp:listitem resourcekey="Days" value="d">Days</asp:listitem>
</asp:dropdownlist></TD>
</TR>
<TR vAlign="top">
<TD width="25"><IMG height=1 src='<%= Page.ResolveUrl("~/Images/Spacer.gif") %>' width=25></TD>
<TD class="SubHead" width="200">
<dnn:label id="plRetryTimeLapse" runat="server" controlname="txtRetryTimeLapse" suffix=":"
text="Retry Frequency:"></dnn:label></TD>
<TD class="Normal">
<asp:textbox id="txtRetryTimeLapse" runat="server" maxlength="10" width="50" cssclass="NormalTextBox"></asp:textbox>
<asp:dropdownlist id="drpRetryTimeLapseMeasurement" runat="server" cssclass="NormalTextBox">
<asp:listitem resourcekey="Seconds" value="s">Seconds</asp:listitem>
<asp:listitem resourcekey="Minutes" value="m">Minutes</asp:listitem>
<asp:listitem resourcekey="Hours" value="h">Hours</asp:listitem>
<asp:listitem resourcekey="Days" value="d">Days</asp:listitem>
</asp:dropdownlist></TD>
</TR>
</TABLE>
</div>
<p>
<asp:linkbutton id="cmdUpdate" resourcekey="cmdUpdate" runat="server" cssclass="CommandButton" text="Update"
borderstyle="none" />
<asp:linkbutton id="cmdCancel" resourcekey="cmdCancel" runat="server" cssclass="CommandButton" text="Cancel"
causesvalidation="False" borderstyle="none" />
</p>
<div align="left">
<dnn:sectionhead id="dshSchedulerHistory" cssclass="Head" runat="server" text="Scheduler History"
section="tblSchedulerHistory" resourcekey="SchedulerHistory" includerule="True"></dnn:sectionhead>
<TABLE id="tblSchedulerHistory" cellSpacing="0" cellPadding="2" width="100%" summary="Scheduler History Details Design Table"
border="0" runat="server">
<TR>
<TD colSpan="3">
<asp:label id="lblSchedulerHistoryHelp" cssclass="Normal" runat="server" resourcekey="SchedulerHistoryHelp"
enableviewstate="False"></asp:label></TD>
</TR>
<tr>
<td>
<asp:Label ID="lblNoHistory" Runat="server" CssClass="Normal" ResourceKey="NoHistory" />
<asp:datagrid id="dgScheduleHistory" runat="server" autogeneratecolumns="false" cellpadding="4"
cellspacing="2" datakeyfield="ScheduleID" enableviewstate="false" border="1" summary="This table shows the schedule of events for the portal."
BorderColor="gray" BorderStyle="Solid" BorderWidth="1px" GridLines="Both">
<Columns>
<asp:TemplateColumn HeaderText="Description">
<HeaderStyle CssClass="NormalBold" />
<ItemStyle CssClass="Normal" VerticalAlign="Top" />
<ItemTemplate>
<table border="0" width="100%">
<tr>
<td nowrap Class="Normal">
<i>
<%# DataBinder.Eval(Container.DataItem,"TypeFullName")%>
</i>
</td>
</tr>
</table>
<asp:Label runat=server visible='<%# DataBinder.Eval(Container.DataItem,"LogNotes")<>""%>' ID="Label1" NAME="Label1">
<textarea rows="2" cols="65"><%# DataBinder.Eval(Container.DataItem,"LogNotes")%></textarea>
</asp:Label>
</ItemTemplate>
</asp:TemplateColumn>
<asp:BoundColumn DataField="ElapsedTime" HeaderText="Duration">
<HeaderStyle CssClass="NormalBold"></HeaderStyle>
<ItemStyle Wrap="False" CssClass="Normal" VerticalAlign="Top"></ItemStyle>
</asp:BoundColumn>
<asp:BoundColumn DataField="Succeeded" HeaderText="Succeeded">
<HeaderStyle CssClass="NormalBold"></HeaderStyle>
<ItemStyle Wrap="False" CssClass="Normal" VerticalAlign="Top"></ItemStyle>
</asp:BoundColumn>
<asp:TemplateColumn HeaderText="Start/End/Next Start">
<HeaderStyle CssClass="NormalBold"></HeaderStyle>
<ItemStyle Wrap="False" CssClass="Normal" VerticalAlign="Top"></ItemStyle>
<ItemTemplate>
S: <%# DataBinder.Eval(Container.DataItem,"StartDate")%>
<br>
E: <%# DataBinder.Eval(Container.DataItem,"EndDate")%>
<br>
N: <%# DataBinder.Eval(Container.DataItem,"NextStart")%>
</ItemTemplate>
</asp:TemplateColumn>
</Columns>
</asp:datagrid>
</td>
</tr>
</TABLE>
</div>