C:\export\olenmr\client\client.htm Functions

7/24/2003 8:19:38 AM

Full Project List

team.js Functions

function initTeamInfo()
function newTeamInfo(what,teamparent,idolink)
function sTI(what,teamparent,splayers,spositions,sreserved,srestrictexper)
function team_addNewItems()
function team_addTeam(what,teamparent)
function team_addTeamAdmin(what,who)
function team_addTeamExptRestriction(thisteam,sexp,swhat)
function team_addTeamGuest(what,who)
function team_addTeamMember(what,who,sprivs)
function team_addTeamPlayer(what,who)
function team_addTeamPlayers(what,A)
function team_addTeamSuper(what,who)
function team_allowAdmin()
function team_allowAnalysis()
function team_allowExpedite()
function team_allowExperiment()
function team_allowHelp()
function team_allowJobSwitch()
function team_allowMonitor()
function team_allowShowLog()
function team_allowSuper()
function team_allowSwitchTeams()
function team_applyTeamChanges(scallingfunc)
function team_deleteUnCheckedItems()
function team_findPositions(thisteam)
function team_getCheckedTeamsAndMembers()
function team_getNewTeamPositions()
function team_getNewTeamText()
function team_getSubTeams(what)
function team_getTeamList(idotop)
function team_getTeamMembers(what)
function team_invokeApplyTeamChanges()
function team_invokeApplyTeamChanges_error()
function team_invokeApplyTeamChanges_noerror()
function team_invokeCheckAllMembers()
function team_invokeCheckAllTeams()
function team_invokeHideMembers()
function team_invokeModifyFiles()
function team_invokeModifyTeamDone(isdone)
function team_invokeModifyTeamDone_error()
function team_invokeModifyTeamDone_noerror()
function team_invokeModifyTeamStructure(ihideusers,icheckteams,icheckmembers,icheckpositions)
function team_invokeShowMembers()
function team_invokeCheck()
function team_invokeViewTeamStructure()
function team_invokeUncheckAllMembers()
function team_invokeUncheckAllTeams()
function team_isAdmin(thisuser,thisteam)
function team_isAuthorized(thisuser,thisteam,spriv)
function team_isGuest(thisuser,thisteam)
function team_isMemberValid(thisuser,thisteam)
function team_isSuper(thisuser,thisteam)
function team_isInfoChanged()
function team_isValid(thisteam)
function team_modifyPositions()
function team_privsOf(spriv)
function team_remove(what)
function team_removeMember(what,who)
function team_removeMembers(what)
function team_removeUser(who)
function team_setEnabled(what,TF)
function team_setDefaults()
function team_showJustThisTeam(thisteam)
function team_showMyTeam(ihideusers)
function team_showFunctions()
function team_shows(what,level,ishowall,isform,ihideusers,icheckteams,icheckmembers,icheckpositions)
function team_showTheTeams()

   

file team.js  

view function initTeamInfo()
Initializes the array where all of the team information is put

function return:

NONE

called by:

calls:

newTeamInfo

   

file team.js  

view function newTeamInfo(what,teamparent,idolink)
Puts all teams, userprivilages, sample positions and experiment restrictions into an array

parameters:

string

what

string

teamparent

integer

idolink

function action:

Put information into arrays

function return:

NONE

called by:

initTeamInfo

team_addTeam

team_remove

team_removeMembers

calls:

   

file team.js  

view function sTI(what,teamparent,splayers,spositions,sreserved,srestrictexper)
Set team info is a string that the server sends to the user computer that shows information for the team that is contained in a string

parameters:

string

what

string

teamparent

string

splayers

string

spositions

string

sreserved

string

srestrictexper

function action:

information sent from an server in a string, team, team parent, who is in the team, sample position, experiments they are authorized to do and experiments they are restricted from doing

function return:

NONE

called by:

calls:

createArrayFromList

sSI

team_addTeam

team_addTeamExptRestriction

team_addTeamMember

   

file team.js  

view function team_addNewItems()

function return:

if(A.length==0)return ""; return sout;

called by:

team_applyTeamChanges

calls:

team_allowSuper

team_getNewTeamText

team_isValid

team_privsOf

   

file team.js  

view function team_addTeam(what,teamparent)

parameters:

string

what

string

teamparent

function return:

NONE

called by:

sTI

calls:

newTeamInfo

   

file team.js  

view function team_addTeamAdmin(what,who)

parameters:

string

what

string

who

function return:

return team_addTeamMember(what,who,"rwa");

called by:

calls:

team_addTeamMember

   

file team.js  

view function team_addTeamExptRestriction(thisteam,sexp,swhat)

parameters:

string

thisteam

string

sexp

string

swhat

function return:

NONE

called by:

sTI

calls:

   

file team.js  

view function team_addTeamGuest(what,who)

parameters:

string

what

string

who

function return:

return team_addTeamMember(what,who,"r");

called by:

calls:

team_addTeamMember

   

file team.js  

view function team_addTeamMember(what,who,sprivs)

parameters:

string

what

string

who

string

sprivs

function return:

if(!team_isValid(what))return false; return true;

called by:

sTI

team_addTeamAdmin

team_addTeamGuest

team_addTeamPlayer

team_addTeamPlayers

team_addTeamSuper

calls:

team_isValid

   

file team.js  

view function team_addTeamPlayer(what,who)

parameters:

string

what

string

who

function return:

return team_addTeamMember(what,who,"rw");

called by:

calls:

team_addTeamMember

   

file team.js  

view function team_addTeamPlayers(what,A)

parameters:

string

what

array

A

function return:

if(!team_isValid(what))return false; if(!team_addTeamMember(what,A[i],"rw"))return false; return true;

called by:

calls:

team_addTeamMember

team_isValid

   

file team.js  

view function team_addTeamSuper(what,who)

parameters:

string

what

string

who

function return:

return team_addTeamMember(what,who,"rws");

called by:

calls:

team_addTeamMember

   

file team.js  

view function team_allowAdmin()

function return:

return team_isAdmin(username,teamname);

called by:

team_allowJobSwitch

team_allowShowLog

team_invokeModifyTeamStructure

team_invokeViewTeamStructure

menu_showIcons

calls:

team_isAdmin

   

file team.js  

view function team_allowAnalysis()

function return:

return team_isAuthorized(username,teamname,"r");

called by:

menu_showIcons

calls:

team_isAuthorized

   

file team.js  

view function team_allowExpedite()

function return:

return team_isAuthorized(username,teamname,"s");

called by:

calls:

team_isAuthorized

   

file team.js  

view function team_allowExperiment()

function return:

return team_isAuthorized(username,teamname,"w");

called by:

menu_showIcons

calls:

team_isAuthorized

   

file team.js  

view function team_allowHelp()

function return:

return true;

called by:

menu_showIcons

calls:

   

file team.js  

view function team_allowJobSwitch()

function return:

return team_allowAdmin();

called by:

calls:

team_allowAdmin

   

file team.js  

view function team_allowMonitor()

function return:

return true;

called by:

menu_showIcons

calls:

   

file team.js  

view function team_allowShowLog()

function return:

return team_allowAdmin();

called by:

menu_showIcons

calls:

team_allowAdmin

   

file team.js  

view function team_allowSuper()

function return:

return team_isSuper(username,teamname);

called by:

admin_header

team_addNewItems

team_invokeModifyFiles

team_shows

calls:

team_isSuper

   

file team.js  

view function team_allowSwitchTeams()

function return:

return (teamlist.indexOf("|")>=0);

called by:

login_invokeSetTeamName

login_writeHTMLTeam

menu_showIcons

calls:

   

file team.js  

view function team_applyTeamChanges(scallingfunc)

parameters:

string

scallingfunc

function return:

NONE

called by:

team_invokeApplyTeamChanges

team_invokeModifyTeamDone

calls:

client_modifyTeams

team_addNewItems

team_deleteUnCheckedItems

team_modifyPositions

   

file team.js  

view function team_deleteUnCheckedItems()

function return:

if(A.length==0)return ""; return sout;

called by:

team_applyTeamChanges

calls:

team_getCheckedTeamsAndMembers

team_isMemberValid

team_isValid

   

file team.js  

view function team_findPositions(thisteam)

parameters:

string

thisteam

function return:

if(!TeamInfo[n])return ""; return TeamInfo[n].positions;

called by:

sample_getList

calls:

   

file team.js  

view function team_getCheckedTeamsAndMembers()

function return:

return getCheckedValues("info","chk",false);

called by:

team_deleteUnCheckedItems

team_isInfoChanged

calls:

getCheckedValues

   

file team.js  

view function team_getNewTeamPositions()

function return:

return B;

called by:

team_isInfoChanged

team_modifyPositions

calls:

getTextValues

team_isValid

   

file team.js  

view function team_getNewTeamText()

function return:

return getTextValues("info","txt",false,false);

called by:

team_addNewItems

team_isInfoChanged

calls:

getTextValues

   

file team.js  

view function team_getSubTeams(what)

parameters:

string

what

function return:

if(!team_isValid(what))return A; return A;

called by:

calls:

team_isValid

   

file team.js  

view function team_getTeamList(idotop)

parameters:

integer

idotop

function return:

return s;

called by:

login_writeHTMLTeam

calls:

login_show

parentof

   

file team.js  

view function team_getTeamMembers(what)

parameters:

string

what

function return:

if(!team_isValid(what))return A; return A;

called by:

sample_getList

calls:

team_isMemberValid

team_isValid

   

file team.js  

view function team_invokeApplyTeamChanges()

function return:

NONE

called by:

team_showFunctions

calls:

team_applyTeamChanges

   

file team.js  

view function team_invokeApplyTeamChanges_error()

function return:

NONE

called by:

calls:

team_invokeApplyTeamChanges_noerror

   

file team.js  

view function team_invokeApplyTeamChanges_noerror()

function return:

NONE

called by:

team_invokeApplyTeamChanges_error

calls:

team_showMyTeam

   

file team.js  

view function team_invokeCheckAllMembers()

function return:

NONE

called by:

team_showFunctions

calls:

doCheckAll

   

file team.js  

view function team_invokeCheckAllTeams()

function return:

NONE

called by:

team_showFunctions

calls:

doCheckAll

   

file team.js  

view function team_invokeHideMembers()

function return:

NONE

called by:

team_showFunctions

calls:

team_showMyTeam

   

file team.js  

view function team_invokeModifyFiles()

function return:

NONE

called by:

calls:

admin_writeHTMLFiles

team_allowSuper

   

file team.js  

view function team_invokeModifyTeamDone(isdone)

parameters:

integer

isdone

function return:

NONE

called by:

team_showFunctions

calls:

main_invokeAdmin

team_applyTeamChanges

team_isInfoChanged

   

file team.js  

view function team_invokeModifyTeamDone_error()

function return:

NONE

called by:

calls:

team_invokeModifyTeamDone_noerror

   

file team.js  

view function team_invokeModifyTeamDone_noerror()

function return:

NONE

called by:

team_invokeModifyTeamDone_error

calls:

main_invokeAdmin

   

file team.js  

view function team_invokeModifyTeamStructure(ihideusers,icheckteams,icheckmembers,icheckpositions)

parameters:

integer

ihideusers

integer

icheckteams

integer

icheckmembers

integer

icheckpositions

function return:

NONE

called by:

admin_header

calls:

admin_writeHTMLTeams

team_allowAdmin

   

file team.js  

view function team_invokeShowMembers()

function return:

NONE

called by:

team_showFunctions

calls:

team_showMyTeam

   

file team.js  

view function team_invokeCheck()

function return:

NONE

called by:

calls:

   

file team.js  

view function team_invokeViewTeamStructure()

function return:

NONE

called by:

calls:

admin_writeHTMLFull

team_allowAdmin

   

file team.js  

view function team_invokeUncheckAllMembers()

function return:

NONE

called by:

team_showFunctions

calls:

doCheckAll

   

file team.js  

view function team_invokeUncheckAllTeams()

function return:

NONE

called by:

team_showFunctions

calls:

doCheckAll

   

file team.js  

view function team_isAdmin(thisuser,thisteam)

parameters:

string

thisuser

string

thisteam

function return:

return team_isAuthorized(thisuser,thisteam,"a")|| team_isSuper(thisuser,thisteam);

called by:

team_allowAdmin

calls:

team_isAuthorized

team_isSuper

   

file team.js  

view function team_isAuthorized(thisuser,thisteam,spriv)

parameters:

string

thisuser

string

thisteam

string

spriv

function return:

if(thisteam.length>0 && !team_isValid(thisteam))return false;

called by:

team_allowAnalysis

team_allowExpedite

team_allowExperiment

team_isAdmin

team_isMemberValid

team_isSuper

team_shows

calls:

team_isValid

   

file team.js  

view function team_isGuest(thisuser,thisteam)

parameters:

string

thisuser

string

thisteam

function return:

return thisuser=="Guest" && thisteam=="Guest";

called by:

calls:

   

file team.js  

view function team_isMemberValid(thisuser,thisteam)

parameters:

string

thisuser

string

thisteam

function return:

return thisuser.length && team_isValid(thisteam) && team_isAuthorized(thisuser,thisteam,"r");

called by:

team_deleteUnCheckedItems

team_getTeamMembers

calls:

team_isAuthorized

team_isValid

   

file team.js  

view function team_isSuper(thisuser,thisteam)

parameters:

string

thisuser

string

thisteam

function return:

return team_isAuthorized(thisuser,thisteam,"s");

called by:

team_allowSuper

team_isAdmin

calls:

team_isAuthorized

   

file team.js  

view function team_isInfoChanged()

function return:

return team_getCheckedTeamsAndMembers().length+team_getNewTeamText().length+team_getNewTeamPositions().length;

called by:

team_invokeModifyTeamDone

calls:

team_getCheckedTeamsAndMembers

team_getNewTeamPositions

team_getNewTeamText

   

file team.js  

view function team_isValid(thisteam)

parameters:

string

thisteam

function return:

return thisteam.length && TeamInfo[thisteam] && TeamInfo[thisteam].valid;

called by:

team_addNewItems

team_addTeamMember

team_addTeamPlayers

team_deleteUnCheckedItems

team_getNewTeamPositions

team_getSubTeams

team_getTeamMembers

team_isAuthorized

team_isMemberValid

team_modifyPositions

team_remove

team_removeMember

team_removeMembers

team_setEnabled

calls:

   

file team.js  

view function team_modifyPositions()

function return:

if(A.length==0)return ""; return sout;

called by:

team_applyTeamChanges

calls:

team_getNewTeamPositions

team_isValid

   

file team.js  

view function team_privsOf(spriv)

parameters:

string

spriv

function return:

return s.replace(/as/,"s");

called by:

team_addNewItems

calls:

   

file team.js  

view function team_remove(what)

parameters:

string

what

function return:

if(!team_isValid(what))return false; return true;

called by:

team_remove

calls:

newTeamInfo

team_isValid

team_remove

   

file team.js  

view function team_removeMember(what,who)

parameters:

string

what

string

who

function return:

if(!team_isValid(what))return false; return true;

called by:

calls:

team_isValid

   

file team.js  

view function team_removeMembers(what)

parameters:

string

what

function return:

if(!team_isValid(what))return false; if(!team_removeMembers(i))return false; return true;

called by:

team_removeMembers

calls:

newTeamInfo

team_isValid

team_removeMembers

   

file team.js  

view function team_removeUser(who)

parameters:

string

who

function return:

return true;

called by:

calls:

   

file team.js  

view function team_setEnabled(what,TF)

parameters:

string

what

integer

TF

function return:

if(!team_isValid(what))return false; return true;

called by:

team_setEnabled

calls:

team_isValid

team_setEnabled

   

file team.js  

view function team_setDefaults()

function return:

NONE

called by:

deleteSession

calls:

   

file team.js  

view function team_showJustThisTeam(thisteam)

parameters:

string

thisteam

function return:

return team_shows(thisteam,0,false,false,false,false,false,false);

called by:

admin_writeHTMLFull

calls:

team_shows

   

file team.js  

view function team_showMyTeam(ihideusers)

parameters:

integer

ihideusers

function return:

NONE

called by:

team_invokeApplyTeamChanges_noerror

team_invokeHideMembers

team_invokeShowMembers

calls:

admin_writeHTMLTeams

   

file team.js  

view function team_showFunctions()

function return:

return sout;

called by:

team_shows

calls:

jRef

makeTableRowArray

team_invokeApplyTeamChanges

team_invokeCheckAllMembers

team_invokeCheckAllTeams

team_invokeHideMembers

team_invokeModifyTeamDone

team_invokeShowMembers

team_invokeUncheckAllMembers

team_invokeUncheckAllTeams

   

file team.js  

view function team_shows(what,level,ishowall,isform,ihideusers,icheckteams,icheckmembers,icheckpositions)

parameters:

string

what

integer

level

integer

ishowall

integer

isform

integer

ihideusers

integer

icheckteams

integer

icheckmembers

integer

icheckpositions

function return:

if(!ishowall && highestteam=="")return ""; return s;

called by:

admin_writeHTMLTeams

team_showJustThisTeam

team_shows

team_showTheTeams

calls:

checkbox

jRef

textbox

login_invokeSetTeam

sample_getUnassignedRanges

team_allowSuper

team_isAuthorized

team_showFunctions

team_shows

   

file team.js  

view function team_showTheTeams()

function return:

return team_shows(teamname,0,true,true,false,false,false,false);

called by:

admin_writeHTMLFull

calls:

team_shows