本文整理汇总了PHP中block::block_close方法的典型用法代码示例。如果您正苦于以下问题:PHP block::block_close方法的具体用法?PHP block::block_close怎么用?PHP block::block_close使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类block
的用法示例。
在下文中一共展示了block::block_close方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: text
$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';
示例2: substr
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";
示例3:
$blockProject->checkboxRow($listTasks->tas_id[$i], $checkbox = "false");
$blockProject->cellRow(buildLink("../tasks/viewtask.php?id=" . $listTasks->tas_id[$i], $listTasks->tas_name[$i], LINK_INSIDE));
$blockProject->cellRow('<img src="../themes/' . THEME . '/gfx_priority/' . $idPriority . '.gif" alt="' . $priority[$idPriority] . '"> ' . $priority[$idPriority], '', true);
$blockProject->cellRow($status[$idStatus]);
$blockProject->cellRow($listTasks->tas_due_date[$i]);
if ($complValue != "100 %") {
$blockProject->cellRow($complValue);
} else {
$blockProject->cellRow($listTasks->tas_complete_date[$i]);
}
if ($listTasks->tas_assigned_to[$i] == "0") {
$blockProject->cellRow($strings["unassigned"]);
} else {
$blockProject->cellRow($listTasks->tas_mem_login[$i]);
}
$blockProject->cellRow($statusPublish[$idPublished]);
$blockProject->closeRow();
}
} else {
// no tasks for project
}
$blockProject->closeResults();
$blockProject->block_close();
$blockProject->block_close();
}
// $blockProject->closeContent();
} else {
// $block1->noresults();
}
// $block1->closeContent();
require_once "../themes/" . THEME . "/footer.php";