当前位置: 首页>>代码示例>>PHP>>正文


PHP block::closePaletteScript方法代码示例

本文整理汇总了PHP中block::closePaletteScript方法的典型用法代码示例。如果您正苦于以下问题:PHP block::closePaletteScript方法的具体用法?PHP block::closePaletteScript怎么用?PHP block::closePaletteScript使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在block的用法示例。


在下文中一共展示了block::closePaletteScript方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: array

$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();
        $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';
开发者ID:ColBT,项目名称:php_tut,代码行数:31,代码来源:viewnews.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";
开发者ID:jgatica,项目名称:Netoffice,代码行数:31,代码来源:viewmeeting.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";
开发者ID:jgatica,项目名称:Netoffice,代码行数:31,代码来源:listphases.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";
开发者ID:jgatica,项目名称:Netoffice,代码行数:31,代码来源:addmeetingtime.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';
开发者ID:ColBT,项目名称:php_tut,代码行数:31,代码来源:listrequests.php

示例6: request

echo "<tr class=\"odd\"><td valign=\"top\" class=\"leftvalue\">&nbsp;</td><td><input type=\"SUBMIT\" value=\"" . $strings["save"] . "\"></td></tr>";
$block1->closeContent();
$block1->heading($strings["holidays"]);
$block1->openPaletteIcon();
$block1->paletteIcon(1, "remove", $strings["delete"]);
$block1->closePaletteIcon();
$tmpquery = " ORDER BY hol.date DESC";
$holidayList = new request();
$holidayList->openHoliday($tmpquery);
$comptHolidayList = count($holidayList->hol_id);
$block1->recordsTotal = $comptHolidayList;
if ($comptHolidayList > 0) {
    $block1->openResults();
    $block1->labels($labels = array(0 => $strings['date'], 1 => $strings['comments']), 'true', $sorting = false, $sortingOff = array(0 => '0', 1 => 'DESC'));
    for ($i = 0; $i < $comptHolidayList; $i++) {
        $block1->openRow($holidayList->hol_id[$i]);
        $block1->checkboxRow($holidayList->hol_id[$i]);
        $block1->cellRow($holidayList->hol_date[$i]);
        $block1->cellRow($holidayList->hol_comments[$i]);
        $block1->closeRow();
    }
    $block1->closeResults();
} else {
    $block1->noresults();
}
$block1->closeFormResults();
$block1->openPaletteScript();
$block1->paletteScript(1, "remove", "../administration/deleteholidays.php?", "false,true,true", $strings["delete"]);
$block1->closePaletteScript($comptHolidayList, $holidayList->hol_id);
$block1->headingForm_close();
require_once "../themes/" . THEME . "/footer.php";
开发者ID:TICanalyste,项目名称:netOffice--remix-,代码行数:31,代码来源:listholidays.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";
开发者ID:jgatica,项目名称:Netoffice,代码行数:31,代码来源:listreports.php

示例8: 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';
开发者ID:jgatica,项目名称:Netoffice,代码行数:31,代码来源:viewbookmark.php

示例9:

        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";
开发者ID:TICanalyste,项目名称:netOffice--remix-,代码行数:31,代码来源:listnotes.php

示例10: 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";
开发者ID:jgatica,项目名称:Netoffice,代码行数:31,代码来源:listtopics.php

示例11: array

$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";
开发者ID:TICanalyste,项目名称:netOffice--remix-,代码行数:31,代码来源:list_notoggle_icons_limititems.php

示例12:

                    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';
开发者ID:ColBT,项目名称:php_tut,代码行数:31,代码来源:viewinvoice.php

示例13: Template

             $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'));
开发者ID:hostellerie,项目名称:nexpro,代码行数:31,代码来源:viewproject.php

示例14:

        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';
开发者ID:ColBT,项目名称:php_tut,代码行数:31,代码来源:viewtask.php

示例15: buildLink

            if ($listProjects->pro_published[$i] == "1") {
                $block1->cellRow("&lt;" . buildLink("../projects/addprojectsite.php?id=" . $listProjects->pro_id[$i], $strings["create"] . "...", LINK_INSIDE) . "&gt;");
            } else {
                $block1->cellRow("&lt;" . buildLink("../projects/viewprojectsite.php?id=" . $listProjects->pro_id[$i], $strings["details"], LINK_INSIDE) . "&gt;");
            }
        }
        $block1->closeRow();
    }
    $block1->closeResults();
    $block1->bornesFooter("1", $blockPage->bornesNumber, "", "searchfor={$searchfor}&amp;heading={$heading}");
    $block1->closeToggle();
    $block3->headingForm_close();
    $block1->closeFormResults();
    $block1->openPaletteScript();
    $block1->paletteScript(0, "export", "../projects/exportproject.php?languageSession=" . $_SESSION['languageSession'] . "&type=project", "false,true,false", $strings["export"]);
    $block1->closePaletteScript($comptListProjects, $listProjects->pro_id);
}
if ($comptListTasks != "0") {
    $block2->form = "TaskForm";
    $block2->openForm("../search/resultssearch.php?searchfor={$searchfor}&amp;heading={$heading}#" . $block2->form . "Anchor");
    $block2->headingForm($strings["search_results"] . " : " . $strings["tasks"] . " ({$block2->recordsTotal})");
    /*$block2->openPaletteIcon();
    $block2->paletteIcon(0,"export",$strings["export"]);
    
    
    $block2->closePaletteIcon();*/
    $block2->openResults();
    $block2->labels($labels = array(0 => $strings["task"], 1 => $strings["priority"], 2 => $strings["status"], 3 => $strings["due_date"], 4 => $strings["assigned_to"], 5 => $strings["project"], 6 => $strings["published"]), "true");
    for ($i = 0; $i < $comptListTasks; $i++) {
        if ($listTasks->tas_due_date[$i] == "") {
            $listTasks->tas_due_date[$i] = $strings["none"];
开发者ID:TICanalyste,项目名称:netOffice--remix-,代码行数:31,代码来源:resultssearch.php


注:本文中的block::closePaletteScript方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。