-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy patheditvendors.ascx
119 lines (119 loc) · 7.56 KB
/
editvendors.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
<%@ Control Language="C#" AutoEventWireup="false" Inherits="Dnn.Modules.Vendors.EditVendors" Codebehind="EditVendors.ascx.cs" %>
<%@ Register TagPrefix="dnn" TagName="Address" Src="~/controls/Address.ascx"%>
<%@ Register TagPrefix="dnn" TagName="Audit" Src="~/controls/ModuleAuditControl.ascx" %>
<%@ Register TagPrefix="dnn" TagName="Label" Src="~/controls/LabelControl.ascx" %>
<%@ Register TagPrefix="dnn" TagName="URL" Src="~/controls/DnnUrlControl.ascx" %>
<%@ Register TagPrefix="dnn" Assembly="DotNetNuke.WebControls" Namespace="DotNetNuke.UI.WebControls" %>
<%@ Register TagPrefix="dnn" Assembly="DotNetNuke.WebControls" Namespace="DotNetNuke.UI.UserControls" %>
<%@ Register TagPrefix="dnn" Namespace="DotNetNuke.Web.UI.WebControls" Assembly="DotNetNuke.Web" %>
<div class="dnnForm dnnEditVendor dnnClear" id="dnnEditVendor">
<div class="dnnFormExpandContent"><a href=""><%=Localization.GetString("ExpandAll", Localization.SharedResourceFile)%></a></div>
<div>
<h2 id="dnnPanel-EditVendorsSettings" class="dnnFormSectionHead"><a href="" class="dnnLabelExpanded"><%=LocalizeString("Settings")%></a></h2>
<fieldset>
<div class="dnnFormItem">
<dnn:label id="plVendorName" runat="server" controlname="txtVendorName" CssClass="dnnFormRequired" />
<asp:textbox id="txtVendorName" runat="server" maxlength="50" />
<asp:requiredfieldvalidator id="valVendorName" runat="server" CssClass="dnnFormMessage dnnFormError" display="Dynamic"
resourceKey="companyRequired" controltovalidate="txtVendorName" />
</div>
<div class="dnnFormItem">
<dnn:label id="plFirstName" runat="server" controlname="txtFirstName" CssClass="dnnFormRequired" />
<asp:textbox id="txtFirstName" runat="server" maxlength="50" />
<asp:requiredfieldvalidator id="valFirstName" runat="server" CssClass="dnnFormMessage dnnFormError" display="Dynamic"
resourceKey="firstNameRequired" controltovalidate="txtFirstName" />
</div>
<div class="dnnFormItem">
<dnn:label id="plLastName" runat="server" controlname="txtLastName" CssClass="dnnFormRequired" />
<asp:textbox id="txtLastName" runat="server" maxlength="50" />
<asp:requiredfieldvalidator id="valLastName" runat="server" cssclass="dnnFormMessage dnnFormError" display="Dynamic"
resourceKey="lastNameRequired" controltovalidate="txtLastName" />
</div>
<div class="dnnFormItem">
<dnn:label id="plEmail" runat="server" controlname="txtEmail" CssClass="dnnFormRequired" />
<asp:textbox id="txtEmail" runat="server" maxlength="50" />
<asp:requiredfieldvalidator id="valEmail" runat="server" cssclass="dnnFormMessage dnnFormError" display="Dynamic"
resourceKey="eMailRequired" controltovalidate="txtEmail"></asp:requiredfieldvalidator>
<asp:RegularExpressionValidator id="valEmail2" runat="server" cssclass="dnnFormMessage dnnFormError"
resourceKey="eMailInvalid"
ValidationExpression="[\w\.-]+(\+[\w-]*)?@([\w-]+\.)+[\w-]+" ControlToValidate="txtEmail" Display="Dynamic" />
</div>
</fieldset>
<h2 id="dnnPanel-EditVendorsAddress" class="dnnFormSectionHead"><a href="" class="dnnLabelExpanded"><%=LocalizeString("Address")%></a></h2>
<fieldset>
<dnn:address runat="server" id="addresssVendor" />
</fieldset>
<h2 id="dnnPanel-EditVendorsOther" class="dnnFormSectionHead"><a href="" class="dnnLabelExpanded"><%=LocalizeString("Other")%></a></h2>
<fieldset>
<div class="dnnFormItem">
<dnn:label id="plWebsite" runat="server" controlname="txtWebsite" />
<asp:textbox id="txtWebsite" runat="server" maxlength="100" />
</div>
<div id="rowVendor1" runat="server" class="dnnFormItem">
<dnn:label id="plLogo" runat="server" controlname="ctlLogo" />
<div class="dnnLeft"><dnn:url id="ctlLogo" runat="server" width="200" showurls="False" showtabs="False" showlog="False" showtrack="False" required="False" /></div>
</div>
<div id="rowVendor2" runat="server" class="dnnFormItem">
<dnn:label id="plAuthorized" runat="server" controlname="chkAuthorized" />
<asp:checkbox id="chkAuthorized" runat="server" />
</div>
</fieldset>
</div>
<asp:panel id="pnlVendor" runat="server">
<h2 id="dnnPanel-EditVendorClassification" class="dnnFormSectionHead"><a href="" class="dnnLabelExpanded"><%=LocalizeString("VendorClassification")%></a></h2>
<fieldset>
<div class="dnnFormItem">
<dnn:label id="plKeyWords" runat="server" controlname="txtKeyWords" />
<asp:textbox id="txtKeyWords" runat="server" rows="10" textmode="MultiLine" />
</div>
</fieldset>
</asp:panel>
<asp:placeholder id="pnlBanners" runat="server">
<h2 id="dnnPanel-EditBannerAdvertising" class="dnnFormSectionHead"><a href="" class="dnnLabelExpanded"><%=LocalizeString("BannerAdvertising")%></a></h2>
<fieldset>
<div id="divBanners" runat="server" />
</fieldset>
</asp:placeholder>
<asp:placeholder id="pnlAffiliates" runat="server">
<h2 id="dnnPanel-EditAffiliateReferrals" class="dnnFormSectionHead"><a href="" class="dnnLabelExpanded"><%=LocalizeString("AffiliateReferrals")%></a></h2>
<fieldset>
<div id="divAffiliates" runat="server" />
</fieldset>
</asp:placeholder>
<ul class="dnnActions dnnClear">
<li><asp:LinkButton id="cmdUpdate" runat="server" CssClass="dnnPrimaryAction" resourcekey="cmdUpdate" /></li>
<li><asp:LinkButton id="cmdDelete" runat="server" CssClass="dnnSecondaryAction" resourcekey="cmdDelete" Causesvalidation="False" /></li>
<li><asp:LinkButton id="cmdCancel" runat="server" CssClass="dnnSecondaryAction" resourcekey="cmdCancel" Causesvalidation="False"/></li>
</ul>
<div class="dnnssStat dnnClear">
<dnn:audit id="ctlAudit" runat="server" />
</div>
</div>
<script language="javascript" type="text/javascript">
/*globals jQuery, window, Sys */
(function ($, Sys) {
function setUpDnnEditVendors() {
$('#dnnEditVendor').dnnPanels();
$('#dnnEditVendor .dnnFormExpandContent a').dnnExpandAll({
expandText: '<%=Localization.GetSafeJSString("ExpandAll", Localization.SharedResourceFile)%>',
collapseText: '<%=Localization.GetSafeJSString("CollapseAll", Localization.SharedResourceFile)%>',
targetArea: '#dnnEditVendor'
});
var yesText = '<%= Localization.GetSafeJSString("Yes.Text", Localization.SharedResourceFile) %>';
var noText = '<%= Localization.GetSafeJSString("No.Text", Localization.SharedResourceFile) %>';
var titleText = '<%= Localization.GetSafeJSString("Confirm.Text", Localization.SharedResourceFile) %>';
$('#<%= cmdDelete.ClientID %>').dnnConfirm({
text: '<%= Localization.GetSafeJSString("DeleteItem.Text", Localization.SharedResourceFile) %>',
yesText: yesText,
noText: noText,
title: titleText
});
}
$(document).ready(function () {
setUpDnnEditVendors();
Sys.WebForms.PageRequestManager.getInstance().add_endRequest(function () {
setUpDnnEditVendors();
});
});
} (jQuery, window.Sys));
</script>