本文整理汇总了PHP中block::paletteScript方法的典型用法代码示例。如果您正苦于以下问题:PHP block::paletteScript方法的具体用法?PHP block::paletteScript怎么用?PHP block::paletteScript使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类block
的用法示例。
在下文中一共展示了block::paletteScript方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: createDate
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";
示例2:
$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";
示例3:
//---- 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";
示例4: substr
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";
示例5: count
}
$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';
示例6:
if ($projectDetail->pro_org_id[0] == "1") {
$projectDetail->pro_org_name[0] = $strings["none"];
}
$block1->openContent();
$block1->contentTitle($strings["info"]);
$block1->contentRow($strings["project"], $blockPage->buildLink("../projects/viewproject.php?id=" . $projectDetail->pro_id[0], $projectDetail->pro_name[0], in));
if ($noteDetail->note_topic[0] != "") {
$block1->contentRow($strings["topic"], $topicNote[$noteDetail->note_topic[0]]);
}
$block1->contentRow($strings["subject"], $noteDetail->note_subject[0]);
$block1->contentRow($strings["date"], $noteDetail->note_date[0]);
$block1->contentRow($strings["owner"], $blockPage->buildLink($noteDetail->note_mem_email_work[0], $noteDetail->note_mem_login[0], mail));
$block1->contentRow($strings["description"], nl2br($noteDetail->note_description[0]));
$idPublish = $noteDetail->note_published[0];
if ($sitePublish == "true") {
$block1->contentRow($strings["published"], $statusPublish[$idPublish]);
}
$block1->closeContent();
$block1->closeForm();
if ($teamMember == "true" && $idSession == $noteDetail->note_owner[0]) {
$block1->openPaletteScript();
$block1->paletteScript(0, "remove", "../notes/deletenotes.php?project=" . $noteDetail->note_project[0] . "&id=" . $noteDetail->note_id[0] . "", "true,true,false", $strings["delete"]);
//$block1->paletteScript(1,"export","export.php?","true,true,false",$strings["export"]);
if ($sitePublish == "true") {
$block1->paletteScript(2, "add_projectsite", "../notes/viewnote.php?addToSite=true&id=" . $noteDetail->note_id[0] . "&action=publish", "true,true,true", $strings["add_project_site"]);
$block1->paletteScript(3, "remove_projectsite", "../notes/viewnote.php?removeToSite=true&id=" . $noteDetail->note_id[0] . "&action=publish", "true,true,true", $strings["remove_project_site"]);
}
$block1->paletteScript(4, "edit", "../notes/editnote.php?project=" . $noteDetail->note_project[0] . "&id=" . $noteDetail->note_id[0] . "", "true,true,false", $strings["edit"]);
$block1->closePaletteScript("", "");
}
include '../themes/' . THEME . '/footer.php';
示例7: array
$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";
示例8: block
$block2->cellRow($listFiles->fil_date[$i]);
$block2->cellRow(buildLink("../linkedcontent/viewfile.php?id=" . $listFiles->fil_id[$i], $statusFile[$idStatus], LINK_INSIDE));
if ($sitePublish == "true") {
$block2->cellRow($statusPublish[$idPublish]);
}
$block2->closeRow();
}
$block2->closeResults();
} else {
$block2->noresults();
}
$block2->closeToggle();
$block2->closeFormResults();
$block2->openPaletteScript();
if ($teamMember == "true" || $_SESSION['profilSession'] == "5") {
$block2->paletteScript(0, "add", "../linkedcontent/addfile.php?project=" . $taskDetail->tas_project[0] . "&task={$id}", "true,true,true", $strings["add"]);
$block2->paletteScript(1, "remove", "../linkedcontent/deletefiles.php?project=" . $projectDetail->pro_id[0] . "&task=" . $taskDetail->tas_id[0] . "", "false,true,true", $strings["delete"]);
if ($sitePublish == "true") {
$block2->paletteScript(2, "add_projectsite", "../tasks/viewtask.php?addToSiteFile=true&task=" . $taskDetail->tas_id[0] . "&action=publish", "false,true,true", $strings["add_project_site"]);
$block2->paletteScript(3, "remove_projectsite", "../tasks/viewtask.php?removeToSiteFile=true&task=" . $taskDetail->tas_id[0] . "&action=publish", "false,true,true", $strings["remove_project_site"]);
}
}
$block2->paletteScript(4, "info", "../linkedcontent/viewfile.php?", "false,true,false", $strings["view"]);
if ($teamMember == "true" || $_SESSION['profilSession'] == "5") {
$block2->paletteScript(5, "edit", "../linkedcontent/viewfile.php?edit=true", "false,true,false", $strings["edit"]);
}
$block2->closePaletteScript($comptListFiles, $listFiles->fil_id);
}
$block3 = new block();
$block3->form = "ahT";
$block3->openForm("../tasks/viewtask.php?id={$id}#" . $block3->form . "Anchor");
示例9: createDate
$block1->contentRow($strings["full_name"], $userDetail->mem_name[0]);
$block1->contentRow($strings["organization"], $userDetail->mem_org_name[0]);
$block1->contentRow($strings["email"], $userDetail->mem_email_work[0]);
$block1->contentRow($strings["work_phone"], $userDetail->mem_phone_work[0]);
$block1->contentRow($strings["home_phone"], $userDetail->mem_phone_home[0]);
$block1->contentRow($strings["mobile_phone"], $userDetail->mem_mobile[0]);
$block1->contentRow($strings["fax"], $userDetail->mem_fax[0]);
$block1->contentRow($strings["comments"], nl2br($userDetail->mem_comments[0]));
$block1->contentRow($strings["account_created"], createDate($userDetail->mem_created[0], $_SESSION['timezoneSession']));
$block1->contentTitle($strings["information"]);
$tmpquery = "SELECT tas.id FROM " . $tableCollab["tasks"] . " tas LEFT OUTER JOIN " . $tableCollab["projects"] . " pro ON pro.id = tas.project WHERE tas.assigned_to = '" . $userDetail->mem_id[0] . "' AND tas.status IN(0,2,3) AND pro.status IN(0,2,3)";
compt($tmpquery);
$valueTasks = $countEnregTotal;
$block1->contentRow($strings["tasks"], $valueTasks);
$z = "(Client on project site)";
if ($userDetail->mem_log_connected[0] > $dateunix - 5 * 60) {
$connected_result = $strings["yes"] . " " . $z;
} else {
$connected_result = $strings["no"];
}
$block1->contentRow($strings["connected"], $connected_result);
$block1->closeContent();
$block1->closeForm();
$block1->openPaletteScript();
if ($_SESSION['profilSession'] == "0" || $_SESSION['profilSession'] == "1") {
$block1->paletteScript(0, "remove", "../users/deleteclientusers.php?id={$id}&organization={$organization}", "true,true,true", $strings["delete"]);
$block1->paletteScript(1, "edit", "../users/updateclientuser.php?id={$id}&organization={$organization}", "true,true,true", $strings["edit"]);
}
$block1->paletteScript(2, "export", "../users/exportuser.php?id={$id}", "true,true,true", $strings["export"]);
$block1->closePaletteScript("", "");
require_once "../themes/" . THEME . "/footer.php";
示例10:
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';
示例11:
$block1->cellRow("<" . $blockPage->buildLink("../projects/addprojectsite.php?id=" . $listProjects->pro_id[$i], $strings["create"] . "...", in) . ">");
} else {
$block1->cellRow("<" . $blockPage->buildLink("../projects/viewprojectsite.php?id=" . $listProjects->pro_id[$i], $strings["details"], in) . ">");
}
}
$block1->closeRow();
}
$block1->closeResults();
$block1->bornesFooter("1", $blockPage->bornesNumber, "", "typeProjects={$typeProjects}");
} else {
$block1->noresults();
}
$block1->closeFormResults();
$block1->openPaletteScript();
if ($profilSession == "0" || $profilSession == "1" || $profilSession == "5") {
$block1->paletteScript(0, "add", "../projects/editproject.php?", "true,false,false", $strings["add"]);
$block1->paletteScript(1, "remove", "../projects/deleteproject.php?", "false,true,false", $strings["delete"]);
}
$block1->paletteScript(2, "info", "../projects/viewproject.php?", "false,true,false", $strings["view"]);
if ($profilSession == "0" || $profilSession == "1" || $profilSession == "5") {
$block1->paletteScript(3, "edit", "../projects/editproject.php?", "false,true,false", $strings["edit"]);
$block1->paletteScript(4, "copy", "../projects/editproject.php?docopy=true", "false,true,false", $strings["copy"]);
}
if ($enable_cvs == "true") {
$block1->paletteScript(7, "cvs", "../browsecvs/browsecvs.php?", "false,true,false", $strings["browse_cvs"]);
}
if ($enableMantis == "true") {
$block1->paletteScript(8, "bug", $pathMantis . "login.php?url=http://{$HTTP_HOST}{$REQUEST_URI}&username={$loginSession}&password={$passwordSession}", "false,true,false", $strings["bug"]);
}
$block1->closePaletteScript($comptListProjects, $listProjects->pro_id);
include '../themes/' . THEME . '/footer.php';
示例12:
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';
示例13:
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";
示例14: buildLink
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';
示例15: request
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";