Esempio n. 1
0
        if ($listTopics->top_last_post[$i] > $_SESSION['lastvisiteSession']) {
            $block1->cellRow("<b>" . createDate($listTopics->top_last_post[$i], $_SESSION['timezoneSession']) . "</b>");
        } else {
            $block1->cellRow(createDate($listTopics->top_last_post[$i], $_SESSION['timezoneSession']));
        }
        $block1->cellRow($statusTopic[$idStatus]);
        if ($sitePublish == "true") {
            $block1->cellRow($statusPublish[$idPublish]);
        }
        $block1->closeRow();
    }
    $block1->closeResults();
} else {
    $block1->noresults();
}
$block1->closeFormResults();
$block1->openPaletteScript();
if ($teamMember == "true") {
    $block1->paletteScript(0, "add", "../topics/addtopic.php?project=" . $projectDetail->pro_id[0] . "", "true,true,true", $strings["add"]);
}
if ($_SESSION['idSession'] == $projectDetail->pro_owner[0]) {
    $block1->paletteScript(1, "remove", "../topics/deletetopics.php?project=" . $projectDetail->pro_id[0] . "", "false,true,true", $strings["delete"]);
    $block1->paletteScript(2, "lock", "../topics/listtopics.php?closeTopic=true&project={$project}&action=publish", "false,true,true", $strings["close"]);
    if ($sitePublish == "true") {
        $block1->paletteScript(3, "add_projectsite", "../topics/listtopics.php?addToSite=true&project=" . $projectDetail->pro_id[0] . "&action=publish", "false,true,true", $strings["add_project_site"]);
        $block1->paletteScript(4, "remove_projectsite", "../topics/listtopics.php?removeToSite=true&project=" . $projectDetail->pro_id[0] . "&action=publish", "false,true,true", $strings["remove_project_site"]);
    }
}
$block1->paletteScript(5, "info", "../topics/viewtopic.php?", "false,true,false", $strings["view"]);
$block1->closePaletteScript($comptListTopics, $listTopics->top_id);
require_once "../themes/" . THEME . "/footer.php";
Esempio n. 2
0
                $block2->cellRow($strings["missing_file"] . " (" . $listAttachments->mat_name[$i] . ")");
            }
            $block2->cellRow($listAttachments->mat_date[$i]);
            $block2->cellRow(buildLink("../meetings/viewfile.php?id=" . $listAttachments->mat_id[$i], $statusFile[$idStatus], LINK_INSIDE));
            if ($sitePublish == "true") {
                $block2->cellRow($statusPublish[$idPublish]);
            }
            $block2->closeRow();
        }
        $block2->closeResults();
    } else {
        $block2->noresults();
    }
    $block2->closeToggle();
    $block2->closeFormResults();
    $block2->openPaletteScript();
    if ($teamMember == "true" || $_SESSION['profilSession'] == "5") {
        $block2->paletteScript(0, "add", "../meetings/addfile.php?project=" . $meetingDetail->mee_project[0] . "&meeting={$id}", "true,true,true", $strings["add"]);
        $block2->paletteScript(1, "remove", "../meetings/deletefiles.php?project=" . $projectDetail->pro_id[0] . "&meeting=" . $meetingDetail->mee_id[0] . "", "false,true,true", $strings["delete"]);
        if ($sitePublish == "true") {
            $block2->paletteScript(2, "add_projectsite", "../meetings/viewmeeting.php?addToSiteFile=true&meeting=" . $meetingDetail->mee_id[0] . "&action=publish", "false,true,true", $strings["add_project_site"]);
            $block2->paletteScript(3, "remove_projectsite", "../meetings/viewmeeting.php?removeToSiteFile=true&meeting=" . $meetingDetail->mee_id[0] . "&action=publish", "false,true,true", $strings["remove_project_site"]);
        }
    }
    $block2->paletteScript(4, "info", "../meetings/viewfile.php?", "false,true,false", $strings["view"]);
    if ($teamMember == "true" || $_SESSION['profilSession'] == "5") {
        $block2->paletteScript(5, "edit", "../meetings/viewfile.php?edit=true", "false,true,false", $strings["edit"]);
    }
    $block2->closePaletteScript($comptListFiles, $listAttachments->mat_id);
}
require_once "../themes/" . THEME . "/footer.php";
Esempio n. 3
0
        //---- published ------
        if ($sitePublish == 'true') {
            $block10->cellRow($statusPublish[$idPublish]);
        }
        $block10->closeRow();
    }
    $block10->closeResults();
    $block10->bornesFooter('1', $blockPage->bornesNumber, '../tasks/listtasks.php?project=' . $id, 'id=' . $id);
} else {
    $block10->noresults();
}
$block10->closeToggle();
$block10->closeFormResults();
$block10->openPaletteScript();
if ($teamMember == 'true' || $_SESSION['profilSession'] == '5') {
    $block10->paletteScript(0, 'add', '../tasks/edittask.php?project=' . $projectDetail->pro_id[0], 'true,false,false', $strings['add']);
    $block10->paletteScript(1, 'remove', '../tasks/deletetasks.php?project=' . $projectDetail->pro_id[0], 'false,true,true', $strings['delete']);
    $block10->paletteScript(2, 'copy', '../tasks/edittask.php?project=' . $projectDetail->pro_id[0] . '&cpy=true', 'false,true,false', $strings['copy']);
    // $block10->paletteScript(3,'export','../projects/exportproject.php','false,true,true',$strings['export']);
    if ($sitePublish == 'true') {
        $block10->paletteScript(4, 'add_projectsite', '../projects/viewproject.php?addToSiteTask=true&project=' . $projectDetail->pro_id[0] . '&action=publish', 'false,true,true', $strings['add_project_site']);
        $block10->paletteScript(5, 'remove_projectsite', '../projects/viewproject.php?removeToSiteTask=true&project=' . $projectDetail->pro_id[0] . '&action=publish', 'false,true,true', $strings['remove_project_site']);
    }
}
$block10->paletteScript(6, 'info', '../tasks/viewtask.php', 'false,true,false', $strings['view']);
if ($teamMember == 'true' || $_SESSION['profilSession'] == '5') {
    $block10->paletteScript(7, 'edit', '../tasks/edittask.php?project=' . $projectDetail->pro_id[0], 'false,true,true', $strings['edit']);
    $block10->paletteScript(8, 'timelog', '../tasks/addtasktime.php', 'false,true,false', $strings['loghours']);
}
$block10->closePaletteScript($comptListTasks, $listTasks->tas_id);
require_once "../themes/" . THEME . "/footer.php";
Esempio n. 4
0
        if ($_SESSION['profilSession'] == 1 or $_SESSION['profilSession'] == 5 or $_SESSION['idSession'] == $listMeetingTimes->mti_owner[$i]) {
            $block2->openRow($listMeetingTimes->mti_id[$i]);
            $block2->checkboxRow($listMeetingTimes->mti_id[$i], 'true');
            $block2->cellRow($listMeetingTimes->mti_mem_name[$i]);
            $block2->cellRow($listMeetingTimes->mti_date[$i]);
            $block2->cellRow($listMeetingTimes->mti_hours[$i]);
            $block2->cellRow($listMeetingTimes->mti_created[$i]);
            $block2->cellRow($listMeetingTimes->mti_modified[$i]);
            // truncate large comments to keep the display clean
            $comments = $listMeetingTimes->mti_comments[$i];
            $lenComm = 40;
            if (strLen($comments) > $lenComm) {
                $comments = substr($listMeetingTimes->mti_comments[$i], 0, $lenComm) . ' ...';
            }
            $block2->cellRow($comments);
            $block2->closeRow();
        }
    }
    $block2->closeResults();
    $block2->bornesFooter("1", $blockPage->bornesNumber, "", "id={$id}");
} else {
    $block2->noresults();
}
$block2->closeContent();
$block2->headingForm_close();
$block2->closeFormResults();
$block2->openPaletteScript();
$block2->paletteScript(0, "remove", "../meetings/deletemeetingtime.php?meeting={$id}", "false,true,true", $strings["delete"]);
$block2->paletteScript(1, "edit", "../meetings/editmeetingtime.php?meeting={$id}", "false,true,false", $strings["edit"]);
$block2->closePaletteScript($comptListMeetingTimes, $listMeetingTimes->mti_id);
require_once "../themes/" . THEME . "/footer.php";
Esempio n. 5
0
        }
        $comptPri = count($priority);
        for ($rp = 0; $rp < $comptPri; $rp++) {
            if ($listRequests->sr_priority[$i] == $rp) {
                $requestPriority = $priority[$rp];
            }
        }
        $block1->openRow();
        $block1->checkboxRow($listRequests->sr_id[$i]);
        $block1->cellRow($listRequests->sr_id[$i]);
        $block1->cellRow($blockPage->buildLink("../support/viewrequest.php?id=" . $listRequests->sr_id[$i], $listRequests->sr_subject[$i], in));
        $block1->cellRow($requestPriority);
        $block1->cellRow($currentStatus);
        $block1->cellRow($listRequests->sr_date_open[$i]);
        $block1->cellRow($listRequests->sr_date_close[$i]);
        $block1->closeRow();
    }
    $block1->closeResults();
} else {
    $block1->noresults();
}
$block1->closeFormResults();
if ($teamMember == "true" || $profilSession == "0") {
    $block1->openPaletteScript();
    //$block1->paletteScript(0,"add","addsupport.php?","true,true,true",$strings["add"]);
    $block1->paletteScript(1, "edit", "../support/addpost.php?action=status", "false,true,false", $strings["edit_status"]);
    $block1->paletteScript(2, "remove", "../support/deleterequests.php?action=deleteR", "false,true,true", $strings["delete"]);
    $block1->paletteScript(3, "info", "../support/viewrequest.php?", "false,true,false", $strings["view"]);
    $block1->closePaletteScript($comptListRequests, $listRequests->sr_id);
}
include '../themes/' . THEME . '/footer.php';
Esempio n. 6
0
if ($projectDetail->pro_org_id[0] == "1") {
    $projectDetail->pro_org_name[0] = $strings["none"];
}
$block1->openContent();
$block1->contentTitle($strings["info"]);
$block1->contentRow($strings["project"], $blockPage->buildLink("../projects/viewproject.php?id=" . $projectDetail->pro_id[0], $projectDetail->pro_name[0], in));
if ($noteDetail->note_topic[0] != "") {
    $block1->contentRow($strings["topic"], $topicNote[$noteDetail->note_topic[0]]);
}
$block1->contentRow($strings["subject"], $noteDetail->note_subject[0]);
$block1->contentRow($strings["date"], $noteDetail->note_date[0]);
$block1->contentRow($strings["owner"], $blockPage->buildLink($noteDetail->note_mem_email_work[0], $noteDetail->note_mem_login[0], mail));
$block1->contentRow($strings["description"], nl2br($noteDetail->note_description[0]));
$idPublish = $noteDetail->note_published[0];
if ($sitePublish == "true") {
    $block1->contentRow($strings["published"], $statusPublish[$idPublish]);
}
$block1->closeContent();
$block1->closeForm();
if ($teamMember == "true" && $idSession == $noteDetail->note_owner[0]) {
    $block1->openPaletteScript();
    $block1->paletteScript(0, "remove", "../notes/deletenotes.php?project=" . $noteDetail->note_project[0] . "&id=" . $noteDetail->note_id[0] . "", "true,true,false", $strings["delete"]);
    //$block1->paletteScript(1,"export","export.php?","true,true,false",$strings["export"]);
    if ($sitePublish == "true") {
        $block1->paletteScript(2, "add_projectsite", "../notes/viewnote.php?addToSite=true&id=" . $noteDetail->note_id[0] . "&action=publish", "true,true,true", $strings["add_project_site"]);
        $block1->paletteScript(3, "remove_projectsite", "../notes/viewnote.php?removeToSite=true&id=" . $noteDetail->note_id[0] . "&action=publish", "true,true,true", $strings["remove_project_site"]);
    }
    $block1->paletteScript(4, "edit", "../notes/editnote.php?project=" . $noteDetail->note_project[0] . "&id=" . $noteDetail->note_id[0] . "", "true,true,false", $strings["edit"]);
    $block1->closePaletteScript("", "");
}
include '../themes/' . THEME . '/footer.php';
Esempio n. 7
0
$block1->openForm("../reports/listreports.php#" . $block1->form . "Anchor");
$block1->heading($strings["my_reports"]);
$block1->openPaletteIcon();
$block1->paletteIcon(0, "add", $strings["add"]);
$block1->paletteIcon(1, "remove", $strings["delete"]);
$block1->closePaletteIcon();
$block1->sorting("reports", $sortingUser->sor_reports[0], "rep.name ASC", $sortingFields = array(0 => "rep.name", 1 => "rep.created"));
$tmpquery = "WHERE rep.owner = '" . $_SESSION['idSession'] . "' ORDER BY {$block1->sortingValue}";
$listReports = new request();
$listReports->openReports($tmpquery);
$comptListReports = count($listReports->rep_id);
if ($comptListReports != "0") {
    $block1->openResults();
    $block1->labels($labels = array(0 => $strings["name"], 1 => $strings["created"]), "false");
    for ($i = 0; $i < $comptListReports; $i++) {
        $block1->openRow($listReports->rep_id[$i]);
        $block1->checkboxRow($listReports->rep_id[$i]);
        $block1->cellRow(buildLink("../reports/resultsreport.php?id=" . $listReports->rep_id[$i], $listReports->rep_name[$i], LINK_INSIDE));
        $block1->cellRow(createDate($listReports->rep_created[$i], $_SESSION['timezoneSession']));
    }
    $block1->closeResults();
} else {
    $block1->noresults();
}
$block1->closeFormResults();
$block1->block_close();
$block1->openPaletteScript();
$block1->paletteScript(0, "add", "../reports/createreport.php?", "true,true,true", $strings["add"]);
$block1->paletteScript(1, "remove", "../reports/deletereports.php?", "false,true,true", $strings["delete"]);
$block1->closePaletteScript($comptListReports, $listReports->rep_id);
require_once "../themes/" . THEME . "/footer.php";
Esempio n. 8
0
            $block2->cellRow($listFiles->fil_date[$i]);
            $block2->cellRow(buildLink("../linkedcontent/viewfile.php?id=" . $listFiles->fil_id[$i], $statusFile[$idStatus], LINK_INSIDE));
            if ($sitePublish == "true") {
                $block2->cellRow($statusPublish[$idPublish]);
            }
            $block2->closeRow();
        }
        $block2->closeResults();
    } else {
        $block2->noresults();
    }
    $block2->closeToggle();
    $block2->closeFormResults();
    $block2->openPaletteScript();
    if ($teamMember == "true" || $_SESSION['profilSession'] == "5") {
        $block2->paletteScript(0, "add", "../linkedcontent/addfile.php?project=" . $taskDetail->tas_project[0] . "&task={$id}", "true,true,true", $strings["add"]);
        $block2->paletteScript(1, "remove", "../linkedcontent/deletefiles.php?project=" . $projectDetail->pro_id[0] . "&task=" . $taskDetail->tas_id[0] . "", "false,true,true", $strings["delete"]);
        if ($sitePublish == "true") {
            $block2->paletteScript(2, "add_projectsite", "../tasks/viewtask.php?addToSiteFile=true&task=" . $taskDetail->tas_id[0] . "&action=publish", "false,true,true", $strings["add_project_site"]);
            $block2->paletteScript(3, "remove_projectsite", "../tasks/viewtask.php?removeToSiteFile=true&task=" . $taskDetail->tas_id[0] . "&action=publish", "false,true,true", $strings["remove_project_site"]);
        }
    }
    $block2->paletteScript(4, "info", "../linkedcontent/viewfile.php?", "false,true,false", $strings["view"]);
    if ($teamMember == "true" || $_SESSION['profilSession'] == "5") {
        $block2->paletteScript(5, "edit", "../linkedcontent/viewfile.php?edit=true", "false,true,false", $strings["edit"]);
    }
    $block2->closePaletteScript($comptListFiles, $listFiles->fil_id);
}
$block3 = new block();
$block3->form = "ahT";
$block3->openForm("../tasks/viewtask.php?id={$id}#" . $block3->form . "Anchor");
Esempio n. 9
0
$block1->contentRow($strings["full_name"], $userDetail->mem_name[0]);
$block1->contentRow($strings["organization"], $userDetail->mem_org_name[0]);
$block1->contentRow($strings["email"], $userDetail->mem_email_work[0]);
$block1->contentRow($strings["work_phone"], $userDetail->mem_phone_work[0]);
$block1->contentRow($strings["home_phone"], $userDetail->mem_phone_home[0]);
$block1->contentRow($strings["mobile_phone"], $userDetail->mem_mobile[0]);
$block1->contentRow($strings["fax"], $userDetail->mem_fax[0]);
$block1->contentRow($strings["comments"], nl2br($userDetail->mem_comments[0]));
$block1->contentRow($strings["account_created"], createDate($userDetail->mem_created[0], $_SESSION['timezoneSession']));
$block1->contentTitle($strings["information"]);
$tmpquery = "SELECT tas.id FROM " . $tableCollab["tasks"] . " tas LEFT OUTER JOIN " . $tableCollab["projects"] . " pro ON pro.id = tas.project WHERE tas.assigned_to = '" . $userDetail->mem_id[0] . "' AND tas.status IN(0,2,3) AND pro.status IN(0,2,3)";
compt($tmpquery);
$valueTasks = $countEnregTotal;
$block1->contentRow($strings["tasks"], $valueTasks);
$z = "(Client on project site)";
if ($userDetail->mem_log_connected[0] > $dateunix - 5 * 60) {
    $connected_result = $strings["yes"] . " " . $z;
} else {
    $connected_result = $strings["no"];
}
$block1->contentRow($strings["connected"], $connected_result);
$block1->closeContent();
$block1->closeForm();
$block1->openPaletteScript();
if ($_SESSION['profilSession'] == "0" || $_SESSION['profilSession'] == "1") {
    $block1->paletteScript(0, "remove", "../users/deleteclientusers.php?id={$id}&organization={$organization}", "true,true,true", $strings["delete"]);
    $block1->paletteScript(1, "edit", "../users/updateclientuser.php?id={$id}&organization={$organization}", "true,true,true", $strings["edit"]);
}
$block1->paletteScript(2, "export", "../users/exportuser.php?id={$id}", "true,true,true", $strings["export"]);
$block1->closePaletteScript("", "");
require_once "../themes/" . THEME . "/footer.php";
Esempio n. 10
0
    for ($i = 0; $i < $comptListMembers; $i++) {
        $block3->openRow($listMembers->mem_id[$i]);
        $block3->checkboxRow($listMembers->mem_id[$i]);
        $block3->cellRow(buildLink('../users/viewclientuser.php?id=' . $listMembers->mem_id[$i] . "&amp;organization={$id}", $listMembers->mem_name[$i], LINK_INSIDE));
        $block3->cellRow($listMembers->mem_login[$i]);
        $block3->cellRow(buildLink($listMembers->mem_email_work[$i], $listMembers->mem_email_work[$i], LINK_MAIL));
        $block3->cellRow($listMembers->mem_phone_work[$i]);
        $z = '(Client on project site)';
        if ($listMembers->mem_log_connected[$i] > $dateunix - 5 * 60) {
            $block3->cellRow($strings['yes'] . ' ' . $z);
        } else {
            $block3->cellRow($strings['no']);
        }
    }
    $block3->closeResults();
} else {
    $block3->noresults();
}
$block3->closeToggle();
$block3->closeFormResults();
$block3->openPaletteScript();
if ($_SESSION['profilSession'] == '0' || $_SESSION['profilSession'] == '1' || $_SESSION['profilSession'] == '5') {
    $block3->paletteScript(0, 'add', '../users/addclientuser.php?organization=' . $id, 'true,true,true', $strings['add']);
    $block3->paletteScript(1, 'remove', '../users/deleteclientusers.php?organization=' . $id, 'false,true,true', $strings['delete']);
}
$block3->paletteScript(2, 'info', '../users/viewclientuser.php?organization=' . $id, 'false,true,false', $strings['view']);
if ($_SESSION['profilSession'] == '0' || $_SESSION['profilSession'] == '1' || $_SESSION['profilSession'] == '5') {
    $block3->paletteScript(3, 'edit', '../users/updateclientuser.php?organization=' . $id, 'false,true,false', $strings['edit']);
}
$block3->closePaletteScript($comptListMembers, $listMembers->mem_id);
require_once '../themes/' . THEME . '/footer.php';
Esempio n. 11
0
                $block1->cellRow("&lt;" . $blockPage->buildLink("../projects/addprojectsite.php?id=" . $listProjects->pro_id[$i], $strings["create"] . "...", in) . "&gt;");
            } else {
                $block1->cellRow("&lt;" . $blockPage->buildLink("../projects/viewprojectsite.php?id=" . $listProjects->pro_id[$i], $strings["details"], in) . "&gt;");
            }
        }
        $block1->closeRow();
    }
    $block1->closeResults();
    $block1->bornesFooter("1", $blockPage->bornesNumber, "", "typeProjects={$typeProjects}");
} else {
    $block1->noresults();
}
$block1->closeFormResults();
$block1->openPaletteScript();
if ($profilSession == "0" || $profilSession == "1" || $profilSession == "5") {
    $block1->paletteScript(0, "add", "../projects/editproject.php?", "true,false,false", $strings["add"]);
    $block1->paletteScript(1, "remove", "../projects/deleteproject.php?", "false,true,false", $strings["delete"]);
}
$block1->paletteScript(2, "info", "../projects/viewproject.php?", "false,true,false", $strings["view"]);
if ($profilSession == "0" || $profilSession == "1" || $profilSession == "5") {
    $block1->paletteScript(3, "edit", "../projects/editproject.php?", "false,true,false", $strings["edit"]);
    $block1->paletteScript(4, "copy", "../projects/editproject.php?docopy=true", "false,true,false", $strings["copy"]);
}
if ($enable_cvs == "true") {
    $block1->paletteScript(7, "cvs", "../browsecvs/browsecvs.php?", "false,true,false", $strings["browse_cvs"]);
}
if ($enableMantis == "true") {
    $block1->paletteScript(8, "bug", $pathMantis . "login.php?url=http://{$HTTP_HOST}{$REQUEST_URI}&username={$loginSession}&password={$passwordSession}", "false,true,false", $strings["bug"]);
}
$block1->closePaletteScript($comptListProjects, $listProjects->pro_id);
include '../themes/' . THEME . '/footer.php';
Esempio n. 12
0
            if ($listBookmarks->boo_shared[$i] == "1") {
                $printShared = $strings["yes"];
            } else {
                $printShared = $strings["no"];
            }
            $block1->cellRow($printShared);
        } else {
            $block1->cellRow($blockPage->buildLink($listBookmarks->boo_mem_email_work[$i], $listBookmarks->boo_mem_login[$i], mail));
        }
        $block1->closeRow();
    }
    $block1->closeResults();
} else {
    $block1->noresults();
}
$block1->closeFormResults();
$block1->openPaletteScript();
$block1->paletteScript(0, "add", "../bookmarks/editbookmark.php?", "true,false,false", $strings["add"]);
if ($view == "my") {
    $block1->paletteScript(1, "remove", "../bookmarks/deletebookmarks.php?", "false,true,true", $strings["delete"]);
}
/*$if ($sitePublish == "true") {
		$block1->paletteScript(3,"add_projectsite","../bookmarks/listbookmarks.php?addToSite=true&project=".$projectDetail->pro_id[0]."&action=publish","false,true,true",$strings["add_project_site"]);
		$block1->paletteScript(4,"remove_projectsite","../bookmarks/listbookmarks.php?removeToSite=true&project=".$projectDetail->pro_id[0]."&action=publish","false,true,true",$strings["remove_project_site"]);
	}*/
$block1->paletteScript(5, "info", "../bookmarks/viewbookmark.php?", "false,true,false", $strings["view"]);
if ($view == "my") {
    $block1->paletteScript(6, "edit", "../bookmarks/editbookmark.php?", "false,true,false", $strings["edit"]);
}
$block1->closePaletteScript($comptListBookmarks, $listBookmarks->boo_id);
include '../themes/' . THEME . '/footer.php';
Esempio n. 13
0
        if ($comptTopic != "0") {
            $block1->cellRow($topicNote[$listNotes->note_topic[$i]]);
        }
        $block1->cellRow($listNotes->note_date[$i]);
        $block1->cellRow(buildLink($listNotes->note_mem_email_work[$i], $listNotes->note_mem_login[$i], LINK_MAIL));
        if ($sitePublish == "true") {
            $block1->cellRow($statusPublish[$idPublish]);
        }
        $block1->closeRow();
    }
    $block1->closeResults();
} else {
    $block1->noresults();
}
$block1->closeFormResults();
$block1->openPaletteScript();
if ($teamMember == "true") {
    $block1->paletteScript(0, "add", "../notes/editnote.php?project={$project}", "true,false,false", $strings["add"]);
    $block1->paletteScript(1, "remove", "../notes/deletenotes.php?project={$project}", "false,true,true", $strings["delete"]);
    // $block1->paletteScript(2,"export","export.php?","false,true,true",$strings["export"]);
    if ($sitePublish == "true") {
        $block1->paletteScript(3, "add_projectsite", "../notes/listnotes.php?addToSite=true&project=" . $projectDetail->pro_id[0] . "&action=publish", "false,true,true", $strings["add_project_site"]);
        $block1->paletteScript(4, "remove_projectsite", "../notes/listnotes.php?removeToSite=true&project=" . $projectDetail->pro_id[0] . "&action=publish", "false,true,true", $strings["remove_project_site"]);
    }
}
$block1->paletteScript(5, "info", "../notes/viewnote.php?", "false,true,false", $strings["view"]);
if ($teamMember == "true") {
    $block1->paletteScript(6, "edit", "../notes/editnote.php?project={$project}", "false,true,false", $strings["edit"]);
}
$block1->closePaletteScript($comptListNotes, $listNotes->note_id);
require_once "../themes/" . THEME . "/footer.php";
Esempio n. 14
0
if ($bookmarkDetail->boo_owner[0] == $_SESSION['idSession']) {
    $block1->openPaletteIcon();
    $block1->paletteIcon(0, 'remove', $strings['delete']);
    /*if ($sitePublish == "true") {
    		$block1->paletteIcon(2,"add_projectsite",$strings["add_project_site"]);
    		$block1->paletteIcon(3,"remove_projectsite",$strings["remove_project_site"]);
    	}*/
    $block1->paletteIcon(4, 'edit', $strings['edit']);
    $block1->closePaletteIcon();
} else {
    $block1->heading_close();
}
$block1->openContent();
$block1->contentTitle($strings['info']);
$block1->contentRow($strings['name'], $bookmarkDetail->boo_name[0]);
$block1->contentRow($strings['url'], buildLink($bookmarkDetail->boo_url[0], $bookmarkDetail->boo_url[0], LINK_OUT));
$block1->contentRow($strings['description'], nl2br($bookmarkDetail->boo_description[0]));
$block1->closeContent();
$block1->block_close();
$block1->closeForm();
if ($bookmarkDetail->boo_owner[0] == $_SESSION['idSession']) {
    $block1->openPaletteScript();
    $block1->paletteScript(0, 'remove', '../bookmarks/deletebookmarks.php?id=' . $bookmarkDetail->boo_id[0], 'true,true,false', $strings['delete']);
    /*if ($sitePublish == "true") {
    		$block1->paletteScript(2,"add_projectsite","../bookmarks/viewbookmark.php?addToSite=true&id=".$noteDetail->note_id[0]."&action=publish","true,true,true",$strings["add_project_site"]);
    		$block1->paletteScript(3,"remove_projectsite","../bookmarks/viewbookmark.php?removeToSite=true&id=".$noteDetail->note_id[0]."&action=publish","true,true,true",$strings["remove_project_site"]);
    	}*/
    $block1->paletteScript(4, 'edit', '../bookmarks/editbookmark.php?id=' . $bookmarkDetail->boo_id[0], 'true,true,false', $strings['edit']);
    $block1->closePaletteScript('', '');
}
require_once '../themes/' . THEME . '/footer.php';
echo "<tr class=\"odd\"><td valign=\"top\" class=\"leftvalue\">&nbsp;</td><td><input type=\"SUBMIT\" value=\"" . $strings["save"] . "\"></td></tr>";
$block1->closeContent();
$block1->heading($strings["holidays"]);
$block1->openPaletteIcon();
$block1->paletteIcon(1, "remove", $strings["delete"]);
$block1->closePaletteIcon();
$tmpquery = " ORDER BY hol.date DESC";
$holidayList = new request();
$holidayList->openHoliday($tmpquery);
$comptHolidayList = count($holidayList->hol_id);
$block1->recordsTotal = $comptHolidayList;
if ($comptHolidayList > 0) {
    $block1->openResults();
    $block1->labels($labels = array(0 => $strings['date'], 1 => $strings['comments']), 'true', $sorting = false, $sortingOff = array(0 => '0', 1 => 'DESC'));
    for ($i = 0; $i < $comptHolidayList; $i++) {
        $block1->openRow($holidayList->hol_id[$i]);
        $block1->checkboxRow($holidayList->hol_id[$i]);
        $block1->cellRow($holidayList->hol_date[$i]);
        $block1->cellRow($holidayList->hol_comments[$i]);
        $block1->closeRow();
    }
    $block1->closeResults();
} else {
    $block1->noresults();
}
$block1->closeFormResults();
$block1->openPaletteScript();
$block1->paletteScript(1, "remove", "../administration/deleteholidays.php?", "false,true,true", $strings["delete"]);
$block1->closePaletteScript($comptHolidayList, $holidayList->hol_id);
$block1->headingForm_close();
require_once "../themes/" . THEME . "/footer.php";
Esempio n. 16
0
    $block1->cellRow("{$strings['total']}:");
    $block1->cellRow($totalMemHours);
    $block1->closeRow();
    $block1->closeResults();
} else {
    $block1->noresults();
}
// close block1
$block1->closeFormResults();
$block1->block_close();
$block1->openPaletteScript();
$exportOptions = "";
// handle date ranges
if ($dateRange) {
    if ($exportOptions != "") {
        $exportOptions = "&S_COMPLETEDATE=DATERANGE&S_SDATE2={$s_sdate2}&S_EDATE2={$s_edate2}";
    } else {
        $exportOptions = "S_COMPLETEDATE=DATERANGE&S_SDATE2={$s_sdate2}&S_EDATE2={$s_edate2}";
    }
}
// a member selection was made
if ($S_mem != 'ALL' && $S_mem != "") {
    if ($exportOptions != "") {
        $exportOptions .= "&S_mem={$S_mem}";
    } else {
        $exportOptions .= "S_mem={$S_mem}";
    }
}
$block1->paletteScript(0, "export", "../reports/exporthours.php?{$exportOptions}", "true,false,false", $strings["export"]);
$block1->closePaletteScript($comptListHours, $listHours->tim_id);
require_once "../themes/" . THEME . "/footer.php";
$block1->openForm("../clients/listclients.php#" . $block1->form . "Anchor");
$block1->heading($strings["organizations"]);
$block1->openPaletteIcon();
$block1->paletteIcon(0, "add", $strings["add"]);
$block1->paletteIcon(1, "remove", $strings["delete"]);
$block1->closePaletteIcon();
$tmpquery = "WHERE org.id != '1' ORDER BY org.url DESC";
$listOrganizations = new request();
$listOrganizations->openOrganizations($tmpquery);
$comptListOrganizations = count($listOrganizations->org_id);
if ($comptListOrganizations != "0") {
    $block1->openResults($checkbox = "false");
    $block1->labels($labels = array(0 => $strings["name"], 1 => $strings["phone"], 2 => $strings["url"]), "false", $sorting = "false", $sortingOff = array(0 => "2", 1 => "DESC"));
    for ($i = 0; $i < $comptListOrganizations; $i++) {
        $block1->openRow();
        $block1->checkboxRow($listOrganizations->org_id[$i], $checkbox = "false");
        $block1->cellRow(buildLink("../clients/viewclient.php?id=" . $listOrganizations->org_id[$i], $listOrganizations->org_name[$i], LINK_INSIDE));
        $block1->cellRow($listOrganizations->org_phone[$i]);
        $block1->cellRow(buildLink($listOrganizations->org_url[$i], $listOrganizations->org_url[$i], LINK_OUT));
        $block1->closeRow();
    }
    $block1->closeResults();
} else {
    $block1->noresults();
}
$block1->closeFormResults();
$block1->openPaletteScript();
$block1->paletteScript(0, "add", "../clients/editclient.php?", "true,false,false", $strings["add"]);
$block1->paletteScript(1, "remove", "../clients/deleteclients.php?", "false,true,true", $strings["delete"]);
$block1->closePaletteScript($comptListOrganizations, $listOrganizations->org_id);
require_once "../themes/" . THEME . "/footer.php";
Esempio n. 18
0
            }
            if ($listPermitted->tea_log_connected[$i] > $dateunix - 5 * 60) {
                $block2->cellRow($strings['yes'] . ' ' . $z);
            } else {
                $block2->cellRow($strings['no']);
            }
            if ($sitePublish == 'true') {
                $block2->cellRow($statusPublish[$idPublish]);
            }
            $block2->closeRow();
        }
        $block2->closeResults();
    } else {
        $block2->noresults();
    }
    $block2->closeFormResults();
    if ($_SESSION['idSession'] == $projectDetail->pro_owner[0] || $_SESSION['profilSession'] == '5') {
        $block2->openPaletteScript();
        $block2->paletteScript(0, 'add', '../teams/addclientuser.php?project=' . $id, 'true,false,false', $strings['add']);
        $block2->paletteScript(1, 'remove', '../teams/deleteclientusers.php?project=' . $id, 'false,true,true', $strings['delete']);
        if ($sitePublish == 'true') {
            $block2->paletteScript(2, 'add_projectsite', '../projects/viewprojectsite.php?addToSiteTeam=true&project=' . $projectDetail->pro_id[0] . '&action=publish', 'false,true,true', $strings['add_project_site']);
            $block2->paletteScript(3, 'remove_projectsite', '../projects/viewprojectsite.php?removeToSiteTeam=true&project=' . $projectDetail->pro_id[0] . '&action=publish', 'false,true,true', $strings['remove_project_site']);
        }
        $block2->closePaletteScript($comptListPermitted, $listPermitted->tea_mem_id);
    }
    $block2->closeContent();
    $block2->block_close();
    $block2->closeForm();
}
require_once '../themes/' . THEME . '/footer.php';
Esempio n. 19
0
$comptListTeam = count($listTeam->tea_id);
$block1->openResults();
$block1->labels($labels = array(0 => $strings["full_name"], 1 => $strings["title"], 2 => $strings["user_name"], 3 => $strings["work_phone"], 4 => $strings["connected"], 5 => $strings["published"]), "true");
for ($i = 0; $i < $comptListTeam; $i++) {
    if ($listTeam->tea_mem_phone_work[$i] == "") {
        $listTeam->tea_mem_phone_work[$i] = $strings["none"];
    }
    $idPublish = $listTeam->tea_published[$i];
    $block1->openRow($listTeam->tea_mem_id[$i]);
    $block1->checkboxRow($listTeam->tea_mem_id[$i]);
    $block1->cellRow(buildLink("../users/viewuser.php?id=" . $listTeam->tea_mem_id[$i], $listTeam->tea_mem_name[$i], LINK_INSIDE));
    $block1->cellRow($listTeam->tea_mem_title[$i]);
    $block1->cellRow(buildLink($listTeam->tea_mem_email_work[$i], $listTeam->tea_mem_login[$i], LINK_MAIL));
    $block1->cellRow($listTeam->tea_mem_phone_work[$i]);
    if ($listTeam->tea_log_connected[$i] > $dateunix - 5 * 60) {
        $block1->cellRow($strings["yes"] . " " . $z);
    } else {
        $block1->cellRow($strings["no"]);
    }
    if ($sitePublish == "true") {
        $block1->cellRow($statusPublish[$idPublish]);
    }
    $block1->closeRow();
}
$block1->closeResults();
$block1->closeFormResults();
$block1->openPaletteScript();
$block1->paletteScript(0, "add", "../teams/adduser.php?project=" . $projectDetail->pro_id[0] . "", "true,true,true", $strings["add"]);
$block1->paletteScript(1, "remove", "../teams/deleteusers.php?project=" . $projectDetail->pro_id[0] . "", "false,true,true", $strings["delete"]);
$block1->closePaletteScript($comptListTeam, $listTeam->tea_mem_id);
require_once "../themes/" . THEME . "/footer.php";
Esempio n. 20
0
            $block1->cellRow("<b>" . $listMeetings->mee_date[$i] . "</b>");
        } else {
            $block1->cellRow($listMeetings->mee_date[$i]);
        }
        $block1->cellRow($complValue);
        $block1->closeRow();
    }
    $block1->closeResults();
    $block1->bornesFooter("1", $blockPage->bornesNumber, "", "project={$project}");
} else {
    $block1->noresults();
}
$block1->closeFormResults();
$block1->openPaletteScript();
if ($teamMember == "true") {
    $block1->paletteScript(0, "add", "../meetings/editmeeting.php?project={$project}", "true,false,false", $strings["add"]);
    $block1->paletteScript(1, "remove", "../meetings/deletemeetings.php?project={$project}", "false,true,true", $strings["delete"]);
    $block1->paletteScript(2, "copy", "../meetings/editmeeting.php?project={$project}&cpy=true", "false,true,false", $strings["copy"]);
    // $block1->paletteScript(3,"export","export.php?","false,true,true",$strings["export"]);
    if ($sitePublish == "true") {
        $block1->paletteScript(4, "add_projectsite", "../meetings/listmeetings.php?addToSite=true&project=" . $projectDetail->pro_id[0] . "&action=publish", "false,true,true", $strings["add_project_site"]);
        $block1->paletteScript(5, "remove_projectsite", "../meetings/listmeetings.php?removeToSite=true&project=" . $projectDetail->pro_id[0] . "&action=publish", "false,true,true", $strings["remove_project_site"]);
    }
}
$block1->paletteScript(6, "info", "../meetings/viewmeeting.php?", "false,true,false", $strings["view"]);
if ($teamMember == "true") {
    $block1->paletteScript(7, "edit", "../meetings/editmeeting.php?project={$project}", "false,true,true", $strings["edit"]);
    $block1->paletteScript(8, "timelog", "../meetings/addmeetingtime.php?", "false,true,false", $strings["loghours"]);
}
$block1->closePaletteScript($comptListMeetings, $listMeetings->mee_id);
require_once "../themes/" . THEME . "/footer.php";
Esempio n. 21
0
//--- header ---
$breadcrumbs[] = buildLink("../clients/listclients.php?", $strings["organizations"], LINK_INSIDE);
$breadcrumbs[] = $strings["organizations"];
//--- content ----
require_once "../themes/" . THEME . "/header.php";
$block1 = new block();
$block1->form = "ecD";
$block1->openForm("../projects/listprojects.php#" . $block1->form . "Anchor");
$block1->headingToggle($strings["organization"] . " : " . $clientDetail->org_name[0]);
$block1->openPaletteIcon();
$block1->paletteIcon(0, "remove", $strings["delete"]);
$block1->paletteIcon(1, "edit", $strings["edit"]);
$block1->closePaletteIcon();
$block1->openContent();
$block1->contentTitle($strings["details"]);
$block1->contentRow($strings["name"], $clientDetail->org_name[0]);
$block1->contentRow($strings["address"], $clientDetail->org_address1[0]);
$block1->contentRow($strings["phone"], $clientDetail->org_phone[0]);
$block1->contentRow($strings["url"], buildLink($clientDetail->org_url[0], $clientDetail->org_url[0], LINK_OUT));
$block1->contentRow($strings["email"], buildLink($clientDetail->org_email[0], $clientDetail->org_email[0], LINK_MAIL));
$block1->contentTitle($strings["details"]);
$block1->contentRow($strings["comments"], nl2br($clientDetail->org_comments[0]));
$block1->contentRow($strings["created"], createDate($clientDetail->org_created[0], $_SESSION['timezoneSession']));
$block1->closeContent();
$block1->closeToggle();
$block1->closeForm();
$block1->openPaletteScript();
$block1->paletteScript(0, "remove", "../clients/deleteclients.php?id=" . $clientDetail->org_id[0] . "", "true,true,false", $strings["delete"]);
$block1->paletteScript(1, "edit", "../clients/editclient.php?id=" . $clientDetail->org_id[0] . "", "true,true,false", $strings["edit"]);
$block1->closePaletteScript("", "");
require_once "../themes/" . THEME . "/footer.php";
Esempio n. 22
0
$block1->contentRow($strings["user"], buildLink($requestDetail->sr_mem_email_work[0], $requestDetail->sr_mem_name[0], LINK_MAIL));
$block1->contentRow($strings["message"], nl2br($requestDetail->sr_message[0]));
$block1->contentTitle($strings["responses"]);
if ($teamMember == "true" || $_SESSION['profilSession'] != "0") {
    $block1->contentRow("", buildLink("../support/addpost.php?id=" . $requestDetail->sr_id[0], $strings["add_support_response"], LINK_INSIDE));
}
for ($i = 0; $i < $comptListPosts; $i++) {
    $block1->contentRow($strings["posted_by"], buildLink($listPosts->sp_mem_email_work[$i], $listPosts->sp_mem_name[$i], LINK_MAIL));
    $block1->contentRow($strings["date"], createDate($listPosts->sp_date[$i], $_SESSION['timezoneSession']));
    if ($teamMember == "true" || $_SESSION['profilSession'] == "0") {
        $block1->contentRow(buildLink("../support/deleterequests.php?action=deleteP&amp;id=" . $listPosts->sp_id[$i], $strings["delete_message"], LINK_INSIDE), nl2br($listPosts->sp_message[$i]));
    } else {
        $block1->contentRow("", nl2br($listPosts->sp_message[$i]));
    }
    $block1->contentRow("", "", "true");
}
if ($status == $requestStatus[0]) {
    $status = "new";
} elseif ($status == $requestStatus[1]) {
    $status = "open";
} elseif ($status == $requestStatus[2]) {
    $status = "complete";
}
$block1->closeContent();
$block1->openPaletteScript();
$block1->paletteScript(0, "edit", "../support/addpost.php?action=status&id=" . $requestDetail->sr_id[0] . "", "true,true,true", $strings["edit_status"]);
$block1->paletteScript(1, "remove", "../support/deleterequests.php?action=deleteR&sendto={$status}&id=" . $requestDetail->sr_id[0] . "", "true,true,true", $strings["delete"]);
$block1->closePaletteScript($comptListRequests, $listRequests->sr_id);
$block1->headingForm_close();
$block1->closeForm();
require_once "../themes/" . THEME . "/footer.php";
Esempio n. 23
0
         echo " " . buildLink("../meetings/accessfile.php?mode=download&amp;id=" . $listReviews->mat_id[$i], $strings["save"], LINK_INSIDE);
     } else {
         echo $strings["missing_file"];
     }
     echo "</td><td align=\"right\">Revision: {$displayrev}&nbsp;&nbsp;</td></tr>\r\n\t<tr><td>&nbsp;</td><td width=\"30%\">" . $strings["ifc_revision_of"] . " : " . $listReviews->mat_vc_version[$i] . "</td><td width=\"40%\">" . $strings["owner"] . " : " . $listReviews->mat_mem_name[$i] . "</td><td colspan=\"2\" align=\"left\" width=\"30%\">" . $strings["date"] . " : " . $listReviews->mat_date[$i] . "</td></tr>\r\n\t<tr><td>&nbsp;</td><td colspan=\"4\">" . $strings["comments"] . " : " . $listReviews->mat_comments[$i] . "</td></tr>\r\n\t</table><br>";
 }
 if ($i == 0) {
     echo "<tr class=\"odd\"><td></td><td>" . $strings["ifc_no_revisions"] . "</td></tr>";
 }
 echo "</table></td></tr>";
 $block2->closeContent();
 $block2->headingForm_close();
 $block2->closeFormResults();
 if ($fileDetail->mat_owner[0] == $_SESSION['idSession']) {
     $block2->openPaletteScript();
     $block2->paletteScript(0, "remove", "../meetings/deletefiles.php?project=" . $fileDetail->mat_project[0] . "&meeting=" . $fileDetail->mat_meeting[0] . "&sendto=filedetails", "false,true,true", $strings["ifc_delete_review"]);
     $block2->closePaletteScript($comptListReviews, $listReviews->mat_id);
 }
 if ($teamMember == "true" || $_SESSION['profilSession'] == "5") {
     // Add new revision Block
     $block3 = new block();
     $block3->form = "filedetails";
     echo "<a name=\"filedetailsAnchor\"></a>";
     echo "<form accept-charset=\"UNKNOWN\" method=\"POST\" action=\"../meetings/viewfile.php?action=add&amp;id=" . $fileDetail->mat_id[0] . "#filedetailsAnchor\" name=\"filedetailsForm\" enctype=\"multipart/form-data\"><input type=\"hidden\" name=\"MAX_FILE_SIZE\" value=\"100000000\"><input type=\"hidden\" name=\"maxCustom\" value=\"" . $projectDetail->pro_upload_max[0] . "\">";
     if ($error3 != "") {
         $block3->headingError($strings["errors"]);
         $block3->contentError($error3);
     }
     $block3->headingForm($strings["ifc_add_revision"]);
     $block3->openContent();
     $block3->contentTitle($strings["details"]);
Esempio n. 24
0
         for ($i = 0; $i < $comptListCalendar; $i++) {
             $block1->openRow($listCalendar->cal_id[$i]);
             $block1->checkboxRow($listCalendar->cal_id[$i]);
             $block1->cellRow(buildLink("../calendar/viewcalendar.php?{$dateEnreg}=" . $listCalendar->cal_id[$i] . "&amp;viewCalend={$viewCalend}&amp;type=calendDetail&amp;dateCalend={$dateCalend}", $listCalendar->cal_shortname[$i], LINK_INSIDE));
             $block1->cellRow($listCalendar->cal_subject[$i]);
             $block1->cellRow($listCalendar->cal_date_start[$i]);
             $block1->cellRow($listCalendar->cal_date_end[$i]);
             $block1->closeRow();
         }
         $block1->closeResults();
     } else {
         $block1->noresults();
     }
     $block1->closeFormResults();
     $block1->openPaletteScript();
     $block1->paletteScript(0, "add", "../calendar/viewcalendar.php?viewCalend={$viewCalend}&dateCalend={$dateCalend}&type=calendEdit", "true,false,false", $strings["add"]);
     $block1->paletteScript(1, "remove", "../calendar/deletecalendar.php?", "false,true,true", $strings["delete"]);
     $block1->paletteScript(2, "info", "../calendar/viewcalendar.php?viewCalend={$viewCalend}&dateCalend={$dateCalend}&type=calendDetail", "false,true,false", $strings["view"]);
     $block1->paletteScript(3, "edit", "../calendar/viewcalendar.php?viewCalend={$viewCalend}&dateCalend={$dateCalend}&type=calendEdit", "false,true,false", $strings["edit"]);
     $block1->closePaletteScript($comptListCalendar, $listCalendar->cal_id);
 } else {
     if ($type == "monthPreview") {
         //--- header ----
         $breadcrumbs[] = buildLink("../calendar/viewcalendar.php?", $strings["calendar"], LINK_INSIDE);
         $breadcrumbs[] = "{$monthName} {$year}";
         $pageSection = 'calendar';
         require_once "../themes/" . THEME . "/header.php";
         $tmpquery = "WHERE tea.member = '" . $_SESSION['idSession'] . "' ORDER BY tea.project";
         $teamList = new request();
         $teamList->openTeams($tmpquery);
         $comptTeamList = count($teamList->tea_id);
Esempio n. 25
0
$block1->closePaletteIcon();
// ok, now to list up all the phrases
$block1->openResults();
$block1->labels($labels = array(0 => text('Label'), 1 => text('Translation')), $published = "true", "true", $sortingOff = array(0 => '0', 1 => 'DESC'));
reset($translations);
$id = 0;
$checkboxes = array();
foreach ($translations as $key => $value) {
    if ($id >= $offset && $id < $offset + $pagesize) {
        $block1->openRow($id);
        $block1->checkboxRow($id);
        $block1->cellRow(htmlspecialchars($key, ENT_QUOTES));
        $block1->cellRow("<input type='hidden' name='key" . $id . "' value=\"" . htmlspecialchars($key, ENT_QUOTES) . "\">" . "<input size='80' name='trans" . $id . "' value=\"" . htmlspecialchars($value, ENT_QUOTES) . "\">", 100);
        $block1->closeRow();
        $checkboxes[] = $id;
    }
    $id++;
}
$block1->closeResults();
$block1->openContent();
echo "<TR><TD ALIGN='right'>";
echo text("click_to_save") . ": <input type='submit' value='" . text('save_translation') . "'>";
echo "</TD></TR>";
$block1->closeContent();
$block1->openPaletteScript();
$block1->paletteScript(1, "remove", "../administration/edit_language.php?language=" . $sellang . "&offset=" . $offset . "&action=delete", "false,true,true", text("delete"));
$block1->closePaletteScript($id, $checkboxes);
$block1->closeForm();
$block1->headingForm_close();
$block1->block_close();
require_once '../themes/' . THEME . '/footer.php';
        if ($sitePublish == "true") {
            if ($listProjects->pro_published[$i] == "1") {
                $block1->cellRow("&lt;" . buildLink("../projects/addprojectsite.php?id=" . $listProjects->pro_id[$i], $strings["create"] . "...", LINK_INSIDE) . "&gt;");
            } else {
                $block1->cellRow("&lt;" . buildLink("../projects/viewprojectsite.php?id=" . $listProjects->pro_id[$i], $strings["details"], LINK_INSIDE) . "&gt;");
            }
        }
        $block1->closeRow();
    }
    $block1->closeResults();
    $block1->bornesFooter("1", $blockPage->bornesNumber, "", "searchfor={$searchfor}&amp;heading={$heading}");
    $block1->closeToggle();
    $block3->headingForm_close();
    $block1->closeFormResults();
    $block1->openPaletteScript();
    $block1->paletteScript(0, "export", "../projects/exportproject.php?languageSession=" . $_SESSION['languageSession'] . "&type=project", "false,true,false", $strings["export"]);
    $block1->closePaletteScript($comptListProjects, $listProjects->pro_id);
}
if ($comptListTasks != "0") {
    $block2->form = "TaskForm";
    $block2->openForm("../search/resultssearch.php?searchfor={$searchfor}&amp;heading={$heading}#" . $block2->form . "Anchor");
    $block2->headingForm($strings["search_results"] . " : " . $strings["tasks"] . " ({$block2->recordsTotal})");
    /*$block2->openPaletteIcon();
    $block2->paletteIcon(0,"export",$strings["export"]);
    
    
    $block2->closePaletteIcon();*/
    $block2->openResults();
    $block2->labels($labels = array(0 => $strings["task"], 1 => $strings["priority"], 2 => $strings["status"], 3 => $strings["due_date"], 4 => $strings["assigned_to"], 5 => $strings["project"], 6 => $strings["published"]), "true");
    for ($i = 0; $i < $comptListTasks; $i++) {
        if ($listTasks->tas_due_date[$i] == "") {
Esempio n. 27
0
        if ($_SESSION['profilSession'] == 1 or $_SESSION['profilSession'] == 5 or $_SESSION['idSession'] == $listTaskTimes->tim_owner[$i]) {
            $block2->openRow($listTaskTimes->tim_id[$i]);
            $block2->checkboxRow($listTaskTimes->tim_id[$i], 'true');
            $block2->cellRow($listTaskTimes->tim_mem_name[$i]);
            $block2->cellRow($listTaskTimes->tim_date[$i]);
            $block2->cellRow($listTaskTimes->tim_hours[$i]);
            $block2->cellRow($listTaskTimes->tim_created[$i]);
            $block2->cellRow($listTaskTimes->tim_modified[$i]);
            // truncate large comments to keep the display clean
            $comments = $listTaskTimes->tim_comments[$i];
            $lenComm = 40;
            if (strLen($comments) > $lenComm) {
                $comments = substr($listTaskTimes->tim_comments[$i], 0, $lenComm) . ' ...';
            }
            $block2->cellRow($comments);
            $block2->closeRow();
        }
    }
    $block2->closeResults();
    $block2->bornesFooter("1", $blockPage->bornesNumber, "", "id={$id}");
} else {
    $block2->noresults();
}
$block2->closeFormResults();
$block2->block_close();
$block2->closeForm();
$block2->openPaletteScript();
$block2->paletteScript(0, "remove", "../tasks/deletetasktime.php?task={$id}", "false,true,true", $strings["delete"]);
$block2->paletteScript(1, "edit", "../tasks/edittasktime.php?task={$id}", "false,true,false", $strings["edit"]);
$block2->closePaletteScript($comptListTaskTimes, $listTaskTimes->tim_id);
require_once "../themes/" . THEME . "/footer.php";
Esempio n. 28
0
function prj_edit_task_icons($pid, $taskid, $mode = '')
{
    global $_CONF, $strings;
    ob_start();
    $block = new block();
    $block->form = "textblk";
    $block->openForm($_CONF['site_url'] . "/nexproject/viewproject.php");
    $block->openPaletteIcon();
    $block->paletteIcon(0, "add", $strings["add"]);
    $block->paletteIcon(1, "remove", $strings["delete"]);
    if ($mode != 'view') {
        $block->paletteIcon(2, "info", $strings["view"]);
    }
    if ($mode != 'edit') {
        $block->paletteIcon(3, "edit", $strings["edit"]);
    }
    $block->paletteIcon(4, "copy", $strings["copy"]);
    $block->closePaletteIcon();
    $block->openPaletteScript();
    $block->paletteScript(0, "add", $_CONF['site_url'] . "/nexproject/viewproject.php?mode=add&pid={$pid}&id={$taskid}", "true,false,false", $strings["add"]);
    $block->paletteScript(1, "remove", $_CONF['site_url'] . "/nexproject/viewproject.php?mode=delete&id={$taskid}", "true,false,false", $strings["delete"]);
    if ($mode != 'view') {
        $block->paletteScript(2, "info", $_CONF['site_url'] . "/nexproject/viewproject.php?mode=view&id={$taskid}", "true,false,false", $strings["view"]);
    }
    if ($mode != 'edit') {
        $block->paletteScript(3, "edit", $_CONF['site_url'] . "/nexproject/viewproject.php?mode=edit&id={$taskid}", "true,false,false", $strings["edit"]);
    }
    $block->paletteScript(4, "copy", $_CONF['site_url'] . "/nexproject/viewproject.php?mode=copy&id={$taskid}", "true,false,false", $strings["copy"]);
    $block->closePaletteScript(0, $taskid);
    echo '</form>';
    $edit_icons = ob_get_contents();
    ob_end_clean();
    return $edit_icons;
}
Esempio n. 29
0
    $block1->openRow();
    $block1->checkboxRow($listTeam->tea_mem_id[$i]);
    $block1->cellRow($blockPage->buildLink("../users/viewuser.php?id=" . $listTeam->tea_mem_id[$i], $listTeam->tea_mem_name[$i], in));
    $block1->cellRow($listTeam->tea_mem_title[$i]);
    $block1->cellRow($blockPage->buildLink($listTeam->tea_mem_email_work[$i], $listTeam->tea_mem_login[$i], mail));
    $block1->cellRow($listTeam->tea_mem_phone_work[$i]);
    if ($listTeam->tea_log_connected[$i] > $dateunix - 5 * 60) {
        $block1->cellRow($strings["yes"] . " " . $z);
    } else {
        $block1->cellRow($strings["no"]);
    }
    if ($sitePublish == "true") {
        $block1->cellRow($statusPublish[$idPublish]);
    }
    $block1->closeRow();
}
$block1->closeResults();
$block1->closeFormResults();
$block1->openPaletteScript();
if ($idSession == $projectDetail->pro_owner[0] || $profilSession == "5") {
    $block1->paletteScript(0, "add", "../teams/adduser.php?project=" . $projectDetail->pro_id[0] . "", "true,true,true", $strings["add"]);
    $block1->paletteScript(1, "remove", "../teams/deleteusers.php?project=" . $projectDetail->pro_id[0] . "", "false,true,true", $strings["delete"]);
    if ($sitePublish == "true") {
        $block1->paletteScript(2, "add_projectsite", "../projects/viewproject.php?addToSiteTeam=true&project=" . $projectDetail->pro_id[0] . "&action=publish", "false,true,true", $strings["add_project_site"]);
        $block1->paletteScript(3, "remove_projectsite", "../projects/viewproject.php?removeToSiteTeam=true&project=" . $projectDetail->pro_id[0] . "&action=publish", "false,true,true", $strings["remove_project_site"]);
    }
}
$block1->paletteScript(4, "info", "../users/viewuser.php?", "false,true,false", $strings["view"]);
$block1->paletteScript(5, "email", "../users/emailusers.php?", "false,true,true", $strings["email"]);
$block1->closePaletteScript($comptListTeam, $listTeam->tea_mem_id);
include '../themes/' . THEME . '/footer.php';
Esempio n. 30
0
    if ($userPrefs->mem_last_page[0] == $key) {
        $startPageMenu .= '<option value="' . $key . '" selected>' . $value . '</option>';
    } else {
        $startPageMenu .= '<option value="' . $key . '">' . $value . '</option>';
    }
}
$startPageMenu .= '</select>';
$block1->contentRow($strings['start_page'], $startPageMenu);
if ($userPrefs->mem_profil[0] == "0") {
    $block1->contentRow($strings["permissions"], $strings["administrator_permissions"]);
} else {
    if ($userPrefs->mem_profil[0] == "1") {
        $block1->contentRow($strings["permissions"], $strings["project_manager_permissions"]);
    } else {
        if ($userPrefs->mem_profil[0] == "2") {
            $block1->contentRow($strings["permissions"], $strings["user_permissions"]);
        } else {
            if ($userPrefs->mem_profil[0] == "5") {
                $block1->contentRow($strings["permissions"], $strings["project_manager_administrator_permissions"]);
            }
        }
    }
}
$block1->contentRow($strings["account_created"], createDate($userPrefs->mem_created[0], $_SESSION['timezoneSession']));
$block1->contentRow("", "<input type=\"submit\" name=\"Save\" value=\"" . $strings["save"] . "\">");
$block1->closeContent();
$block1->closeForm();
$block1->openPaletteScript();
$block1->paletteScript(0, "export", "../users/exportuser.php?id=" . $_SESSION['idSession'], "true,true,true", $strings["export"]);
$block1->closePaletteScript("", "");
require_once "../themes/" . THEME . "/footer.php";