本文整理汇总了PHP中block::contentError方法的典型用法代码示例。如果您正苦于以下问题:PHP block::contentError方法的具体用法?PHP block::contentError怎么用?PHP block::contentError使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类block
的用法示例。
在下文中一共展示了block::contentError方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: block
$revision = $displayrev + 1;
echo "\r\n<input value=\"" . $fileDetail->mat_id[0] . "\" name=\"sendto\" type=\"hidden\">\r\n<input value=\"" . $fileDetail->mat_id[0] . "\" name=\"parent\" type=\"hidden\">\r\n<input value=\"{$revision}\" name=\"revision\" type=\"hidden\">\r\n<input value=\"" . $fileDetail->mat_vc_version[0] . "\" name=\"oldversion\" type=\"hidden\">\r\n<input value=\"" . $fileDetail->mat_project[0] . "\" name=\"project\" type=\"hidden\">\r\n<input value=\"" . $fileDetail->mat_meeting[0] . "\" name=\"meeting\" type=\"hidden\">\r\n<input value=\"" . $fileDetail->mat_published[0] . "\" name=\"published\" type=\"hidden\">\r\n<input value=\"" . $fileDetail->mat_name[0] . "\" name=\"filename\" type=\"hidden\">\r\n\r\n<tr class=\"odd\"><td valign=\"top\" class=\"leftvalue\">* " . $strings["upload"] . " :</td><td><input size=\"44\" style=\"width: 400px\" name=\"upload\" type=\"FILE\"></td></tr>\r\n<tr class=\"odd\"><td valign=\"top\" class=\"leftvalue\">" . $strings["comments"] . " :</td><td><textarea rows=\"3\" style=\"width: 400px; height: 50px;\" name=\"c\" cols=\"43\">{$c}</textarea></td></tr>\r\n<tr class=\"odd\"><td valign=\"top\" class=\"leftvalue\"> </td><td><input type=\"SUBMIT\" value=\"" . $strings["save"] . "\"></td></tr>";
$block3->closeContent();
$block3->headingForm_close();
$block3->closeFormResults();
}
}
// Update file Block
if ($fileDetail->mat_owner[0] == $_SESSION['idSession']) {
$block4 = new block();
$block4->form = "filedetails";
echo "<a name=\"filedetailsAnchor\"></a>";
echo "<form accept-charset=\"UNKNOWN\" method=\"POST\" action=\"../meetings/viewfile.php?action=update&id=" . $fileDetail->mat_id[0] . "#filedetailsAnchor\" name=\"filedetailsForm\" enctype=\"multipart/form-data\"><input type=\"hidden\" name=\"MAX_FILE_SIZE\" value=\"100000000\"><input type=\"hidden\" name=\"maxCustom\" value=\"" . $projectDetail->pro_upload_max[0] . "\">";
if ($error4 != "") {
$block4->headingError($strings["errors"]);
$block4->contentError($error4);
}
$block4->headingForm($strings["ifc_update_file"]);
$block4->openContent();
$block4->contentTitle($strings["details"]);
echo "\r\n\t<tr class=\"odd\"><td valign=\"top\" class=\"leftvalue\"></td><td class=\"odd\">" . $strings["version_increm"] . "<br>\r\n\t<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n\t<tr><td align=\"right\">0.01</td><td width=\"30\" align=\"right\"><input name=\"change_file_version\" type=\"radio\" value=\"0.01\"></td></tr>\r\n\t<tr><td align=\"right\">0.1</td><td width=\"30\" align=\"right\"><input name=\"change_file_version\" type=\"radio\" value=\"0.1\" checked></td></tr>\r\n\t<tr><td align=\"right\">1.0</td><td width=\"30\" align=\"right\"><input name=\"change_file_version\" type=\"radio\" value=\"1.0\"></td></tr>\r\n\t</table>\r\n\t</td></tr>";
echo "<tr class=\"odd\"><td valign=\"top\" class=\"leftvalue\">" . $strings["status"] . " :</td><td><select name=\"statusField\">";
$comptSta = count($statusFile);
for ($i = 0; $i < $comptSta; $i++) {
if ($i == "2") {
echo "<option value=\"{$i}\" selected>{$statusFile[$i]}</option>";
} else {
echo "<option value=\"{$i}\">{$statusFile[$i]}</option>";
}
}
echo "</select></td></tr>";
示例2: request
}
$bodyCommand = "onLoad=\"document.assignment_commentForm.acomm.focus();\"";
include '../themes/' . THEME . '/header.php';
$tmpquery = "WHERE tas.id = '{$task}'";
$taskDetail = new request();
$taskDetail->openTasks($tmpquery);
$tmpquery = "WHERE pro.id = '" . $taskDetail->tas_project[0] . "'";
$projectDetail = new request();
$projectDetail->openProjects($tmpquery);
$blockPage = new 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($blockPage->buildLink("../tasks/listtasks.php?project=" . $projectDetail->pro_id[0], $strings["tasks"], in));
$blockPage->itemBreadcrumbs($blockPage->buildLink("../tasks/viewtask.php?id=" . $taskDetail->tas_id[0], $taskDetail->tas_name[0], in));
$blockPage->itemBreadcrumbs($strings["assignment_comment"]);
$blockPage->closeBreadcrumbs();
$block1 = new block();
$block1->form = "assignment_comment";
$block1->openForm("../tasks/assignmentcomment.php?action=update&id={$id}&task={$task}&" . session_name() . "=" . session_id());
if ($error != "") {
$block1->headingError($strings["errors"]);
$block1->contentError($error);
}
$block1->heading($strings["assignment_comment"]);
$block1->openContent();
$block1->contentTitle($strings["assignment_comment_info"]);
echo "<tr class=\"odd\"><td valign=\"top\" class=\"leftvalue\">" . $strings["task"] . " :</td><td>" . $taskDetail->tas_name[0] . "</td></tr>\n<tr class=\"odd\"><td valign=\"top\" class=\"leftvalue\">" . $strings["comments"] . " :</td><td><input style=\"width: 400px;\" maxlength=\"128\" size=\"44\" name=\"acomm\"></input></td></tr>\n<tr class=\"odd\"><td valign=\"top\" class=\"leftvalue\"> </td><td><input type=\"submit\" name=\"Save\" value=\"" . $strings["save"] . "\"></td></tr>";
$block1->closeContent();
$block1->closeForm();
include '../themes/' . THEME . '/footer.php';
示例3: block
$breadcrumbs[] = $strings["add_support_response"];
}
}
}
require_once "../themes/" . THEME . "/header.php";
//--- content ---
$block2 = new block();
$block2->form = "sr";
if ($action == "status") {
$block2->openForm("../support/addpost.php?action=edit&id={$id}#" . $block2->form . "Anchor");
} else {
$block2->openForm("../support/addpost.php?action=add&id={$id}#" . $block2->form . "Anchor");
}
if ($error != "") {
$block2->headingError($strings["errors"]);
$block2->contentError($error);
}
$block2->headingForm($strings["add_support_respose"]);
$block2->openContent();
$block2->contentTitle($strings["details"]);
if ($action == "status") {
echo "<tr class=\"odd\"><td valign=\"top\" class=\"leftvalue\">" . $strings["status"] . " :</td><td><select name=\"sta\">";
$comptSta = count($requestStatus);
for ($i = 0; $i < $comptSta; $i++) {
if ($requestDetail->sr_status[0] == $i) {
echo "<option value=\"{$i}\" selected>{$requestStatus[$i]}</option>";
} else {
echo "<option value=\"{$i}\">{$requestStatus[$i]}</option>";
}
}
echo "</select></td></tr>";