本文整理汇总了PHP中HTML::section方法的典型用法代码示例。如果您正苦于以下问题:PHP HTML::section方法的具体用法?PHP HTML::section怎么用?PHP HTML::section使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类HTML
的用法示例。
在下文中一共展示了HTML::section方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
/**
* Breadcrumb
*/
$links = array(_("Medical Records") => "../medical/index.php", $patient->getName() => "../medical/patient_view.php", _("Clinic History") => "../medical/history_list.php", $title => "");
echo HTML::breadcrumb($links, "icon icon_patient");
unset($links);
echo $patient->getHeader();
if ($_SESSION['auth']['is_administrative']) {
echo HTML::para(HTML::link(_("Edit Family Antecedents"), '../medical/history_family_edit_form.php', array('id_patient' => $idPatient)));
}
/**
* Show family antecedents
*/
echo HTML::section(2, _("Family Antecedents"));
if ($history->getParentsStatusHealth()) {
echo HTML::section(3, _("Parents Status Health"));
echo HTML::para(nl2br($history->getParentsStatusHealth()));
}
if ($history->getBrothersStatusHealth()) {
echo HTML::section(3, _("Brothers and Sisters Status Health"));
echo HTML::para(nl2br($history->getBrothersStatusHealth()));
}
if ($history->getSpouseChildsStatusHealth()) {
echo HTML::section(3, _("Spouse and Childs Status Health"));
echo HTML::para(nl2br($history->getSpouseChildsStatusHealth()));
}
if ($history->getFamilyIllness()) {
echo HTML::section(3, _("Family Illness"));
echo HTML::para(nl2br($history->getFamilyIllness()));
}
require_once "../layout/footer.php";
示例2: array
$titlePage = $patient->getName() . ' (' . $title . ')';
require_once "../layout/header.php";
/**
* Breadcrumb
*/
$links = array(_("Medical Records") => "../medical/index.php", $patient->getName() => "../medical/patient_view.php", $title => "");
echo HTML::breadcrumb($links, "icon icon_patient");
unset($links);
echo $patient->getHeader();
$problemQ = new Query_Page_Problem();
$lastOrderNumber = $problemQ->getLastOrderNumber($idPatient);
if ($_SESSION['auth']['is_administrative']) {
echo HTML::para(HTML::link(_("Add New Medical Problem"), '../medical/problem_new_form.php', array('id_patient' => $idPatient, 'order_number' => $lastOrderNumber)));
}
echo HTML::rule();
echo HTML::section(2, _("Medical Problems List:"));
if (!$problemQ->selectProblems($idPatient)) {
$problemQ->close();
echo Msg::info(_("No medical problems defined for this patient."));
include_once "../layout/footer.php";
exit;
}
$thead = array(_("Order Number"), _("Function") => array('colspan' => $_SESSION['auth']['is_administrative'] ? 5 : 3), _("Wording"), _("Opening Date"), _("Last Update Date"));
$options = array(0 => array('align' => 'right'));
$tbody = array();
while ($problem = $problemQ->fetch()) {
$row = $problem->getOrderNumber();
$row .= OPEN_SEPARATOR;
if ($_SESSION['auth']['is_administrative']) {
$row .= HTML::link(HTML::image('../img/action_edit.png', _("edit")), '../medical/problem_edit_form.php', array('id_problem' => $problem->getIdProblem(), 'id_patient' => $problem->getIdPatient()));
$row .= OPEN_SEPARATOR;
示例3: header
FlashMsg::add(sprintf(_("No logs for user %s."), $login));
header("Location: " . $returnLocation);
exit;
}
/**
* Show page
*/
$title = _("Access Logs");
require_once "../layout/header.php";
/**
* Breadcrumb
*/
$links = array(_("Admin") => "../admin/index.php", _("Users") => $returnLocation, $title => "");
echo HTML::breadcrumb($links, "icon icon_user");
unset($links);
echo HTML::section(2, sprintf(_("Access Logs List for user %s"), $login) . ":");
// Printing result stats and page nav
echo HTML::para(HTML::tag('strong', sprintf(_("%d accesses."), $accessQ->getRowCount())));
$params = array('id_user=' . $idUser, 'login=' . $login);
$params = implode('&', $params);
$pageCount = $accessQ->getPageCount();
$pageLinks = Search::pageLinks($currentPage, $pageCount, $_SERVER['PHP_SELF'] . '?' . $params);
echo $pageLinks;
$profiles = array(OPEN_PROFILE_ADMINISTRATOR => _("Administrator"), OPEN_PROFILE_ADMINISTRATIVE => _("Administrative"), OPEN_PROFILE_DOCTOR => _("Doctor"));
$thead = array(_("Access Date") => array('colspan' => 2), _("Login"), _("Profile"));
$options = array(0 => array('align' => 'right'), 2 => array('align' => 'center'), 3 => array('align' => 'center'));
$tbody = array();
while ($access = $accessQ->fetch()) {
$row = $accessQ->getCurrentRow() . ".";
$row .= OPEN_SEPARATOR;
$row .= I18n::localDate($access["access_date"]);
示例4: summary
/**
* void summary(string $table)
*
* Draws summary stats
*
* @param string $table
* @return void
* @access public
* @static
*/
public static function summary($table)
{
$logQ = new Query_LogStats($table);
$total = $logQ->totalHits();
if ($total == 0) {
$logQ->close();
echo Msg::info(_("There are not statistics"));
return;
}
$today = date("Y-m-d");
// calculated date
$arrToday = explode("-", $today);
$sectionTitle = _("Total") . ': ' . $total . ' ' . strtolower(_("Hits"));
echo HTML::section(3, $sectionTitle);
$array = $logQ->busiestYear();
if (is_array($array)) {
list($year, $hits) = $array;
echo HTML::para(sprintf(_("Busiest Year: %d (%d hits)"), intval($year), $hits));
}
$array = $logQ->busiestMonth();
if (is_array($array)) {
list($year, $month, $hits) = $array;
$months = self::getMonthName();
echo HTML::para(sprintf(_("Busiest Month: %s %d (%d hits)"), $months[intval($month)], intval($year), $hits));
}
$array = $logQ->busiestDay();
if (is_array($array)) {
list($year, $month, $day, $hits) = $array;
echo HTML::para(sprintf(_("Busiest Day: %d %s %d (%d hits)"), intval($day), $months[intval($month)], intval($year), $hits));
}
$array = $logQ->busiestHour();
if (is_array($array)) {
list($year, $month, $day, $hour, $hits) = $array;
$hour = sprintf("%02d:00 - %02d:59", $hour, $hour);
echo HTML::para(sprintf(_("Busiest Hour: %s on %s %d, %d (%d hits)"), $hour, $months[intval($month)], intval($day), intval($year), $hits));
}
$logQ->freeResult();
$logQ->close();
unset($logQ);
}
示例5: unset
echo HTML::breadcrumb($links, "icon icon_patient");
unset($links);
echo $patient->getHeader();
echo $problem->getHeader();
if ($_SESSION['auth']['is_administrative']) {
echo HTML::para(HTML::link(_("Add New Medical Test"), '../medical/test_new_form.php', array('id_problem' => $idProblem, 'id_patient' => $idPatient)));
echo HTML::rule();
}
$testQ = new Query_Test();
if (!$testQ->select($idProblem)) {
$testQ->close();
echo Msg::info(_("No medical tests defined for this medical problem."));
include_once "../layout/footer.php";
exit;
}
echo HTML::section(2, _("Medical Tests List:"));
$thead = array(_("Function") => array('colspan' => $_SESSION['auth']['is_administrative'] ? 3 : 1), _("Document Type"), _("Path Filename"));
$tbody = array();
while ($test = $testQ->fetch()) {
$temp = "http://" . $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']);
$temp = substr($temp, 0, strrpos($temp, "/")) . "/tests/" . String::translateBrowser($test->getPathFilename(false));
$row = HTML::link(HTML::image('../img/action_view.png', _("view")), $temp, null, array('class' => 'popup'));
$row .= OPEN_SEPARATOR;
if ($_SESSION['auth']['is_administrative']) {
$row .= HTML::link(HTML::image('../img/action_edit.png', _("edit")), '../medical/test_edit_form.php', array('id_problem' => $idProblem, 'id_patient' => $idPatient, 'id_test' => $test->getIdTest()));
$row .= OPEN_SEPARATOR;
$row .= HTML::link(HTML::image('../img/action_delete.png', _("delete")), '../medical/test_del_confirm.php', array('id_problem' => $idProblem, 'id_patient' => $idPatient, 'id_test' => $test->getIdTest()));
$row .= OPEN_SEPARATOR;
}
// end if
$row .= $test->getDocumentType();
示例6: _
exit;
}
if ($themeQ->numRows() > 1) {
$legend = _("Change Theme by default in application");
$content = Form::label("id_theme", _("Choose a New Theme:"));
$content .= Form::selectTable("theme_tbl", "id_theme", OPEN_THEME_ID, "theme_name");
$body = array($content);
$foot = array(Form::button("button1", _("Update")));
/**
* Theme use form
*/
echo HTML::start('form', array('method' => 'post', 'action' => '../admin/theme_use.php'));
echo Form::fieldset($legend, $body, $foot);
echo HTML::end('form');
}
echo HTML::section(2, _("Themes List:"));
$thead = array(_("#"), _("Function") => array('colspan' => 5), _("Theme Name"), _("Usage"));
$validateLink = "http://" . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF'];
$validateLink = str_replace("/admin/", "/css/", $validateLink);
$validateLink = substr($validateLink, 0, strrpos($validateLink, "/") + 1);
$validateLink = "http://jigsaw.w3.org/css-validator/validator?uri=" . $validateLink;
$tbody = array();
$i = 0;
while ($theme = $themeQ->fetch()) {
/**
* Row construction
*/
$row = ++$i . '.';
$row .= OPEN_SEPARATOR;
if ($theme->isCssReserved($theme->getCssFile())) {
$row .= '**';
示例7: array
* Search form
*/
echo HTML::start('form', array('method' => 'post', 'action' => '../medical/relative_search.php'));
echo Form::hidden("id_patient", $idPatient);
require_once "../medical/patient_search_fields.php";
echo HTML::end('form');
echo Msg::hint('* ' . _("Note: Empty search to see all results."));
}
// end if
if (count($relArray) == 0) {
echo Msg::info(_("No relatives defined for this patient."));
include_once "../layout/footer.php";
exit;
}
echo HTML::rule();
echo HTML::section(2, _("Relatives List:"));
$thead = array(_("#"), _("Function") => array('colspan' => $_SESSION['auth']['is_administrative'] ? 2 : 1), _("Surname 1"), _("Surname 2"), _("First Name"));
$options = array(0 => array('align' => 'right'));
$patQ = new Query_Page_Patient();
$patQ->captureError(true);
$tbody = array();
for ($i = 0; $i < count($relArray); $i++) {
$patQ->select($relArray[$i]);
if ($patQ->isError()) {
Error::query($patQ, false);
continue;
}
$pat = $patQ->fetch();
if (!$pat) {
$patQ->close();
Error::fetch($patQ);
示例8: _validateSettings
/**
* bool _validateSettings(void)
*
* Validates settings of install wizard
*
* @return boolean true if all settings are ok, false otherwise
* @access private
*
*/
function _validateSettings()
{
$error = "";
if (empty($_POST['dbHost'])) {
$error .= _("Database Host is empty.") . PHP_EOL;
}
if (empty($_POST['dbUser'])) {
$error .= _("Database User is empty.") . PHP_EOL;
}
if (empty($_POST['dbName'])) {
$error .= _("Database Name is empty.") . PHP_EOL;
}
if ($_POST['timeout'] <= 0) {
$error .= _("Session Timeout must be great than zero.") . PHP_EOL;
}
if ($_POST['itemsPage'] <= 0) {
$error .= _("Items per page must be great than zero.") . PHP_EOL;
}
if (strlen($_POST['passwd']) < 4) {
$error .= _("Admin password must be at least 4 characters.") . PHP_EOL;
}
if (!empty($error)) {
echo HTML::section(3, _("There were some errors"), array('class' => 'error'));
echo Msg::error($error);
}
return empty($error);
}
示例9: _
echo HTML::section(3, _("Situação da família"));
echo HTML::para(nl2br($patient->getFamilySituation()));
}
if ($patient->getLabourSituation()) {
echo HTML::section(3, _("Condição de trabalho"));
echo HTML::para(nl2br($patient->getLabourSituation()));
}
if ($patient->getEducation()) {
echo HTML::section(3, _("Formação"));
echo HTML::para(nl2br($patient->getEducation()));
}
if ($patient->getInsuranceCompany()) {
echo HTML::section(3, _("Situação inicial"));
echo HTML::para($patient->getInsuranceCompany());
}
if ($patient->getIdMember()) {
$staffQ = new Query_Staff();
if ($staffQ->select($patient->getIdMember())) {
$staff = $staffQ->fetch();
if ($staff) {
echo HTML::section(3, _("Atendente"));
echo HTML::para($staff->getSurname1() . ' ' . $staff->getSurname2() . ', ' . $staff->getFirstName());
}
$staffQ->freeResult();
}
$staffQ->close();
unset($staffQ);
unset($staff);
}
unset($patient);
require_once "../layout/footer.php";
示例10: loginCheck
require_once "../auth/login_check.php";
loginCheck(OPEN_PROFILE_DOCTOR);
require_once "../lib/LastViewedPatient.php";
/**
* Show page
*/
$title = _("Medical Records");
require_once "../layout/header.php";
echo HTML::section(1, $title, array('class' => 'icon icon_medical'));
echo HTML::para(_("Use the following functions located in the left hand navigation area to manage your medical records."));
echo HTML::section(2, HTML::link(_("Search Patient"), '../medical/patient_search_form.php'), array('class' => 'icon icon_search'));
echo HTML::para(_("Search and view patients. Once a patient is selected you can:"));
$array = array(_("manage social data"), _("manage clinic history"), _("manage problems report"), _("print medical record"));
echo HTML::itemList($array);
$viewedPatient = LastViewedPatient::get();
if ($viewedPatient) {
echo HTML::rule();
echo HTML::section(2, _("Last Viewed Patients"), array('class' => 'icon icon_patient'));
$array = array();
foreach ($viewedPatient as $key => $value) {
$array[] = HTML::link($value, '../medical/patient_view.php', array('id_patient' => $key));
}
echo HTML::itemList($array);
}
if ($_SESSION['auth']['is_administrative']) {
echo HTML::rule();
echo HTML::section(2, HTML::link(_("New Patient"), '../medical/patient_new_form.php'), array('class' => 'icon icon_patient'));
echo HTML::para(_("Build a new patient information in medical records system."));
}
// end if
require_once "../layout/footer.php";
示例11: Query_Connection
$connQ = new Query_Connection();
$connArray = array();
if ($connQ->select($idProblem)) {
while ($conn = $connQ->fetch()) {
$connArray[] = $conn[1];
}
$connQ->freeResult();
}
$connQ->close();
unset($connQ);
if (count($connArray) == 0) {
echo Msg::info(_("No connections defined for this medical problem."));
include_once "../layout/footer.php";
exit;
}
echo HTML::section(2, _("Connection Problems List:"));
$thead = array(_("#"), _("Function") => array('colspan' => $_SESSION['auth']['is_administrative'] ? 2 : 1), _("Opening Date"), _("Wording"));
$problemQ = new Query_Page_Problem();
$problemQ->captureError(true);
$tbody = array();
for ($i = 0; $i < count($connArray); $i++) {
$problemQ->select($connArray[$i]);
if ($problemQ->isError()) {
Error::query($problemQ, false);
continue;
}
$problem = $problemQ->fetch();
if (!$problem) {
$problemQ->close();
Error::fetch($problemQ);
}
示例12: _
/**
* Show page
*/
$title = _("Histórico do beneficiário");
$titlePage = $patient->getName() . ' (' . $title . ')';
require_once "../layout/header.php";
/**
* Breadcrumb
*/
$links = array(_("Medical Records") => "../medical/index.php", $patient->getName() => "../medical/patient_view.php", $title => "");
echo HTML::breadcrumb($links, "icon icon_patient");
unset($links);
echo $patient->getHeader();
echo HTML::para(HTML::link(_("Ver antecedentes clínicos"), '../medical/history_personal_view.php', array('id_patient' => $idPatient)) . ' | ' . HTML::link(_("Ver antecedentes familiares"), '../medical/history_family_view.php', array('id_patient' => $idPatient)));
echo HTML::rule();
echo HTML::section(2, _("Lista de cenários clínicos do beneficiário:"));
$problemQ = new Query_Page_Problem();
if (!$problemQ->selectProblems($idPatient, true)) {
$problemQ->close();
echo Msg::info(_("Não há cenários clínicos encerrados para esse beneficiário."));
include_once "../layout/footer.php";
exit;
}
$thead = array(_("Order Number"), _("Function") => array('colspan' => $_SESSION['auth']['is_administrative'] ? 4 : 3), _("Wording"), _("Opening Date"), _("Closing Date"));
$options = array(0 => array('align' => 'right'));
$tbody = array();
while ($problem = $problemQ->fetch()) {
$row = $problem->getOrderNumber();
$row .= OPEN_SEPARATOR;
// a closed medical problem is not editable
$row .= HTML::link(HTML::image('../img/action_view.png', _("view")), '../medical/problem_view.php', array('id_problem' => $problem->getIdProblem(), 'id_patient' => $problem->getIdPatient()));
示例13: _
$listTitle = _("Administratives:");
break;
case 'D':
$listTitle = _("Doctors:");
break;
}
$viewType = false;
} else {
$numRows = $staffQ->select();
$listTitle = _("Staff Members") . ":";
$viewType = true;
}
//Error::debug($_SESSION);
echo HTML::para(HTML::link(_("Add New Administrative"), '../admin/staff_new_form.php', array('type' => 'A')) . ' | ' . HTML::link(_("Add New Doctor"), '../admin/staff_new_form.php', array('type' => 'D')));
echo HTML::rule();
echo HTML::section(3, $listTitle);
$relatedLinks = "";
if (!empty($memberType)) {
$relatedLinks .= HTML::link(_("View all staff members"), '../admin/staff_list.php');
} else {
$relatedLinks .= _("View all staff members");
}
$relatedLinks .= ' | ';
if ($memberType != 'A') {
$relatedLinks .= HTML::link(_("View only administratives"), '../admin/staff_list.php', array('type' => 'A'));
} else {
$relatedLinks .= _("View only administratives");
}
$relatedLinks .= ' | ';
if ($memberType != 'D') {
$relatedLinks .= HTML::link(_("View only doctors"), '../admin/staff_list.php', array('type' => 'D'));
示例14:
<?php
include "include/incluir.php";
//$titulo = SQL::filasEnArreglo(SQL::seleccionar("trcPriNombre","bif_terceros"));
$menu = SQL::filasEnArreglo(SQL::seleccionar("mnsId, mnsDescripcion, mnsRuta", "bif_menus", "mnsPadre = 0"));
$css = CSS::estiloHTML();
$js = "";
echo HTML::esquemaHTML(HTML::head($css, $js, "Fila") . HTML::body(HTML::header(HTML::figure("imagenes/logo.jpg") . HTML::nav(HTML::menuPrincipal($menu, 'navbar-nav'))) . HTML::section(HTML::article("") . HTML::aside("")) . HTML::footer("") . HTML::popUp("") . HTML::alert("") . HTML::menuBotones()));
示例15: _
$localQuery = 'OPTIMIZE TABLE ' . $row['Name'];
if (!$auxConn->exec($localQuery)) {
$auxConn->close();
Error::connection($auxConn);
}
$content = $row['Name'];
$content .= OPEN_SEPARATOR;
$content .= $total . ' KB';
$content .= OPEN_SEPARATOR;
if ($gain == 0) {
$content .= _("Already optimized");
$content .= OPEN_SEPARATOR;
$content .= '0 KB';
} else {
$content .= _("Optimized!");
$content .= OPEN_SEPARATOR;
$content .= $gain . ' KB';
}
$tbody[] = explode(OPEN_SEPARATOR, $content);
}
$auxConn->close();
unset($auxConn);
unset($rows);
unset($row);
echo HTML::table($thead, $tbody, null, $options);
$totalGain = round($totalGain, 3);
echo HTML::section(3, _("Optimization Results") . ":");
echo Msg::info(sprintf(_("Total Database Size: %d KB"), $totalAll));
echo Msg::info(sprintf(_("Total Space Saved: %d KB"), $totalGain));
echo HTML::para(HTML::link(_("Back return"), '../admin/dump_view_form.php'));
require_once "../layout/footer.php";