Skip to content

Commit

Permalink
v2.3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
leedavi committed Oct 7, 2013
1 parent 6b205ab commit c32d48b
Show file tree
Hide file tree
Showing 521 changed files with 111,187 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Address.ascx
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<%@ Control Language="vb" AutoEventWireup="false" CodeBehind="Address.ascx.vb" Inherits="NEvoWeb.Modules.NB_Store.Address" %>
<asp:DataList ID="dlAddress" runat="server"></asp:DataList>
28 changes: 28 additions & 0 deletions Address.ascx.designer.vb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

137 changes: 137 additions & 0 deletions Address.ascx.vb
Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@
' --- Copyright (c) notice NevoWeb ---
' Copyright (c) 2008 SARL NevoWeb. www.nevoweb.com. BSD License.
' Author: D.C.Lee
' ------------------------------------------------------------------------
' THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
' TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
' THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
' CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
' DEALINGS IN THE SOFTWARE.
' ------------------------------------------------------------------------
' This copyright notice may NOT be removed, obscured or modified without written consent from the author.
' --- End copyright notice ---


Imports DotNetNuke
Imports DotNetNuke.Common
Imports DotNetNuke.Services.Exceptions
Imports DotNetNuke.Services.Localization
Imports NEvoWeb.Modules.NB_Store.SharedFunctions

Namespace NEvoWeb.Modules.NB_Store

Public MustInherit Class Address
Inherits Framework.UserControlBase

#Region "Private Members"
Private _CountryCode As String
Private _NoValidate As Boolean = False
Private _AddressDataInfo As NB_Store_AddressInfo

Private _AddressDescription As String

Private _AddressName As String
Private _Address1 As String
Private _Address2 As String
Private _City As String
Private _Region As String
Private _PostalCode As String
Private _Phone1 As String
Private _Phone2 As String
Private _TemplateName As String = ""
#End Region

#Region "Public Properties"


Public WriteOnly Property CountryCode() As String
Set(ByVal Value As String)
_CountryCode = Value
End Set
End Property

Public WriteOnly Property TemplateName() As String
Set(ByVal Value As String)
_TemplateName = Value
End Set
End Property

Public Property NoValidate() As Boolean
Get
Return _NoValidate
End Get
Set(ByVal Value As Boolean)
_NoValidate = Value
End Set
End Property

Public Property AddressDataInfo() As NB_Store_AddressInfo
Get
Return GetAddressDataInfo()
End Get
Set(ByVal Value As NB_Store_AddressInfo)
_AddressDataInfo = Value
_CountryCode = _AddressDataInfo.CountryCode
End Set
End Property

#End Region

Private Sub Page_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init
If _TemplateName = "" Then _TemplateName = "checkoutaddress.template"
Dim strData As String = GetStoreSettingText(PortalSettings.PortalId, _TemplateName, GetCurrentCulture)

If strData <> "" Then
dlAddress.ItemTemplate = New GenXMLTemplate(Server.HtmlDecode(strData))
Else
dlAddress.Visible = False
End If

End Sub

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

If Not _AddressDataInfo Is Nothing Then
Dim aryList As New ArrayList
aryList.Add(_AddressDataInfo)

dlAddress.DataSource = aryList
dlAddress.DataBind()
End If

If Not Page.IsPostBack Then
If dlAddress.Controls.Count >= 1 Then
Dim cbo As DropDownList = dlAddress.Controls(0).FindControl("cboCountry")
If Not cbo Is Nothing Then
populateCountryList(PortalSettings.PortalId, cbo, _CountryCode)
End If

If _NoValidate Then
For Each ctrl In dlAddress.Controls(0).Controls
If TypeOf ctrl Is RequiredFieldValidator Then
DirectCast(ctrl, RequiredFieldValidator).Enabled = False
End If
If TypeOf ctrl Is RegularExpressionValidator Then
DirectCast(ctrl, RegularExpressionValidator).Enabled = False
End If
Next
End If
End If

End If

End Sub

Private Function GetAddressDataInfo() As NB_Store_AddressInfo
Dim objInfo As New NB_Store_AddressInfo

objInfo = CType(populateGenObject(dlAddress, objInfo), NB_Store_AddressInfo)

Return objInfo
End Function



End Class

End Namespace
156 changes: 156 additions & 0 deletions AdminBackup.ascx
Original file line number Diff line number Diff line change
@@ -0,0 +1,156 @@
<%@ Control Language="vb" AutoEventWireup="false" CodeBehind="AdminBackup.ascx.vb" Inherits="NEvoWeb.Modules.NB_Store.AdminBackup" %>
<%@ Register TagPrefix="dnn" TagName="Label" Src="~/controls/LabelControl.ascx" %>
<%@ Register assembly="DotNetNuke" namespace="DotNetNuke.UI.WebControls" tagprefix="cc1" %>
<table class="NBright_ContentDiv"><tr><td>
<asp:Panel ID="pnlBackup" runat="server">
<div class="NBright_ButtonDiv">
<asp:LinkButton ID="cmdDoBackup" cssclass="dnnPrimaryAction NBright_CommandButton" runat="server" resourcekey="cmdDoBackup">Export</asp:LinkButton>
</div>
<div class="NBright_EditDiv">
<table>
<tr>
<td colspan="2"><asp:DropDownList ID="ddlSelectCategory" runat="server"></asp:DropDownList>
<asp:CheckBox CssClass="normalCheckBox" ID="chkCasCade" runat="server" Text="CasCade" />
</td>
</tr>
<tr>
<td>
<dnn:label id="plAllProducts" runat="server" controlname="plAllProducts" suffix=":" resourcekey="plAllProducts"></dnn:label>
</td>
<td>
<asp:RadioButton CssClass="normalRadioButton" ID="rbAllProducts" runat="server" GroupName="GRP1"/><asp:CheckBox CssClass="normalCheckBox" ID="chkExpOrders" runat="server" text="Include All Orders in product export file" />
</td>
</tr>
<tr>
<td>
<dnn:label id="plProductImages" runat="server" controlname="plProductImages" suffix=":" resourcekey="plProductImages"></dnn:label>
</td>
<td>
<asp:RadioButton CssClass="normalRadioButton" ID="rbProductImages" runat="server" GroupName="GRP1"/>
</td>
</tr>
<tr>
<td>
<dnn:label id="plProductDocs" runat="server" controlname="plProductDocs" suffix=":" resourcekey="plProductDocs"></dnn:label>
</td>
<td>
<asp:RadioButton CssClass="normalRadioButton" ID="rbProductDocs" runat="server" GroupName="GRP1"/>
</td>
</tr>
<tr>
<td>
<dnn:label id="plAllOrders" runat="server" controlname="plAllOrders" suffix=":" resourcekey="plAllOrders"></dnn:label>
</td>
<td>
<asp:RadioButton CssClass="normalRadioButton" ID="rbAllOrders" runat="server" GroupName="GRP1"/>
</td>
</tr>
<tr>
<td>
<dnn:label id="plShipping" runat="server" controlname="plShipping" suffix=":" resourcekey="plShipping"></dnn:label>
</td>
<td>
<asp:RadioButton CssClass="normalRadioButton" ID="rbShipping" runat="server" GroupName="GRP1"/>
</td>
</tr>
<tr>
<td>
<dnn:label id="plPurgeStore" runat="server" controlname="plPurgeStore" suffix=":" resourcekey="plPurgeStore"></dnn:label>
</td>
<td>
<asp:RadioButton CssClass="normalRadioButton" ID="rbPurgeStore" runat="server" GroupName="GRP1"/>
</td>
</table>
</div>
</asp:Panel>
<asp:Panel ID="pnlRestore" runat="server">
<div class="NBright_ButtonDiv">
<asp:LinkButton ID="cmdDoImport" cssclass="dnnPrimaryAction NBright_CommandButton" runat="server" resourcekey="cmdDoImport">Import</asp:LinkButton>
</div>
<div class="NBright_EditDiv">
<table>
<tr>
<td>
<dnn:label id="plImportUpdate" runat="server" controlname="plImportUpdate" suffix=":" resourcekey="plImportUpdate"></dnn:label>
</td>
<td>
<asp:RadioButton CssClass="normalRadioButton" ID="rbImportUpdate" runat="server" GroupName="GRP1"/>
</td>
</tr>
<tr>
<td>
<dnn:label id="plImportNew" runat="server" controlname="plImportNew" suffix=":" resourcekey="plImportNew"></dnn:label>
</td>
<td>
<asp:RadioButton CssClass="normalRadioButton" ID="rbImportNew" runat="server" GroupName="GRP1"/>
</td>
</tr>
<tr>
<td>
<dnn:label id="plCreateCat" runat="server" controlname="plCreateCat" suffix=":" resourcekey="plCreateCat"></dnn:label>
</td>
<td>
<asp:CheckBox CssClass="normalCheckBox" ID="chkCreateCat" runat="server" />
</td>
</tr>
<tr>
<td>
<dnn:label id="plArchiveProd" runat="server" controlname="chkArchiveProd" suffix=":" resourcekey="plArchiveProd"></dnn:label>
</td>
<td>
<asp:CheckBox CssClass="normalCheckBox" ID="chkArchiveProd" runat="server" />
</td>
</tr>
<tr>
<td>
<dnn:label id="plXMLFile" runat="server" controlname="plXMLFile" suffix=":" resourcekey="plXMLFile"></dnn:label>
</td>
<td>
<asp:FileUpload ID="FileUploadXML" runat="server" />
</td>
</tr>
<tr>
<td>
<dnn:label id="plZipFile" runat="server" controlname="plZipFile" suffix=":" resourcekey="plZipFile"></dnn:label>
</td>
<td>
<asp:FileUpload ID="FileUploadZip" runat="server" />
</td>
</tr>
<tr>
<td>
<dnn:label id="plZipDocs" runat="server" controlname="plZipDocs" suffix=":" resourcekey="plZipDocs"></dnn:label>
</td>
<td>
<asp:FileUpload ID="FileUploadDocs" runat="server" />
</td>
</tr>
</table>
<hr />
<table>
<tr>
<td>
<dnn:label id="plImportShipping" runat="server" controlname="plImportShipping" suffix=":" resourcekey="plImportShipping"></dnn:label>
</td>
<td>
<asp:FileUpload ID="FileUploadShip" runat="server" />
</td>
</tr>
</table>
<hr />
<table>
<tr>
<td>
<dnn:label id="plImportModel" runat="server" controlname="plImportModel" suffix=":" resourcekey="plImportModel"></dnn:label>
</td>
<td>
<asp:FileUpload ID="FileUploadModel" runat="server" />
</td>
</tr>
</table>

</div>
</asp:Panel>
<asp:Label ID="lblMsg" runat="server" Text="" Font-Bold="True"></asp:Label>
</td></tr>
</table>
Loading

0 comments on commit c32d48b

Please sign in to comment.