Ejemplo n.º 1
0
} else {
    $teamMember = "true";
}
$breadcrumbs[] = buildLink("../projects/listprojects.php?", $strings["projects"], LINK_INSIDE);
$breadcrumbs[] = buildLink("../projects/viewproject.php?id=" . $projectDetail->pro_id[0], $projectDetail->pro_name[0], LINK_INSIDE);
$breadcrumbs[] = $strings["phases"];
require_once "../themes/" . THEME . "/header.php";
//--- Phases -----------------------------------------
if ($teamMember == "true" || $_SESSION['profilSession'] == "5") {
    $block7 = new block();
    $block7->form = "wbSe";
    $block7->openForm("../phases/listphases.php?id={$id}#" . $block7->form . "Anchor");
    $block7->sorting('phases', $sortingUser->sor_phases[0], 'pha.order_num ASC', $sortingFields = array('pha.order_num', 'pha.name', 'none', 'none', 'none', 'pha.status', 'pha.date_start', 'pha.date_end'));
    $tmpquery = "WHERE pha.project_id = '{$id}' ORDER BY {$block7->sortingValue}";
    $listPhases = new request();
    $listPhases->openPhases($tmpquery);
    $comptListPhases = count($listPhases->pha_id);
    $block7->headingToggle($strings['phases'] . " <span class=addition>({$comptListPhases})</span>");
    $block7->openPaletteIcon();
    $block7->paletteIcon(0, 'info', $strings['view']);
    if ($teamMember == 'true' || $_SESSION['profilSession'] == '5') {
        if ($_SESSION['idSession'] == $projectDetail->pro_owner[0] || $_SESSION['profilSession'] == '0' || $_SESSION['profilSession'] == '5') {
            $block7->paletteIcon(1, 'edit', $strings['edit']);
        }
    }
    $block7->closePaletteIcon();
    if ($comptListPhases != '0') {
        $block7->openResults();
        $block7->labels($labels = array($strings['order'], $strings['name'], $strings['total_tasks'], $strings['uncomplete_tasks'], $strings['milestone'], $strings['status'], $strings['date_start'], $strings['date_end']), 'false');
        $tmpquery = "WHERE tas.project = '{$id}'";
        $countPhaseTasks = new request();
Ejemplo n.º 2
0
 * (at your option) any later version.
 */
$checkSession = true;
require_once "../includes/library.php";
if ($type == "1") {
    $tmpquery = "WHERE tas.id = '{$item}'";
    $taskDetail = new request();
    $taskDetail->openTasks($tmpquery);
    $tmpquery = "WHERE pro.id = '" . $taskDetail->tas_project[0] . "'";
    $projectDetail = new request();
    $projectDetail->openProjects($tmpquery);
    if ($projectDetail->pro_enable_phase[0] != "0") {
        $tPhase = $taskDetail->tas_parent_phase[0];
        $tmpquery = "WHERE pha.project_id = '" . $taskDetail->tas_project[0] . "' AND pha.order_num = '{$tPhase}'";
        $targetPhase = new request();
        $targetPhase->openPhases($tmpquery);
    }
}
//--- header ---
$breadcrumbs[] = buildLink("../projects/listprojects.php?", $strings["projects"], LINK_INSIDE);
$breadcrumbs[] = buildLink("../projects/viewproject.php?id=" . $projectDetail->pro_id[0], $projectDetail->pro_name[0], LINK_INSIDE);
if ($projectDetail->pro_phase_set[0] != "0") {
    $breadcrumbs[] = buildLink("../phases/listphases.php?id=" . $projectDetail->pro_id[0], $strings["phases"], LINK_INSIDE);
    $breadcrumbs[] = buildLink("../phases/viewphase.php?id=" . $targetPhase->pha_id[0], $targetPhase->pha_name[0], LINK_INSIDE);
}
$breadcrumbs[] = buildLink("../tasks/listtasks.php?project=" . $projectDetail->pro_id[0], $strings["tasks"], LINK_INSIDE);
$breadcrumbs[] = buildLink("../tasks/viewtask.php?id=" . $taskDetail->tas_id[0], $taskDetail->tas_name[0], LINK_INSIDE);
if ($type == "1") {
    $breadcrumbs[] = $strings["updates_task"];
}
$pageSection = 'projects';
Ejemplo n.º 3
0
 * 
 * Copyright (c) 2003 by the NetOffice developers
 * 
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 */
$checkSession = true;
require_once '../includes/library.php';
// load the jpgraph classes
require_once '../includes/jpgraph/jpgraph.php';
require_once '../includes/jpgraph/jpgraph_gantt.php';
$tmpquery = "WHERE pha.project_id = '" . $project . "' AND pha.order_num = '" . $phase . "'";
$phaseDetail = new request();
$phaseDetail->openPhases($tmpquery);
$phaseDetail->pha_name[0] = str_replace('&quot;', '"', $phaseDetail->pha_name[0]);
$phaseDetail->pha_name[0] = str_replace("&#39;", "'", $phaseDetail->pha_name[0]);
$tmpquery = "WHERE pro.id = '{$project}'";
$projectDetail = new request();
$projectDetail->openProjects($tmpquery);
// set up the graph
$graph = new GanttGraph(0, 0, 'auto');
$graph->SetBox();
$graph->SetShadow();
$graph->SetMarginColor('gainsboro');
$graph->SetMargin(10, 30, 25, 25);
// Set the Locale if you get errors with your environment
//$graph->scale->SetDateLocale('C');
// Add title
$graph->title->Set($projectDetail->pro_name[0] . ' : ' . $phaseDetail->pha_name[0] . ' ' . $strings['phase']);
Ejemplo n.º 4
0
        echo "\t</table>\n\t\t\t\t<hr />\n";
    } else {
        echo "\t<table cellspacing='0' border='0' cellpadding='2'>\n\t\t\t\t<tr>\n\t\t\t\t\t<td colspan='4' class='listOddBold'>" . $strings["no_items"] . "</td>\n\t\t\t\t</tr>\n\t\t\t\t</table><hr />";
    }
}
if ($projectSession != "" && $changeProject != "true") {
    if (file_exists("../logos_clients/" . $clientDetail->org_id[0] . "." . $clientDetail->org_extension_logo[0])) {
        echo "<img src=\"../logos_clients/" . $clientDetail->org_id[0] . "." . $clientDetail->org_extension_logo[0] . "\"><br/><br/>";
    }
    echo "\t<table cellpadding='0' cellspacing='0' border='0'>\n\t\t\t<tr>\n\t\t\t\t<th nowrap class='FormLabel'>" . $strings["project"] . " :</th>\n\t\t\t\t<td>&nbsp;" . $projectDetail->pro_name[0] . "</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<th nowrap class='FormLabel' valign='top'>" . $strings["description"] . " : </th>\n\t\t\t\t<td>&nbsp;" . nl2br($projectDetail->pro_description[0]) . "</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<th nowrap class='FormLabel'>" . $strings["status"] . " :</th>\n\t\t\t\t<td>&nbsp;{$status[$idStatus]}</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<th nowrap class='FormLabel'>" . $strings["priority"] . " :</th>\n\t\t\t\t<td>&nbsp;{$priority[$idPriority]}</td>\n\t\t\t</tr>";
    //Dispaly project active phase
    if ($projectDetail->pro_phase_set[0] != "0") {
        echo "\t<tr><th nowrap valign='top' class='FormLabel'>" . $strings["current_phase"] . " :</td><td>";
        $tmpquery = "WHERE pha.project_id = '" . $projectDetail->pro_id[0] . "' AND status = '1'";
        $currentPhase = new request();
        $currentPhase->openPhases($tmpquery);
        $comptCurrentPhase = count($currentPhase->pha_id);
        if ($comptCurrentPhase == 0) {
            echo "" . $strings["no_current_phase"] . " ";
        } else {
            for ($i = 0; $i < $comptCurrentPhase; $i++) {
                if ($i != $comptCurrentPhase) {
                    $pnum = $i + 1;
                    echo "{$pnum}." . $currentPhase->pha_name[$i] . "  ";
                }
            }
        }
        echo "</td></tr>";
    }
    //-------------------------------------------------------------------------------------------
    echo "\t<tr>\n\t\t\t\t<th nowrap class='FormLabel'>" . $strings["url_dev"] . " :</th>\n\t\t\t\t<td>&nbsp;<a href='" . $projectDetail->pro_url_dev[0] . "' target='_blank'>" . $projectDetail->pro_url_dev[0] . "</a></td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<th nowrap class='FormLabel'>" . $strings["url_prod"] . " :</th>\n\t\t\t\t<td>&nbsp;<a href='" . $projectDetail->pro_url_prod[0] . "' target='_blank'>" . $projectDetail->pro_url_prod[0] . "</a></td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<th nowrap class='FormLabel'>" . $strings["created"] . " :</th>\n\t\t\t\t<td>&nbsp;" . createDate($projectDetail->pro_created[0], $timezoneSession) . "</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<th nowrap class='FormLabel'>" . $strings["modified"] . " :</th>\n\t\t\t\t<td>&nbsp;" . createDate($projectDetail->pro_modified[0], $timezoneSession) . "</td>\n\t\t\t</tr>\n\t\t\t</table>";
Ejemplo n.º 5
0
    if ($taskDetail->tas_assigned_to[0] == $assignto->tea_mem_id[$i]) {
        echo "<option value=\"" . $assignto->tea_mem_id[$i] . "\" selected>" . $assignto->tea_mem_login[$i] . " / " . $assignto->tea_mem_name[$i] . "{$clientUser}</option>";
    } else {
        echo "<option value=\"" . $assignto->tea_mem_id[$i] . "\">" . $assignto->tea_mem_login[$i] . " / " . $assignto->tea_mem_name[$i] . "{$clientUser}</option>";
    }
}
echo "</select></td></tr>";
echo "<tr class=\"odd\"><td valign=\"top\" class=\"leftvalue\">" . $strings["milestone"] . " :</td><td><input size=\"32\" value=\"{$miles}\" name=\"mileS\" type=\"checkbox\" onchange=\"changeMilestone(this)\" {$checkedMileS}></td></tr>";
echo "<input type=\"hidden\" name=\"miles\" value=\"{$miles}\">";
// Select phase
if ($projectDetail->pro_phase_set[0] != "0") {
    echo "<tr class=\"odd\"><td valign=\"top\" class=\"leftvalue\">" . $strings["phase"] . " :</td><td><select name=\"pha\">";
    $projectTarget = $projectDetail->pro_id[0];
    $tmpquery = "WHERE pha.project_id = '{$projectTarget}' ORDER BY pha.order_num";
    $projectPhaseList = new request();
    $projectPhaseList->openPhases($tmpquery);
    $comptlistPhase = count($projectPhaseList->pha_id);
    for ($i = 0; $i < $comptlistPhase; $i++) {
        $phaseNum = $projectPhaseList->pha_order_num[$i];
        if ($taskDetail->tas_parent_phase[0] == $phaseNum || $phase == $phaseNum) {
            echo "<option value=\"{$phaseNum}\" selected>" . $projectPhaseList->pha_name[$i] . "</option>";
        } else {
            echo "<option value=\"{$phaseNum}\">" . $projectPhaseList->pha_name[$i] . "</option>";
        }
    }
    echo "</select></td></tr>";
}
echo "<tr class=\"odd\"><td valign=\"top\" class=\"leftvalue\">" . $strings["status"] . " :</td><td><select name=\"st\" onchange=\"changeSt(this)\" {$stDisabled}>";
$comptSta = count($status);
for ($i = 0; $i < $comptSta; $i++) {
    if ($taskDetail->tas_status[0] == $i) {
Ejemplo n.º 6
0
if ($comptListProjects > "1") {
    $blockPage->contentRow("", $comptListProjects . " " . $strings["matches"]);
}
$block0->closeContent();
if ($comptListProjects != "0") {
    for ($j = 0; $j < $comptListProjects; $j++) {
        $projectTitle = $listProjects->pro_name[$j];
        $projectId = $listProjects->pro_id[$j];
        $projectPriority = $listProjects->pro_priority[$j];
        $blockProject = new block();
        $blockProject->headingForm(buildLink("../projects/viewproject.php?id=" . $projectId, $projectTitle, LINK_INSIDE));
        //         $blockProject->openContent();
        $queryPhase = "WHERE pha.project_id = '{$projectId}' ";
        $queryPhase .= "ORDER BY pha.order_num";
        $listPhases = new request();
        $listPhases->openPhases($queryPhase);
        $comptListPhases = count($listPhases->pha_id);
        $blockProject->openResults($checkbox = "false");
        // $blockProject->labels($labels = array(0=>$strings["phase"],1=>$strings["status"],2=>$strings["total_tasks"],3=>$strings["uncomplete_tasks"],4=>$strings["date_start"],5=>$strings["date_end"],6=>$strings['completion']),"true");
        $blockProject->labels($labels = array(0 => $strings["phase"], 1 => $strings["status"], 2 => $strings["total_tasks"], 3 => $strings["uncomplete_tasks"], 4 => $strings["date_start"], 5 => $strings["date_end"]), "true");
        if ($comptListProjects != "0") {
            for ($i = 0; $i < $comptListPhases; $i++) {
                $phaseNum = $listPhases->pha_order_num[$i];
                $phaseName = $listPhases->pha_name[$i];
                $phaseStart = $listPhases->pha_date_start[$i];
                $phaseEnd = $listPhases->pha_date_end[$i];
                $tmpquery = "WHERE tas.project = '{$projectId}' ";
                $tmpquery .= "AND tas.parent_phase = '{$phaseNum}'";
                $countPhaseTasks = new request();
                $countPhaseTasks->openTasks($tmpquery);
                $comptlistTasks = count($countPhaseTasks->tas_id);