-
Notifications
You must be signed in to change notification settings - Fork 20
/
EditLinks.ascx
149 lines (148 loc) · 6.95 KB
/
EditLinks.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
<%--[alex - 09/01/2009] changed CodeBehind to CodeFile (required for WPA projects)--%>
<%@ Control Language="C#" AutoEventWireup="false" Explicit="True"
Inherits="DotNetNuke.Modules.Links.EditLinks" Codebehind="EditLinks.ascx.cs" %>
<%@ Register Assembly="DotNetNuke" Namespace="DotNetNuke.UI.WebControls" TagPrefix="DNNWC" %>
<%@ Register TagPrefix="Portal" TagName="Tracking" Src="~/controls/URLTrackingControl.ascx" %>
<%@ Register TagPrefix="Portal" TagName="Audit" Src="~/controls/ModuleAuditControl.ascx" %>
<%@ Register TagPrefix="Portal" TagName="URL" Src="~/controls/URLControl.ascx" %>
<%@ Register TagPrefix="dnn" TagName="Label" Src="~/controls/LabelControl.ascx" %>
<table width="100%" cellspacing="0" cellpadding="0" border="0" summary="Edit Links Design Table">
<tr>
<td colspan="2">
<asp:Panel ID="pnlDynamicContent" runat="server">
<asp:Label ID="plDynamicContent" runat="server" ResouceKey="plDynamicContent" Text="This Module is configured to show dynamic Data. Please use Modulesettings to change." />
</asp:Panel>
<br/>
</td>
</tr>
<tr>
<td class="SubHead" width="160">
<dnn:Label ID="plTitle" runat="server" ControlName="txtTitle" Suffix=":"></dnn:Label>
</td>
<td width="365">
<asp:TextBox ID="txtTitle" CssClass="NormalTextBox" Width="300" Columns="30" MaxLength="100"
runat="server" />
<br>
<asp:RequiredFieldValidator ID="valTitle" resourcekey="valTitle.ErrorMessage" Enabled="true"
Display="Dynamic" ErrorMessage="You Must Enter a Title For The Link" ControlToValidate="txtTitle"
runat="server" CssClass="NormalRed" EnableClientScript="false" />
</td>
<br />
</tr>
<tr>
<td class="SubHead" width="160">
<dnn:Label ID="plURL" runat="server" ControlName="ctlURL" Suffix=":"></dnn:Label>
</td>
<td width="650">
<Portal:URL ID="ctlURL" runat="server" Width="650" ShowNewWindow="True" ShowUsers="True" />
</td>
</tr>
</table>
<table id="tblGetContent" width="560" cellspacing="0" cellpadding="0" enableviewstate="false"
visible="true" runat="server">
<tr>
<td class="SubHead" width="160">
<dnn:Label ID="plGetContent" runat="server" ControlName="txtGetContent" Suffix=":"></dnn:Label>
</td>
<td width="365">
<asp:LinkButton ID="lbtGetContent" runat="server" CssClass="SubHead" Visible="true"
ResourceKey="lbtGetContent" OnClick="lbtGetContent_Click" />
</td>
</tr>
<tr>
<td class="SubHead" width="160">
</td>
<td width="365">
<asp:Label ID="lblContentRefresh" runat="server" CssClass="Normal" Text="automatically content refresh"></asp:Label>
<asp:DropDownList ID="ddlGetContentInterval" runat="server" CssClass="Normal" Visible="true">
<asp:ListItem Text="never" resourcekey="time_00.Text" Value="0">
</asp:ListItem>
<asp:ListItem Text="15 min" resourcekey="time_01.Text" Value="15">
</asp:ListItem>
<asp:ListItem Text="30 min" resourcekey="time_02.Text" Value="30">
</asp:ListItem>
<asp:ListItem Text="60 min" resourcekey="time_03.Text" Value="60">
</asp:ListItem>
<asp:ListItem Text="1 day" resourcekey="time_04.Text" Value="1440">
</asp:ListItem>
<asp:ListItem Text="1 week" resourcekey="time_05.Text" Value="10080">
</asp:ListItem>
</asp:DropDownList>
</td>
</tr>
<tr height="10">
<td colspan="2"></td>
</tr>
<tr>
<td class="SubHead" width="160">
</td>
<td width="365">
<asp:Label ID="lblGetContentResult" runat="server" EnableViewState="false" />
</td>
</tr>
</table>
<table id="tblGrantRoles" width="560" cellspacing="0" cellpadding="0" visible="true">
<tr>
<td class="SubHead" width="160">
<dnn:Label runat="server" ID="plGrantRoles" ControlName="txtGrantRoles" ResourceKey="lbtGrantRoles"
Suffix=":"></dnn:Label>
</td>
<td width="365">
<asp:CheckBoxList ID="cblGrantRoles" runat="server">
</asp:CheckBoxList>
</td>
</tr>
</table>
<table width="560" cellspacing="0" cellpadding="0">
<tr height="10">
<td colspan="2"></td>
</tr>
<tr>
<td class="SubHead" width="160">
<dnn:Label ID="plDescription" runat="server" ControlName="txtDescription" Suffix=":"></dnn:Label>
</td>
<td width="365">
<asp:TextBox ID="txtDescription" CssClass="NormalTextBox" Width="300" Columns="30"
Rows="5" TextMode="MultiLine" MaxLength="2000" runat="server" />
</td>
</tr>
<tr>
<td class="SubHead" width="160">
<dnn:Label ID="plViewOrder" runat="server" ControlName="txtViewOrder" Suffix=":"></dnn:Label>
</td>
<td width="365">
<%--<asp:TextBox ID="txtViewOrder" CssClass="NormalTextBox" Width="300" Columns="30"
MaxLength="3" runat="server" />--%>
<asp:DropDownList ID="ddlViewOrder" runat="server" CssClass="Normal" Width="100">
<asp:ListItem Text="Before" Value="B"></asp:ListItem>
<asp:ListItem Text="After" Value="A"></asp:ListItem>
</asp:DropDownList>
<asp:DropDownList ID="ddlViewOrderLinks" runat="server" CssClass="Normal" Width="200">
</asp:DropDownList>
<br />
<%-- <asp:CompareValidator ID="valViewOrder" resourcekey="valViewOrder.ErrorMessage" runat="server"
Display="Dynamic" ControlToValidate="txtViewOrder" CssClass="NormalRed" ErrorMessage="View Order must be a Number or an Empty String"
Type="Integer" Operator="DataTypeCheck"></asp:CompareValidator>--%>
</td>
</tr>
</table>
<p>
<asp:LinkButton ID="cmdUpdate" runat="server" OnClick="cmdUpdate_Click" >
<asp:Image runat="server" ImageUrl="~/images/save.gif" />
<asp:Label runat="server" ResourceKey="cmdUpdate" />
</asp:LinkButton>
<asp:LinkButton ID="cmdCancel" runat="server" OnClick="cmdCancel_Click" CausesValidation="false">
<asp:Image runat="server" ImageUrl="~/images/action_export.gif" />
<asp:Label runat="server" ResourceKey="cmdCancel" />
</asp:LinkButton>
<asp:LinkButton ID="cmdDelete" runat="server" OnClick="cmdDelete_Click" CausesValidation="false">
<asp:Image runat="server" ImageUrl="~/images/delete.gif" />
<asp:Label runat="server" ResourceKey="cmdDelete" />
</asp:LinkButton>
</p>
<Portal:Audit ID="ctlAudit" runat="server" />
<br>
<br>
<Portal:Tracking ID="ctlTracking" runat="server" />