本文整理汇总了PHP中block::paletteIcon方法的典型用法代码示例。如果您正苦于以下问题:PHP block::paletteIcon方法的具体用法?PHP block::paletteIcon怎么用?PHP block::paletteIcon使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类block
的用法示例。
在下文中一共展示了block::paletteIcon方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: buildLink
$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();
示例2: count
$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;
示例3: array
$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') {
示例4: block
$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] != "") {
示例5: block
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
示例6: buildLink
}
$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++) {
示例7: array
}
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]);
示例8: block
//$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);
示例9: block
$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 {
示例10: buildLink
$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]);
}
示例11: block
}
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=" . $banUsers[$worker_id] . "' 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();
示例12: fixInt
$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 = "WHERE mem.id = '" . $newsComments->newscom_name[$i] . "' ";
$newsAuthor = new request();
$newsAuthor->openMembers($tmpquery_user);
$block2->openRow();
示例13: array
$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>");
示例14: 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["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}'";
示例15: block
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);