Share via


Business Desk Themes Sample

Location in SDK: SDK\Samples\BizDesk\Themes

The Microsoft Commerce Server 2002 Software Development Kit (SDK) includes a Business Desk Themes sample that allows users to change the Business Desk theme or color scheme. After making minor code changes to two of the ASP pages for the site, the themes are available for selection on the home page of Business Desk, in the Themes drop-down list.

Each Business Desk theme is based on two cascading style sheet (CSS) files, theme_bizdesk.css and theme_navtree.css, such as earth_bizdesk.css and earth_navtree.css for the theme with the Earth color scheme.

There are five themes included in the SDK. The following lists the name of the theme, a description of the color scheme, and a graphic of the theme used in Business Desk.

  • Earth, mixture of greens and browns

    The Business Desk Earth theme.

  • Grape, shades of purple

    The Business Desk Grape theme.

  • Ocean, shades of blues and greens

    The Business Desk Ocean theme.

  • Raspberry, shades of red

    The Business Desk Raspberry theme.

  • Steel, shades of grays and blues

    The Business Desk Steel theme.

Installing the Business Desk Theme Sample

Use the following procedure to install the Business Desk Themes sample.

Ee797554.note(en-US,CS.20).gifNotes

  • Before you can install the Business Desk Themes sample, Commerce Server Business Desk must be installed. Business Desk is installed automatically when a Solution Site is unpacked. Business Desk is not installed automatically when an SDK sitelet is unpacked.
  • Commerce Server Solution Sites are available at https://go.microsoft.com/fwlink/?linkid=6491.

To install the Business Desk Themes sample

  1. Click Start, point to Programs, point to Microsoft Commerce Server 2002, and then click Software Development Kit.

  2. Navigate to the Themes folder, for example <drive>:\Program Files\Microsoft Commerce Server 2002\SDK\Samples\BizDesk\Themes.

  3. Copy the two files associated with each theme you want to have available in Business Desk, for example, ocean_navtree.css and ocean_bizdesk.css.

  4. Navigate to the Bizdesk folder for the site, for example <drive>:\Inetpub\wwwroot\*<Sitename>*Bizdesk\Include\Styles, and then paste the files in the folder.

  5. Navigate to the welcome.asp file, located at <drive>:\Inetpub\wwwroot\<*SiteName>*bizdesk\welcome.asp. Open the file in a text editor such as Notepad or Microsoft Visual Studio.

  6. Add the new theme options to the drop-down list. After the following line of code on line 120, <option value='hicont_'><%= L_CSSHiContrast_MenuItem%></option>, add a new line of code for each new theme.

    For example:

    'Existing Code
    <option value='default_'><%= L_CSSDefault_MenuItem    %></option> 
    <option value='hicont_'><%= L_CSSHiContrast_MenuItem  %></option>
    'New Code
    <option value='ocean_'>Ocean</option>
    

    Note that to preserve the ability to easily localize the Business Desk code, you should add a new variable for the word "Ocean" to the file BizDeskStrings.asp in the Include folder below the existing definitions of the L_CSSDefault_MenuItem and L_CSSHiContrast_MenuItem variables, and reference the new variable in the file welcome.asp.

  7. On the File menu, click Save. (You can optionally close the file welcome.asp and the text editor at this point.)

  8. Open Business Desk for the site. Click Start, and then click Business Desk - <Sitename>.

  9. On the Business Desk home page, select the theme you want to use from the Theme drop-down list, and then click Apply.

Business Desk is displayed in the color scheme for the theme you selected.

Copyright © 2005 Microsoft Corporation.
All rights reserved.