本文整理汇总了PHP中HTML::para方法的典型用法代码示例。如果您正苦于以下问题:PHP HTML::para方法的具体用法?PHP HTML::para怎么用?PHP HTML::para使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类HTML
的用法示例。
在下文中一共展示了HTML::para方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _
exit;
}
/**
* Show page
*/
$title = _("Clinic History");
$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(_("View Personal Antecedents"), '../medical/history_personal_view.php', array('id_patient' => $idPatient)) . ' | ' . HTML::link(_("View Family Antecedents"), '../medical/history_family_view.php', array('id_patient' => $idPatient)));
echo HTML::rule();
echo HTML::section(2, _("Closed Medical Problems List:"));
$problemQ = new Query_Page_Problem();
if (!$problemQ->selectProblems($idPatient, true)) {
$problemQ->close();
echo Msg::info(_("No closed medical problems defined for this patient."));
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;
示例2: 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(_("Editar antecedentes familiares"), '../medical/history_family_edit_form.php', array('id_patient' => $idPatient)));
}
/**
* Show family antecedents
*/
echo HTML::section(2, _("Antecedentes Familiares"));
if ($history->getParentsStatusHealth()) {
echo HTML::section(3, _("Estado atual de saúde dos pais"));
echo HTML::para(nl2br($history->getParentsStatusHealth()));
}
if ($history->getBrothersStatusHealth()) {
echo HTML::section(3, _("Estado geral da saúde dos irmãos"));
echo HTML::para(nl2br($history->getBrothersStatusHealth()));
}
if ($history->getSpouseChildsStatusHealth()) {
echo HTML::section(3, _("Histórico de problemas degenerativos ou de doenças crônicas"));
echo HTML::para(nl2br($history->getSpouseChildsStatusHealth()));
}
if ($history->getFamilyIllness()) {
echo HTML::section(3, _("Histórico visitas domiciliares"));
echo HTML::para(nl2br($history->getFamilyIllness()));
}
require_once "../layout/footer.php";
示例3: _
/**
* Show page
*/
$title = _("Editar antecedentes clínicos");
$titlePage = $patient->getName() . ' (' . $title . ')';
$focusFormField = "birth_growth";
// to avoid JavaScript mistakes in demo version
require_once "../layout/header.php";
//$returnLocation = "../medical/history_personal_view.php?id_patient=" . $idPatient;
$returnLocation = "../medical/history_personal_view.php";
/**
* Breadcrumb
*/
$links = array(_("Medical Records") => "../medical/index.php", $patient->getName() => "../medical/patient_view.php", _("Clinic History") => "../medical/history_list.php", _("View Personal Antecedents") => $returnLocation, $title => "");
echo HTML::breadcrumb($links, "icon icon_patient");
unset($links);
echo $patient->getHeader();
echo Form::errorMsg();
/**
* Edit form
*/
echo HTML::start('form', array('method' => 'post', 'action' => '../medical/history_personal_edit.php'));
echo Form::hidden("id_patient", $idPatient);
require_once "../medical/history_personal_fields.php";
echo HTML::end('form');
echo HTML::para(HTML::link(_("Voltar"), $returnLocation));
/**
* Destroy form values and errors
*/
Form::unsetSession();
require_once "../layout/footer.php";
示例4: array
echo HTML::start('form', array('method' => 'post', 'action' => $_SERVER['PHP_SELF'] . '?confirm=yes'));
echo HTML::para(Form::button("continue", _("Continue")) . Form::generateToken());
echo HTML::end('form');
echo HTML::para(HTML::link(_("Cancel"), './index.php'));
include_once "../layout/footer.php";
exit;
}
}
$setQ->close();
unset($setQ);
unset($set);
/**
* Creating each table listed in the $tables array
*/
$tables = getTables();
foreach ($tables as $tableName) {
$result = parseSqlFile("./sql/" . $tableName . ".sql", $tableName, true);
if ($result) {
$text = sprintf(_("Table %s dropped."), $tableName) . PHP_EOL;
$text .= sprintf(_("Table %s created."), $tableName) . PHP_EOL;
$text .= str_repeat(".", 50);
echo HTML::para(nl2br($text));
} else {
echo Msg::error(_("Last instruction failed"));
include_once "../layout/footer.php";
exit;
}
}
echo Msg::info(_("OpenClinic tables have been created successfully!"));
echo HTML::section(1, HTML::link(_("Start using OpenClinic"), '../home/index.php'));
require_once "../layout/footer.php";
示例5: _
* Show page
*/
$title = _("Medical Problems Report");
$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;
示例6: sprintf
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"]);
$row .= OPEN_SEPARATOR;
$row .= $access["login"];
$row .= OPEN_SEPARATOR;
$row .= $profiles[$access["id_profile"]];
$tbody[] = explode(OPEN_SEPARATOR, $row);
}
$accessQ->freeResult();
$accessQ->close();
echo HTML::table($thead, $tbody, null, $options);
echo $pageLinks;
unset($accessQ);
unset($access);
unset($profiles);
echo HTML::para(HTML::link(_("Return to users list"), $returnLocation));
require_once "../layout/footer.php";
示例7: array
require_once "../layout/header.php";
echo HTML::section(1, $title, array('class' => 'icon icon_admin'));
echo HTML::para(_("Use the following functions located in the left hand navigation area to manage your clinic's staff and administrative records."));
echo HTML::section(2, HTML::link(_("Config settings"), '../admin/setting_edit_form.php'), array('class' => 'icon icon_config'));
echo HTML::para(_("Update config settings."));
echo HTML::rule();
echo HTML::section(2, HTML::link(_("Staff Members"), '../admin/staff_list.php'), array('class' => 'icon icon_staff'));
echo HTML::para(_("View the clinic staff member list.") . ' ' . _("From this list you can:"));
$array = array(_("build a new staff member"), _("edit the staff member information"), _("build or edit the clinic user associated"), _("delete a staff member"));
echo HTML::itemList($array);
echo HTML::rule();
echo HTML::section(2, HTML::link(_("Users"), '../admin/user_list.php'), array('class' => 'icon icon_user'));
echo HTML::para(_("View the list of clinic users.") . ' ' . _("From this list you can:"));
$array = array(_("build a new clinic user"), _("edit a existing clinic user"), _("edit the staff member information"), _("reset a user's password"), _("delete a clinic user"));
echo HTML::itemList($array);
echo HTML::rule();
echo HTML::section(2, HTML::link(_("Themes"), '../admin/theme_list.php'), array('class' => 'icon icon_theme'));
echo HTML::para(_("View the list of site look and feel themes.") . ' ' . _("From this list you can:"));
$array = array(_("set the theme in use by default for your site"), _("build a new site theme"), _("edit an existing theme"), _("delete a theme"));
echo HTML::itemList($array);
echo HTML::rule();
echo HTML::section(2, HTML::link(_("Dumps"), '../admin/dump_view_form.php'), array('class' => 'icon icon_dump'));
echo HTML::para(_("From this option you can:"));
$array = array(_("install dump from file"), sprintf(_("export database dump to %s format"), "MySQL"), sprintf(_("export database dump to %s format"), "XML"), sprintf(_("export database dump to %s format"), "CSV"), _("optimize database"));
echo HTML::itemList($array);
echo HTML::rule();
echo HTML::section(2, HTML::link(_("Logs"), '../admin/log_stats.php'), array('class' => 'icon icon_log'));
echo HTML::para(_("View logs generated by the program:"));
$array = array(_("user's accesses logs"), _("operations with medical records logs"), _("statistics for years, months, days and hours"));
echo HTML::itemList($array);
require_once "../layout/footer.php";
示例8: getHeader
/**
* string getHeader(void)
*
* Returns a header with medical problem information
*
* @return string
* @access public
* @since 0.8
*/
function getHeader()
{
$_html = HTML::start('div', array('id' => 'problem_header', 'class' => 'clearfix'));
$_html .= HTML::para(_("Wording") . ': ' . $this->getWordingPreview());
$_html .= HTML::para(_("Opening Date") . ': ' . I18n::localDate($this->getOpeningDate()), array('class' => 'right'));
$_html .= HTML::para(_("Last Update Date") . ': ' . I18n::localDate($this->getLastUpdateDate()), array('class' => 'right'));
$_html .= HTML::end('div');
return $_html;
}
示例9: array
echo HTML::end('style');
echo HTML::insertScript('pop_window.js');
echo HTML::end('head');
echo HTML::start('body', array('id' => 'top'));
echo HTML::start('div', array('id' => 'wrap'));
echo HTML::start('div', array('id' => 'header'));
echo appLogo();
$array = array(HTML::link(_("Close Window"), '#', null, array('onclick' => 'window.close(); return false;')));
echo HTML::itemList($array, array('id' => 'shortcuts'));
echo menuBar($tab);
echo HTML::end('div');
// #header
echo HTML::start('div', array('id' => 'main'));
echo HTML::start('div', array('id' => 'content'));
echo HTML::section(1, sprintf(_("This is a preview of the %s theme."), $_POST["theme_name"]));
echo HTML::para(HTML::link(_("Sample Link"), '#top'));
echo HTML::rule();
echo HTML::section(2, _("Subtitle Sample:"));
$thead = array(_("Table Heading") => array('colspan' => 2));
$tbody = array();
$tbody[] = array(sprintf(_("Sample data row %d"), 1));
$tbody[] = array(sprintf(_("Sample data row %d"), 2));
$row = Form::label("sample_text", _("Required Field") . ":", array('class' => 'required'));
$row .= OPEN_SEPARATOR;
$row .= Form::text("sample_text", _("Sample Input Text"), array('size' => 50, 'readonly' => true));
$tbody[] = explode(OPEN_SEPARATOR, $row);
$options = array('tfoot' => array('align' => 'center'), 'r0' => array('colspan' => 2), 'r1' => array('colspan' => 2));
$tfoot = array(Form::button("sample_button", _("Sample Button"), array('type' => 'button')));
echo HTML::table($thead, $tbody, $tfoot, $options);
echo Msg::error(_("Sample Error"));
echo Msg::warning(_("Sample Warning"));
示例10: loginCheck
*/
$tab = "home";
$nav = "summary";
require_once "../config/environment.php";
if (isset($_SESSION['auth']['token'])) {
/**
* Checking permissions
*/
include_once "../auth/login_check.php";
loginCheck();
}
require_once "../lib/Check.php";
/**
* Show page
*/
$title = _("Welcome to OpenClinic");
require_once "../layout/header.php";
echo HTML::section(1, $title);
echo HTML::para(_("OpenClinic is an easy to use, open source, medical records system."));
echo HTML::para(_("When you select any of the following tabs you will be prompted to login."));
echo HTML::section(2, HTML::link(_("Social"), '../medical/index.php'), array('class' => 'icon icon_medical'));
echo HTML::para(_("Utilize essa área para gerenciar e realizar os atendimentos aos beneficiários."));
echo HTML::para(_("Administração de pacientes:"));
$array = array(_("Pesquise, cadastre, apague ou edite seus beneficiários"), _("Dados Sociais"), _("Histórico dos atendimentos"), _("Histórico dos problemas e diagnósticos"));
echo HTML::itemList($array);
echo HTML::rule();
echo HTML::section(2, HTML::link(_("Admin"), '../admin/index.php'), array('class' => 'icon icon_admin'));
echo HTML::para(_("Utilize essa aba para administrar usuários e outras configurações do sistema."));
$array = array(_("Membros de atendimento"), _("Configurações do sistema"), _("Editor de temas (não utilizar)"), _("Usuários do sistema"), _("Dumps (uso restrito ao técnico)"), _("Logs (uso restrito ao técnico)"));
echo HTML::itemList($array);
require_once "../layout/footer.php";
示例11: sprintf
sprintf(_("Under the %s"),
HTML::link('GNU General Public License', '../home/license.php', null, array('rel' => 'license'))
)
);
if (defined("OPEN_DEMO") && OPEN_DEMO)
{
echo Msg::info(_("This is a demo version"));
}
/**
* End server page generation time
*/
if (defined("OPEN_DEBUG") && OPEN_DEBUG) {
$microTime = explode(" ", microtime());
$endTime = $microTime[1] + $microTime[0];
$totalTime = sprintf(_("Page generation: %s seconds"), substr($endTime - $startTime, 0, 6));
echo HTML::para($totalTime);
}
echo HTML::end('div');
// #app_info
echo HTML::end('div');
// #footer
echo HTML::end('div');
// #wrap
echo HTML::end('body');
echo HTML::end('html');
if (defined("OPEN_BUFFER") && OPEN_BUFFER) {
ob_end_flush();
flush();
}
示例12: _
$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";
示例13: _
$text .= HTML::para(_("Once made it, click in Next button."));
} else {
$text .= ' - ';
$text .= HTML::tag('strong', _("ok"));
}
$itemArray[] = $text;
unset($text);
echo HTML::itemList($itemArray);
unset($itemArray);
echo HTML::para(sprintf(_("To install OpenClinic on a Windows machine for test, you just need to install %s before."), HTML::link("AppServ", 'http://academic.cmri.ac.th/appserv')));
echo HTML::para(sprintf(_("For more details, see %s."), HTML::link(_("Install Instructions"), '../install.html')));
if (!isset($notPHP)) {
echo HTML::start('div', array('id' => 'buttons'));
_showButton("next1", _("Next"));
echo HTML::end('div');
echo HTML::para(_("Press Next button to continue"), array('id' => 'status'));
}
}
// end step 1: requirements
//echo "<!-- Footer -->\n";
echo HTML::end('div');
// #window
echo HTML::end('form');
if (isset($focusFormField) && !empty($focusFormField)) {
echo HTML::insertScript('event.js');
echo HTML::start('script', array('src' => '../js/focus.php?field=' . $focusFormField, 'type' => 'text/javascript'));
echo HTML::end('script');
}
echo HTML::end('body');
echo HTML::end('html');
//echo "<!-- End Footer -->\n";
示例14: array
echo HTML::para(HTML::link(_("Install dump from file"), '../install/index.php') . ' | ' . HTML::link(_("Optimize Database"), '../admin/dump_optimize_db.php'));
if ($numTables < 1) {
// @todo message
require_once "../layout/footer.php";
exit;
}
echo HTML::insertScript('dump_functions.js');
echo HTML::start('form', array('method' => 'post', 'action' => './dump_process.php'));
$i = 0;
$table = null;
while ($i < $numTables) {
DUMP_MYSQL_INT_VERSION >= 32303 ? $table[$tables[$i]['Name']] = $tables[$i]['Name'] : ($table[$tables[$i]] = $tables[$i]);
$i++;
}
$fieldArray = array(Form::select("table_select", $table, null, array('size' => 15)));
unset($table);
$fieldFoot = array(HTML::link(_("Select all"), '#', null, array('id' => 'select_all')) . ' / ' . HTML::link(_("Unselect all"), '#', null, array('id' => 'unselect_all')));
echo Form::fieldset(_("View dump of database"), $fieldArray, $fieldFoot, array('id' => 'dump_tables'));
$fieldArray = null;
$fieldArray[] = Form::radioButton("what", "data", array('id' => 'radio_dump_data', 'checked' => true)) . Form::label("radio_dump_data", _("Structure and data"));
$fieldArray[] = Form::radioButton("what", "structure", array('id' => 'radio_dump_structure')) . Form::label("radio_dump_structure", _("Structure only"));
$fieldArray[] = Form::radioButton("what", "dataonly", array('id' => 'radio_dump_dataonly')) . Form::label("radio_dump_dataonly", _("Data only"));
$fieldArray[] = Form::radioButton("what", "xml", array('id' => 'radio_dump_xml')) . Form::label("radio_dump_xml", _("Export to XML format"));
$fieldArray[] = Form::radioButton("what", "excel", array('id' => 'radio_dump_csv')) . Form::label("radio_dump_csv", _("Export to CSV format (data only)"));
echo Form::fieldset(_("Options"), $fieldArray, null, array('id' => 'dump_options'));
$fieldArray = array(Form::checkBox("drop", "yes") . Form::label("drop", _("Add 'DROP TABLE'")), Form::checkBox("show_columns", "yes") . Form::label("show_columns", _("Complete 'INSERTs'")), Form::checkBox("extended_inserts", "yes") . Form::label("extended_inserts", _("Extended 'INSERTs'")), Form::checkBox("use_backquotes", "yes") . Form::label("use_backquotes", _("Enclose table and field names with backquotes")), Form::checkBox("add_delete", "yes") . Form::label("add_delete", _("Add 'DELETE * FROM __table__'")), Form::checkBox("use_dbname", "yes") . Form::label("use_dbname", _("Add 'USE __dbname__'")), Form::checkBox("create_db", "yes") . Form::label("create_db", _("Add 'CREATE DATABASE __dbname__'")), Form::checkBox("as_file", "sendit") . Form::label("as_file", _("Save as file")));
echo Form::fieldset(_("Extended options"), $fieldArray, null, array('id' => 'dump_extended'));
echo HTML::para(Form::button("dump", _("Submit")) . Form::generateToken(), array('class' => 'center'));
echo HTML::end('form');
echo Msg::hint(_("Note: Some check options are exclusive. Be carefully!"));
require_once "../layout/footer.php";
示例15: getHeader
/**
* string getHeader(void)
*
* Returns a header with patient information
*
* @return string
* @access public
* @since 0.8
*/
public function getHeader()
{
$_html = HTML::start('div', array('id' => 'patient_header', 'class' => 'clearfix'));
$_html .= HTML::para(_("Paciente") . ': <b>' . $this->getName()) . "</b>";
$_html .= HTML::para(_("Sexo") . ': ' . ($this->getSex() == 'V' ? _("Male") : _("Female")));
$_html .= HTML::para(_("Idade") . ': ' . $this->getAge(), array('class' => 'right'));
$_html .= HTML::end('div');
return $_html;
}