本文整理汇总了PHP中xlt函数的典型用法代码示例。如果您正苦于以下问题:PHP xlt函数的具体用法?PHP xlt怎么用?PHP xlt使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了xlt函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: soap_report
function soap_report($pid, $encounter, $cols, $id)
{
$cols = 1;
// force always 1 column
$count = 0;
$data = formFetch("form_soap", $id);
if ($data) {
print "<table><tr>";
foreach ($data as $key => $value) {
if ($key == "id" || $key == "pid" || $key == "user" || $key == "groupname" || $key == "authorized" || $key == "activity" || $key == "date" || $value == "" || $value == "0000-00-00 00:00:00") {
continue;
}
if ($value == "on") {
$value = "yes";
}
$key = ucwords(str_replace("_", " ", $key));
//Updated by Sherwin 10/24/2016
print "<td><span class=bold>" . xlt($key) . ": </span><span class=text>" . nl2br(text($value)) . "</span></td>";
$count++;
if ($count == $cols) {
$count = 0;
print "</tr><tr>\n";
}
}
}
print "</tr></table>";
}
示例2: note_report
function note_report($pid, $encounter, $cols, $id)
{
$count = 0;
$data = formFetch("form_note", $id);
if ($data) {
print "<table><tr>";
foreach ($data as $key => $value) {
if ($key == "id" || $key == "pid" || $key == "user" || $key == "groupname" || $key == "authorized" || $key == "activity" || $key == "date" || $value == "" || $value == "0000-00-00 00:00:00") {
continue;
}
if ($value == "on") {
$value = "yes";
}
$key = ucwords(str_replace("_", " ", $key));
print "<tr>\n";
print "<tr>\n";
if ($key == "Note Type") {
print "<td><span class=bold>" . xlt($key) . ": </span><span class=text>" . xlt($value) . "</span></td>";
} else {
print "<td><span class=bold>" . xlt($key) . ": </span><span class=text>" . text($value) . "</span></td>";
}
$count++;
if ($count == $cols) {
$count = 0;
print "</tr><tr>\n";
}
}
}
print "</tr></table>";
}
示例3: care_plan_report
function care_plan_report($pid, $encounter, $cols, $id)
{
$count = 0;
$sql = "SELECT * FROM `form_care_plan` WHERE id=? AND pid = ? AND encounter = ?";
$res = sqlStatement($sql, array($id, $_SESSION["pid"], $_SESSION["encounter"]));
for ($iter = 0; $row = sqlFetchArray($res); $iter++) {
$data[$iter] = $row;
}
if ($data) {
?>
<table style='border-collapse:collapse;border-spacing:0;width: 100%;'>
<tr>
<td align='center' style='border:1px solid #ccc;padding:4px;'><span class=bold><?php
echo xlt('Code');
?>
</span></td>
<td align='center' style='border:1px solid #ccc;padding:4px;'><span class=bold><?php
echo xlt('Code Text');
?>
</span></td>
<td align='center' style='border:1px solid #ccc;padding:4px;'><span class=bold><?php
echo xlt('Description');
?>
</span></td>
<td align='center' style='border:1px solid #ccc;padding:4px;'><span class=bold><?php
echo xlt('Date');
?>
</span></td>
</tr>
<?php
foreach ($data as $key => $value) {
?>
<tr>
<td style='border:1px solid #ccc;padding:4px;'><span class=text><?php
echo text($value['code']);
?>
</span></td>
<td style='border:1px solid #ccc;padding:4px;'><span class=text><?php
echo text($value['codetext']);
?>
</span></td>
<td style='border:1px solid #ccc;padding:4px;'><span class=text><?php
echo text($value['description']);
?>
</span></td>
<td style='border:1px solid #ccc;padding:4px;'><span class=text><?php
echo text($value['date']);
?>
</span></td>
</tr>
<?php
}
?>
</table>
<?php
}
}
示例4: newpatient_report
function newpatient_report($pid, $encounter, $cols, $id)
{
$res = sqlStatement("select * from form_encounter where pid=? and id=?", array($pid, $id));
print "<table><tr><td>\n";
while ($result = sqlFetchArray($res)) {
print "<span class=bold>" . xlt('Facility') . ": </span><span class=text>" . text($result["facility"]) . "</span><br>\n";
print "<span class=bold>" . xlt('Reason') . ": </span><span class=text>" . nl2br(text($result["reason"])) . "</span><br>\n";
}
print "</td></tr></table>\n";
}
示例5: observation_report
function observation_report($pid, $encounter, $cols, $id)
{
$count = 0;
$sql = "SELECT * FROM `form_observation` WHERE id=? AND pid = ? AND encounter = ?";
$res = sqlStatement($sql, array($id, $_SESSION["pid"], $_SESSION["encounter"]));
for ($iter = 0; $row = sqlFetchArray($res); $iter++) {
$data[$iter] = $row;
}
if ($data) {
print "<table style='border-collapse:collapse;border-spacing:0;width: 100%;'>\n <tr>\n <td align='center' style='border:1px solid #ccc;padding:4px;'><span class=bold>" . xlt('Code') . "</span></td>\n <td align='center' style='border:1px solid #ccc;padding:4px;'><span class=bold>" . xlt('Description') . "</span></td>\n <td align='center' style='border:1px solid #ccc;padding:4px;'><span class=bold>" . xlt('Code Type') . "</span></td> \n <td align='center' style='border:1px solid #ccc;padding:4px;'><span class=bold>" . xlt('Table Code') . "</span></td> \n <td align='center' style='border:1px solid #ccc;padding:4px;'><span class=bold>" . xlt('Value') . "</span></td>\n <td align='center' style='border:1px solid #ccc;padding:4px;'><span class=bold>" . xlt('Unit') . "</span></td>\n <td align='center' style='border:1px solid #ccc;padding:4px;'><span class=bold>" . xlt('Date') . "</span></td>\n </tr>";
foreach ($data as $key => $value) {
if ($value['code'] == 'SS003') {
if ($value['ob_value'] == '261QE0002X') {
$value['ob_value'] = 'Emergency Care';
} else {
if ($value['ob_value'] == '261QM2500X') {
$value['ob_value'] = 'Medical Specialty';
} else {
if ($value['ob_value'] == '261QP2300X') {
$value['ob_value'] = 'Primary Care';
} else {
if ($value['ob_value'] == '261QU0200X') {
$value['ob_value'] = 'Urgent Care';
}
}
}
}
}
if ($value['code'] == '21612-7') {
if ($value['ob_unit'] == 'd') {
$value['ob_unit'] = 'Day';
} else {
if ($value['ob_unit'] == 'mo') {
$value['ob_unit'] = 'Month';
} else {
if ($value['ob_unit'] == 'UNK') {
$value['ob_unit'] = 'Unknown';
} else {
if ($value['ob_unit'] == 'wk') {
$value['ob_unit'] = 'Week';
} else {
if ($value['ob_unit'] == 'a') {
$value['ob_unit'] = 'Year';
}
}
}
}
}
}
print "<tr>\n <td style='border:1px solid #ccc;padding:4px;'><span class=text>" . text($value['code']) . "</span></td>\n <td style='border:1px solid #ccc;padding:4px;'><span class=text>" . text($value['description']) . "</span></td>\n <td style='border:1px solid #ccc;padding:4px;'><span class=text>" . text($value['code_type']) . "</span></td>\n <td style='border:1px solid #ccc;padding:4px;'><span class=text>" . text($value['table_code']) . "</span></td>\n <td style='border:1px solid #ccc;padding:4px;'><span class=text>" . text($value['ob_value']) . "</span></td>\n <td style='border:1px solid #ccc;padding:4px;'><span class=text>" . text($value['ob_unit']) . "</span></td>\n <td style='border:1px solid #ccc;padding:4px;'><span class=text>" . text($value['date']) . "</span></td>\n </tr>";
print "\n";
}
print "</table>";
}
}
示例6: lookup_openemr_patient
function lookup_openemr_patient($wp_login)
{
if (empty($wp_login)) {
die(xlt('The patient was not logged in when submitting this form'));
}
$ptres = sqlStatement("SELECT pid FROM patient_data WHERE cmsportal_login = ?", array($wp_login));
if (sqlNumRows($ptres) < 1) {
die(xlt('There is no patient with portal login') . " '{$wp_login}'");
}
if (sqlNumRows($ptres) > 1) {
die(xlt('There are multiple patients with portal login') . " '{$wp_login}'");
}
$ptrow = sqlFetchArray($ptres);
return $ptrow['pid'];
}
示例7: printAmendment
function printAmendment($amendmentID, $lastAmendment)
{
$query = "SELECT lo.title AS 'amendmentFrom', lo1.title AS 'amendmentStatus',a.* FROM amendments a \n\t\tLEFT JOIN list_options lo ON a.amendment_by = lo.option_id AND lo.list_id = 'amendment_from' AND lo.activity = 1\n\t\tLEFT JOIN list_options lo1 ON a.amendment_status = lo1.option_id AND lo1.list_id = 'amendment_status' AND lo1.activity = 1\n\t\tWHERE a.amendment_id = ?";
$resultSet = sqlQuery($query, array($amendmentID));
echo "<table>";
echo "<tr class=text>";
echo "<td class=bold>" . xlt("Requested Date") . ":" . "</td>";
echo "<td>" . oeFormatShortDate($resultSet['amendment_date']) . "</td>";
echo "</tr>";
echo "<tr class=text>";
echo "<td class=bold>" . xlt("Requested By") . ":" . "</td>";
echo "<td>" . generate_display_field(array('data_type' => '1', 'list_id' => 'amendment_from'), $resultSet['amendment_by']) . "</td>";
echo "</tr>";
echo "<tr class=text>";
echo "<td class=bold>" . xlt("Request Status") . ":" . "</td>";
echo "<td>" . generate_display_field(array('data_type' => '1', 'list_id' => 'amendment_status'), $resultSet['amendment_status']) . "</td>";
echo "</tr>";
echo "<tr class=text>";
echo "<td class=bold>" . xlt("Request Description") . ":" . "</td>";
echo "<td>" . text($resultSet['amendment_desc']) . "</td>";
echo "</tr>";
echo "</table>";
echo "<hr>";
echo "<span class='bold'>" . xlt("History") . "</span><br>";
$pageBreak = $lastAmendment ? "" : "page-break-after:always";
echo "<table border='1' cellspacing=0 cellpadding=3 style='width:75%;margin-top:10px;margin-bottom:20px;" . $pageBreak . "'>";
echo "<tr class='text bold'>";
echo "<th align=left style='width:10%'>" . xlt("Date") . "</th>";
echo "<th align=left style='width:20%'>" . xlt("By") . "</th>";
echo "<th align=left >" . xlt("Comments") . "</th>";
echo "</tr>";
$query = "SELECT u.fname,u.lname,ah.* FROM amendments_history ah INNER JOIN users u ON ah.created_by = u.id WHERE ah.amendment_id = ?";
$resultSet = sqlStatement($query, array($amendmentID));
while ($row = sqlFetchArray($resultSet)) {
echo "<tr class=text>";
$created_date = date('Y-m-d', strtotime($row['created_time']));
echo "<td>" . oeFormatShortDate($created_date) . "</td>";
echo "<td>" . text($row['lname']) . ", " . text($row['fname']) . "</td>";
echo "<td>" . text($row['amendment_note']) . "</td>";
echo "</tr>";
}
echo "</table>";
}
示例8: genWarehouseList
function genWarehouseList($tag_name, $currvalue, $title, $class = '')
{
global $drug_id;
$drow = sqlQuery("SELECT allow_multiple FROM drugs WHERE drug_id = ?", array($drug_id));
$allow_multiple = $drow['allow_multiple'];
$lres = sqlStatement("SELECT * FROM list_options " . "WHERE list_id = 'warehouse' ORDER BY seq, title");
echo "<select name='" . attr($tag_name) . "' id='" . attr($tag_name) . "'";
if ($class) {
echo " class='" . attr($class) . "'";
}
echo " title='" . attr($title) . "'>";
$got_selected = FALSE;
$count = 0;
if ($allow_multiple) {
echo "<option value=''>" . xlt('Unassigned') . "</option>";
++$count;
}
while ($lrow = sqlFetchArray($lres)) {
$whid = $lrow['option_id'];
if ($whid != $currvalue && !$allow_multiple && checkWarehouseUsed($whid)) {
continue;
}
echo "<option value='" . attr($whid) . "'";
if (strlen($currvalue) == 0 && $lrow['is_default'] || strlen($currvalue) > 0 && $whid == $currvalue) {
echo " selected";
$got_selected = TRUE;
}
echo ">" . text($lrow['title']) . "</option>\n";
++$count;
}
if (!$got_selected && strlen($currvalue) > 0) {
echo "<option value='" . attr($currvalue) . "' selected>* " . text($currvalue) . " *</option>";
echo "</select>";
echo " <font color='red' title='" . xla('Please choose a valid selection from the list.') . "'>" . xlt('Fix this') . "!</font>";
} else {
echo "</select>";
}
return $count;
}
示例9: clinical_instructions_report
function clinical_instructions_report($pid, $encounter, $cols, $id)
{
$count = 0;
$data = formFetch("form_clinical_instructions", $id);
if ($data) {
?>
<table style='border-collapse:collapse;border-spacing:0;width: 100%;'>
<tr>
<td align='center' style='border:1px solid #ccc;padding:4px;'><span class=bold><?php
echo xlt('Instructions');
?>
</span></td>
</tr>
<tr>
<td style='border:1px solid #ccc;padding:4px;'><span class=text><?php
echo nl2br(text($data['instruction']));
?>
</span></td>
</tr>
</table>
<?php
}
}
示例10: attr
echo attr($postid);
?>
' />
<table width='100%' cellpadding='1' cellspacing='2'>
<tr class='head'>
<th align='left'><?php
echo xlt('Field');
?>
</th>
<th align='left'><?php
echo xlt('Current Value');
?>
</th>
<th align='left'><?php
echo xlt('New Value');
?>
</th>
</tr>
<?php
$insrow = getInsuranceData($pid, $result['fields']['type']);
foreach ($insurance_layout as $lorow) {
$data_type = $lorow['data_type'];
$field_id = $lorow['field_id'];
$list_id = $lorow['list_id'];
$field_title = $lorow['title'];
$currvalue = '';
if (isset($insrow[$field_id])) {
$currvalue = $insrow[$field_id];
}
示例11: writeITLine
/**
* Special case of Issue Types
*/
function writeITLine($it_array)
{
global $opt_line_no, $ISSUE_TYPE_CATEGORIES, $ISSUE_TYPE_STYLES;
++$opt_line_no;
$bgcolor = "#" . ($opt_line_no & 1 ? "ddddff" : "ffdddd");
echo " <tr bgcolor='{$bgcolor}'>\n";
echo ctSelector($opt_line_no, $it_array, 'category', $ISSUE_TYPE_CATEGORIES, xl('OpenEMR Application Category'));
echo ctGenCBox($opt_line_no, $it_array, 'active', xl('Is this active?'));
echo ctGenCell($opt_line_no, $it_array, 'ordering', 10, 10, xl('Order'));
echo ctGenCell($opt_line_no, $it_array, 'type', 20, 75, xl('Issue Type'));
echo ctGenCell($opt_line_no, $it_array, 'plural', 20, 75, xl('Plural'));
// if not english and translating lists then show the translation
if ($GLOBALS['translate_lists'] && $_SESSION['language_choice'] > 1) {
echo " <td align='center' class='translation'>" . xlt($it_array['plural']) . "</td>\n";
}
echo ctGenCell($opt_line_no, $it_array, 'singular', 20, 75, xl('Singular'));
// if not english and translating lists then show the translation
if ($GLOBALS['translate_lists'] && $_SESSION['language_choice'] > 1) {
echo " <td align='center' class='translation'>" . xlt($it_array['singular']) . "</td>\n";
}
echo ctGenCell($opt_line_no, $it_array, 'abbreviation', 10, 10, xl('Abbreviation'));
// if not english and translating lists then show the translation
if ($GLOBALS['translate_lists'] && $_SESSION['language_choice'] > 1) {
echo " <td align='center' class='translation'>" . xlt($it_array['abbreviation']) . "</td>\n";
}
echo ctSelector($opt_line_no, $it_array, 'style', $ISSUE_TYPE_STYLES, xl('Standard; Simplified: only title, start date, comments and an Active checkbox;no diagnosis, occurrence, end date, referred-by or sports fields. ; Football Injury'));
echo ctGenCBox($opt_line_no, $it_array, 'force_show', xl('Show this category on the patient summary screen even if no issues have been entered for this category.'));
echo " </tr>\n";
}
示例12: esign_form_submit
/**
*
* @return multitype:string
*/
public function esign_form_submit()
{
$message = '';
$status = self::STATUS_FAILURE;
$password = $this->getRequest()->getParam('password', '');
$encounterId = $this->getRequest()->getParam('encounterId', '');
// Lock if 'Lock e-signed encounters and their forms' option is set,
// unless esign_lock_toggle option is enable in globals, then check the request param
$lock = false;
if ($GLOBALS['lock_esign_all']) {
$lock = true;
if ($GLOBALS['esign_lock_toggle']) {
$lock = $this->getRequest()->getParam('lock', '') == 'on' ? true : false;
}
}
$amendment = $this->getRequest()->getParam('amendment', '');
if (confirm_user_password($_SESSION['authUser'], $password)) {
$signable = new Encounter_Signable($encounterId);
if ($signable->sign($_SESSION['authUserID'], $lock, $amendment)) {
$message = xlt("Form signed successfully");
$status = self::STATUS_SUCCESS;
} else {
$message = xlt("An error occured signing the form");
}
} else {
$message = xlt("The password you entered is invalid");
}
$response = new Response($status, $message);
$response->encounterId = $encounterId;
$response->locked = $lock;
if ($lock) {
$response->editButtonHtml = "<a href=# class='css_button_small form-edit-button-locked'><span>" . xlt('Locked') . "</span></a>";
}
echo json_encode($response);
exit;
}
示例13: xlt
echo xlt('Document Category or Discard');
?>
</th>
</tr>
<?php
if (is_array($result['uploads'])) {
foreach ($result['uploads'] as $upload) {
$id = intval($upload['id']);
echo " <tr class='detail'>\n";
// MIME type and view link
echo " <td><a href='upload_form_show.php?id={$id}&messageid={$messageid}'>" . text($upload['mimetype']) . "</a></td>\n";
// Desired file name
echo " <td><input type='text' name='form_filename[{$id}]' value='" . attr($upload['filename']) . "' size='20' /></td>";
// Desired document category with option to discard the file
echo " <td><select name='form_category[{$id}]'>\n";
echo "<option value='0'>-- " . xlt('Discard') . " --</option>\n";
$i = 0;
foreach ($categories as $catkey => $catname) {
echo "<option value='" . attr($catkey) . "'";
if (++$i == 1) {
echo " selected";
}
echo ">" . text($catname) . "</option>\n";
}
echo "</select></td>\n";
//
echo " </tr>\n";
}
}
?>
</table>
示例14: generate_receipt
function generate_receipt($patient_id, $encounter = 0)
{
global $sl_err, $sl_cash_acc, $css_header, $details, $INTEGRATED_AR;
// Get details for what we guess is the primary facility.
$frow = sqlQuery("SELECT * FROM facility " . "ORDER BY billing_location DESC, accepts_assignment DESC, id LIMIT 1");
$patdata = getPatientData($patient_id, 'fname,mname,lname,pubpid,street,city,state,postal_code,providerID');
// Get the most recent invoice data or that for the specified encounter.
//
// Adding a provider check so that their info can be displayed on receipts
if ($INTEGRATED_AR) {
if ($encounter) {
$ferow = sqlQuery("SELECT id, date, encounter, provider_id FROM form_encounter " . "WHERE pid = ? AND encounter = ?", array($patient_id, $encounter));
} else {
$ferow = sqlQuery("SELECT id, date, encounter, provider_id FROM form_encounter " . "WHERE pid = ? " . "ORDER BY id DESC LIMIT 1", array($patient_id));
}
if (empty($ferow)) {
die(xlt("This patient has no activity."));
}
$trans_id = $ferow['id'];
$encounter = $ferow['encounter'];
$svcdate = substr($ferow['date'], 0, 10);
if ($GLOBALS['receipts_by_provider']) {
if (isset($ferow['provider_id'])) {
$encprovider = $ferow['provider_id'];
} else {
if (isset($patdata['providerID'])) {
$encprovider = $patdata['providerID'];
} else {
$encprovider = -1;
}
}
}
if ($encprovider) {
$providerrow = sqlQuery("SELECT fname, mname, lname, title, street, streetb, " . "city, state, zip, phone, fax FROM users WHERE id = ?", array($encprovider));
}
} else {
SLConnect();
//
$arres = SLQuery("SELECT * FROM ar WHERE " . "invnumber LIKE '{$patient_id}.%' " . "ORDER BY id DESC LIMIT 1");
if ($sl_err) {
die(text($sl_err));
}
if (!SLRowCount($arres)) {
die(xlt("This patient has no activity."));
}
$arrow = SLGetRow($arres, 0);
//
$trans_id = $arrow['id'];
//
// Determine the date of service. An 8-digit encounter number is
// presumed to be a date of service imported during conversion or
// associated with prescriptions only. Otherwise look it up in the
// form_encounter table.
//
$svcdate = "";
list($trash, $encounter) = explode(".", $arrow['invnumber']);
if (strlen($encounter) >= 8) {
$svcdate = substr($encounter, 0, 4) . "-" . substr($encounter, 4, 2) . "-" . substr($encounter, 6, 2);
} else {
if ($encounter) {
$tmp = sqlQuery("SELECT date FROM form_encounter WHERE " . "encounter = ?", array($encounter));
$svcdate = substr($tmp['date'], 0, 10);
}
}
}
// end not $INTEGRATED_AR
// Get invoice reference number.
$encrow = sqlQuery("SELECT invoice_refno FROM form_encounter WHERE " . "pid = ? AND encounter = ? LIMIT 1", array($patient_id, $encounter));
$invoice_refno = $encrow['invoice_refno'];
?>
<html>
<head>
<?php
html_header_show();
?>
<link rel='stylesheet' href='<?php
echo $css_header;
?>
' type='text/css'>
<title><?php
echo xlt('Receipt for Payment');
?>
</title>
<script type="text/javascript" src="../../library/dialog.js"></script>
<script language="JavaScript">
<?php
require $GLOBALS['srcdir'] . "/restoreSession.php";
?>
// Process click on Print button.
function printme() {
var divstyle = document.getElementById('hideonprint').style;
divstyle.display = 'none';
window.print();
return false;
}
// Process click on Delete button.
function deleteme() {
//.........这里部分代码省略.........
示例15: htmlspecialchars
echo $urlparms;
?>
" target="Main" onclick="top.restoreSession()">
<?php
}
?>
<span class="title"><?php
echo htmlspecialchars(xl('Notes'), ENT_NOQUOTES);
if ($docid) {
echo " " . xlt("linked to document") . " ";
$d = new Document($docid);
echo $d->get_url_file();
} else {
if ($orderid) {
echo " " . xlt("linked to procedure order") . " {$orderid}";
}
}
?>
</span>
<span class=more><?php
echo htmlspecialchars($tmore, ENT_NOQUOTES);
?>
</span>
</a>
<?php
}
?>
<br>