Configure your Website

Previous Topic: Configure IIS

There are two ways to configure the settings for the page your customers will use to access ServiceCEO:

  1. Global.asa. Open the \WebAccess\global.asa file with a text editor (i.e., Notepad) and follow the instructions found there to brand your site. More details are located in the Editing global.asa section below.
  2. Style.css. Open \WebAccess\INC\style.css with a text editor (i.e., Notepad) and follow the instructions found the instructions in the \WebAccess\INC\global.asa file. More details are located in the Editing style.css section below.

Before you configure any of the global.asa or style.css settings, you must first stop the default web site:

  1. Select Start > Programs > Administrative Tools > Internet Information Services. The Internet Information Services dialog box appears.
    Note that this path may vary based on your operating system. If the prior instructions are not accurate for your computer, please consult your operating system's documentation on how to access the IIS IIS (Internet Information Server) is IIS is Microsoft's business-class Web server. Although Apache boasts more total worldwide installations than IIS, many corporations choose IIS as their Web server because it is supported by a commercial organization. Some have criticized IIS in the past, though, for its alleged security weaknesses. IIS has improved over the years, supports many Web standards including SSL, and integrates well with other Microsoft Web technologies such as FrontPage. An administrator can manage IIS through a graphical console, the Internet Services Manager. management console. The Administrative Tools section can normally be found in the Control Panel.
  1. Expand the folders until you find the Default Web Site icon. You should find it in the Internet Information Services/(name of the web-server)/Web Sites/ directory.

  1. Right-click on the Default Web Site icon and select Stop from the pop-up menu.

When you have completed editing the global.asa and/or style.css files, start the default website:

  1. Open the IIS management module.

  2. Right-click on the Default Web Site and select Start from the pop-up menu.

  3. Close the IIS management console.

Editing global.asa

The global.asa files contains many of the global parameters used to generate the customer web access site. There are three main actions you will perform in this file:

Defining your Company Information

Three settings must be set before any customers can login to the Customer Web Access site:

To define these settings and more:

  1. Right-click on Default Web Site and select Stop from the pop-up menu.

  2. Open global.asa using Notepad. Note that global.asa is located in C:\Inetpub\wwwroot\WebAccess.

  1. Scroll down to the Database Configuration Options section:

 

'Preferred output formats

Session("DateFormat") = "mm/dd/yyyy" ' or "dd/mm/yyyy"
Session("TimeFormat") = "12" ' or "24"

' iCancelEmail ' determines where notification e-mails will be sent on key events (cancellations/feedback)

Session("iCancelEmail") = 1

' sEmailFrom ' e-mail address from which messages generated above will appear to have been sent

Session("sEmailFrom") = "webserver@yourcompany.com"

  1. By default, dates are displayed in a mm/dd/yyyy format. For example, July 4th, 2005 is displayed as 07/04/2005. If you want to display dates in the dd/mm/yyyy format, replace the Session("DateFormat") = "mm/dd/yyyy" ' or "dd/mm/yyyy" with Session("DateFormat") = "dd/mm/yyyy".

  2. By default, time is displayed in a 12 hour format (i.e., using AM and PM times). To use the 24-hour format, replace the Session("TimeFormat") = "12" ' or "24" line with Session("TimeFormat") = "24".

  3. You can choose to have an e-mail sent every time a customer enters a note to a future job or feedback about a past job. To do so, type the appropriate option in the Session("iCancelEmail") = 1 line. Your options are:

  4. You can define the e-mail address that will appear as the From address for all of these notification e-mails by replacing webserver@yourcompany.com with a new e-mail address in the Session("sEmailFrom") = "webserver@yourcompany.com" line.

  5. Scroll down to the Graphical Configuration Options section:

 

Variable                           Description            
--------------------------------------------------------------------
Company                         The company name to be used for the page titles
e-mail_contact                  The e-mail that you would like people to contact you through (through a mailto: link)
your_web                         Your website URL

Session("company")          = "Your Company"
Session("e-mail_contact")  = "you@yourcompany.com"
Session("your_web")          = "http://www.yourwebsite.com"

  1. Type the name of your company into the Session("company") line, replacing Your Company. For example, if you worked for Insight Direct, the line would read:
    Session("company")         = "Insight Direct"

  2. Type your company name in the Session("e-mail_contact") line, replacing you@yourcompany.com. For example, if you wanted customers to send their e-mails to info@insightdirect.com, the line would read:
    Session("e-mail_contact")  = "info@insightdirect.com"

  3. Type the URL for the customer web access site into the Session("your_web") line. For example, if your URL was http://www.insightdirect.com, the line would read:
    Session("your_web")         = "http://www.insightdirect.com"

Note!

Note:
You will need to purchase a domain name (usually through an ISP), register the domain name, and the point it to your webserver. The URL that is provided to you from whomever you purchase your domain name will be what you type into the Session("your_web") line.

Caution!

Caution:
Be sure to leave the quotes around all of the changed values. If you do not have quotes around the values, an error will result.

  1. Save the global.asa file in the same location as before (C:\Inetpub\wwwroot\WebAccess).

  2. When prompted, overwrite the existing file.

Top of Section

Enabling your Customers to View Their Documents

To give customers the ability to view any documents that may be attached to their record:

  1. Open global.asa using Notepad. Note that global.asa is located in C:\Inetpub\wwwroot\WebAccess.

  2. Scroll down to the following snippet of code:

 

--------------------------------------------------------------------
View customer's list of documents
Set it to:               1 - to show the "view documents" button
                           0 - not to show the "view documents" button
--------------------------------------------------------------------
Session("show_docs")         = 0

  1. Change Session("show_docs") = 0 to Session("show_docs") = 1.

  2. Save the global.asa file in the same location as before (C:\Inetpub\wwwroot\WebAccess).

  3. When prompted, overwrite the existing file.

Top of Section

Enabling your Customers to View Their On-Site Equipment

To give customers the ability to access a list of their on-site equipment via the web interface:

  1. Open global.asa using Notepad. Note that global.asa is located in C:\Inetpub\wwwroot\WebAccess.
Note!

Note:
To open the file in notepad, right-click the global.asa file and select Open With.... An Open With dialog box appears. Select Notepad from the file list and click OK. Alternatively, to open Notepad itself, select Start > Programs > Accessories > Notepad.

  1. Scroll down to the following snippet of code:
 

--------------------------------------------------------------------
View customer's list of equipment
Set it to:               1 - to show the "view equipment history" button
                           0 - not to show the "view equipment history" button
--------------------------------------------------------------------
Session("show_equip")         = 0

  1. Change Session("show_equip") = 0 to Session("show_equip") = 1.

  2. Save the global.asa file in the same location as before (C:\Inetpub\wwwroot\WebAccess).

  3. When prompted, overwrite the existing file.

Top of Section

Customize Currency Symbol

To change the currency symbol that's used in the customer web access pages:

  1. Open global.asa using Notepad. Note that global.asa is located in C:\Inetpub\wwwroot\WebAccess.

  2. Scroll down to the following snippet of code:

 

---------------------------------------------------------------------
' Change currency symbol
' Set it to: 2057 - for UK Formatting
'              1033 - for US Formatting
' more formatting codes: http://www.w3schools.com/vbscript/func_setlocale.asp
' -------------------------------------------------------------------
Session("format_currency") = 1036
---------------------------------------------------------------------

  1. To change the currency symbol from the U.S. Dollar sign ($), change 1036 in the Session("format_currency") = 1036 line to the country code you want to use. For example, to use the UK Pound symbol (£), replace 1036 with 2057. For a complete list of country codes, point your browser to http://www.w3schools.com/vbscript/func_setlocale.asp

Caution!

Caution:
Some country codes may not work with ServiceCEO's Customer Web Access. For example, many of the languages that use pictographs (Chinese, Japanese, Korean, etc.) may not work. Be sure that the currency symbol appears correctly before sending your customers to the website.

  1. Save the global.asa file in the same location as before (C:\Inetpub\wwwroot\WebAccess).

  2. When prompted, overwrite the existing file.

Top of Section
Top of Page

Editing style.css

You can change the color settings of your site by changing the following settings in the style.css file:

Variable

Description

.login_border_color

Color of the login / logout border / login and logout box top color

.box_bg_color

Color for the login / logout box background

.table_colorl

Color for the tables in the my account screen

.menu_bg_color

Color for the menu at the top of each page

.footer_bg_color

Color for the footer of each page

,app_border_color

Color of the border around each page

.menu_opt_color

Color for the menu links at the top of each page

.table_width

Set the width for the table on each page. This can be set as a percentage or a pixel amount

.info_table1

Color for alternating rows of information

.info_table2

Color for alternating rows of information

Note that more complex branding and customization may be made by editing the ASP files directly, but great care should be taken not to interfere with any scripting which accesses the data source. Complete, thorough documentation of your settings will speed the process of assimilating your changes into any updated ASP pages shipping with future versions of the ServiceCEO Customer Web Access feature.

Top of Page

Next Topic: Test the Connection

Back to Customer Web Access Table of Contents

Did you find this topic useful? Yes
No
I don't know
Why?