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


PHP block::heading_close方法代码示例

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


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

示例1: createDate

 $blockProject->openContent();
 // correct order????
 $blockProject->contentTitle($strings["details"]);
 $blockProject->contentRow($strings["priority"], "<img src=\"../themes/" . THEME . "/gfx_priority/" . $projectPriority . ".gif\" alt=\"\">&nbsp;" . $priority[$projectPriority]);
 $blockProject->contentRow($strings["created"], createDate($listProjects->pro_created[$j], $_SESSION['timezoneSession']));
 $blockProject->contentRow($strings["modified"], createDate($listProjects->pro_modified[$j], $_SESSION['timezoneSession']));
 if ($listProjects->pro_org_id[$j] == "1") {
     $blockProject->contentRow($strings["organization"], $strings["none"]);
 } else {
     $blockProject->contentRow($strings["organization"], buildLink("../clients/viewclient.php?id=" . $listProjects->pro_org_id[$j], $listProjects->pro_org_name[$j], LINK_INSIDE));
 }
 $blockProject->contentRow($strings["status"], $status[$listProjects->pro_status[$j]]);
 $queryTask = " WHERE tas.project = '{$projectId}'";
 $tmpqueryTask = "{$queryTask} ORDER BY tas.due_date";
 $blockProject->closeContent();
 $blockProject->heading_close();
 $listTasks = new request();
 $listTasks->openTasks($tmpqueryTask);
 $comptListTasks = count($listTasks->tas_id);
 $blockProject->openResults("false");
 $blockProject->labels($labels = array(0 => $strings["task"], 1 => $strings["priority"], 2 => $strings["status"], 3 => $strings["due_date"], 4 => $strings["completed"], 5 => $strings["assigned_to"], 6 => $strings["published"]), "true");
 if ($comptListProjects != "0") {
     for ($i = 0; $i < $comptListTasks; $i++) {
         if ($listTasks->tas_due_date[$i] == "--" or $listTasks->tas_due_date[$i] == "") {
             $listTasks->tas_due_date[$i] = $strings["none"];
         }
         $idStatus = $listTasks->tas_status[$i];
         $idPriority = $listTasks->tas_priority[$i];
         $idPublished = $listTasks->tas_published[$i];
         $complValue = $listTasks->tas_completion[$i] > 0 ? $listTasks->tas_completion[$i] . "0 %" : $listTasks->tas_completion[$i] . " %";
         $blockProject->openRow();
开发者ID:TICanalyste,项目名称:netOffice--remix-,代码行数:31,代码来源:snapshot.php

示例2: buildLink

$breadcrumbs[] = buildLink("../tasks/listtasks.php?project=" . $projectDetail->pro_id[0], $strings["tasks"], LINK_INSIDE);
$breadcrumbs[] = buildLink("../tasks/viewtask.php?id=" . $taskDetail->tas_id[0], $taskDetail->tas_name[0], LINK_INSIDE);
$breadcrumbs[] = $strings["add_task_time"];
require_once "../themes/" . THEME . "/header.php";
//--- content ---
$tmpquery1 = "SELECT sum(hours) FROM " . $tableCollab['tasks_time'];
$blockPage = new block();
$blockPage->bornesNumber = "1";
// get actual time for task
$taskActualTime = new request();
$actualTime = $taskActualTime->getTaskTime($id);
$block1 = new block();
$block1->form = "saT";
$block1->openForm("../tasks/addtasktime.php?id={$id}&amp;project=" . $projectDetail->pro_name[0] . "&amp;action=add#" . $block1->form . "Anchor");
$block1->heading($strings["add_task_time"] . " : " . $taskDetail->tas_name[0]);
$block1->heading_close();
$block1->openContent();
$block1->contentTitle($strings["info"]);
$block1->contentRow($strings["project"], $projectDetail->pro_name[0]);
$block1->contentRow($strings["tasks"], $taskDetail->tas_name[0]);
$block1->contentRow($strings["description"], nl2br($taskDetail->tas_description[0]));
$block1->contentRow($strings["estimated_time"], $taskDetail->tas_estimated_time[0] . " " . $strings["hours"]);
$block1->contentRow($strings["actual_time"], $actualTime . " " . $strings["hours"]);
$block1->contentTitle($strings["add_task_time"]);
$tmpquery = "WHERE tea.project = '" . $projectDetail->pro_id[0] . "' ORDER BY mem.name";
$projmem = new request();
$projmem->openTeams($tmpquery);
$comptProjmem = count($projmem->tea_mem_id);
echo "\r\n\t<tr class='odd'>\r\n\t  <td valign='top' class='leftvalue'>" . $strings['owner'] . " :</td>\r\n\t  <td><select name='owner'>";
// get project team listing for owner select lists, default to logged user
for ($i = 0; $i < $comptProjmem; $i++) {
开发者ID:jgatica,项目名称:Netoffice,代码行数:31,代码来源:addtasktime.php

示例3: block

    $block1->paletteScript(1, "add_projectsite", "../linkedcontent/viewfile.php?addToSiteFile=true&file=" . $fileDetail->fil_id[0] . "&action=publish", "true,true,true", $strings["add_project_site"]);
    $block1->paletteScript(2, "remove_projectsite", "../linkedcontent/viewfile.php?removeToSiteFile=true&file=" . $fileDetail->fil_id[0] . "&action=publish", "true,true,true", $strings["remove_project_site"]);
    $block1->closePaletteScript($comptFileDetail, $fileDetail->fil_id);
}
//------- Revision list block -------------------
if ($peerReview == "true") {
    $block2 = new block();
    $block2->form = "tdC";
    $block2->openForm("../files/viewfile.php?id={$id}#" . $block2->form . "Anchor");
    $block2->heading($strings["ifc_revisions"]);
    if ($fileDetail->fil_owner[0] == $_SESSION['idSession']) {
        $block2->openPaletteIcon();
        $block2->paletteIcon(0, "remove", $strings["ifc_delete_review"]);
        $block2->closePaletteIcon();
    } else {
        $block2->heading_close();
    }
    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 fil.vc_parent = '{$id}' AND fil.vc_status != '3' ORDER BY fil.date";
    $listReviews = new request();
    $listReviews->openFiles($tmpquery);
    $comptListReviews = count($listReviews->fil_vc_parent);
    for ($i = 0; $i < $comptListReviews; $i++) {
        // Sort odds and evens for bg color
        if (!($i % 2)) {
开发者ID:TICanalyste,项目名称:netOffice--remix-,代码行数:31,代码来源:viewfile.php


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