$breadcrumbs[] = buildLink('../projects/listprojects.php?show=active', $strings['active'], in) . ' | ' . buildLink('../projects/listprojects.php?show=inactive', $strings['inactive'], LINK_INSIDE) . ' | ' . $strings['all']; } } } //--- print header --- $pageSection = 'projects'; require_once '../themes/' . THEME . '/header.php'; $blockPage = new block(); $blockPage->bornesNumber = '1'; $block1 = new block(); $block1->form = 'saP'; $block1->openForm('../projects/listprojects.php?borne1=' . $borne1 . '&show=' . $show . '#' . $block1->form . 'Anchor'); $block1->heading($strings['projects']); $block1->openPaletteIcon(); if ($_SESSION['profilSession'] == 0 || $_SESSION['profilSession'] == 1 || $_SESSION['profilSession'] == 5) { $block1->paletteIcon(0, 'add', $strings['add']); $block1->paletteIcon(1, 'remove', $strings['delete']); } $block1->paletteIcon(2, 'info', $strings['view']); if ($_SESSION['profilSession'] == 0 || $_SESSION['profilSession'] == 1 || $_SESSION['profilSession'] == 5) { $block1->paletteIcon(3, 'edit', $strings['edit']); $block1->paletteIcon(4, 'copy', $strings['copy']); } if ($enable_cvs == 'true') { $block1->paletteIcon(7, 'cvs', $strings['browse_cvs']); } // will be replacing with internal module for bug tracking if ($enableMantis == 'true') { $block1->paletteIcon(8, 'bug', $strings['bug']); } $block1->closePaletteIcon();
$block1->form = "langedit"; $block1->openForm("../administration/edit_language.php?action=save&language=" . $sellang . "&count=" . count($translations) . "&offset=" . $offset); // build page links $numpages = count($translations) / $pagesize; $pagestr = ""; for ($i = 0; $i < $numpages; $i++) { $pagestr .= ' '; if ($offset / $pagesize != $i) { $pagestr .= buildLink('../administration/edit_language.php?offset=' . $i * $pagesize . '&language=' . $sellang, $i + 1); } else { $pagestr .= $i + 1; } } $block1->heading(text("Phrases") . " ( " . $pagestr . " )"); $block1->openPaletteIcon(); $block1->paletteIcon(1, "remove", text("delete")); $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;
$block10->form = 'wbTuuC'; $block10->openForm("../phases/listphases.php?id={$id}#" . $block10->form . "Anchor"); $block10->sorting('tasks_closed', $sortingUser->sor_tasks_closed[0], 'tas.due_date ASC', $sortingFields = array('tas.priority', 'tas.name', 'tas.status', 'tas.completion', 'tas.due_date', 'tas.parent_phase', 'mem.login', 'tas.published')); $block10->borne = $blockPage->returnBorne('1'); $block10->rowsLimit = '20'; //--- get data from sql --------- $tmpquery = "WHERE tas.project = '{$id}' AND tas.status NOT IN(0,2,3) AND tas.milestone = '1' ORDER BY {$block10->sortingValue}"; $block10->recordsTotal = compt($initrequest['tasks'] . ' ' . $tmpquery); //--- list --------- $listTasks = new request(); $listTasks->openTasks($tmpquery, $block10->borne, $block10->rowsLimit); $comptListTasks = count($listTasks->tas_id); $block10->headingToggle($strings['tasks_closed'] . ' <span class=addition>(' . $comptListTasks . ')</span>'); $block10->openPaletteIcon(); if ($teamMember == 'true' || $_SESSION['profilSession'] == '5') { $block10->paletteIcon(0, 'add', $strings['add']); $block10->paletteIcon(1, 'remove', $strings['delete']); $block10->paletteIcon(2, 'copy', $strings['copy']); // $block10->paletteIcon(3,'export',$strings['export']); if ($sitePublish == 'true') { $block10->paletteIcon(4, 'add_projectsite', $strings['add_project_site']); $block10->paletteIcon(5, 'remove_projectsite', $strings['remove_project_site']); } } $block10->paletteIcon(6, 'info', $strings['view']); if ($teamMember == 'true' || $_SESSION['profilSession'] == '5') { $block10->paletteIcon(7, 'edit', $strings['edit']); $block10->paletteIcon(8, 'timelog', $strings['loghours']); } $block10->closePaletteIcon(); if ($comptListTasks != '0') {
$blockPage->itemBreadcrumbs($blockPage->buildLink("../projects/listprojects.php?", $strings["projects"], in)); $blockPage->itemBreadcrumbs($blockPage->buildLink("../projects/viewproject.php?id=" . $projectDetail->pro_id[0], $projectDetail->pro_name[0], in)); $blockPage->itemBreadcrumbs($blockPage->buildLink("../notes/listnotes.php?project=" . $projectDetail->pro_id[0], $strings["notes"], in)); $blockPage->itemBreadcrumbs($noteDetail->note_subject[0]); $blockPage->closeBreadcrumbs(); if ($msg != "") { include '../includes/messages.php'; $blockPage->messagebox($msgLabel); } $block1 = new block(); $block1->form = "tdD"; $block1->openForm("../notes/viewnote.php?" . session_name() . "=" . session_id() . "#" . $block1->form . "Anchor"); $block1->heading($strings["note"] . " : " . $noteDetail->note_subject[0]); if ($teamMember == "true" && $idSession == $noteDetail->note_owner[0]) { $block1->openPaletteIcon(); $block1->paletteIcon(0, "remove", $strings["delete"]); //$block1->paletteIcon(1,"export",$strings["export"]); 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(); } 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] != "") {
if ($fileDetail->mat_owner[0] == $_SESSION['idSession']) { $block1->openPaletteScript(); $block1->paletteScript(0, "remove", "../meetings/deletefiles.php?project=" . $fileDetail->mat_project[0] . "&meeting=" . $fileDetail->mat_meeting[0] . "&sendto=filedetails", "false,true,true", $strings["ifc_delete_version"]); $block1->paletteScript(1, "add_projectsite", "../meetings/viewfile.php?addToSiteFile=true&file=" . $fileDetail->mat_id[0] . "&action=publish", "true,true,true", $strings["add_project_site"]); $block1->paletteScript(2, "remove_projectsite", "../meetings/viewfile.php?removeToSiteFile=true&file=" . $fileDetail->mat_id[0] . "&action=publish", "true,true,true", $strings["remove_project_site"]); $block1->closePaletteScript($comptFileDetail, $fileDetail->mat_id); } if ($peerReview == "true") { // Revision list block $block2 = new block(); $block2->form = "tdC"; $block2->openForm("../meetings/viewfile.php?id={$id}#" . $block2->form . "Anchor"); $block2->heading($strings["ifc_revisions"]); if ($fileDetail->mat_owner[0] == $_SESSION['idSession']) { $block2->openPaletteIcon(); $block2->paletteIcon(0, "remove", $strings["ifc_delete_review"]); $block2->closePaletteIcon(); } if ($error2 != "") { $block2->headingError($strings["errors"]); $block2->contentError($error2); } $block2->openContent(); $block2->contentTitle($strings["details"]); echo "<tr class=\"odd\"><td valign=\"top\" class=\"leftvalue\"></td><td><br>"; $tmpquery = "WHERE mat.vc_parent = '{$id}' AND mat.vc_status != '3' ORDER BY mat.date"; $listReviews = new request(); $listReviews->openMeetingsAttachment($tmpquery); $comptListReviews = count($listReviews->mat_vc_parent); for ($i = 0; $i < $comptListReviews; $i++) { // Sort odds and evens for bg color
} $breadcrumbs[] = buildLink("../support/listrequests.php?id=" . $requestDetail->sr_project[0], $strings["support_requests"], LINK_INSIDE); $breadcrumbs[] = $requestDetail->sr_subject[0]; require_once "../themes/" . THEME . "/header.php"; //--- content --- $block1 = new block(); $block1->form = "sdt"; $block1->openForm(""); if ($error != "") { $block1->headingError($strings["errors"]); $block1->contentError($error); } $block1->headingForm($strings["support_request"] . " : " . $requestDetail->sr_subject[0]); if ($teamMember == "true" || $_SESSION['profilSession'] == "0") { $block1->openPaletteIcon(); $block1->paletteIcon(0, "edit", $strings["edit_status"]); $block1->paletteIcon(1, "remove", $strings["delete"]); $block1->closePaletteIcon(); } else { $block1->headingForm_close(); } $block1->openContent(); $block1->contentTitle($strings["info"]); $comptSupStatus = count($requestStatus); for ($i = 0; $i < $comptSupStatus; $i++) { if ($requestDetail->sr_status[0] == $i) { $status = $requestStatus[$i]; } } $comptPri = count($priority); for ($i = 0; $i < $comptPri; $i++) {
} if ($comptTotal > "1" || $comptTotal == "0") { echo "{$comptTotal} " . $strings["matches"]; } if ($comptTotal == "0") { echo "<br>" . $strings["no_results_search"]; } else { } echo "</td></tr>"; $block0->closeContent(); if ($comptListProjects != "0") { $block1->form = "ProjectForm"; $block1->openForm("../search/resultssearch.php?searchfor={$searchfor}&heading={$heading}#" . $block1->form . "Anchor"); $block1->heading($strings["search_results"] . " : " . $strings["projects"] . " ({$block1->recordsTotal})"); $block1->openPaletteIcon(); $block1->paletteIcon(0, "export", $strings["export"]); $block1->closePaletteIcon(); $block1->openResults(); $block1->labels($labels = array(0 => $strings["id"], 1 => $strings["project"], 2 => $strings["priority"], 3 => $strings["organization"], 4 => $strings["status"], 5 => $strings["owner"], 6 => $strings["published"]), "true"); for ($i = 0; $i < $comptListProjects; $i++) { if ($listProjects->pro_org_id[$i] == "1") { $listProjects->pro_org_name[$i] = $strings["none"]; } $idStatus = $listProjects->pro_status[$i]; $idPriority = $listProjects->pro_priority[$i]; $block1->openRow($listProjects->pro_id[$i]); $block1->checkboxRow($listProjects->pro_id[$i]); $block1->cellRow(buildLink("../projects/viewproject.php?id=" . $listProjects->pro_id[$i], $listProjects->pro_id[$i], LINK_INSIDE)); $block1->cellRow(buildLink("../projects/viewproject.php?id=" . $listProjects->pro_id[$i], $listProjects->pro_name[$i], LINK_INSIDE)); $block1->cellRow('<img src="../themes/' . THEME . '/gfx_priority/' . $idPriority . '.gif" alt="' . $priority[$idPriority] . '"> ' . $priority[$idPriority], '', true); $block1->cellRow($listProjects->pro_org_name[$i]);
//$block4->paletteScript(2,"remove",$_CONF['site_url'] . // "/nexfile/details.php?op=deletefile","false,true,false",$strings["delete"]); $block4->paletteScript(2, "remove", $_CONF['site_url'] . "/nexproject/viewproject.php?pid={$pid}&mode=deletefile", "false,true,false", $strings["delete"]); $block4->closePaletteScript($comptListTasks, $listDoc->fid); } } } if ($A[is_using_forum_flag] == 'Y') { $blockPage->bornesNumber = "5"; $block5 = new block(); $block5->form = "forP"; $block5->openForm($_CONF['site_url'] . "/nexproject/viewproject.php?" . "#" . $block2->form . "Anchor"); $block5->headingToggle($strings["forum"]); if ($membertoken != 0) { $block5->openPaletteIcon(); $block5->paletteIcon(0, "view", $strings["view"]); $block5->paletteIcon(1, "info", $strings["add"]); $block5->closePaletteIcon(); } $block5->borne = $blockPage->returnBorne("5"); $block5->rowsLimit = 5; $block5->sorting('discussions', $sortingUser[forum], "{$_TABLES['gf_topic']}.lastupdated DESC", $sortingFields = array(0 => "{$_TABLES['gf_topic']}.subject", 1 => "{$_TABLES['gf_topic']}.name", 2 => "{$_TABLES['gf_topic']}.lastupdated", 3 => "{$_TABLES['gf_topic']}.replies")); $sql = "SELECT {$_TABLES['gf_topic']}.id,{$_TABLES['gf_topic']}.pid,"; $sql .= "{$_TABLES['gf_topic']}.subject,{$_TABLES['users']}.fullname,"; $sql .= "{$_TABLES['gf_topic']}.lastupdated,{$_TABLES['gf_topic']}.replies "; $sql .= "FROM {$_TABLES['gf_topic']}, {$_TABLES['users']} "; $sql .= "WHERE forum={$A['fid']} AND pid=0 "; $sql .= "AND {$_TABLES['gf_topic']}.uid={$_TABLES['users']}.uid "; $sql .= "ORDER BY {$block5->sortingValue}"; $result = DB_query($sql); $block5->recordsTotal = DB_numrows($result);
$block1->openPaletteScript(); $block1->paletteScript(0, "remove", "../invoicing/deleteinvoices.php?id=" . $detailInvoice->inv_id[0] . "&client=" . $projectDetail->pro_org_id[0] . "", "true,true,false", $strings["delete"]); $block1->paletteScript(2, "export", "exportinvoice.php?id={$id}", "true,true,false", $strings["export"]); if ($sitePublish == "true") { $block1->paletteScript(3, "add_projectsite", "../invoicing/viewinvoice.php?addToSite=true&id=" . $detailInvoice->inv_id[0] . "&action=publish", "true,true,true", $strings["add_project_site"]); $block1->paletteScript(4, "remove_projectsite", "../invoicing/viewinvoice.php?removeToSite=true&id=" . $detailInvoice->inv_id[0] . "&action=publish", "true,true,true", $strings["remove_project_site"]); } $block1->paletteScript(5, "edit", "../invoicing/editinvoice.php?id=" . $detailInvoice->inv_id[0], "true,true,false", $strings["edit"]); $block1->closePaletteScript("", ""); $block2 = new block(); $block2->form = "invoiceItems"; $block2->openForm("../invoicing/viewinvoice.php?id={$id}&" . session_name() . "=" . session_id() . "#" . $block2->form . "Anchor"); $block2->headingToggle($strings["invoice_items"]); $block2->openPaletteIcon(); //$block2->paletteIcon(6,"info",$strings["view"]); $block2->paletteIcon(7, "edit", $strings["edit"]); $block2->closePaletteIcon(); $tmpquery = "WHERE invitem.invoice = '{$id}' AND invitem.active = '1' ORDER BY invitem.position ASC"; $listInvoicesItems = new request(); $listInvoicesItems->openInvoicesItems($tmpquery); $comptListInvoicesItems = count($listInvoicesItems->invitem_id); if ($comptListInvoicesItems != "0") { $block2->openResults(); $block2->labels($labels = array(0 => $strings["position"], 1 => $strings["title"], 2 => $strings["rate_type"], 3 => $strings["rate_value"], 4 => $strings["amount_ex_tax"], 5 => $strings["completed"]), "false", $sorting = "false", $sortingOff = array(0 => "0", 1 => "ASC")); for ($i = 0; $i < $comptListInvoicesItems; $i++) { if ($listInvoicesItems->invitem_rate_type[$i] == "a") { $rate_type_value = "0"; } else { if ($listInvoicesItems->invitem_rate_type[$i] == "b") { $rate_type_value = "1"; } else {
$breadcrumbs[] = buildLink("../projects/viewproject.php?id=" . $detailProject->pro_id[0], $detailProject->pro_name[0], LINK_INSIDE); $breadcrumbs[] = buildLink("../topics/listtopics.php?project=" . $detailProject->pro_id[0], $strings["discussions"], LINK_INSIDE); $breadcrumbs[] = $detailTopic->top_subject[0]; //--- content --- require_once "../themes/" . THEME . "/header.php"; $block1 = new block(); $block1->form = "tdP"; $block1->openForm(""); if ($error != "") { $block1->headingError($strings["errors"]); $block1->contentError($error); } $block1->heading($strings["discussion"] . " : " . $detailTopic->top_subject[0]); if ($_SESSION['idSession'] == $detailTopic->top_owner[0]) { $block1->openPaletteIcon(); $block1->paletteIcon(0, "remove", $strings["remove"]); $block1->paletteIcon(1, "lock", $strings["close"]); $block1->paletteIcon(2, "add_projectsite", $strings["add_project_site"]); $block1->paletteIcon(3, "remove_projectsite", $strings["remove_project_site"]); $block1->closePaletteIcon(); } else { $block1->heading_close(); } $block1->openContent(); $block1->contentTitle($strings["info"]); $block1->contentRow($strings["project"], buildLink("../projects/viewproject.php?id=" . $detailProject->pro_id[0], $detailProject->pro_name[0] . " (#" . $detailProject->pro_id[0] . ")", LINK_INSIDE)); $block1->contentRow($strings["organization"], $detailProject->pro_org_name[0]); $block1->contentRow($strings["owner"], buildLink("../users/viewuser.php?id=" . $detailProject->pro_mem_id[0], $detailProject->pro_mem_name[0], in) . " (" . buildLink($detailProject->pro_mem_email_work[0], $detailProject->pro_mem_login[0], LINK_MAIL) . ")"); if ($sitePublish == "true") { $block1->contentRow($strings["published"], $statusPublish[$idPublish]); }
} echo "<option value='" . $projmem->mem_id[$i] . "'" . $selected . ">" . $projmem->mem_name[$i] . "{$clientUser}</option>"; } echo "</select></form>"; } //--- content ----- $block2 = new block(); $block2->form = 'Calendar'; //$block2->openForm('../clients/listclients.php#' . $block1->form . 'Anchor'); $block2->heading($dateCalend); $block2->openPaletteIcon(); if ($_SESSION['profilSession'] == '0' || $_SESSION['profilSession'] == '1' || $_SESSION['profilSession'] == '5') { //$block2->paletteIcon(0, 'add', $strings['add']); //$block2->paletteIcon(1, 'remove', $strings['delete']); } $block2->paletteIcon(2, 'info', $strings['view']); $block2->closePaletteIcon(); //$block2->headingForm($dateCalend); $block2->openContent(); echo "<tr><td>"; //Default week Calendar if ($displayStyle != "month") { echo "<div id='webcalendar' style='width:70%;height:680px;float:left;'><iframe frameborder='0' src='{$webCalendarURL}/week.php?date={$dateCalendWC}&user="******"' type='text/html' width='100%' height='100%'>Pas d'iFrame, pas de contenu.</iframe></div>"; echo "<div id='timesheet_encode' style='float:left;width:30%;height:680px;padding:0px;'><iframe frameborder='0' src='../_addon/addon_hours_summary.php?dateCalend={$dateCalend}&display=week&worker_id={$worker_id}' type='text/html' width='100%' height='100%'></iframe></div>"; } else { //Month Calendar echo "<div id='webcalendar' style='width:70%;height:1000px;float:left;'><iframe frameborder='0' src='{$webCalendarURL}/month.php?year=" . $yearCalend . "&month=" . $monthCalend . "' type='text/html' width='100%' height='100%'></iframe></div>"; echo "<div id='timesheet_encode' style='float:left;width:30%;height:1000px;padding:0px;'><iframe frameborder='0' src='../_addon/addon_hours_summary.php?dateCalend={$dateCalend}&display=month&worker_id={$worker_id}'' type='text/html' width='100%' height='100%'></iframe></div>"; } echo "</td></tr>"; $block2->closeContent();
$block1->paletteScript(3, "edit", "../newsdesk/editnews.php?id={$id}", "true,true,true", $strings["edit_newsdesk"]); } $block1->closePaletteScript($comptNewsDetail, $newsDetail->news_id); /////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////// comments block ////////////////////////////////// /////////////////////////////////////////////////////////////////////////////////// $tmpquery = "WHERE newscom.post_id = '" . fixInt($id) . "'"; $newsComments = new request(); $newsComments->openNewsDeskComments($tmpquery); $comptCommentsDetail = count($newsComments->newscom_id); $block2 = new block(); $block2->form = "clPrc"; $block2->openForm("../newsdesk/viewnews.php?" . session_name() . "=" . session_id() . "&id={$id}#" . $block2->form . "Anchor"); $block2->headingToggle($strings["comments"]); $block2->openPaletteIcon(); $block2->paletteIcon(0, "add", $strings["add_newsdesk_comment"]); $block2->paletteIcon(1, "edit", $strings["edit_newsdesk_comment"]); if ($profilSession == "0" || $profilSession == "1" || $profilSession == "5") { $block2->paletteIcon(2, "remove", $strings["del_newsdesk_comment"]); } $block2->closePaletteIcon(); $block1->borne = $blockPage->returnBorne("2"); $block2->openContent(); if ($comptCommentsDetail != "0") { $block2->openResults(); $block2->labels($labels = array(0 => $strings["name"], 1 => $strings["comment"]), "true"); for ($i = 0; $i < $comptCommentsDetail; $i++) { $tmpquery_user = "******" . $newsComments->newscom_name[$i] . "' "; $newsAuthor = new request(); $newsAuthor->openMembers($tmpquery_user); $block2->openRow();
$block1->contentRow("", "0 " . $strings["matches"] . "<br>" . $strings["no_results_report"]); } if ($comptListTasks == "1") { $block1->contentRow("", "1 " . $strings["match"]); } if ($comptListTasks > "1") { $block1->contentRow("", $comptListTasks . " " . $strings["matches"]); } $block0->closeContent(); $block1->form = "Tasks"; $block1->openForm("../reports/resultsreport.php?tri=true&id={$id}#" . $block1->form . "Anchor"); $block1->heading($strings["report_results"]); if ($comptListTasks != "0") { $block1->openPaletteIcon(); // $block1->paletteIcon(0,"export",$strings["export"]); $block1->paletteIcon(1, "edit", $strings["edit"]); $block1->closePaletteIcon(); $block1->openResults(); $block1->labels($labels = array(0 => $strings["id"], 1 => $strings["task"], 2 => $strings["priority"], 3 => $strings["status"], 4 => $strings["due_date"], 5 => $strings["complete_date"], 6 => $strings["assigned_to"], 7 => $strings["project"], 8 => $strings["published"]), "true"); for ($i = 0; $i < $comptListTasks; $i++) { $idStatus = $listTasks->tas_status[$i]; $idPriority = $listTasks->tas_priority[$i]; $idPublish = $listTasks->tas_published[$i]; $block1->openRow($listTasks->tas_id[$i]); $block1->checkboxRow($listTasks->tas_id[$i]); $block1->cellRow(buildLink("../tasks/viewtask.php?id=" . $listTasks->tas_id[$i], $listTasks->tas_id[$i], in)); $block1->cellRow(buildLink("../tasks/viewtask.php?id=" . $listTasks->tas_id[$i], $listTasks->tas_name[$i], in)); $block1->cellRow('<img src="../themes/' . THEME . '/gfx_priority/' . $idPriority . '.gif" alt="' . $priority[$idPriority] . '"> ' . $priority[$idPriority], '', true); $block1->cellRow($status[$idStatus]); if ($listTasks->tas_due_date[$i] <= $date && $listTasks->tas_completion[$i] != "10") { $block1->cellRow("<b>" . $listTasks->tas_due_date[$i] . "</b>");
$blockPage->openBreadcrumbs(); $blockPage->itemBreadcrumbs($blockPage->buildLink("../projects/listprojects.php?", $strings["projects"], in)); $blockPage->itemBreadcrumbs($blockPage->buildLink("../projects/viewproject.php?id=" . $projectDetail->pro_id[0], $projectDetail->pro_name[0], in)); $blockPage->itemBreadcrumbs($strings["phases"]); $blockPage->closeBreadcrumbs(); if ($msg != "") { include '../includes/messages.php'; $blockPage->messagebox($msgLabel); } if ($teamMember == "true" || $profilSession == "5") { $block7 = new block(); $block7->form = "wbSe"; $block7->openForm("../phases/listphases.php?id={$id}&" . session_name() . "=" . session_id() . "#" . $block7->form . "Anchor"); $block7->headingToggle($strings["phases"]); $block7->openPaletteIcon(); $block7->paletteIcon(0, "info", $strings["view"]); if ($teamMember == "true" || $profilSession == "5") { if ($idSession == $projectDetail->pro_owner[0] || $profilSession == "0" || $profilSession == "5") { $block7->paletteIcon(1, "edit", $strings["edit"]); } } $block7->closePaletteIcon(); $block7->sorting("phases", $sortingUser->sor_phases[0], "pha.order_num ASC", $sortingFields = array(0 => "pha.order_num", 1 => "pha.name", 2 => "none", 3 => "none", 4 => "pha.status", 5 => "pha.date_start", 6 => "pha.date_end")); $tmpquery = "WHERE pha.project_id = '{$id}' ORDER BY {$block7->sortingValue}"; $listPhases = new request(); $listPhases->openPhases($tmpquery); $comptListPhases = count($listPhases->pha_id); if ($comptListPhases != "0") { $block7->openResults(); $block7->labels($labels = array(0 => $strings["order"], 1 => $strings["name"], 2 => $strings["total_tasks"], 3 => $strings["uncomplete_tasks"], 4 => $strings["status"], 5 => $strings["date_start"], 6 => $strings["date_end"]), "false"); $tmpquery = "WHERE tas.project = '{$id}'";
if ($_SESSION['idSession'] == $projectDetail->pro_owner[0] || $_SESSION['profilSession'] == '5') { $block1->openPaletteScript(); $block1->paletteScript(0, 'remove', '../projects/deleteprojectsite.php?project=' . $id, 'true,true,true', $strings['delete']); // $block1->paletteScript(1,'template','addtemplate.php','true,true,true',$strings['template']); // $block1->paletteScript(1,'template','editprojectsite.php','true,true,false',$strings['template']); $block1->closePaletteScript('', ''); } //--- client permitted users ----------------------- if ($projectDetail->pro_organization[0] != '' && $projectDetail->pro_organization[0] != '1') { $block2 = new block(); $block2->form = 'csU'; $block2->openForm('../projects/viewprojectsite.php?id=' . $projectDetail->pro_id[0] . '#' . $block2->form . 'Anchor'); $block2->heading($strings['permitted_client']); if ($_SESSION['idSession'] == $projectDetail->pro_owner[0] || $_SESSION['profilSession'] == '5') { $block2->openPaletteIcon(); $block2->paletteIcon(0, 'add', $strings['add']); $block2->paletteIcon(1, 'remove', $strings['delete']); if ($sitePublish == 'true') { $block2->paletteIcon(2, 'add_projectsite', $strings['add_project_site']); $block2->paletteIcon(3, 'remove_projectsite', $strings['remove_project_site']); } $block2->closePaletteIcon(); } else { $block2->headingToggle_close(); } $block2->openContent(); $block2->sorting('team', $sortingUser->sor_team[0], 'mem.name ASC', $sortingFields = array(0 => 'mem.name', 1 => 'mem.title', 2 => 'mem.login', 3 => 'mem.phone_work', 4 => 'log.connected', 5 => 'tea.published')); $tmpquery = "WHERE tea.project = '{$id}' AND mem.profil = '3' ORDER BY {$block2->sortingValue}"; $listPermitted = new request(); $listPermitted->openTeams($tmpquery); $comptListPermitted = count($listPermitted->tea_id);
$block6->rowsLimit = '5'; $comptTopic = count($topicNote); if ($comptTopic != '0') { $block6->sorting('notes', $sortingUser->sor_notes[0], 'note.date DESC', $sortingFields = array(0 => 'note.subject', 1 => 'note.topic', 2 => 'note.date', 3 => 'mem.login', 4 => 'note.published')); } else { $block6->sorting('notes', $sortingUser->sor_notes[0], 'note.date DESC', $sortingFields = array(0 => 'note.subject', 1 => 'note.date', 2 => 'mem.login', 3 => 'note.published')); } $tmpquery = "WHERE note.project = '{$id}' ORDER BY {$block6->sortingValue}"; $block6->recordsTotal = compt($initrequest['notes'] . ' ' . $tmpquery); $listNotes = new request(); $listNotes->openNotes($tmpquery, $block6->borne, $block6->rowsLimit); $comptListNotes = count($listNotes->note_id); $block6->headingToggle($strings['notes'] . ' <span class=addition>(' . $comptListNotes . ')</span>'); $block6->openPaletteIcon(); if ($teamMember == 'true' || $_SESSION['profilSession'] == '5') { $block6->paletteIcon(0, 'add', $strings['add']); $block6->paletteIcon(1, 'remove', $strings['delete']); // $block6->paletteIcon(2,'export',$strings['export']); if ($sitePublish == 'true') { $block6->paletteIcon(3, 'add_projectsite', $strings['add_project_site']); $block6->paletteIcon(4, 'remove_projectsite', $strings['remove_project_site']); } } $block6->paletteIcon(5, 'info', $strings['view']); if ($teamMember == 'true' || $_SESSION['profilSession'] == '5') { $block6->paletteIcon(6, 'edit', $strings['edit']); } $block6->closePaletteIcon(); if ($comptListNotes != '0') { $block6->openResults(); if ($comptTopic != '0') {
} // ----- 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); $breadcrumbs[] = $strings["meetings"]; require_once "../themes/" . THEME . "/header.php"; // ----- content -------------------------------- $blockPage = new block(); $blockPage->bornesNumber = "1"; $block1 = new block(); $block1->form = "saM"; $block1->openForm("../meetings/listmeetings.php?project={$project}#" . $block1->form . "Anchor"); $block1->heading($strings["meetings"]); $block1->openPaletteIcon(); if ($teamMember == "true") { $block1->paletteIcon(0, "add", $strings["add"]); $block1->paletteIcon(1, "remove", $strings["delete"]); $block1->paletteIcon(2, "copy", $strings["copy"]); // $block1->paletteIcon(3,"export",$strings["export"]); if ($sitePublish == "true") { $block1->paletteIcon(4, "add_projectsite", $strings["add_project_site"]); $block1->paletteIcon(5, "remove_projectsite", $strings["remove_project_site"]); } } $block1->paletteIcon(6, "info", $strings["view"]); if ($teamMember == "true") { $block1->paletteIcon(7, "edit", $strings["edit"]); $block1->paletteIcon(8, "timelog", $strings["loghours"]); } $block1->closePaletteIcon(); $block1->borne = $blockPage->returnBorne("1");
$block5->paletteScript(4,"remove_projectsite","../general/home.php?removeToSite=true&project=".$projectDetail->pro_id[0]."&action=publish","false,true,true",$strings["remove_project_site"]); }*/ $block5->paletteScript(5, "info", "../notes/viewnote.php", "false,true,false", $strings["view"]); $block5->paletteScript(6, "edit", "../notes/editnote.php?project={$project}", "false,true,false", $strings["edit"]); $block5->closePaletteScript($comptListNotes, $listNotes->note_id); $block4 = new block(); $block4->form = "wbSe"; $block4->openForm("../general/home.php#" . $block4->form . "Anchor"); $block4->sorting("home_reports", $sortingUser->sor_home_reports[0], "rep.name ASC", $sortingFields = array(0 => "rep.name", 1 => "rep.created")); $tmpquery = "WHERE rep.owner = '" . $_SESSION['idSession'] . "' ORDER BY {$block4->sortingValue}"; $listReports = new request(); $listReports->openReports($tmpquery); $comptListReports = count($listReports->rep_id); $block4->headingToggle($strings["my_reports"] . " <span class=addition>({$comptListReports})</span>"); $block4->openPaletteIcon(); $block4->paletteIcon(0, "add", $strings["new"]); $block4->paletteIcon(1, "remove", $strings["delete"]); $block4->paletteIcon(2, "info", $strings["view"]); $block4->closePaletteIcon(); if ($comptListReports != "0") { $block4->openResults(); $block4->labels($labels = array(0 => $strings["name"], 1 => $strings["created"]), "false"); for ($i = 0; $i < $comptListReports; $i++) { $block4->openRow($listReports->rep_id[$i]); $block4->checkboxRow($listReports->rep_id[$i]); $block4->cellRow(buildLink("../reports/resultsreport.php?id=" . $listReports->rep_id[$i], $listReports->rep_name[$i], LINK_INSIDE), "31"); $block4->cellRow(createDate($listReports->rep_created[$i], $_SESSION['timezoneSession'])); $block4->closeRow(); } $block4->closeResults(); } else {
$breadcrumbs[] = buildLink("../calendar/viewcalendar.php?viewCalend={$viewCalend}&type=monthPreview&dateCalend={$dateCalend}", "{$monthName} {$year}", LINK_INSIDE); $breadcrumbs[] = "{$dayName} {$day} {$monthName} {$year}"; $pageSection = 'calendar'; require_once "../themes/" . THEME . "/header.php"; //--- content-------- $block1 = new block(); $block1->form = "calendList"; $block1->openForm("../calendar/viewcalendar.php?viewCalend={$viewCalend}&type={$type}&dateCalend={$dateCalend}#" . $block1->form . "Anchor"); if ($viewCalend == 0) { $heading_posfix = "(" . $strings['cal_personal'] . $strings['calendar'] . ")"; } else { $heading_posfix = "(" . $strings['project'] . $strings['calendar'] . "-" . $listTeam->tea_pro_name[0] . ")"; } $block1->heading("{$dayName} {$day} {$monthName} {$year}" . $heading_posfix); $block1->openPaletteIcon(); $block1->paletteIcon(0, "add", $strings["add"]); $block1->paletteIcon(1, "remove", $strings["delete"]); $block1->paletteIcon(2, "info", $strings["view"]); $block1->paletteIcon(3, "edit", $strings["edit"]); $block1->closePaletteIcon(); $block1->sorting("calendar", $sortingUser->sor_calendar[0], "cal.date_end DESC", $sortingFields = array(0 => "cal.shortname", 1 => "cal.subject", 2 => "cal.date_start", 3 => "cal.date_end")); $dayRecurr = _dayOfWeek(mktime(12, 12, 12, $month, $day, $year)); if ($viewCalend == 0) { $tmpquery = "WHERE cal.owner = '" . $_SESSION['idSession'] . "' AND ((cal.date_start <= '{$dateCalend}' AND cal.date_end >= '{$dateCalend}' AND cal.recurring = '0') OR ((cal.date_start <= '{$dateCalend}' AND cal.date_end <= '{$dateCalend}') AND cal.recurring = '1' AND cal.recur_day = '{$dayRecurr}')) ORDER BY cal.shortname"; } else { $tmpquery = "WHERE cal.project = '{$viewCalend}' AND ((cal.date_start <= '{$dateCalend}' AND cal.date_end >= '{$dateCalend}' AND cal.recurring = '0') OR ((cal.date_start <= '{$dateCalend}' AND cal.date_end <= '{$dateCalend}') AND cal.recurring = '1' AND cal.recur_day = '{$dayRecurr}')) ORDER BY cal.shortname"; } // $tmpquery = "WHERE cal.owner = '" . $_SESSION['idSession'] . "' AND cal.date_start <= '$dateCalend' AND cal.date_end >= '$dateCalend' ORDER BY $block1->sortingValue"; $listCalendar = new request(); $listCalendar->openCalendar($tmpquery); $comptListCalendar = count($listCalendar->cal_id);
} } //--- 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); $breadcrumbs[] = buildLink("../projects/viewprojectsite.php?id=" . $projectDetail->pro_id[0], $strings["project_site"], LINK_INSIDE); $breadcrumbs[] = $strings["grant_client"]; require_once "../themes/" . THEME . "/header.php"; // echo "$tmpquery<br>$comptMulti<br>"; //--- content --- $block1 = new block(); $block1->form = "atpt"; $block1->openForm("../teams/addclientuser.php?project={$project}#" . $block1->form . "Anchor"); $block1->heading($strings["add_team"]); $block1->openPaletteIcon(); $block1->paletteIcon(0, "add", $strings["add"]); $block1->paletteIcon(1, "info", $strings["view"]); $block1->paletteIcon(2, "edit", $strings["edit"]); $block1->closePaletteIcon(); $block1->sorting("team", $sortingUser->sor_users[0], "mem.name ASC", $sortingFields = array(0 => "mem.name", 1 => "mem.title", 2 => "mem.login", 3 => "mem.phone_work", 4 => "log.connected")); $tmpquery = "WHERE tea.project = '{$project}' AND mem.profil = '3'"; $concatMembers = new request(); $concatMembers->openTeams($tmpquery); $comptConcatMembers = count($concatMembers->tea_id); if ($comptConcatMembers != "0") { for ($i = 0; $i < $comptConcatMembers; $i++) { $membersTeam .= $concatMembers->tea_mem_id[$i]; if ($i < $comptConcatMembers - 1) { $membersTeam .= ","; } }
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; }
header('Location: ../bookmarks/listbookmarks.php?view=my&msg=bookmarkOwner'); exit; } //--- header --- $breadcrumbs[] = buildLink('../bookmarks/listbookmarks.php?view=' . $view, $strings['bookmarks'], LINK_INSIDE); $breadcrumbs[] = $bookmarkDetail->boo_name[0]; $pageSection = 'bookmarks'; require_once '../themes/' . THEME . '/header.php'; //--- content --- $block1 = new block(); $block1->form = 'tdD'; $block1->openForm('../bookmarks/viewbookmark.php#' . $block1->form . 'Anchor'); $block1->heading($strings['bookmark'] . ' : ' . $bookmarkDetail->boo_name[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();
* the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. */ $checkSession = true; require_once "../includes/library.php"; $breadcrumbs[] = buildLink("../reports/createreport.php?", $strings["reports"], LINK_INSIDE); $breadcrumbs[] = $strings["my_reports"]; $pageSection = 'reports'; require_once "../themes/" . THEME . "/header.php"; //---- content ------ $block1 = new block(); $block1->form = "wbSe"; $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']));
$block2->paletteScript(2, 'info', '../projects/viewproject.php?', 'false,true,false', $strings['view']); if ($_SESSION['profilSession'] == '0' || $_SESSION['profilSession'] == '1' || $_SESSION['profilSession'] == '5') { $block2->paletteScript(3, 'edit', '../projects/editproject.php?', 'false,true,false', $strings['edit']); } // if mantis bug tracker enabled if ($enableMantis == 'true') { $block2->paletteScript(4, 'bug', $pathMantis . "login.php?url=http://{$HTTP_HOST}{$REQUEST_URI}&f_username="******"&f_password="******"../clients/viewclient.php?id={$id}#" . $block3->form . 'Anchor'); $block3->headingToggle($strings['client_users']); $block3->openPaletteIcon(); if ($_SESSION['profilSession'] == '0' || $_SESSION['profilSession'] == '1' || $_SESSION['profilSession'] == '5') { $block3->paletteIcon(0, 'add', $strings['add']); $block3->paletteIcon(1, 'remove', $strings['delete']); } $block3->paletteIcon(2, 'info', $strings['view']); if ($_SESSION['profilSession'] == '0' || $_SESSION['profilSession'] == '1' || $_SESSION['profilSession'] == '5') { $block3->paletteIcon(3, 'edit', $strings['edit']); } $block3->closePaletteIcon(); $block3->sorting('users', $sortingUser->sor_users[0], 'mem.name ASC', $sortingFields = array(0 => 'mem.name', 1 => 'mem.login', 2 => 'mem.email_work', 3 => 'mem.profil', 4 => 'connected')); $tmpquery = "WHERE mem.organization = '{$id}' ORDER BY {$block3->sortingValue}"; $listMembers = new request(); $listMembers->openMembers($tmpquery); $comptListMembers = count($listMembers->mem_id); if ($comptListMembers != '0') { $block3->openResults(); $block3->labels($labels = array(0 => $strings['full_name'], 1 => $strings['user_name'], 2 => $strings['email'], 3 => $strings['work_phone'], 4 => $strings['connected']), 'false');
$blockPage->itemBreadcrumbs($strings["support_requests"]); } } $blockPage->closeBreadcrumbs(); if ($msg != "") { include '../includes/messages.php'; $blockPage->messagebox($msgLabel); } $block1 = new block(); $block1->form = "srs"; $block1->openForm("../support/listrequests.php?" . session_name() . "=" . session_id() . "&id={$id}#" . $block1->form . "Anchor"); $block1->heading($strings["support_requests"]); if ($teamMember == "true" || $profilSession == "0") { $block1->openPaletteIcon(); //$block1->paletteIcon(0,"add",$strings["add"]); $block1->paletteIcon(1, "edit", $strings["edit_status"]); $block1->paletteIcon(2, "remove", $strings["delete"]); $block1->paletteIcon(3, "info", $strings["view"]); $block1->closePaletteIcon(); } $block1->sorting("support_requests", $sortingUser->sor_support_requests[0], "sr.id ASC", $sortingFields = array(0 => "sr.id", 1 => "sr.subject", 2 => "sr.priority", 3 => "sr.status", 4 => "sr.date_open", 5 => "sr.date_close")); /*$tmpquery = "WHERE mem.id = '$idSession'"; $userDetail = new request(); $userDetail->openMembers($tmpquery);*/ $tmpquery = "WHERE sr.project = '{$id}' ORDER BY {$block1->sortingValue}"; $listRequests = new request(); $listRequests->openSupportRequests($tmpquery); $comptListRequests = count($listRequests->sr_id); if ($comptListRequests != "0") { $block1->openResults(); $block1->labels($labels = array(0 => $strings["id"], 1 => $strings["subject"], 2 => $strings["priority"], 3 => $strings["status"], 4 => $strings["date_open"], 5 => $strings["date_close"]), "false");
$blockPage->itemBreadcrumbs($strings["active"] . " | " . $blockPage->buildLink("../projects/listprojects.php?typeProjects=inactive", $strings["inactive"], in)); } } $blockPage->closeBreadcrumbs(); if ($msg != "") { include '../includes/messages.php'; $blockPage->messagebox($msgLabel); } $blockPage->bornesNumber = "1"; $block1 = new block(); $block1->form = "saP"; $block1->openForm("../projects/listprojects.php?typeProjects={$typeProjects}&" . session_name() . "=" . session_id() . "#" . $block1->form . "Anchor"); $block1->heading($strings["projects"]); $block1->openPaletteIcon(); if ($profilSession == "0" || $profilSession == "1" || $profilSession == "5") { $block1->paletteIcon(0, "add", $strings["add"]); $block1->paletteIcon(1, "remove", $strings["delete"]); } $block1->paletteIcon(2, "info", $strings["view"]); if ($profilSession == "0" || $profilSession == "1" || $profilSession == "5") { $block1->paletteIcon(3, "edit", $strings["edit"]); $block1->paletteIcon(4, "copy", $strings["copy"]); } if ($enable_cvs == "true") { $block1->paletteIcon(7, "cvs", $strings["browse_cvs"]); } if ($enableMantis == "true") { $block1->paletteIcon(8, "bug", $strings["bug"]); } $block1->closePaletteIcon(); $block1->borne = $blockPage->returnBorne("1");
</select></td> </tr>'; if ($ld == '') { $ld = $date; } $block1->contentRow($strings['date'], "<input type=\"text\" style=\"width: 150px;\" name=\"ld\" id=\"sel1\"\r\n\tsize=\"20\" value=\"{$ld}\"><button type=\"reset\" id=\"trigger_a\">...</button>\r\n\t<script type=\"text/javascript\">Calendar.setup({ inputField:\"sel1\", button:\"trigger_a\" });</script>"); echo "\r\n\t<tr class='odd'>\r\n\t <td valign='top' class='leftvalue'>" . $strings["worked_hours"] . " :</td>\r\n\t <td><input size='20' value='{$hr}' style='width: 150px;' name='hr' maxlength='6' type='text'></td>\r\n\t</tr>\r\n\t<tr class='odd'>\r\n\t <td valign='top' class='leftvalue'>" . $strings["comments"] . " :</td>\r\n\t <td><textarea rows='10' style='width: 400px; height: 150px;' name='comm' cols='47'>{$comm}</textarea></td>\r\n\t</tr>\r\n\t<tr class='odd'>\r\n\t <td valign='top' class='leftvalue'> </td>\r\n\t <td><input type='SUBMIT' value='" . $strings["save"] . "'></td>\r\n\t</tr>"; $block1->closeContent(); $block1->block_close(); $block1->closeForm(); $block2 = new block(); $block2->form = "ahT"; $block2->openForm("../tasks/addtasktime.php?id={$id}#" . $block2->form . "Anchor"); $block2->heading($strings["task_time"] . ' : ' . $strings["details"]); $block2->openPaletteIcon(); $block2->paletteIcon(0, "remove", $strings["delete"]); $block2->paletteIcon(1, "edit", $strings["edit"]); $block2->closePaletteIcon(); $block2->borne = $blockPage->returnBorne("1"); $block2->rowsLimit = "20"; $block2->sorting('tasks_time', $sortingUser->sor_tasks_time[0], 'tim.date ASC', $sortingFields = array(0 => 'mem.name', 1 => 'tim.date', 2 => 'tim.hours', 3 => 'tim.created', 4 => 'tim.modified', 5 => 'tim.comments')); $tmpquery = "WHERE tim.task = '{$id}' ORDER BY {$block2->sortingValue}"; $block2->recordsTotal = compt($initrequest["tasks_time"] . " " . $tmpquery); $listTaskTimes = new request(); $listTaskTimes->openTaskTime($tmpquery, $block2->borne, $block2->rowsLimit); $comptListTaskTimes = count($listTaskTimes->tim_id); if ($comptListTaskTimes != "0") { $block2->openResults(); $block2->labels($labels = array(0 => $strings["owner"], 1 => $strings["date"], 2 => ucfirst($strings["hours"]), 3 => $strings["created"], 4 => $strings["modified"], 5 => $strings['comment']), "true"); // display logged hours for project for ($i = 0; $i < $comptListTaskTimes; $i++) {
$breadcrumbs[] = $userDetail->mem_login[0]; $pageSection = 'clients'; $pageTitle = '<span class="type">' . $strings["client_user"] . '</span><br><span class="name">' . $userDetail->mem_name[0] . '</span>'; require_once "../themes/" . THEME . "/header.php"; //--- content ------------ $block1 = new block(); $block1->form = "cuserD"; $block1->openForm("../users/viewclientuser.php#" . $block1->form . "Anchor"); if ($error != "") { $block1->headingError($strings["errors"]); $block1->contentError($error); } $block1->heading($strings["client_user"]); $block1->openPaletteIcon(); if ($_SESSION['profilSession'] == "0" || $_SESSION['profilSession'] == "1") { $block1->paletteIcon(0, "remove", $strings["delete"]); $block1->paletteIcon(1, "edit", $strings["edit"]); } $block1->paletteIcon(2, "export", $strings["export"]); $block1->closePaletteIcon(); $block1->openContent(); $block1->contentTitle($strings["user_details"]); $block1->contentRow($strings["user_name"], $userDetail->mem_login[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]));
exit; } include '../themes/' . THEME . '/header.php'; $blockPage = new block(); $blockPage->openBreadcrumbs(); $blockPage->itemBreadcrumbs($blockPage->buildLink("../projects/listprojects.php?", $strings["projects"], in)); $blockPage->itemBreadcrumbs($blockPage->buildLink("../projects/viewproject.php?id=" . $projectDetail->pro_id[0], $projectDetail->pro_name[0], in)); $blockPage->itemBreadcrumbs($strings["team_members"]); $blockPage->closeBreadcrumbs(); $block1 = new block(); $block1->form = "saM"; $block1->openForm("../teams/listusers.php?" . session_name() . "=" . session_id() . "&id={$id}#" . $block1->form . "Anchor"); $block1->heading($strings["team_members"]); $block1->openPaletteIcon(); if ($idSession == $projectDetail->pro_owner[0] || $profilSession == "5") { $block1->paletteIcon(0, "add", $strings["add"]); $block1->paletteIcon(1, "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, "info", $strings["view"]); $block1->paletteIcon(5, "email", $strings["email"]); $block1->closePaletteIcon(); $block1->sorting("team", $sortingUser->sor_team[0], "mem.name ASC", $sortingFields = array(0 => "mem.name", 1 => "mem.title", 2 => "mem.login", 3 => "mem.phone_work", 4 => "log.connected", 5 => "tea.published")); $tmpquery = "WHERE tea.project = '{$id}' AND mem.profil != '3' ORDER BY {$block1->sortingValue}"; $listTeam = new request(); $listTeam->openTeams($tmpquery); $comptListTeam = count($listTeam->tea_id); $block1->openResults();
if ($msg != "") { include '../includes/messages.php'; $blockPage->messagebox($msgLabel); } $blockPage->bornesNumber = "1"; $block1 = new block(); $block1->form = "newsdeskList"; $block1->openForm("../newsdesk/listnews.php?" . session_name() . "=" . session_id() . "#" . $block1->form . "Anchor"); if ($error != "") { $block1->headingError($strings["errors"]); $block1->contentError($error); } $block1->heading($strings["newsdesk"]); $block1->openPaletteIcon(); if ($profilSession == "0" || $profilSession == "1" || $profilSession == "5") { $block1->paletteIcon(0, "add", $strings["add_newsdesk"]); $block1->paletteIcon(1, "remove", $strings["del_newsdesk"]); $block1->paletteIcon(2, "edit", $strings["edit_newsdesk"]); } $block1->paletteIcon(3, "info", $strings["view_newsdesk"]); $block1->closePaletteIcon(); $block1->borne = $blockPage->returnBorne("1"); $block1->rowsLimit = "40"; $block1->sorting("newsdesk", $sortingUser->sor_newsdesk[0], "news.pdate DESC", $sortingFields = array(0 => "news.title", 1 => "news.pdate")); $block1->openContent(); $tmpquery = "WHERE news.id != '0' ORDER BY {$block1->sortingValue} "; $block1->recordsTotal = compt($initrequest["newsdeskposts"] . " " . $tmpquery); $listPosts = new request(); $listPosts->openNewsDesk($tmpquery, $block1->borne, $block1->rowsLimit); $comptPosts = count($listPosts->news_id); if ($comptPosts != "0") {