Esempio n. 1
0
<div id="CreateReccuringTask_Form" style="display:none; width: 740" class="divAboveBg">
	<TABLE width="740" cellpadding=0 cellspacing=2 border=0  class="divHeadingTable">
	<TR><TD onmousedown="My_JsLibrary.startDrag(event);" class="drag_dialog_title" id='CreateReccuringTask_Form_Title'>Create a Recurring Task</TD>
		<TD onclick="My_JsLibrary.hideDrag(event);" width="19"><img src="/images/close.gif" border=0></TD>
	</TR>
	</TABLE>
	<TABLE width="738" cellpadding="4" cellspacing=0 border=0>
		<TR>
			<TD align="right"><NOBR>Under Project :</NOBR></TD>
			<TD>
				
				<select id='nrt_project'  class="hilight"  onchange='update_ProjectUsers()'>
					<?php 
$manageProjects = new manageProjects();
$tmp_projects_all = $manageProjects->getActiveProjectsListOfUser($_SESSION["uname"]);
html_array2selectboxOptions_selected($tmp_projects_all, DEFAULTPROJECT);
?>
				</select>
			</TD>
			<TD align="right"><NOBR>Assign To :</NOBR></TD>
			<TD>
				<select id='nrt_assignTo'  class="hilight"></select>
			</TD>
		</TR>
		<TR>
			<TD align="right">Description :</TD>
			<TD colspan=3><input type=text size=55 id='nrt_desc'></TD>
		</TR>
		<TR>
			<TD align="right"><NOBR>Start Date :</NOBR></TD>
Esempio n. 2
0
function returnUsersUnderProjectsJSObject($user)
{
    // this function returns a JS object with the projects (the user is a member of) as properties
    // and members of each project as property value
    $output = array();
    $manageProjects = new manageProjects();
    $myProjects = $manageProjects->getActiveProjectsListOfUser($user);
    foreach ($myProjects as $project) {
        $output[$project] = $manageProjects->getUsersListInProject($project);
    }
    $output[DEFAULTPERSONALPROJECT] = array($user);
    echo 'var MYPROJECTS_USERS = ' . json_encode($output) . ' ; ';
}