Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Settings for Globals.csp

Status
Not open for further replies.

fischerp

IS-IT--Management
May 27, 2002
4
AU
Hi,
Has anyone had much luck changing the preferenses on EPortfolio by modifying Gobals.csp

The only thing I can change is which report viewer to use. I need to find out what the switches are that changes the other values in gobals.csp.

Thanks
 
I have been able to make a few changes and added a couple of global variables here to use in the other pages. Here is the code.
<!--
File Version Start - Do not remove this if you are modifying the file
Build: 8.5.2
File Version End
-->

<%
// globals.csp
//
// This file contains global functions and constants that are used in a number of different
// files.
//

// returns a string for writing out the event handlers for a menu button
function GenerateButtonEvents(name, style)
{
return &quot; onmouseover='javascript:linkOver(\&quot;&quot;+name+&quot;\&quot;,\&quot;&quot;+style+&quot;\&quot;);return true' onmouseout='javascript:linkNormal(\&quot;&quot;+name+&quot;\&quot;,\&quot;&quot;+style+&quot;\&quot;);' onmousedown='javascript:linkDown(\&quot;&quot;+name+&quot;\&quot;,\&quot;&quot;+style+&quot;\&quot;);return true'&quot;;
}

// returns the stylesheet name based on the value stored in the preference cookie
function GetStyleSheetName(csn)
{
var ret;
var csn = Number(GetSubCookie(&quot;ePortfolio_prefs&quot;, &quot;csn&quot;));
switch(csn)
{
case 0: ret = &quot;default&quot;; break;
case 1: ret = &quot;red&quot;; break;
case 2: ret = &quot;green&quot;; break;
case 3: ret = &quot;purple&quot;; break;
case 4: ret = &quot;gold&quot;; break;
default: ret = &quot;default&quot;; break;
}

return ret;
}

// Constants
var MENU_BUTTONS_AND_TEXT = 0;
var MENU_BUTTONS_ONLY = 1;
var MENU_TEXT_ONLY = 2;

// Default settings
var DEF_VIEW = 0; // initial folder 0-Top level folder , -1(default)favorites
var DEF_CSN = 0; // style sheet
var DEF_VWM = 0; // report view mode (single browser vs. multiple browser)
var DEF_DV = 1; // data view (details to show, e.g., thumbnail, author, etc.)
var DEF_CBR = 0; // top level category bar
var DEF_VWR = 3; // viewer 0-actX 2-DHTML 3-Java
var DEF_LIST = 1; // report listing type (detailed vs. list)
var DEF_RPP = 39; // number of reports per page
var DEF_MENU = MENU_BUTTONS_AND_TEXT; // menu style
var DEF_ZONE = 0; // time zone
// CJ LaRue
var Exit_Page = &quot; // return here on exit
%>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top