forked from DNNCommunity/DNN.Blog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BlogImport.ascx
93 lines (92 loc) · 4.69 KB
/
BlogImport.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
<%@ Control Language="vb" AutoEventWireup="false" CodeBehind="BlogImport.ascx.vb" Inherits="DotNetNuke.Modules.Blog.BlogImport" %>
<%@ Register TagPrefix="dnn" TagName="Label" Src="~/controls/LabelControl.ascx" %>
<%@ Register TagPrefix="dnn" Assembly="DotNetNuke" Namespace="DotNetNuke.UI.WebControls" %>
<%@ Register TagPrefix="dnn" Namespace="DotNetNuke.Security.Permissions.Controls" Assembly="DotNetNuke" %>
<%@ Register TagPrefix="dnn" Namespace="DotNetNuke.Web.UI.WebControls" Assembly="DotNetNuke.Web" %>
<div class="dnnForm dnnBlogImport dnnClear" id="dnnBlogImport">
<asp:Wizard ID="wizBlogImport" runat="server" DisplaySideBar="false" ActiveStepIndex="0"
CellPadding="5" CellSpacing="5"
DisplayCancelButton="True"
CancelButtonType="Link"
StartNextButtonType="Link"
StepNextButtonType="Link"
StepPreviousButtonType="Link"
FinishCompleteButtonType="Link"
>
<CancelButtonStyle CssClass="dnnSecondaryAction" />
<StartNextButtonStyle CssClass="dnnPrimaryAction" />
<StepNextButtonStyle CssClass="dnnPrimaryAction" />
<FinishCompleteButtonStyle CssClass="dnnPrimaryAction" />
<StepStyle VerticalAlign="Top" />
<NavigationButtonStyle BorderStyle="None" BackColor="Transparent" />
<HeaderTemplate>
<asp:Label ID="lblTitle" CssClass="Head" runat="server"><%=GetText("Title")%></asp:Label><br /><br />
<asp:Label ID="lblHelp" CssClass="WizardText" runat="server"><%=GetText("Help") %></asp:Label>
</HeaderTemplate>
<StartNavigationTemplate>
<ul class="dnnActions dnnClear">
<li><asp:LinkButton id="nextButtonStart" runat="server" CssClass="dnnPrimaryAction" CommandName="MoveNext" resourcekey="Next" /></li>
<li><asp:LinkButton id="cancelButtonStart" runat="server" CssClass="dnnSecondaryAction" CommandName="Cancel" resourcekey="Cancel" Causesvalidation="False" /></li>
</ul>
</StartNavigationTemplate>
<StepNavigationTemplate>
<ul class="dnnActions dnnClear">
<li><asp:LinkButton id="nextButtonStep" runat="server" CssClass="dnnPrimaryAction" CommandName="MoveNext" resourcekey="Next" /></li>
<li><asp:LinkButton id="cancelButtonStep" runat="server" CssClass="dnnSecondaryAction" CommandName="Cancel" resourcekey="Cancel" Causesvalidation="False" /></li>
</ul>
</StepNavigationTemplate>
<FinishNavigationTemplate>
<ul class="dnnActions dnnClear">
<li><asp:LinkButton id="finishButtonStep" runat="server" CssClass="dnnPrimaryAction" CommandName="Cancel" resourcekey="Return" /></li>
</ul>
</FinishNavigationTemplate>
<WizardSteps>
<asp:WizardStep ID="Step0" runat="Server" Title="Upload" StepType="Start" AllowReturn="false">
<div class="dnnForm">
<div class="dnnFormItem">
<dnn:label id="lblTarget" runat="server" controlname="lblTarget" suffix=":" />
<asp:label id="lblTargetName" runat="server" />
</div>
<div class="dnnFormItem dnnClear">
<input id="cmdBrowse" type="file" size="50" name="cmdBrowse" runat="server" />
<asp:Label ID="lblLoadMessage" runat="server" CssClass="dnnFormMessage dnnFormValidationSummary" Visible="false" />
</div>
</div>
</asp:WizardStep>
<asp:WizardStep ID="Step1" runat="Server" Title="Analysis" StepType="Step" AllowReturn="false">
<asp:TextBox runat="server" ID="txtAnalysis" TextMode="MultiLine" Width="300" Height="200" /><br />
<div class="dnnForm">
<div class="dnnFormItem">
<dnn:label id="lblImportCategories" runat="server" controlname="chkImportCategories" suffix=":" />
<asp:CheckBox runat="server" ID="chkImportCategories" />
</div>
<div class="dnnFormItem">
<dnn:label id="lblImportMissingCategoriesAsKeywords" runat="server" controlname="chkImportMissingCategoriesAsKeywords" suffix=":" />
<asp:CheckBox runat="server" ID="chkImportMissingCategoriesAsKeywords" />
</div>
<div class="dnnFormItem">
<dnn:label id="lblImportComments" runat="server" controlname="chkImportComments" suffix=":" />
<asp:CheckBox runat="server" ID="chkImportComments" />
</div>
</div>
</asp:WizardStep>
<asp:WizardStep ID="Step2" runat="server" Title="Report" StepType="Step" AllowReturn="false">
<asp:TextBox runat="server" ID="txtReport" TextMode="MultiLine" Width="300" Height="200" />
</asp:WizardStep>
</WizardSteps>
</asp:Wizard>
</div>
<script language="javascript" type="text/javascript">
/*globals jQuery, window, Sys */
(function ($, Sys) {
function setUpDnnExtensions() {
$('#dnnBlogImport').dnnPanels();
}
$(document).ready(function () {
setUpDnnExtensions();
Sys.WebForms.PageRequestManager.getInstance().add_endRequest(function () {
setUpDnnExtensions();
});
});
} (jQuery, window.Sys));
</script>