Subversion Repositories DevTools

Rev

Rev 3947 | Blame | Compare with Previous | Last modification | View Log | RSS feed

/*
 ***** HELP TIPS ****
 */
// stdTip: width, Title, Body
function stdTip( w,t,b) {
    return newTip(10,0,w,10,t,b);
}
// newTip( x,y,width,height, title, body)
function newTip(x,y,w,h,t,b) {
    var tip = new Array(x,y,w,h,10);
    tip[4] = '<img src="images/i_help.gif" width="12" height="12" hspace="2" align="absmiddle">' +
    t + '<hr size="1" noshade>' + b;
    return tip;
} 
 

var formTips = new TipObj('formTips');
with (formTips)
{
 tips.domain_user          = newTip(10, 0, 150, 10, 'DOMAIN&nbsp;USER','Authenticates the username against a Domain. This means that you can use your workstation login.');
 tips.ad_action       = stdTip(200, 'ACTION', 'The internal name of the access control element.' );
 tips.ad_description  = stdTip(200, 'DESCRIPTION', 'A description of the access control element.' );
 tips.ad_access       = stdTip(200, 'Project Independent Permissions', 'These are the basic permissions before project specific control elements have been applied.' );
 tips.ad_data         = stdTip(200, 'Project Specific Permissions', 'These are the permissions after project-specfic control elements have been applied.' );
 tips.ad_active       = stdTip(200, 'ACTIVE', 'The associated action should be available.<br>Controls do not need to visible for an action to be available.' );
 tips.ad_visible      = stdTip(200, 'VISIBLE', 'The associated action may have a control button that is shown to the user.<br>If the action is not active then the action should not be available to the user.' );
                                                
 // TIP TEMPLATE
 template = '<table bgcolor="#000000" cellpadding="1" cellspacing="0" width="%2%" border="0">' +
  '<tr><td><table bgcolor="#FFFFCC" cellpadding="2" cellspacing="0" width="100%" border="0">' +
  '<tr><td height="%3%" class="tipClass">%4%</td></tr></table></td></tr></table>';
}