本文整理汇总了PHP中xl函数的典型用法代码示例。如果您正苦于以下问题:PHP xl函数的具体用法?PHP xl怎么用?PHP xl使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了xl函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: showDocument
function showDocument(&$drow)
{
global $ISSUE_TYPES, $auth_med;
$docdate = $drow['docdate'];
echo "<tr class='text docrow' id='" . htmlspecialchars($drow['id'], ENT_QUOTES) . "' title='" . htmlspecialchars(xl('View document'), ENT_QUOTES) . "'>\n";
// show date
echo "<td>" . htmlspecialchars(oeFormatShortDate($docdate), ENT_NOQUOTES) . "</td>\n";
// show associated issue, if any
echo "<td>";
if ($auth_med) {
$irow = sqlQuery("SELECT type, title, begdate " . "FROM lists WHERE " . "id = ? " . "LIMIT 1", array($drow['list_id']));
if ($irow) {
$tcode = $irow['type'];
if ($ISSUE_TYPES[$tcode]) {
$tcode = $ISSUE_TYPES[$tcode][2];
}
echo htmlspecialchars("{$tcode}: " . $irow['title'], ENT_NOQUOTES);
}
} else {
echo "(" . htmlspecialchars(xl('No access'), ENT_NOQUOTES) . ")";
}
echo "</td>\n";
// show document name and category
echo "<td colspan='3'>" . htmlspecialchars(xl('Document') . ": " . basename($drow['url']) . ' (' . xl_document_category($drow['name']) . ')', ENT_NOQUOTES) . "</td>\n";
// skip billing and insurance columns
if (!$GLOBALS['athletic_team']) {
echo "<td colspan=5> </td>\n";
}
echo "</tr>\n";
}
开发者ID:nitinkunte,项目名称:openemr,代码行数:30,代码来源:encounters.php
示例2: Forms2_Cardiology_report
function Forms2_Cardiology_report($pid, $encounter, $cols, $id)
{
$count = 0;
$data = formFetch("form_Forms2_Cardiology", $id);
if ($data) {
print "<hr><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));
$mykey = $key . ": ";
$myval = stripslashes($value);
print "<td><span class=bold>" . xl("{$mykey}") . "</span><span class=text>" . xl("{$myval}") . "</span></td>";
$count++;
if ($count == $cols) {
$count = 0;
print "</tr><tr>\n";
}
}
}
print "</tr></table><hr>";
}
开发者ID:mindfeederllc,项目名称:openemr,代码行数:26,代码来源:report.php
示例3: getInterval
function getInterval()
{
if (is_null($this->interval) || is_null($this->intervalType)) {
return null;
}
return xl($this->interval) . " x " . " " . xl($this->intervalType->lbl);
}
开发者ID:katopenzz,项目名称:openemr,代码行数:7,代码来源:RuleCriteria.php
示例4: procedure_order_report
function procedure_order_report($pid, $encounter, $cols, $id)
{
$cols = 1;
// force always 1 column
$count = 0;
$data = sqlQuery("SELECT * " . "FROM procedure_order WHERE " . "procedure_order_id = '{$id}' AND activity = '1'");
if ($data) {
print "<table cellpadding='0' cellspacing='0'>\n<tr>\n";
foreach ($data as $key => $value) {
if ($key == "procedure_order_id" || $key == "pid" || $key == "user" || $key == "groupname" || $key == "authorized" || $key == "activity" || $key == "date" || $value == "" || $value == "0" || $value == "0.00") {
continue;
}
$key = ucwords(str_replace("_", " ", $key));
if ($key == "Order Priority") {
print "<td valign='top'><span class='bold'>" . xl($key) . ": </span><span class='text'>" . generate_display_field(array('data_type' => '1', 'list_id' => 'ord_priority'), $value) . " </span></td>\n";
} else {
if ($key == "Order Status") {
print "<td valign='top'><span class='bold'>" . xl($key) . ": </span><span class='text'>" . generate_display_field(array('data_type' => '1', 'list_id' => 'ord_status'), $value) . " </span></td>\n";
} else {
print "<td valign='top'><span class='bold'>" . xl($key) . ": </span><span class='text'>{$value} </span></td>\n";
}
}
$count++;
if ($count == $cols) {
$count = 0;
print "</tr>\n<tr>\n";
}
}
print "</tr>\n</table>\n";
}
}
开发者ID:robonology,项目名称:openemr,代码行数:31,代码来源:report.php
示例5: 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));
print "<td><span class=bold>" . xl($key) . ": </span><span class=text>{$value}</span></td>";
$count++;
if ($count == $cols) {
$count = 0;
print "</tr><tr>\n";
}
}
}
print "</tr></table>";
}
开发者ID:mindfeederllc,项目名称:openemr,代码行数:26,代码来源:report.php
示例6: checkCreateCDB
function checkCreateCDB()
{
$globalsres = sqlStatement("SELECT gl_name, gl_index, gl_value FROM globals WHERE gl_name IN \n ('couchdb_host','couchdb_user','couchdb_pass','couchdb_port','couchdb_dbase','document_storage_method')");
$options = array();
while ($globalsrow = sqlFetchArray($globalsres)) {
$GLOBALS[$globalsrow['gl_name']] = $globalsrow['gl_value'];
}
$directory_created = false;
if ($GLOBALS['document_storage_method'] != 0) {
// /documents/temp/ folder is required for CouchDB
if (!is_dir($GLOBALS['OE_SITE_DIR'] . '/documents/temp/')) {
$directory_created = mkdir($GLOBALS['OE_SITE_DIR'] . '/documents/temp/', 0777, true);
if (!$directory_created) {
echo htmlspecialchars(xl("Failed to create temporary folder. CouchDB will not work."), ENT_NOQUOTES);
}
}
$couch = new CouchDB();
if (!$couch->check_connection()) {
echo "<script type='text/javascript'>alert('" . addslashes(xl("CouchDB Connection Failed.")) . "');</script>";
return;
}
if ($GLOBALS['couchdb_host'] || $GLOBALS['couchdb_port'] || $GLOBALS['couchdb_dbase']) {
$couch->createDB($GLOBALS['couchdb_dbase']);
$couch->createView($GLOBALS['couchdb_dbase']);
}
}
return true;
}
开发者ID:jatin-52,项目名称:erm,代码行数:28,代码来源:edit_globals.php
示例7: reviewofs_report
function reviewofs_report($pid, $encounter, $cols, $id)
{
$count = 0;
$data = formFetch("form_reviewofs", $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));
//modified by BM 07-2009 for internationalization
if ($key == "Additional Notes") {
print "<td><span class=bold>" . xl($key) . ": </span><span class=text>" . text($value) . "</span></td>";
} else {
print "<td><span class=bold>" . xl($key) . ": </span><span class=text>" . xl($value) . "</span></td>";
}
$count++;
if ($count == $cols) {
$count = 0;
print "</tr><tr>\n";
}
}
}
print "</tr></table>";
}
开发者ID:juggernautsei,项目名称:openemr,代码行数:29,代码来源:report.php
示例8: optInStrategy
private function optInStrategy($email)
{
$curl = curl_init('https://reg.open-emr.org/api/registration');
curl_setopt($curl, CURLOPT_POST, true);
curl_setopt($curl, CURLOPT_POSTFIELDS, http_build_query(array('email' => $email)));
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
$responseBodyRaw = curl_exec($curl);
$responseCode = curl_getinfo($curl, CURLINFO_HTTP_CODE);
curl_close($curl);
switch ($responseCode) {
case 201:
$responseBodyParsed = json_decode($responseBodyRaw);
sqlStatement('INSERT INTO product_registration (registration_id, email, opt_out) VALUES (?, ?, ?)', array($responseBodyParsed->productId, $email, false));
return $responseBodyParsed->productId;
break;
case 400:
throw new InvalidEmailException($email . ' ' . xl("is not a valid email address"));
break;
case 409:
throw new DuplicateRegistrationException(xl("Already registered"));
break;
default:
throw new GenericProductRegistrationException(xl("Server error: try again later"));
}
}
开发者ID:juggernautsei,项目名称:openemr,代码行数:25,代码来源:product_registration_service.php
示例9: patient_reminder_widget
/**
* Display the patient reminder widget.
*
* @param integer $patient_id pid of selected patient
* @param string $dateTarget target date (format Y-m-d H:i:s). If blank then will test with current date as target.
*/
function patient_reminder_widget($patient_id, $dateTarget = '')
{
// Set date to current if not set
$dateTarget = $dateTarget ? $dateTarget : date('Y-m-d H:i:s');
// Update reminders for patient
update_reminders($dateTarget, $patient_id);
// Fetch the active reminders
$listReminders = fetch_reminders($patient_id);
if (empty($listReminders)) {
// No reminders to show.
echo htmlspecialchars(xl('No active patient reminders.'), ENT_NOQUOTES);
return;
}
echo "<table cellpadding='0' cellspacing='0'>";
foreach ($listReminders as $reminder) {
echo "<tr><td style='padding:0 1em 0 1em;'><span class='small'>";
// show reminder label
echo generate_display_field(array('data_type' => '1', 'list_id' => 'rule_action_category'), $reminder['category']) . ": " . generate_display_field(array('data_type' => '1', 'list_id' => 'rule_action'), $reminder['item']);
echo "</span></td><td style='padding:0 1em 0 1em;'><span class='small'>";
// show reminder due status
echo generate_display_field(array('data_type' => '1', 'list_id' => 'rule_reminder_due_opt'), $reminder['due_status']);
echo "</span></td><td style='padding:0 1em 0 1em;'><span class='small'>";
// show reminder sent date
if (empty($reminder['date_sent'])) {
echo htmlspecialchars(xl('Reminder Not Sent Yet'), ENT_NOQUOTES);
} else {
echo htmlspecialchars(xl('Reminder Sent On') . ": " . $reminder['date_sent'], ENT_NOQUOTES);
}
echo "</span></td></tr>";
}
echo "</table>";
}
开发者ID:mindfeederllc,项目名称:openemr,代码行数:38,代码来源:reminders.php
示例10: endDoctor
function endDoctor(&$docrow)
{
global $grand_total_charges, $grand_total_copays, $grand_total_encounters;
if (!$docrow['docname']) {
return;
}
echo " <tr class='report_totals'>\n";
echo " <td colspan='5'>\n";
echo " " . xl('Totals for', '', '', ' ') . $docrow['docname'] . "\n";
echo " </td>\n";
echo " <td align='right'>\n";
echo " " . $docrow['encounters'] . " \n";
echo " </td>\n";
echo " <td align='right'>\n";
echo " ";
bucks($docrow['charges']);
echo " \n";
echo " </td>\n";
echo " <td align='right'>\n";
echo " ";
bucks($docrow['copays']);
echo " \n";
echo " </td>\n";
echo " <td colspan='2'>\n";
echo " \n";
echo " </td>\n";
echo " </tr>\n";
$grand_total_charges += $docrow['charges'];
$grand_total_copays += $docrow['copays'];
$grand_total_encounters += $docrow['encounters'];
$docrow['charges'] = 0;
$docrow['copays'] = 0;
$docrow['encounters'] = 0;
}
开发者ID:ekuiperemr,项目名称:openemr,代码行数:34,代码来源:appt_encounter_report.php
示例11: getType
function getType()
{
if ($this->type == "min") {
return xl("Min");
} else {
return xl("Max");
}
}
开发者ID:katopenzz,项目名称:openemr,代码行数:8,代码来源:RuleCriteriaAge.php
示例12: psychiatrisch_onderzoek_report
function psychiatrisch_onderzoek_report($pid, $encounter, $cols, $id)
{
$count = 0;
$data = formFetch("form_psychiatrisch_onderzoek", $id);
if ($data) {
print "<table>";
foreach ($data as $key => $value) {
// here we check for current ???? what ? session ?
if ($key == "id" || $key == "pid" || $key == "user" || $key == "groupname" || $key == "authorized" || $key == "activity" || $key == "date" || $value == "" || $value == "0000-00-00 00:00:00") {
continue;
}
// larry :: ??? - is this for check box or select or what ?
if ($value == "on") {
$value = "yes";
}
// Datum onderzoek
if ($key == "datum_onderzoek") {
print "<tr><td><span class=bold>" . xl('Examination Date') . ": </span><span class=text>" . nl2br(stripslashes($value)) . "</span></td></tr>";
}
// Reden van aanmelding
if ($key == "reden_van_aanmelding") {
print "<tr><td><span class=bold>" . xl('Reason for Visit') . ": </span><span class=text>" . nl2br(stripslashes($value)) . "</span></td></tr>";
}
// Conclusie van intake
if ($key == "conclusie_van_intake") {
print "<tr><td><span class=bold>" . xl('Intake Conclusion') . ": </span><span class=text>" . nl2br(stripslashes($value)) . "</span></td></tr>";
}
// Medicatie
if ($key == "medicatie") {
print "<tr><td><span class=bold>" . xl('Medications') . ": </span><span class=text>" . nl2br(stripslashes($value)) . "</span></td></tr>";
}
// Anamnese
if ($key == "anamnese") {
print "<tr><td><span class=bold>" . xl('History') . ": </span><span class=text>" . nl2br(stripslashes($value)) . "</span></td></tr>";
}
// Psychiatrisch onderzoek i.e.z.
if ($key == "psychiatrisch_onderzoek") {
print "<tr><td><span class=bold>" . xl('Psychiatric Examination') . ": </span><span class=text>" . nl2br(stripslashes($value)) . "</span></td></tr>";
}
// Beschrijvende conclusie
if ($key == "beschrijvende_conclusie") {
print "<tr><td><span class=bold>" . xl('Conclusions') . ": </span><span class=text>" . nl2br(stripslashes($value)) . "</span></td></tr>";
}
// Behandelvoorstel
if ($key == "behandelvoorstel") {
print "<tr><td><span class=bold>" . xl('Treatment Plan') . ": </span><span class=text>" . nl2br(stripslashes($value)) . "</span></td></tr>";
}
// increment records counter
$count++;
// check if not at the end close/open new row
if ($count == $cols) {
$count = 0;
print "</tr><tr>\n";
}
}
}
print "</tr></table>";
}
开发者ID:katopenzz,项目名称:openemr,代码行数:58,代码来源:report.php
示例13: is_clinic
function is_clinic($code)
{
global $bcodes;
$i = strpos($code, ':');
if ($i) {
$code = substr($code, 0, $i);
}
return $bcodes['CPT4'][xl('Lab')][$code] || $bcodes['CPT4'][xl('Immunizations')][$code] || $bcodes['HCPCS'][xl('Therapeutic Injections')][$code];
}
开发者ID:stephen-smith,项目名称:openemr,代码行数:9,代码来源:sl_receipts_report.php
示例14: hsc_private_xl_or_warn
function hsc_private_xl_or_warn($key)
{
if (function_exists('xl')) {
return xl($key);
} else {
trigger_error('Translation via xl() was requested, but the xl()' . ' function is not defined, yet.', E_USER_WARNING);
return $key;
}
}
开发者ID:stephen-smith,项目名称:openemr,代码行数:9,代码来源:htmlspecialchars.inc.php
示例15: getRequirements
function getRequirements()
{
$requirements .= xl("Completed") . ": ";
$requirements .= $this->completed ? xl("Yes") : xl("No");
$requirements .= " | ";
$requirements .= xl("Frequency") . ": ";
$requirements .= $this->decodeComparator($this->frequencyComparator) . " " . $this->frequency . " ";
return $requirements;
}
开发者ID:katopenzz,项目名称:openemr,代码行数:9,代码来源:RuleCriteriaDatabaseBucket.php
示例16: newpatient_report
function newpatient_report($pid, $encounter, $cols, $id)
{
$res = sqlStatement("select * from form_encounter where pid='{$pid}' and id='{$id}'");
print "<table><tr><td>\n";
while ($result = sqlFetchArray($res)) {
print "<span class=bold>" . xl('Reason') . ": </span><span class=text>" . $result["reason"] . "<br>\n";
print "<span class=bold>" . xl('Facility') . ": </span><span class=text>" . $result["facility"] . "<br>\n";
}
print "</td></tr></table>\n";
}
开发者ID:robonology,项目名称:openemr,代码行数:10,代码来源:report.php
示例17: smarty_function_xl
function smarty_function_xl($params, &$smarty)
{
if (empty($params['t'])) {
$smarty->trigger_error("xk: missing 't' parameter");
return;
} else {
$translate = $params['t'];
}
xl($translate, 'e');
}
开发者ID:mindfeederllc,项目名称:openemr,代码行数:10,代码来源:function.xl.php
示例18: LBFathv_javascript
function LBFathv_javascript()
{
global $formid;
echo "// Compute Body Mass Index.\nfunction athvComputeBMI() {\n var f = document.forms[0];\n var bmi = 0;\n var stat = '';\n var height = parseFloat(f.form_height_in.value);\n var weight = parseFloat(f.form_weight_lbs.value);\n if(isNaN(height) || isNaN(weight) || height <= 0 || weight <= 0) {\n bmi = '';\n }\n else {\n bmi = weight / height / height * 703;\n bmi = bmi.toFixed(1);\n if (bmi > 42 ) stat = '" . xl('Obesity III') . "';\n else if (bmi > 34 ) stat = '" . xl('Obesity II') . "';\n else if (bmi > 30 ) stat = '" . xl('Obesity I') . "';\n else if (bmi > 27 ) stat = '" . xl('Overweight') . "';\n else if (bmi > 18.5) stat = '" . xl('Normal') . "';\n else stat = '" . xl('Underweight') . "';\n }\n if (f.form_bmi) f.form_bmi.value = bmi;\n if (f.form_bmi_status) f.form_bmi_status.value = stat;\n}\n";
echo "// Height in cm has changed.\nfunction athv_height_cm_changed() {\n var f = document.forms[0];\n var cm = f.form_height_cm.value;\n if (cm == parseFloat(cm)) {\n inch = cm / 2.54;\n f.form_height_in.value = inch.toFixed(2);\n }\n else {\n f.form_height_in.value = '';\n }\n athvComputeBMI();\n}\n";
echo "// Height in inches has changed.\nfunction athv_height_in_changed() {\n var f = document.forms[0];\n var inch = f.form_height_in.value;\n if (inch == parseFloat(inch)) {\n cm = inch * 2.54;\n f.form_height_cm.value = cm.toFixed(2);\n }\n else {\n f.form_height_cm.value = '';\n }\n athvComputeBMI();\n}\n";
echo "// Weight in kg has changed.\nfunction athv_weight_kg_changed() {\n var f = document.forms[0];\n var kg = f.form_weight_kg.value;\n if (kg == parseFloat(kg)) {\n lbs = kg / 0.45359237;\n f.form_weight_lbs.value = lbs.toFixed(2);\n }\n else {\n f.form_weight_lbs.value = '';\n }\n athvComputeBMI();\n}\n";
echo "// Weight in lbs has changed.\nfunction athv_weight_lbs_changed() {\n var f = document.forms[0];\n var lbs = f.form_weight_lbs.value;\n if (lbs == parseFloat(lbs)) {\n kg = lbs * 0.45359237;\n f.form_weight_kg.value = kg.toFixed(2);\n }\n else {\n f.form_weight_kg.value = '';\n }\n athvComputeBMI();\n}\n";
echo "// Temperature in centigrade has changed.\nfunction athv_temperature_c_changed() {\n var f = document.forms[0];\n var tc = f.form_temperature_c.value;\n if (tc == parseFloat(tc)) {\n tf = tc * 9 / 5 + 32;\n f.form_temperature_f.value = tf.toFixed(2);\n }\n else {\n f.form_temperature_f.value = '';\n }\n}\n";
echo "// Temperature in farenheit has changed.\nfunction athv_temperature_f_changed() {\n var f = document.forms[0];\n var tf = f.form_temperature_f.value;\n if (tf == parseFloat(tf)) {\n tc = (tf - 32) * 5 / 9;\n f.form_temperature_c.value = tc.toFixed(2);\n }\n else {\n f.form_temperature_c.value = '';\n }\n}\n";
}
开发者ID:mindfeederllc,项目名称:openemr,代码行数:11,代码来源:LBFathv.plugin.php
示例19: __construct
function __construct($c, $ct, $desc, $price, $category)
{
$this->code = $c;
$this->code_type = $ct;
$this->description = $desc;
$this->price = $price;
$this->category = $category;
if ($price == null) {
$this->price = xl("Not Specified");
}
}
开发者ID:juggernautsei,项目名称:openemr,代码行数:11,代码来源:fee_sheet_options_queries.php
示例20: getTableNameOptions
function getTableNameOptions()
{
$options = array();
$stmts = sqlStatement("SHOW TABLES");
for ($iter = 0; $row = sqlFetchArray($stmts); $iter++) {
foreach ($row as $key => $value) {
array_push($options, array("id" => out($value), "label" => out(xl($value))));
}
}
return $options;
}
开发者ID:katopenzz,项目名称:openemr,代码行数:11,代码来源:RuleCriteriaDatabaseCustom.php
注:本文中的xl函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论