$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(); $block2->checkboxRow($newsComments->newscom_id[$i]); $block2->cellRow($newsAuthor->mem_name[0]); $block2->cellRow($newsComments->newscom_comment[$i]); $block2->closeRow(); } $block2->closeResults(); $block2->bornesFooter("1", $blockPage->bornesNumber, "", ""); } else { $block2->noresults(); } $block2->closeToggle(); $block2->closeFormResults(); $block2->closeContent(); $block2->openPaletteScript(); $block2->paletteScript(0, "add", "../newsdesk/editmessage.php?postid={$id}&", "true,false,false", $strings["add_newsdesk_comment"]); $block2->paletteScript(1, "edit", "../newsdesk/editmessage.php?postid={$id}&", "false,true,false", $strings["edit_newsdesk_comment"]); if ($profilSession == "0" || $profilSession == "1" || $profilSession == "5") { $block2->paletteScript(2, "remove", "../newsdesk/editmessage.php?postid={$id}&action=remove&", "false,true,true", $strings["del_newsdesk_comment"]); } $block2->closePaletteScript($comptCommentsDetail, $newsComments->newscom_id); include '../themes/' . THEME . '/footer.php';
$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";
//---- 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";
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";
} $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';
echo "<tr class=\"odd\"><td valign=\"top\" class=\"leftvalue\"> </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";
$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";
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';
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";
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";
$block2->closePaletteIcon(); $block2->borne = $blockPage->returnBorne("2"); $block2->rowsLimit = "1"; $block2->sorting("organizations", $sortingUser->sor_organizations[0], "org.name ASC", $sortingFields = array(0 => "org.name", 1 => "org.phone", 2 => "org.url")); $tmpquery = "WHERE org.id != '1' ORDER BY {$block2->sortingValue}"; $block2->recordsTotal = compt($initrequest["organizations"] . " " . $tmpquery); $listOrganizations2 = new request(); $listOrganizations2->openOrganizations($tmpquery, $block2->borne, $block2->rowsLimit); $comptlistOrganizations2 = count($listOrganizations2->org_id); if ($comptlistOrganizations2 != "0") { $block2->openResults(); $block2->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 < $comptlistOrganizations2; $i++) { $block2->openRow(); $block2->checkboxRow($listOrganizations2->org_id[$i]); $block2->cellRow(buildLink("../clients/viewclient.php?id=" . $listOrganizations2->org_id[$i], $listOrganizations2->org_name[$i], LINK_INSIDE)); $block2->cellRow($listOrganizations2->org_phone[$i]); $block2->cellRow(buildLink($listOrganizations2->org_url[$i], $listOrganizations2->org_url[$i], LINK_OUT)); $block2->closeRow(); } $block2->closeResults(); $block2->bornesFooter("2", $blockPage->bornesNumber, "", "project={$project}"); } else { $block2->noresults(); } $block2->closeFormResults(); $block2->openPaletteScript(); $block2->paletteScript(0, "add", "../clients/editclient.php?", "true,false,false", $strings["add"]); $block2->paletteScript(1, "remove", "../clients/deleteclients.php?", "false,true,true", $strings["delete"]); $block2->closePaletteScript($comptlistOrganizations2, $listOrganizations2->org_id); require_once "../themes/" . THEME . "/footer.php";
if (is_numeric($listInvoicesItems->invitem_rate_type[$i])) { $rate_type_value = "3"; } } } } $block2->openRow(); $block2->checkboxRow($listInvoicesItems->invitem_id[$i]); $block2->cellRow($listInvoicesItems->invitem_position[$i]); $block2->cellRow($blockPage->buildLink("../invoicing/editinvoiceitem.php?invoiceitem=" . $listInvoicesItems->invitem_id[$i], $listInvoicesItems->invitem_title[$i], in)); $block2->cellRow($rateType[$rate_type_value]); $block2->cellRow($listInvoicesItems->invitem_rate_value[$i]); $block2->cellRow($listInvoicesItems->invitem_amount_ex_tax[$i]); if ($listInvoicesItems->invitem_completed[$i] == "1") { $block2->cellRow($strings["yes"]); } else { $block2->cellRow($strings["no"]); } $block2->closeRow(); } $block2->closeResults(); } else { $block2->noresults(); } $block2->closeToggle(); $block2->closeFormResults(); $block2->openPaletteScript(); //$block2->paletteScript(6,"info","../invoices/viewsubtask.php?task=$id","false,true,false",$strings["view"]); $block2->paletteScript(7, "edit", "../invoicing/editinvoiceitem.php?id={$id}", "false,true,true", $strings["edit"]); $block2->closePaletteScript($comptListInvoicesItems, $listInvoicesItems->invitem_id); include '../themes/' . THEME . '/footer.php';
$block5->cellRow($listForum->replies[$i]); $block5->closeRow(); } $block5->closeResults(); $block5->bornesFooter("5", $blockPage->bornesNumber, "", "pid={$pid}"); } else { $block5->noresults(); } echo '<input type="hidden" name="pid" value="' . $pid . '">'; $block5->closeToggle(); $block5->closeFormResults(); if ($membertoken != 0) { $block5->openPaletteScript(); $block5->paletteScript(0, "export", $_CONF['site_url'] . "/forum/createtopic.php?method=postreply&forum=" . $A[fid], "false,true,false", $strings["reply"]); $block5->paletteScript(1, "add", $_CONF['site_url'] . "/forum/createtopic.php?method=newtopic&forum=" . $A[fid], "true,true,false", $strings["add"]); $block5->closePaletteScript($comptListTasks, $listForum->topic); } } if ($temptoken['teammember'] == '1') { $p = new Template($_CONF['path_layout'] . 'nexproject/javascript'); $p->set_file('contextmenu', 'taskblock_contextmenu.thtml'); $p->set_var('site_url', $_CONF['site_url']); $p->set_var('action_url', $_CONF['site_url'] . '/nexproject/viewproject.php'); $p->set_var('imgset', $_CONF['layout_url'] . '/nexproject/images'); $p->parse('output', 'contextmenu'); echo $p->finish($p->get_var('output')); } $p = new Template($_CONF['path_layout'] . 'nexproject/javascript'); $p->set_file('projectajax', 'projectajax.thtml'); $p->parse('output', 'projectajax'); echo $p->finish($p->get_var('output'));
if ($sitePublish == "true") { $block4->cellRow($statusPublish[$idPublish]); } $block4->closeRow(); } $block4->closeResults(); if ($activeJpgraph == "true" && $gantt == "true") { echo "\n\t\t\t<div id='ganttChart_taskList' class='ganttChart'>\n\t\t\t\t<img src='../subtasks/graphsubtasks.php?" . session_name() . "=" . session_id() . "&task=" . $id . "' alt=''><br/>\n\t\t\t\t<span class='listEvenBold''>" . $blockPage->buildLink("http://www.aditus.nu/jpgraph/", "JpGraph", powered) . "</span>\t\n\t\t\t</div>\n\t\t"; } } else { $block4->noresults(); } $block4->closeToggle(); $block4->closeFormResults(); $block4->openPaletteScript(); if ($teamMember == "true" || $profilSession == "5") { $block4->paletteScript(0, "add", "../subtasks/editsubtask.php?task={$id}", "true,false,false", $strings["add"]); $block4->paletteScript(1, "remove", "../subtasks/deletesubtasks.php?task={$id}", "false,true,true", $strings["delete"]); //$block4->paletteScript(2,"copy","../subtasks/editsubtask.php?task=$id&docopy=true","false,true,false",$strings["copy"]); //$block4->paletteScript(3,"export","export.php?","false,true,true",$strings["export"]); /*if ($sitePublish == "true") { $block4->paletteScript(4,"add_projectsite","../tasks/viewtask.php?addToSite=true&task=$id&action=publish","false,true,true",$strings["add_project_site"]); $block4->paletteScript(5,"remove_projectsite","../tasks/viewtask.php?removeToSite=true&task=$id&action=publish","false,true,true",$strings["remove_project_site"]); }*/ } $block4->paletteScript(6, "info", "../subtasks/viewsubtask.php?task={$id}", "false,true,false", $strings["view"]); if ($teamMember == "true" || $profilSession == "5") { $block4->paletteScript(7, "edit", "../subtasks/editsubtask.php?task={$id}", "false,true,true", $strings["edit"]); } $block4->closePaletteScript($comptListSubtasks, $listSubtasks->subtas_id); include '../themes/' . THEME . '/footer.php';
if ($listProjects->pro_published[$i] == "1") { $block1->cellRow("<" . buildLink("../projects/addprojectsite.php?id=" . $listProjects->pro_id[$i], $strings["create"] . "...", LINK_INSIDE) . ">"); } else { $block1->cellRow("<" . buildLink("../projects/viewprojectsite.php?id=" . $listProjects->pro_id[$i], $strings["details"], LINK_INSIDE) . ">"); } } $block1->closeRow(); } $block1->closeResults(); $block1->bornesFooter("1", $blockPage->bornesNumber, "", "searchfor={$searchfor}&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}&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] == "") { $listTasks->tas_due_date[$i] = $strings["none"];
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';
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; }
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] . "&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';
$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";
$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"); $block3->headingToggle($strings["assignment_history"]); $block3->headingToggle_close(); $block3->sorting("assignment", $sortingUser->sor_assignment[0], "ass.assigned DESC", $sortingFields = array(0 => "ass.comments", 1 => "mem1.login", 2 => "mem2.login", 3 => "ass.assigned")); $tmpquery = "WHERE ass.task = '{$id}' ORDER BY {$block3->sortingValue}"; $listAssign = new request(); $listAssign->openAssignments($tmpquery); $comptListAssign = count($listAssign->ass_id); $block3->openResults($checkbox = "false"); $block3->labels($labels = array(0 => $strings["comment"], 1 => $strings["assigned_by"], 2 => $strings["to"], 3 => $strings["assigned_on"]), "false"); for ($i = 0; $i < $comptListAssign; $i++) { $block3->openRow();
//--- 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";
$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";
} else { echo $strings["missing_file"]; } echo "</td><td align=\"right\">Revision: {$displayrev} </td></tr>\r\n\t<tr><td> </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> </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&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"]); // Add one to the number of current revisions
} 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';
$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';
$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";
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";
$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); $block9 = new block(); $block9->form = "caV"; $block9->openForm("../calendar/viewcalendar.php?dateCalend={$dateCalend}&type={$type}#" . $block9->form . "Anchor"); echo "<tr class=\"odd\"><td valign=\"top\" class=\"leftvalue\">" . $strings["view"] . " :</td><td><select name=\"S_VIEW\" onchange=\"document.caVForm.submit()\">";
$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';
$comptUncompleteTasks = $comptUncompleteTasks + 1; } } } $block7->openRow(); $block7->checkboxRow($listPhases->pha_id[$i]); $block7->cellRow($listPhases->pha_order_num[$i]); $block7->cellRow($blockPage->buildLink("../phases/viewphase.php?id=" . $listPhases->pha_id[$i], $listPhases->pha_name[$i], in)); $block7->cellRow($comptlistTasksRow); $block7->cellRow($comptUncompleteTasks); $block7->cellRow($phaseStatus[$listPhases->pha_status[$i]]); $block7->cellRow($listPhases->pha_date_start[$i]); $block7->cellRow($listPhases->pha_date_end[$i]); $block7->closeRow(); } $block7->closeResults(); } else { $block7->noresults(); } $block7->closeToggle(); $block7->closeFormResults(); $block7->openPaletteScript(); $block7->paletteScript(0, "info", "../phases/viewphase.php?", "false,true,true", $strings["view"]); if ($teamMember == "true" || $profilSession == "5") { if ($idSession == $projectDetail->pro_owner[0] || $profilSession == "0" || $profilSession == "5") { $block7->paletteScript(1, "edit", "../phases/editphase.php?", "false,true,true", $strings["edit"]); } } $block7->closePaletteScript($comptListPhases, $listPhases->pha_id); } include '../themes/' . THEME . '/footer.php';