Initial project's source code check-in.
This commit is contained in:
commit
b03b0b373f
4573 changed files with 981205 additions and 0 deletions
163
WebsitePanel/Resources/build-serveradmin-add.sql
Normal file
163
WebsitePanel/Resources/build-serveradmin-add.sql
Normal file
|
@ -0,0 +1,163 @@
|
|||
-- Start add serveradmin
|
||||
SET IDENTITY_INSERT [dbo].[Users] ON
|
||||
GO
|
||||
INSERT INTO [dbo].[Users]
|
||||
(UserID
|
||||
,[OwnerID]
|
||||
,[RoleID]
|
||||
,[StatusID]
|
||||
,[IsDemo]
|
||||
,[IsPeer]
|
||||
,[Username]
|
||||
,[Password]
|
||||
,[FirstName]
|
||||
,[LastName]
|
||||
,[Email]
|
||||
,[Created]
|
||||
,[Changed]
|
||||
,[Comments]
|
||||
,[SecondaryEmail]
|
||||
,[Address]
|
||||
,[City]
|
||||
,[State]
|
||||
,[Country]
|
||||
,[Zip]
|
||||
,[PrimaryPhone]
|
||||
,[SecondaryPhone]
|
||||
,[Fax]
|
||||
,[InstantMessenger]
|
||||
,[HtmlMail]
|
||||
,[EcommerceEnabled])
|
||||
VALUES
|
||||
(1,
|
||||
NULL,
|
||||
1,
|
||||
1,
|
||||
0,
|
||||
0
|
||||
,'serveradmin'
|
||||
,''
|
||||
,'Enterprise'
|
||||
,'Administrator'
|
||||
,'serveradmin@myhosting.com'
|
||||
,GETDATE()
|
||||
,GETDATE()
|
||||
,''
|
||||
,''
|
||||
,''
|
||||
,''
|
||||
,''
|
||||
,''
|
||||
,''
|
||||
,''
|
||||
,''
|
||||
,''
|
||||
,''
|
||||
,1
|
||||
,1)
|
||||
GO
|
||||
SET IDENTITY_INSERT [dbo].[Users] OFF
|
||||
GO
|
||||
|
||||
-- system package
|
||||
INSERT INTO [dbo].[Packages]
|
||||
([ParentPackageID]
|
||||
,[UserID]
|
||||
,[PackageName]
|
||||
,[PackageComments]
|
||||
,[ServerID]
|
||||
,[StatusID]
|
||||
,[PlanID]
|
||||
,[PurchaseDate]
|
||||
,[OverrideQuotas])
|
||||
VALUES
|
||||
(null
|
||||
,1
|
||||
,'System'
|
||||
,''
|
||||
,null
|
||||
,1
|
||||
,null
|
||||
,GETDATE()
|
||||
,0)
|
||||
GO
|
||||
|
||||
INSERT INTO [dbo].[PackagesTreeCache] (ParentPackageID, PackageID)
|
||||
VALUES (1,1)
|
||||
GO
|
||||
|
||||
-- scheduled tasks
|
||||
INSERT INTO [dbo].[Schedule]
|
||||
([TaskID]
|
||||
,[PackageID]
|
||||
,[ScheduleName]
|
||||
,[ScheduleTypeID]
|
||||
,[Interval]
|
||||
,[FromTime]
|
||||
,[ToTime]
|
||||
,[StartTime]
|
||||
,[LastRun]
|
||||
,[NextRun]
|
||||
,[Enabled]
|
||||
,[PriorityID]
|
||||
,[HistoriesNumber]
|
||||
,[MaxExecutionTime]
|
||||
,[WeekMonthDay])
|
||||
VALUES
|
||||
('SCHEDULE_TASK_CALCULATE_PACKAGES_DISKSPACE'
|
||||
,1
|
||||
,'Calculate Disk Space'
|
||||
,'Daily'
|
||||
,0
|
||||
,CONVERT(datetime, '1/1/2000 12:00:00 PM')
|
||||
,CONVERT(datetime, '1/1/2000 12:00:00 PM')
|
||||
,CONVERT(datetime, '1/1/2000 12:30:00 PM')
|
||||
,NULL
|
||||
,DATEADD(Hour, 2, GETDATE())
|
||||
,1
|
||||
,'Normal'
|
||||
,7
|
||||
,3600
|
||||
,1)
|
||||
GO
|
||||
INSERT INTO [dbo].[ScheduleParameters] (ScheduleID, ParameterID, ParameterValue)
|
||||
VALUES(1, 'SUSPEND_OVERUSED', 'false')
|
||||
GO
|
||||
|
||||
INSERT INTO [dbo].[Schedule]
|
||||
([TaskID]
|
||||
,[PackageID]
|
||||
,[ScheduleName]
|
||||
,[ScheduleTypeID]
|
||||
,[Interval]
|
||||
,[FromTime]
|
||||
,[ToTime]
|
||||
,[StartTime]
|
||||
,[LastRun]
|
||||
,[NextRun]
|
||||
,[Enabled]
|
||||
,[PriorityID]
|
||||
,[HistoriesNumber]
|
||||
,[MaxExecutionTime]
|
||||
,[WeekMonthDay])
|
||||
VALUES
|
||||
('SCHEDULE_TASK_CALCULATE_PACKAGES_BANDWIDTH'
|
||||
,1
|
||||
,'Calculate Bandwidth'
|
||||
,'Daily'
|
||||
,0
|
||||
,CONVERT(datetime, '1/1/2000 12:00:00 PM')
|
||||
,CONVERT(datetime, '1/1/2000 12:00:00 PM')
|
||||
,CONVERT(datetime, '1/1/2000 12:00:00 PM')
|
||||
,NULL
|
||||
,DATEADD(Hour, 2, GETDATE())
|
||||
,1
|
||||
,'Normal'
|
||||
,7
|
||||
,3600
|
||||
,1)
|
||||
GO
|
||||
INSERT INTO [dbo].[ScheduleParameters] (ScheduleID, ParameterID, ParameterValue)
|
||||
VALUES(2, 'SUSPEND_OVERUSED', 'false')
|
||||
GO
|
||||
-- End add serveradmin
|
1164
WebsitePanel/Resources/build-serveradmin-settings.xml
Normal file
1164
WebsitePanel/Resources/build-serveradmin-settings.xml
Normal file
File diff suppressed because it is too large
Load diff
545
WebsitePanel/Resources/build-store-default-settings.xml
Normal file
545
WebsitePanel/Resources/build-store-default-settings.xml
Normal file
|
@ -0,0 +1,545 @@
|
|||
<?xml version="1.0" encoding="utf-8"?><NewDataSet><xs:schema id="NewDataSet" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"><xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true"><xs:complexType><xs:choice minOccurs="0" maxOccurs="unbounded"><xs:element name="Table"><xs:complexType><xs:sequence><xs:element name="SettingsName" type="xs:string" minOccurs="0" /><xs:element name="PropertyName" type="xs:string" minOccurs="0" /><xs:element name="PropertyValue" type="xs:string" minOccurs="0" /></xs:sequence></xs:complexType></xs:element></xs:choice></xs:complexType></xs:element></xs:schema><Table><SettingsName>ActivateServicesTemplate</SettingsName><PropertyName>CC</PropertyName><PropertyValue>info@acmehosting.com</PropertyValue></Table><Table><SettingsName>ActivateServicesTemplate</SettingsName><PropertyName>From</PropertyName><PropertyValue>support@acmehosting.com</PropertyValue></Table><Table><SettingsName>ActivateServicesTemplate</SettingsName><PropertyName>HtmlBody</PropertyName><PropertyValue>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>Activated Service Summary Information</title>
|
||||
<style type="text/css">
|
||||
.Summary { background-color: ##ffffff; padding: 5px; }
|
||||
.Summary .Header { padding: 10px 0px 10px 10px; font-size: 16pt; background-color: ##E5F2FF; color: ##1F4978; border-bottom: solid 2px ##86B9F7; }
|
||||
.Summary A { color: ##0153A4; }
|
||||
.Summary { font-family: Tahoma; font-size: 9pt; }
|
||||
.Summary H1 { font-size: 1.7em; color: ##1F4978; border-bottom: dotted 3px ##efefef; }
|
||||
.Summary H2 { font-size: 1.2em; }
|
||||
.Summary TABLE { border: solid 1px ##e5e5e5; }
|
||||
.Summary TH,
|
||||
.Summary TD.Label { padding: 5px; font-size: 8pt; font-weight: bold; background-color: ##f5f5f5; }
|
||||
.Summary TD { padding: 8px; font-size: 9pt; }
|
||||
.Summary UL LI { font-size: 1.1em; font-weight: bold; }
|
||||
.Summary UL UL LI { font-size: 0.9em; font-weight: normal; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="Summary">
|
||||
|
||||
<a name="top"></a>
|
||||
|
||||
<div class="Header">
|
||||
Activated Service Information
|
||||
</div>
|
||||
|
||||
<p>Hello #customer["FirstName"]#,</p>
|
||||
|
||||
<p>"#service.ServiceName#" service has been activated under your user account
|
||||
and below is the summary information.</p>
|
||||
<a name="overview"></a>
|
||||
<h1>Service Overview</h1>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td class="Label">Service Name:</td>
|
||||
<td>#service.ServiceName#</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="Label">Created:</td>
|
||||
<td>#service.Created#</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="Label">Setup fee:</td>
|
||||
<td>#service.Currency#&nbsp;#format(service.SetupFee, "0.00")#</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="Label">Recurring fee:</td>
|
||||
<td>#service.Currency#&nbsp;#format(service.RecurringFee, "0.00")#</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p>
|
||||
If you have any questions regarding your hosting account, feel free to contact our sales department at any time.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
Best regards,<br />
|
||||
ACME Hosting Inc.<br />
|
||||
Web Site: <a href="http://www.acmehosting.com">www.acmehosting.com</a><br />
|
||||
E-Mail: <a href="mailto:support@acmehosting.com">support@acmehosting.com</a></p>
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html></PropertyValue></Table><Table><SettingsName>ActivateServicesTemplate</SettingsName><PropertyName>Subject</PropertyName><PropertyValue>Activate Service Notification</PropertyValue></Table><Table><SettingsName>ActivateServicesTemplate</SettingsName><PropertyName>TextBody</PropertyName><PropertyValue>
|
||||
================================
|
||||
Activated Service Information
|
||||
================================
|
||||
|
||||
Hello #Customer["FirstName"]#,
|
||||
|
||||
"#service.ServiceName#" service has been activated under your user account
|
||||
and below is the summary information.
|
||||
|
||||
Service Overview
|
||||
=============
|
||||
Service Name: #service.ServiceName#
|
||||
Created: #service.Created#
|
||||
Setup fee: #service.Currency# #format(service.SetupFee, "0.00")#
|
||||
Recurring fee: #service.Currency# #format(service.RecurringFee, "0.00")#
|
||||
|
||||
If you have any questions regarding your hosting account, feel free to contact our support department at any time.
|
||||
|
||||
Best regards,
|
||||
ACME Hosting Inc.
|
||||
Web Site: http://www.acmehosting.com
|
||||
E-Mail: support@acmehosting.com</PropertyValue></Table><Table><SettingsName>CancelServicesTemplate</SettingsName><PropertyName>CC</PropertyName><PropertyValue>sales@acmehosting.com</PropertyValue></Table><Table><SettingsName>CancelServicesTemplate</SettingsName><PropertyName>From</PropertyName><PropertyValue>support@acmehosting.com</PropertyValue></Table><Table><SettingsName>CancelServicesTemplate</SettingsName><PropertyName>HtmlBody</PropertyName><PropertyValue>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>Cancel Service Summary Information</title>
|
||||
<style type="text/css">
|
||||
.Summary { background-color: ##ffffff; padding: 5px; }
|
||||
.Summary .Header { padding: 10px 0px 10px 10px; font-size: 16pt; background-color: ##E5F2FF; color: ##1F4978; border-bottom: solid 2px ##86B9F7; }
|
||||
.Summary A { color: ##0153A4; }
|
||||
.Summary { font-family: Tahoma; font-size: 9pt; }
|
||||
.Summary H1 { font-size: 1.7em; color: ##1F4978; border-bottom: dotted 3px ##efefef; }
|
||||
.Summary H2 { font-size: 1.2em; }
|
||||
.Summary TABLE { border: solid 1px ##e5e5e5; }
|
||||
.Summary TH,
|
||||
.Summary TD.Label { padding: 5px; font-size: 8pt; font-weight: bold; background-color: ##f5f5f5; }
|
||||
.Summary TD { padding: 8px; font-size: 9pt; }
|
||||
.Summary UL LI { font-size: 1.1em; font-weight: bold; }
|
||||
.Summary UL UL LI { font-size: 0.9em; font-weight: normal; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="Summary">
|
||||
|
||||
<a name="top"></a>
|
||||
|
||||
<div class="Header">
|
||||
Cancelled Service Information
|
||||
</div>
|
||||
|
||||
<p>Hello #customer["FirstName"]#,</p>
|
||||
|
||||
<p>"#service.ServiceName#" service has been cancelled under your user account
|
||||
and below is the summary information.</p>
|
||||
<h1>Service Overview</h1>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td class="Label">Service Name:</td>
|
||||
<td>#service.ServiceName#</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="Label">Created:</td>
|
||||
<td>#service.Created#</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p>
|
||||
If you have any questions regarding your hosting account, feel free to contact our sales department at any time.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
Best regards,<br />
|
||||
ACME Hosting Inc.<br />
|
||||
Web Site: <a href="http://www.acmehosting.com">www.acmehosting.com</a><br />
|
||||
E-Mail: <a href="mailto:support@acmehosting.com">support@acmehosting.com</a></p>
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html></PropertyValue></Table><Table><SettingsName>CancelServicesTemplate</SettingsName><PropertyName>Subject</PropertyName><PropertyValue>Cancel Service Notificaton</PropertyValue></Table><Table><SettingsName>CancelServicesTemplate</SettingsName><PropertyName>TextBody</PropertyName><PropertyValue>
|
||||
================================
|
||||
Cancelled Service Information
|
||||
================================
|
||||
|
||||
Hello #Customer["FirstName"]#,
|
||||
|
||||
"#service.ServiceName#" service has been cancelled under your user account
|
||||
and below is the summary information.
|
||||
|
||||
Service Overview
|
||||
=============
|
||||
Service Name: #service.ServiceName#
|
||||
Created: #service.Created#
|
||||
|
||||
If you have any questions regarding your hosting account, feel free to contact our support department at any time.
|
||||
|
||||
Best regards,
|
||||
ACME Hosting Inc.
|
||||
Web Site: http://www.acmehosting.com
|
||||
E-Mail: support@acmehosting.com</PropertyValue></Table><Table><SettingsName>EmitInvoiceTemplate</SettingsName><PropertyName>CC</PropertyName><PropertyValue>info@acmehosting.com</PropertyValue></Table><Table><SettingsName>EmitInvoiceTemplate</SettingsName><PropertyName>From</PropertyName><PropertyValue>sales@acmehosting.com</PropertyValue></Table><Table><SettingsName>EmitInvoiceTemplate</SettingsName><PropertyName>HtmlBody</PropertyName><PropertyValue><style type="text/css">
|
||||
.Summary { background-color: ##ffffff; padding: 5px; }
|
||||
.Summary .Header { padding: 10px 0px 10px 10px; font-size: 16pt; background-color: ##E5F2FF; color: ##1F4978; border-bottom: solid 2px ##86B9F7; }
|
||||
.Summary A { color: ##0153A4; }
|
||||
.Summary { font-family: Tahoma; font-size: 9pt; }
|
||||
.Summary H1 { font-size: 1.7em; color: ##1F4978; border-bottom: dotted 3px ##efefef; }
|
||||
.Summary H2 { font-size: 1.2em; }
|
||||
.Summary TABLE { border: solid 1px ##e5e5e5; }
|
||||
.Summary TH,
|
||||
.Summary TD.Label { padding: 5px; font-size: 8pt; font-weight: bold; background-color: ##f5f5f5; }
|
||||
.Summary TD { padding: 8px; font-size: 9pt; }
|
||||
.Summary UL LI { font-size: 1.1em; font-weight: bold; }
|
||||
.Summary UL UL LI { font-size: 0.9em; font-weight: normal; }
|
||||
.Centered { text-align: center; }
|
||||
.AlignRight { text-align: right; }
|
||||
.Width12Percent { width: 12%; }
|
||||
</style>
|
||||
<div class="Summary">
|
||||
|
||||
<a name="top"></a>
|
||||
|
||||
<div class="Header">
|
||||
Invoice Summary Information
|
||||
</div>
|
||||
|
||||
<p>Hello #Customer["FirstName"]#,</p>
|
||||
|
||||
<p>We've created this invoice for services you ordered. You can find this invoice details under your user account
|
||||
and below is the summary information.</p>
|
||||
|
||||
<ad:if test="#isdefined("IsEmail") and isdefined("ExtraArgs")#">
|
||||
<ad:if test="#not(isnull(ExtraArgs["InvoiceDirectURL"]))#">
|
||||
<p>You may use the following link to pay for invoice later <a href="#ExtraArgs["InvoiceDirectURL"]#">#ExtraArgs["InvoiceDirectURL"]#</a>.</p>
|
||||
</ad:if>
|
||||
</ad:if>
|
||||
|
||||
<h1>Invoice Overview</h1>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="Label">Invoice ##:</td>
|
||||
<ad:if test="#isnull(Invoice.InvoiceNumber)#">
|
||||
<td>#Invoice.InvoiceId#</td>
|
||||
<ad:else>
|
||||
<td>#Invoice.InvoiceNumber#</td>
|
||||
</ad:if>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="Label">Terms:</td>
|
||||
<td>Due Upon Receipt</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="Label">Invoice Date:</td>
|
||||
<td>#Invoice.Created.ToShortDateString()#</td>
|
||||
</tr>
|
||||
</table>
|
||||
<h1>Invoice Items</h1>
|
||||
<table width="100%">
|
||||
<tr>
|
||||
<td class="Label">Description</td>
|
||||
<td class="Label Centered">Type</td>
|
||||
<td class="Label Centered">Qty</td>
|
||||
<td class="Label Centered">Unit Price</td>
|
||||
<td class="Label Centered">Total</td>
|
||||
</tr>
|
||||
<ad:foreach collection="#InvoiceLines#" var="Line" index="i">
|
||||
<tr>
|
||||
<td>#Line.ItemName#<ad:ShowBillingPeriod Item="#Line#" /></td>
|
||||
<td class="Centered Width12Percent">#Line.TypeName#</td>
|
||||
<td class="Centered Width12Percent">#Line.Quantity#</td>
|
||||
<td class="Centered Width12Percent">#Invoice.Currency#&nbsp;#Line.UnitPrice.ToString("C")#</td>
|
||||
<td class="Centered Width12Percent">#Invoice.Currency#&nbsp;#Line.Total.ToString("C")#</td>
|
||||
</tr>
|
||||
</ad:foreach>
|
||||
<tr>
|
||||
<td colspan="4" class="AlignRight">Sub Total&nbsp;</td>
|
||||
<td class="Centered">#Invoice.Currency#&nbsp;#Invoice.SubTotal.ToString("C")#</td>
|
||||
</tr>
|
||||
<ad:if test="#isnull(Tax)#">
|
||||
<tr>
|
||||
<td colspan="4" class="AlignRight">Taxes&nbsp;#format(0.00, "#.##")#%</td>
|
||||
<td class="Centered" nowrap="nowrap">#Invoice.Currency#&nbsp;#format(0.00, "C")#</td>
|
||||
</tr>
|
||||
<ad:elseif test="#equals(Tax.TypeId, 1)#">
|
||||
<tr>
|
||||
<td colspan="4" class="AlignRight">#Tax.Description#</td>
|
||||
<td class="Centered" nowrap="nowrap">#Invoice.Currency#&nbsp;#Tax.Amount.ToString("C")#</td>
|
||||
</tr>
|
||||
<ad:elseif test="#equals(Tax.TypeId, 2)#">
|
||||
<tr>
|
||||
<td colspan="4" class="AlignRight">#Tax.Description#&nbsp;#Tax.Amount.ToString("#.##")#%</td>
|
||||
<td class="Centered" nowrap="nowrap">#Invoice.Currency#&nbsp;#Invoice.TaxAmount.ToString("C")#</td>
|
||||
</tr>
|
||||
<ad:elseif test="#equals(Tax.TypeId, 3)#">
|
||||
<tr>
|
||||
<td colspan="4" class="AlignRight">#Tax.Description#&nbsp;#Tax.Amount.ToString("#.##")#%</td>
|
||||
<td class="Centered" nowrap="nowrap">#Invoice.Currency#&nbsp;#Invoice.TaxAmount.ToString("C")#</td>
|
||||
</tr>
|
||||
</ad:if>
|
||||
<tr>
|
||||
<td colspan="4" class="AlignRight">Total&nbsp;</td>
|
||||
<td class="Centered">#Invoice.Currency#&nbsp;#Invoice.Total.ToString("C")#</td>
|
||||
</tr>
|
||||
</table>
|
||||
<p>
|
||||
If you have any questions regarding your hosting account or this invoice, feel free to contact our sales department at any time.
|
||||
</p>
|
||||
|
||||
<p>Some notes regarding invoice or how to apply your enquiries...</p>
|
||||
|
||||
<p>
|
||||
Best regards,<br />
|
||||
ACME Hosting Inc.<br />
|
||||
Web Site: <a href="http://www.acmehosting.com">www.acmehosting.com</a><br />
|
||||
E-Mail: <a href="mailto:support@acmehosting.com">support@acmehosting.com</a></p>
|
||||
|
||||
</div>
|
||||
|
||||
<ad:template name="ShowBillingPeriod">
|
||||
<ad:if test="#InvoiceServices.ContainsKey(Item.ServiceId)#">
|
||||
<ad:set name="Service" value="#InvoiceServices[Item.ServiceId]#" />
|
||||
<ad:if test="#isnotempty(Service.BillingPeriod)#">&nbsp;(<b>#Service.PeriodLength#&nbsp;#Service.BillingPeriod#</b>)</ad:if>
|
||||
</ad:if>
|
||||
</ad:template></PropertyValue></Table><Table><SettingsName>EmitInvoiceTemplate</SettingsName><PropertyName>Subject</PropertyName><PropertyValue>Invoice Summary Information</PropertyValue></Table><Table><SettingsName>EmitInvoiceTemplate</SettingsName><PropertyName>TextBody</PropertyName><PropertyValue>================================
|
||||
Invoice Summary Information
|
||||
================================
|
||||
|
||||
Hello #Customer["FirstName"]#,
|
||||
|
||||
We've created this invoice for services you ordered. You can find this invoice details under your user account
|
||||
and below is the summary information.
|
||||
|
||||
<ad:if test="#isdefined("IsEmail") and isdefined("ExtraArgs")#">
|
||||
<ad:if test="#not(isnull(ExtraArgs["InvoiceDirectURL"]))#">
|
||||
You may copy and paste the following link to the browser in order to pay for invoice later #ExtraArgs["InvoiceDirectURL"]#.
|
||||
</ad:if>
|
||||
</ad:if>
|
||||
|
||||
Invoice Overview
|
||||
=============
|
||||
Invoice ##: <ad:if test="#isnull(Invoice.InvoiceNumber)#">#Invoice.InvoiceId#<ad:else>#Invoice.InvoiceNumber#</ad:if>
|
||||
Terms: Due Upon Receipt
|
||||
Invoice Date: #Invoice.Created.ToShortDateString()#
|
||||
Invoice SubTotal: #Invoice.Currency# #Invoice.SubTotal.ToString("C")#
|
||||
<ad:if test="#isnull(Tax)#">
|
||||
Taxes&nbsp;#format(0.00, "#.##")#%: #Invoice.Currency#&nbsp;#format(0.00, "C")#
|
||||
<ad:elseif test="#equals(Tax.TypeId, 1)#">
|
||||
#Tax.Description#: #Invoice.Currency#&nbsp;#Tax.Amount.ToString("C")#
|
||||
<ad:elseif test="#equals(Tax.TypeId, 2)#">
|
||||
#Tax.Description#&nbsp;#Tax.Amount.ToString("#.##")#%: #Invoice.Currency#&nbsp;#Invoice.TaxAmount.ToString("C")#
|
||||
<ad:elseif test="#equals(Tax.TypeId, 3)#">
|
||||
#Tax.Description#&nbsp;#Tax.Amount.ToString("#.##")#%: #Invoice.Currency#&nbsp;#Invoice.TaxAmount.ToString("C")#
|
||||
</ad:if>
|
||||
Invoice Total: #Invoice.Currency# #Invoice.Total.ToString("C")#
|
||||
|
||||
|
||||
Invoice Items
|
||||
=============
|
||||
<ad:foreach collection="#InvoiceLines#" var="Line" index="i">
|
||||
#Line.ItemName#<ad:ShowBillingPeriod Item="#Line#" />
|
||||
Type: #Line.TypeName#
|
||||
Quantity: #Line.Quantity#
|
||||
Unit Price: #Invoice.Currency#&nbsp;#Line.UnitPrice.ToString("C")#
|
||||
Total: #Invoice.Currency#&nbsp;#Line.Total.ToString("C")#
|
||||
</ad:foreach>
|
||||
|
||||
|
||||
If you have any questions regarding your hosting account, feel free to contact our sales department at any time.
|
||||
|
||||
Some notes regarding invoice or how to apply your enquiries...
|
||||
|
||||
|
||||
Best regards,
|
||||
ACME Hosting Inc.
|
||||
Web Site: http://www.acmehosting.com
|
||||
E-Mail: support@acmehosting.com
|
||||
|
||||
<ad:template name="ShowBillingPeriod">
|
||||
<ad:if test="#InvoiceServices.ContainsKey(Item.ServiceId)#">
|
||||
<ad:set name="Service" value="#InvoiceServices[Item.ServiceId]#" />
|
||||
<ad:if test="#isnotempty(Service.BillingPeriod)#"> (#Service.PeriodLength# #Service.BillingPeriod#)</ad:if>
|
||||
</ad:if>
|
||||
</ad:template></PropertyValue></Table><Table><SettingsName>PaymentReceivedTemplate</SettingsName><PropertyName>CC</PropertyName><PropertyValue>info@acmehosting.com</PropertyValue></Table><Table><SettingsName>PaymentReceivedTemplate</SettingsName><PropertyName>From</PropertyName><PropertyValue>sales@acmehosting.com</PropertyValue></Table><Table><SettingsName>PaymentReceivedTemplate</SettingsName><PropertyName>HtmlBody</PropertyName><PropertyValue><html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>Received Payment Summary Information</title>
|
||||
<style type="text/css">
|
||||
.Summary { background-color: ##ffffff; padding: 5px; }
|
||||
.Summary .Header { padding: 10px 0px 10px 10px; font-size: 16pt; background-color: ##E5F2FF; color: ##1F4978; border-bottom: solid 2px ##86B9F7; }
|
||||
.Summary A { color: ##0153A4; }
|
||||
.Summary { font-family: Tahoma; font-size: 9pt; }
|
||||
.Summary H1 { font-size: 1.7em; color: ##1F4978; border-bottom: dotted 3px ##efefef; }
|
||||
.Summary H2 { font-size: 1.2em; }
|
||||
.Summary TABLE { border: solid 1px ##e5e5e5; }
|
||||
.Summary TH,
|
||||
.Summary TD.Label { padding: 5px; font-size: 8pt; font-weight: bold; background-color: ##f5f5f5; }
|
||||
.Summary TD { padding: 8px; font-size: 9pt; }
|
||||
.Summary UL LI { font-size: 1.1em; font-weight: bold; }
|
||||
.Summary UL UL LI { font-size: 0.9em; font-weight: normal; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="Summary">
|
||||
<a name="top"></a>
|
||||
<div class="Header">
|
||||
Received Payment Information
|
||||
</div>
|
||||
<p>
|
||||
Hello #Customer["FirstName"]#,</p>
|
||||
<p>
|
||||
We've received your payment successfully. You can find this payment details under
|
||||
your user account and below is the summary information.</p>
|
||||
<h1>
|
||||
Payment Overview</h1>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="Label">
|
||||
Payment ##:
|
||||
</td>
|
||||
<td>
|
||||
#payment.paymentid#
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="Label">
|
||||
Invoice ##:
|
||||
</td>
|
||||
<td>
|
||||
#payment.invoiceid#
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="Label">
|
||||
Transaction ID ##:
|
||||
</td>
|
||||
<td>
|
||||
#payment.transactionid#
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="Label">
|
||||
Created:
|
||||
</td>
|
||||
<td>
|
||||
#payment.created#
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="Label">
|
||||
Payment Method:
|
||||
</td>
|
||||
<td>
|
||||
#payment.methodname#
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="Label">
|
||||
Payment Status:
|
||||
</td>
|
||||
<td>
|
||||
#payment.status.ToString()#
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="Label">
|
||||
Payment Total:
|
||||
</td>
|
||||
<td>
|
||||
#payment.currency# #format(payment.total, "C")#
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<p>
|
||||
If you have any questions regarding your hosting account, feel free to contact our
|
||||
sales department at any time.
|
||||
</p>
|
||||
<p>
|
||||
Best regards,<br />
|
||||
ACME Hosting Inc.<br />
|
||||
Web Site: <a href="http://www.acmehosting.com">www.acmehosting.com</a><br />
|
||||
E-Mail: <a href="mailto:support@acmehosting.com">support@acmehosting.com</a></p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
</PropertyValue></Table><Table><SettingsName>PaymentReceivedTemplate</SettingsName><PropertyName>Subject</PropertyName><PropertyValue>Payment Received Notification</PropertyValue></Table><Table><SettingsName>PaymentReceivedTemplate</SettingsName><PropertyName>TextBody</PropertyName><PropertyValue>================================ Received Payment Information ================================
|
||||
Hello #Customer["FirstName"]#,
|
||||
|
||||
We've received your payment successfully. You can find this payment details under your user account and below is the summary information.
|
||||
|
||||
Payment Overview
|
||||
=============
|
||||
Payment ##: #payment.paymentid#
|
||||
Invoice ##: #payment.invoiceid#
|
||||
Transaction ID ##: #payment.transactionid#
|
||||
Created: #payment.created#
|
||||
Payment Method: #payment.methodname#
|
||||
Payment Status: #payment.status.ToString()#
|
||||
Payment Total: #payment.currency# #format(payment.total, "C")#
|
||||
|
||||
If you have any questions regarding your hosting account, feel free to contact our sales department at any time.
|
||||
|
||||
Best regards,
|
||||
ACME Hosting Inc.
|
||||
Web Site: http://www.acmehosting.com
|
||||
E-Mail: support@acmehosting.com</PropertyValue></Table><Table><SettingsName>SignupSettings</SettingsName><PropertyName>NewbieStatus</PropertyName><PropertyValue>4</PropertyValue></Table><Table><SettingsName>SignupSettings</SettingsName><PropertyName>RegDomainMode</PropertyName><PropertyValue>OPT_DOM_AVAIL</PropertyValue></Table><Table><SettingsName>SignupSettings</SettingsName><PropertyName>SendRegistrationEmail</PropertyName><PropertyValue>true</PropertyValue></Table><Table><SettingsName>SuspendServicesTemplate</SettingsName><PropertyName>CC</PropertyName><PropertyValue>sales@acmehosting.com</PropertyValue></Table><Table><SettingsName>SuspendServicesTemplate</SettingsName><PropertyName>From</PropertyName><PropertyValue>support@acmehosting.com</PropertyValue></Table><Table><SettingsName>SuspendServicesTemplate</SettingsName><PropertyName>HtmlBody</PropertyName><PropertyValue>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>Suspend Service Summary Information</title>
|
||||
<style type="text/css">
|
||||
.Summary { background-color: ##ffffff; padding: 5px; }
|
||||
.Summary .Header { padding: 10px 0px 10px 10px; font-size: 16pt; background-color: ##E5F2FF; color: ##1F4978; border-bottom: solid 2px ##86B9F7; }
|
||||
.Summary A { color: ##0153A4; }
|
||||
.Summary { font-family: Tahoma; font-size: 9pt; }
|
||||
.Summary H1 { font-size: 1.7em; color: ##1F4978; border-bottom: dotted 3px ##efefef; }
|
||||
.Summary H2 { font-size: 1.2em; }
|
||||
.Summary TABLE { border: solid 1px ##e5e5e5; }
|
||||
.Summary TH,
|
||||
.Summary TD.Label { padding: 5px; font-size: 8pt; font-weight: bold; background-color: ##f5f5f5; }
|
||||
.Summary TD { padding: 8px; font-size: 9pt; }
|
||||
.Summary UL LI { font-size: 1.1em; font-weight: bold; }
|
||||
.Summary UL UL LI { font-size: 0.9em; font-weight: normal; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="Summary">
|
||||
|
||||
<a name="top"></a>
|
||||
|
||||
<div class="Header">
|
||||
Suspended Service Information
|
||||
</div>
|
||||
|
||||
<p>Hello #Customer["FirstName"]#,</p>
|
||||
|
||||
<p>"#service.ServiceName#" service has been suspended under your user account
|
||||
and below is the summary information.</p>
|
||||
<h1>Service Overview</h1>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td class="Label">Service Name:</td>
|
||||
<td>#service.ServiceName#</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="Label">Created:</td>
|
||||
<td>#service.Created#</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p>
|
||||
If you have any questions regarding your hosting account, feel free to contact our sales department at any time.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
Best regards,<br />
|
||||
ACME Hosting Inc.<br />
|
||||
Web Site: <a href="http://www.acmehosting.com">www.acmehosting.com</a><br />
|
||||
E-Mail: <a href="mailto:support@acmehosting.com">support@acmehosting.com</a></p>
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html></PropertyValue></Table><Table><SettingsName>SuspendServicesTemplate</SettingsName><PropertyName>Subject</PropertyName><PropertyValue>Suspend Service Notification</PropertyValue></Table><Table><SettingsName>SuspendServicesTemplate</SettingsName><PropertyName>TextBody</PropertyName><PropertyValue>
|
||||
================================
|
||||
Suspended Service Information
|
||||
================================
|
||||
|
||||
Hello #Customer["FirstName"]#,
|
||||
|
||||
"#service.ServiceName#" service has been suspended under your user account
|
||||
and below is the summary information.
|
||||
|
||||
Service Overview
|
||||
=============
|
||||
Service Name: #service.ServiceName#
|
||||
Created: #service.Created#
|
||||
|
||||
If you have any questions regarding your hosting account, feel free to contact our support department at any time.
|
||||
|
||||
Best regards,
|
||||
ACME Hosting Inc.
|
||||
Web Site: http://www.acmehosting.com
|
||||
E-Mail: support@acmehosting.com</PropertyValue></Table><Table><SettingsName>SystemSettings</SettingsName><PropertyName>BaseCurrency</PropertyName><PropertyValue>USD</PropertyValue></Table><Table><SettingsName>SystemSettings</SettingsName><PropertyName>InvoiceGracePeriod</PropertyName><PropertyValue>2</PropertyValue></Table><Table><SettingsName>SystemSettings</SettingsName><PropertyName>ServiceSuspendThreshold</PropertyName><PropertyValue>3</PropertyValue></Table><Table><SettingsName>SystemSettings</SettingsName><PropertyName>SvcCancelThreshold</PropertyName><PropertyValue>3</PropertyValue></Table><Table><SettingsName>SystemSettings</SettingsName><PropertyName>SvcInvoiceThreshold</PropertyName><PropertyValue>7</PropertyValue></Table></NewDataSet>
|
3
WebsitePanel/Resources/database_header.sql
Normal file
3
WebsitePanel/Resources/database_header.sql
Normal file
|
@ -0,0 +1,3 @@
|
|||
USE [${install.database}]
|
||||
GO
|
||||
|
109
WebsitePanel/Resources/script-websitepanel-database.build
Normal file
109
WebsitePanel/Resources/script-websitepanel-database.build
Normal file
|
@ -0,0 +1,109 @@
|
|||
<?xml version="1.0" ?>
|
||||
<project name="script" default="script">
|
||||
|
||||
<target name="script">
|
||||
|
||||
<!-- Generate SQL Scripts -->
|
||||
<scriptdatabase output="build-websitepanel-database.sql"
|
||||
server="TFS01"
|
||||
database="${database}">
|
||||
|
||||
<!-- Script defaults -->
|
||||
<!--objects type="Roles" all="true">
|
||||
<options>
|
||||
<option>SQLDMOScript_Drops</option>
|
||||
<option>SQLDMOScript_PrimaryObject</option>
|
||||
</options>
|
||||
</objects-->
|
||||
|
||||
<!-- Script data types -->
|
||||
<objects type="DataTypes" all="true">
|
||||
<options>
|
||||
<option>SQLDMOScript_PrimaryObject</option>
|
||||
<option>SQLDMOScript_OwnerQualify</option>
|
||||
</options>
|
||||
</objects>
|
||||
|
||||
<!-- Script tables -->
|
||||
<objects type="Tables" all="true">
|
||||
<options>
|
||||
<option>SQLDMOScript_Drops</option>
|
||||
<option>SQLDMOScript_PrimaryObject</option>
|
||||
<option>SQLDMOScript_DRI_Checks</option>
|
||||
<option>SQLDMOScript_DRI_Defaults</option>
|
||||
<option>SQLDMOScript_DRI_PrimaryKey</option>
|
||||
<option>SQLDMOScript_DRI_UniqueKeys</option>
|
||||
<option>SQLDMOScript_Permissions</option>
|
||||
<option>SQLDMOScript_Indexes</option>
|
||||
<option>SQLDMOScript_Triggers</option>
|
||||
<option>SQLDMOScript_OwnerQualify</option>
|
||||
<option>SQLDMOScript2_Default</option>
|
||||
<option>SQLDMOScript2_NoCollation</option>
|
||||
<option>SQLDMOScript2_NoFG</option>
|
||||
</options>
|
||||
</objects>
|
||||
|
||||
<!-- Script functions -->
|
||||
<objects type="Functions" all="true">
|
||||
<options>
|
||||
<option>SQLDMOScript_Drops</option>
|
||||
<option>SQLDMOScript_PrimaryObject</option>
|
||||
<option>SQLDMOScript_OwnerQualify</option>
|
||||
</options>
|
||||
</objects>
|
||||
|
||||
<!-- Script views -->
|
||||
<objects type="Views" all="true">
|
||||
<options>
|
||||
<option>SQLDMOScript_Drops</option>
|
||||
<option>SQLDMOScript_PrimaryObject</option>
|
||||
<option>SQLDMOScript_Indexes</option>
|
||||
<option>SQLDMOScript_Permissions</option>
|
||||
<option>SQLDMOScript_OwnerQualify</option>
|
||||
</options>
|
||||
</objects>
|
||||
|
||||
<!-- Script stored procedures -->
|
||||
<objects type="StoredProcedures" all="true">
|
||||
<options>
|
||||
<option>SQLDMOScript_Drops</option>
|
||||
<option>SQLDMOScript_PrimaryObject</option>
|
||||
<option>SQLDMOScript_Permissions</option>
|
||||
<option>SQLDMOScript_OwnerQualify</option>
|
||||
</options>
|
||||
</objects>
|
||||
|
||||
<!-- Script rules -->
|
||||
<objects type="Rules" all="true">
|
||||
<options>
|
||||
<option>SQLDMOScript_Drops</option>
|
||||
<option>SQLDMOScript_PrimaryObject</option>
|
||||
<option>SQLDMOScript_OwnerQualify</option>
|
||||
</options>
|
||||
</objects>
|
||||
|
||||
<!-- Script defaults -->
|
||||
<objects type="Defaults" all="true">
|
||||
<options>
|
||||
<option>SQLDMOScript_Drops</option>
|
||||
<option>SQLDMOScript_PrimaryObject</option>
|
||||
<option>SQLDMOScript_OwnerQualify</option>
|
||||
</options>
|
||||
</objects>
|
||||
|
||||
<!-- Script data -->
|
||||
<data all="false" names="AuditLogSources,AuditLogTasks,Providers,Quotas,ResourceGroupDnsRecords,ResourceGroups,ScheduleTaskParameters,ScheduleTasks,ServiceDefaultProperties,ServiceItemTypes,SystemSettings,ecProductType,ecSupportedPlugins,ScheduleTaskViewConfiguration" />
|
||||
|
||||
<!-- Script foreign keys -->
|
||||
<objects type="Tables" all="true">
|
||||
<options>
|
||||
<option>SQLDMOScript_DRI_ForeignKeys</option>
|
||||
<option>SQLDMOScript_OwnerQualify</option>
|
||||
<option>SQLDMOScript2_NoCollation</option>
|
||||
</options>
|
||||
</objects>
|
||||
|
||||
</scriptdatabase>
|
||||
</target>
|
||||
|
||||
</project>
|
17
WebsitePanel/Resources/script-websitepanel-versions.build
Normal file
17
WebsitePanel/Resources/script-websitepanel-versions.build
Normal file
|
@ -0,0 +1,17 @@
|
|||
<?xml version="1.0" ?>
|
||||
<project name="script" default="script">
|
||||
|
||||
<target name="script">
|
||||
|
||||
<!-- Generate SQL Scripts -->
|
||||
<scriptdatabase output="build-websitepanel-versions.sql"
|
||||
server="TFS01"
|
||||
database="${database}">
|
||||
|
||||
<!-- Script data -->
|
||||
<data all="false" names="Versions" />
|
||||
|
||||
</scriptdatabase>
|
||||
</target>
|
||||
|
||||
</project>
|
11
WebsitePanel/Resources/update_db_template.sql
Normal file
11
WebsitePanel/Resources/update_db_template.sql
Normal file
|
@ -0,0 +1,11 @@
|
|||
USE [${install.database}]
|
||||
GO
|
||||
|
||||
-- update database version
|
||||
declare @build_version nvarchar(10), @build_date datetime
|
||||
set @build_version = '1.0.0.0'
|
||||
set @build_date = '01/01/2010'
|
||||
IF NOT EXISTS (SELECT * FROM dbo.Versions WHERE DatabaseVersion = @build_version)
|
||||
INSERT INTO [Versions] ([DatabaseVersion], [BuildDate]) VALUES (@build_version, @build_date)
|
||||
GO
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue