本文整理汇总了PHP中Problem::getWordingPreview方法的典型用法代码示例。如果您正苦于以下问题:PHP Problem::getWordingPreview方法的具体用法?PHP Problem::getWordingPreview怎么用?PHP Problem::getWordingPreview使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Problem
的用法示例。
在下文中一共展示了Problem::getWordingPreview方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: header
if ($patient->getName() == '') {
FlashMsg::add(_("That patient does not exist."), OPEN_MSG_ERROR);
header("Location: ../medical/patient_search_form.php");
exit;
}
$problem = new Problem($idProblem);
if (!$problem) {
FlashMsg::add(_("That medical problem does not exist."), OPEN_MSG_ERROR);
header("Location: ../medical/patient_search_form.php");
exit;
}
/**
* Show page
*/
$title = _("View Medical Tests");
$titlePage = $patient->getName() . ' [' . $problem->getWordingPreview() . '] (' . $title . ')';
require_once "../layout/header.php";
/**
* Breadcrumb
*/
$links = array(_("Medical Records") => "../medical/index.php", $patient->getName() => "../medical/patient_view.php", _("Medical Problems Report") => "../medical/problem_list.php", $problem->getWordingPreview() => "../medical/problem_view.php", $title => "");
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)) {
示例2: header
FlashMsg::add(_("That medical problem does not exist."), OPEN_MSG_ERROR);
header("Location: ../medical/patient_search_form.php");
exit;
}
if ($problem->getClosingDate() != "" && $problem->getClosingDate() != '0000-00-00') {
$nav = "history";
}
/**
* Update session variables
*/
require_once "../lib/LastViewedPatient.php";
LastViewedPatient::add($idPatient, $patient->getName());
/**
* Show page
*/
$title = $problem->getWordingPreview();
//_("View Medical Problem");
$titlePage = $patient->getName() . ' [' . $title . ']';
require_once "../layout/header.php";
/**
* Breadcrumb
*/
$links = array(_("Medical Records") => "../medical/index.php", $patient->getName() => "../medical/patient_view.php", $nav == "problems" ? _("Medical Problems Report") : _("Clinic History") => $nav == "problems" ? "../medical/problem_list.php" : "../medical/history_list.php", $title => "");
echo HTML::breadcrumb($links, "icon icon_patient");
unset($links);
echo $patient->getHeader();
$relatedLinks = "";
if ($_SESSION['auth']['is_administrative']) {
if ($problem->getClosingDate() == "" || $problem->getClosingDate() == '0000-00-00') {
$relatedLinks .= HTML::link(_("Edit Medical Problem Data"), '../medical/problem_edit_form.php', array('id_problem' => $idProblem, 'id_patient' => $idPatient));
$relatedLinks .= ' | ';
示例3: array
$formVar["last_update_date"] = $problem->getLastUpdateDate();
$formVar["id_member"] = $problem->getIdMember();
$formVar["closed_problem"] = $problem->getClosingDate() != "" && $problem->getClosingDate() != "0000-00-00" ? "checked" : "";
$formVar["meeting_place"] = $problem->getMeetingPlace();
$formVar["wording"] = $problem->getWording();
$formVar["subjective"] = $problem->getSubjective();
$formVar["objective"] = $problem->getObjective();
$formVar["appreciation"] = $problem->getAppreciation();
$formVar["action_plan"] = $problem->getActionPlan();
$formVar["prescription"] = $problem->getPrescription();
}
/**
* Show page
*/
$title = _("Editar Atendimento");
$titlePage = $patient->getName() . ' [' . $problem->getWordingPreview() . '] (' . $title . ')';
$focusFormField = "wording";
// to avoid JavaScript mistakes in demo version
require_once "../layout/header.php";
//$returnLocation = "../medical/problem_view.php?id_problem=" . $idProblem . "&id_patient=" . $idPatient;
$returnLocation = "../medical/problem_view.php";
/**
* Breadcrumb
*/
$links = array(_("Registro do Atendimento") => "../medical/index.php", $patient->getName() => "../medical/problem_view.php", _("Outras informações") => "../medical/problem_list.php", $problem->getWordingPreview() => $returnLocation, $title => "");
echo HTML::breadcrumb($links, "icon icon_patient");
unset($links);
echo $patient->getHeader();
echo Form::errorMsg();
/**
* Edit form
示例4: array
require_once "../layout/header.php";
//$returnLocation = "../medical/connection_list.php?id_problem=" . $idProblem . "&id_patient=" . $idPatient; // controlling var
$returnLocation = "../medical/connection_list.php";
// controlling var
/**
* Breadcrumb
*/
$links = array(_("Medical Records") => "../medical/index.php", $patient->getName() => "../medical/patient_view.php", _("Medical Problems Report") => "../medical/problem_list.php", $problem->getWordingPreview() => "../medical/problem_view.php", _("View Connection Problems") => $returnLocation, $title => "");
echo HTML::breadcrumb($links, "icon icon_patient");
unset($links);
echo $patient->getHeader();
echo $problem->getHeader();
/**
* Form
*/
echo HTML::start('form', array('method' => 'post', 'action' => '../medical/connection_del.php'));
$tbody = array();
$problem = new Problem($idConnection);
$wording = $problem->getWordingPreview();
$tbody[] = Msg::warning(sprintf(_("Are you sure you want to delete connection, %s, from list?"), $wording));
$row = Form::hidden("id_problem", $idProblem);
$row .= Form::hidden("id_connection", $idConnection);
$row .= Form::hidden("id_patient", $idPatient);
$row .= Form::hidden("wording", $wording);
$tbody[] = $row;
$tfoot = array(Form::button("delete", _("Delete")) . Form::generateToken());
$options = array('class' => 'center');
echo Form::fieldset($title, $tbody, $tfoot, $options);
echo HTML::end('form');
echo HTML::para(HTML::link(_("Return"), $returnLocation));
require_once "../layout/footer.php";