About Sub_menu.asp

Sub_menu.asp displays the main CML menu. It first defines two subroutines, Blue and Orange. The Blue subroutine helps display the menu choices on the CML's pages by placing a blue dot next to each choice, or a white arrow inside a blue dot if that menu choice is the current page. The Orange subroutine works similarly, but for administrator's choices.

Sub_menu.asp displays the CML's menu choices in tables. It first creates a large table that uses a style defined in theme.css, the cascading style sheet for CML. This table uses the style TABLE.watermark, which displays a large faded ampersand as a background image:

<TABLE border=0 class="watermark" height=250 width=250 CELLSPACING=0 CELLPADDING=0>

Two nested tables are now displayed, the first of which gives menu choices to library users:

<table class="small" BORDER="0" CELLSPACING="0" CELLPADDING="0">
<tr> <TD><IMG src='images/bluearrow.gif'WIDTH=21 HEIGHT=21 id=mI><TD nowrap class=menu><a class=menu href='default.asp' id=mIa>Library Home Page</a> </tr>
<tr> <TD><IMG src='images/bluedot.gif'WIDTH=21 HEIGHT=21 id=mI><TD nowrap class=menu><a class=menu href='librarysearch/Library.asp' id=mIa>Search for Library Materials</a> </tr>
    <tr> <TD><IMG src='images/bluedot.gif'WIDTH=21 HEIGHT=21 id=mI><TD nowrap class=menu><a class=menu href='ViewMYRequests.asp' id=mIa>View Current Requests</a> </tr>
</table>

The second table, displayed under the heading "Administration," gives library administrators one choice, a page of administration menu choices:

<TABLE class=small BORDER=0 CELLSPACING=2 CELLPADDING=2>
    <tr> <TD><IMG src='images/orangedot.gif'WIDTH=21 HEIGHT=21 id=mI><TD nowrap class=menu><a class=menu href='admin/Menu.asp' id=mIa>Log On</a> </tr>
</TABLE>

These menu choices are links that invoke the following .asp files:

Note  Complete code for the CML project can be found under the Code Listings and Object Reference node in the BackOfficeŽ Developer's Guide. It contains these three sections: CML ASP Source Files, CML Visual Basic Source Files, CML SQL Scripts, and CML Object Reference.

For ordinary users, the first step in running the CML application is to see what Fitch & Mather's corporate library contains. This they can do by clicking the Search for Library Materials option; for more information, see Using the UserInfo Component.