本文整理汇总了PHP中LangUtil类的典型用法代码示例。如果您正苦于以下问题:PHP LangUtil类的具体用法?PHP LangUtil怎么用?PHP LangUtil使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了LangUtil类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: reset_new_patient
document.getElementById("card_num_msg").innerHTML = msg_string;
}
}
}
xmlHttp.open("GET", url, true);
xmlHttp.send(null);
}
function reset_new_patient()
{
$('#new_record').resetForm();
}
</script>
<p style="text-align: right;"><a rel='facebox' href='#regn_sidetip'>Page Help</a></p>
<b><?php echo LangUtil::getTitle(); ?></b>
| <a href='find_patient.php'>« <?php echo LangUtil::$pageTerms['MSG_BACKTOLOOKUP']; ?></a>
<br><br>
<div id='new_patient_msg' class='sidetip_nopos' style='display:none;width:510px;'>
</div>
<br>
<table cellspacing='0px'>
<tr valign='top'>
<td>
<div id='patient_new'>
<div class='pretty_box' style='width:500px'>
<form name="new_record" action="add_patient.php" method="post" id="new_record" class="new_record">
<?php # Hidden field for db key ?>
<input type='hidden' name='card_num' id='card_num' value="<?php echo get_max_patient_id()+1; ?>" ></input>
<table cellpadding="2" class='regn_form_table'>
<?php CustomFieldOrderGeneration_Patient::init();
开发者ID:jfurlong,项目名称:BLIS,代码行数:31,代码来源:new_patient_updated.php
示例2: category
<?php
#
# Returns <option> tags for list of test types by category (section) and site
# Called via Ajax from reports.php
#
include "../includes/db_lib.php";
include "../includes/page_elems.php";
LangUtil::setPageId("general");
$page_elems = new PageElems();
$selvalue = $_REQUEST['type'];
?>
<option value='0'><?php
echo LangUtil::$generalTerms['ALL'];
//
?>
</option>
<?php
$lab_config = LabConfig::getById($_SESSION['lab_config_id']);
if ($selvalue == "p") {
$custom_field_list = $lab_config->getPatientCustomFields();
foreach ($custom_field_list as $custom_field) {
echo "<option value='p_" . $custom_field->id . "'>" . $custom_field->fieldName . "</option>";
}
} elseif ($selvalue == "s") {
$custom_field_list = $lab_config->getSpecimenCustomFields();
foreach ($custom_field_list as $custom_field) {
echo "<option value='s_" . $custom_field->id . "'>" . $custom_field->fieldName . "</option>";
}
}
开发者ID:caseyi,项目名称:BLIS,代码行数:30,代码来源:getcustomfields.php
示例3: toggle_profile_divs
<?php
#
# Main page for showing patient profile, test history,
# and options like updating profile, registering new specimen
#
include "redirect.php";
include "includes/header.php";
LangUtil::setPageId("patient_profile");
$pid = $_REQUEST['pid'];
$script_elems->enableJQueryForm();
$script_elems->enableDatePicker();
$script_elems->enableTableSorter();
$script_elems->enableLatencyRecord();
$admin = 0;
if (is_admin_check(get_user_by_id($_SESSION['user_id']))) {
$admin = 1;
}
$rem_recs = get_removed_specimens($_SESSION['lab_config_id'], "test");
foreach ($rem_recs as $rem_rec) {
$rem_specs[] = $rem_rec['r_id'];
$rem_remarks[] = $rem_rec['remarks'];
}
$labsection = 0;
if (isset($_REQUEST['labsection'])) {
$labsection = $_REQUEST['labsection'];
}
//print_r($rem_specs);
?>
<script type='text/javascript'>
function toggle_profile_divs()
开发者ID:jfurlong,项目名称:BLIS,代码行数:31,代码来源:select_test_profile.php
示例4:
'></input>
<input type='button' onclick="javascript:export_as_word('export_content');" value='<?php
echo LangUtil::$generalTerms['CMD_EXPORTWORD'];
?>
'></input>
<input type='button' onclick="javascript:window.close();" value='<?php
echo LangUtil::$generalTerms['CMD_CLOSEPAGE'];
?>
'></input>
<?php
LangUtil::setPageId("reports");
$page_elems->getTableSortTip();
LangUtil::setPageId("results_entry");
?>
<hr>
<div id='export_content'>
<link rel='stylesheet' type='text/css' href='css/table_print.css' />
<style type='text/css'>
<?php
$page_elems->getReportConfigCss($margin_list, false);
?>
</style>
<div id='report_config_content'>
<h3>
<?php
echo $report_config->headerText;
?>
|
开发者ID:caseyi,项目名称:BLIS,代码行数:31,代码来源:worksheet.php
示例5:
<td>
<div id="quant_div"></div>
</td>
</tr>
<tr>
<td>
<?php
echo LangUtil::$pageTerms['Quantity_Signed_Out'];
$page_elems->getAsterisk();
?>
</td>
<td></td>
<td>
<input type="text" name="quant_u" id="quant_u" class='uniform_width'/>
<label class="error" for="quant_u" id="quant_u_error"><small><font color="red"><?php
echo LangUtil::getGeneralTerm("MSG_REQDFIELD");
?>
</font></small></label>
<label class="error" for="quant_u" id="quant_e_error"><small><font color="red"><?php
echo "Exceeds available quantity";
?>
</font></small></label>
</td>
</tr>
<tr>
<td>
<?php
echo "Date of Usage";
$page_elems->getAsterisk();
?>
开发者ID:jfurlong,项目名称:BLIS,代码行数:30,代码来源:use_stock.php
示例6:
<?php
#
# Shows infection summary report for a site/location
#
include "redirect.php";
include "includes/header.php";
include "includes/stats_lib.php";
LangUtil::setPageId("stocks");
$script_elems->enableFlotBasic();
$script_elems->enableFlipV();
$script_elems->enableTableSorter();
$script_elems->enableLatencyRecord();
?>
<br>
<b>Inventory Report</b>
| <a href='reports.php'>« Back To Reports</a>
<br><br>
<?php
$date_from = $_REQUEST['yyyy_from'] . "-" . $_REQUEST['mm_from'] . "-" . $_REQUEST['dd_from'];
$date_to = $_REQUEST['yyyy_to'] . "-" . $_REQUEST['mm_to'] . "-" . $_REQUEST['dd_to'];
$name = $_REQUEST['reagent_name'];
$date_from_js = str_replace("-", "/", $date_from);
$date_to_js = str_replace("-", "/", $date_to);
$all = 'ALL';
if ($name != $all) {
$retval = get_current_inventory_byName($date_to, $date_from, $name);
} else {
$retval = get_current_inventory($date_to, $date_from);
开发者ID:caseyi,项目名称:BLIS,代码行数:31,代码来源:current_inventory.php
示例7:
?>
</a>
<br><br></li><li>
<a id='option4' class='menu_option' href="javascript:right_load(4, 'fields_div');"><?php
echo LangUtil::$pageTerms['MENU_CUSTOM'];
?>
</a>
<br><br></li><li>
<a href='lang_edit?locale=<?php
echo $_SESSION['locale'];
?>
&id=<?php
echo $_REQUEST['id'];
?>
'><?php
echo LangUtil::getPageTerm("MODIFYLANG");
?>
</a>
<br><br></li>
<li>
<a id='option14' class='menu_option' href="javascript:export_html();"><?php
echo "Setup Network";
?>
</a>
<br><br></li>
<li>
<a href='export_config?id=<?php
echo $_REQUEST['id'];
?>
' target='_blank'><?php
echo LangUtil::$pageTerms['MENU_EXPORTCONFIG'];
开发者ID:caseyi,项目名称:BLIS,代码行数:31,代码来源:lab_config_hom_old.php
示例8: include
<?php
#
# Main page for editting lad admin account
#
include("redirect.php");
include("includes/header.php");
LangUtil::setPageId("lab_admins");
$saved_session = SessionUtil::save();
$user_id = $_REQUEST['id'];
$user = get_user_by_id($user_id);
?>
<script type='text/javascript'>
function toggle_and_clear(div_id)
{
$('#password_row').toggle();
$('#admin_pwd').attr("value", "");
}
function update_lab_admin()
{
var username = $('#username').attr('value');
var pwd = $('#admin_pwd').attr('value');
var email = $('#email').attr('value');
var phone = $('#phone').attr('value');
var fullname = $('#fullname').attr('value');
var lang_id = $('#lang_id').attr('value');
var url_string = 'ajax/lab_admin_update.php';
var data_string = 'id=<?php echo $user_id; ?>&un='+username+'&p='+pwd+'&fn='+fullname+'&em='+email+'&ph='+phone+'&lang='+lang_id;
$('#edit_admin_progress').show();
开发者ID:jfurlong,项目名称:BLIS,代码行数:31,代码来源:lab_admin_edit.php
示例9: header
<?php
#
# (c) C4G, Santosh Vempala, Ruban Monu and Amol Shintre
# Main page for showing lab configuration status
# Called via Ajax from lab_configs.php
#
include "../users/accesslist.php";
if (!(isCountryDir(get_user_by_id($_SESSION['user_id'])) && in_array(basename($_SERVER['PHP_SELF']), $countryDirPageList)) && !(isSuperAdmin(get_user_by_id($_SESSION['user_id'])) && in_array(basename($_SERVER['PHP_SELF']), $superAdminPageList))) {
header('Location: home.php');
}
include "redirect.php";
include "includes/page_elems.php";
LangUtil::setPageId("lab_configs");
$page_elems = new PageElems();
$lab_config_id = $_REQUEST['id'];
$page_elems->getLabConfigStatus($lab_config_id);
开发者ID:jfurlong,项目名称:BLIS,代码行数:17,代码来源:lab_config_status.php
示例10: get_lab_configs
$lab_config_list = get_lab_configs($_SESSION['user_id']);
?>
<a href='switchto_tech.php?id=<?php
echo $lab_config_list[0]->id;
?>
'><?php
echo LangUtil::getPageTerm("SWITCH_TOTECH");
?>
</a> |
<?php
}
}
}
?>
<a rel='facebox' href='user_rating.php'><?php
echo LangUtil::getPageTerm("LOGOUT");
?>
</a>
<?php
//if(User::onlyOneLabConfig($_SESSION['user_id'], $_SESSION['user_level']))
if (false) {
$lab_config_list = get_lab_configs($_SESSION['user_id']);
?>
<br><br>
<a class='dummy_class' id='top_pane_secondrow' href='data_backup?id=<?php
echo $lab_config_list[0]->id;
?>
' ><?php
echo LangUtil::$pageTerms['MENU_BACKUP'];
?>
开发者ID:jfurlong,项目名称:BLIS,代码行数:31,代码来源:header.php
示例11: basename
<?php
#
# Returns list of matched specimens
# Called via Ajax from /search.php
#
include "../includes/db_lib.php";
LangUtil::setPageId("search");
$q = $_REQUEST['q'];
$a = $_REQUEST['a'];
$uiinfo = "op=" . $a . "&qr=" . $q;
putUILog('search_s', $uiinfo, basename($_SERVER['REQUEST_URI'], ".php"), 'X', 'X', 'X');
$specimen_list = array();
# Fetch list from DB
if ($a == 0) {
# Fetch by specimen ID
$specimen_list = search_specimens_by_id($q);
} else {
if ($a == 1) {
# Fetch by additional ID
$specimen_list = search_specimens_by_addlid($q);
} else {
if ($a == 2) {
# Fetch by Session No.
$specimen_list = search_specimens_by_session($q);
}
}
}
if (count($specimen_list) == 0 || $specimen_list[0] == null) {
?>
<br>
开发者ID:jfurlong,项目名称:BLIS,代码行数:31,代码来源:search_s.php
示例12:
<tr>
<td><br></td>
<td>
<input type="button" value="<?php
echo LangUtil::$generalTerms["CMD_UPDATE"];
?>
" onclick="javascript:check_entry_profile();"/>
</td>
</tr>
</table>
</form>
</div>
<div id='change_pwd_div' style='display:none;'>
<b><?php
echo LangUtil::getPageTerm("LINK_CHANGEPWD");
?>
</b>
<br><br>
<div id="err_message_pwd"></div>
<form name='change_pwd_form' id='change_pwd_form' action='change_pwd.php' method='post'>
<table>
<tr>
<td><?php
echo LangUtil::$generalTerms['USERNAME'];
?>
</td>
<td><?php
echo $_SESSION['username'];
?>
</td>
开发者ID:caseyi,项目名称:BLIS,代码行数:30,代码来源:edit_profile.php
示例13: getPatientSearchCondition
public function getPatientSearchCondition()
{
?>
<option value='%[pq]%'><?php echo LangUtil::getSearchCondition('SEARCH_CONTAINS'); ?></option>
<option value='[pq]%'><?php echo LangUtil::getSearchCondition('SEARCH_BEGIN_WITH'); ?></option>
<?php
}
开发者ID:jfurlong,项目名称:BLIS,代码行数:8,代码来源:page_elems.php
示例14: function
<?php
#
# Main page for reviewing a generated bill, and recieving payment/printing
#
include "redirect.php";
include "includes/header.php";
LangUtil::setPageId("bill_review");
$lab_config_id = $_SESSION['lab_config_id'];
$pid = $_REQUEST['pid'];
$billId = $_REQUEST['bill_id'];
$script_elems->enableTableSorter();
?>
<html>
<head>
<script type='text/javascript'>
function apply_discount(id)
{
var selected = $("#selector_for_discount_of_association_" + id).val();
var amount = $("#discount_amount_for_association_" + id).val();
$.post('update_discount_for_association.php', {sel : selected, amt : amount, id : id}, function (response) {
var decoded_resp = JSON.parse(response);
$("#calculated_cost_for_test_" + id).hide();
$("#calculated_cost_for_test_" + id).text(decoded_resp["a"]);
$("#calculated_cost_for_test_" + id).fadeIn('fast');
$("#bill_total").hide().html(decoded_resp["b"]).fadeIn('fast');
});
}
function print_bill(id, lab_id)
{
var url = "reports_billing_specific.php?bill_id=" + id + "&lab_config_id=" + lab_id;
开发者ID:caseyi,项目名称:BLIS,代码行数:31,代码来源:bill_review.php
示例15:
<?php
#
#
# Main page for modifying an existing test type
#
include "redirect.php";
include "includes/header.php";
include "includes/ajax_lib.php";
LangUtil::setPageId("catalog");
$script_elems->enableJQueryForm();
$script_elems->enableTokenInput();
?>
<br>
<?php
//$tips_string=LangUtil::$pageTerms['TIPS_MEASURES'];
//$tips_string = LangUtil::$pageTerms['TIPS_CATALOG'];
$tips_string = "To know more about a particular field select on the [?] next to the field name.";
//$page_elems->getSideTip("Tips", $tips_string);
?>
<b><?php
echo LangUtil::$pageTerms['EDIT_TEST_TYPE'];
?>
</b>
| <a href="country_catalog.php?show_t=1"><?php
echo LangUtil::$generalTerms['CMD_CANCEL'];
?>
</a>
<br><br>
<?php
开发者ID:jfurlong,项目名称:BLIS,代码行数:31,代码来源:test_type_edit_agg.php
示例16:
<?php
/*
Buea : cameroon : 129
bamenda : cameroon : 128
nphrel:ghana : 1006
kaneshie: ghana : 153
*/
include "redirect.php";
include "includes/header.php";
LangUtil::setPageId("home");
//echo "hi";
db_analysis_ratings(153);
//echo "<br>count=".$count;
?>
<?php
include "includes/footer.php";
开发者ID:caseyi,项目名称:BLIS,代码行数:18,代码来源:db_analysis.php
示例17: query_associative_all
<?php
#
# Returns a list of similar patient names
# To aid/help during new patient registration
#
include "../includes/db_lib.php";
LangUtil::setPageId("new_patient");
$q = $_REQUEST['q'];
$query_string = "SELECT * FROM patient " . "WHERE name LIKE '%{$q}%' ";
$resultset = query_associative_all($query_string, $row_count);
if (count($resultset) == 0 || $resultset == null) {
return;
}
$patient_list = array();
foreach ($resultset as $record) {
$patient_list[] = Patient::getObject($record);
}
?>
<table class='hor-minimalist-c' style='width:450px;'>
<thead>
<tr valign='top'>
<th>
<span style='background-color:#FFCC66'><?php
echo LangUtil::$pageTerms['SIMILAR_NAMES'];
?>
</span>
</th>
<?php
if ($_SESSION['pid'] != 0) {
?>
开发者ID:jfurlong,项目名称:BLIS,代码行数:31,代码来源:patient_prompt_match.php
示例18: in_array
<?php
#
# (c) C4G, Santosh Vempala, Ruban Monu and Amol Shintre
# Main file for updating to new version
# Calls ajax/update.php which actually performs the update operations
/*include("../users/accesslist.php");
if( !(isCountryDir(get_user_by_id($_SESSION['user_id'])) && in_array(basename($_SERVER['PHP_SELF']), $countryDirPageList))
&& !(isSuperAdmin(get_user_by_id($_SESSION['user_id'])) && in_array(basename($_SERVER['PHP_SELF']), $superAdminPageList)) &&
!(isAdmin(get_user_by_id($_SESSION['user_id'])) && in_array(basename($_SERVER['PHP_SELF']), $adminPageList)) )
header( 'Location: home.php' );
*/
include "redirect.php";
include "../includes/script_elems.php";
include "lang/lang_util.php";
LangUtil::setPageId("exportNationalDbUI");
$script_elems = new ScriptElems();
$script_elems->enableJQuery();
$script_elems->enableJQueryForm();
?>
<html>
<head>
<script type="text/javascript">
function exportDb() {
$.ajax({
type : 'POST',
url : 'export/exportNationalDatabase.php',
success : function (param) {
$('#exporting').hide();
if ( param != false ) {
$('#exportSuccess').html(param);
开发者ID:jfurlong,项目名称:BLIS,代码行数:31,代码来源:exportNationalDatabaseUI.php
示例19:
<td></td>
<td>
<input type="button" class="btn" id="login_button" value="<?php
echo LangUtil::$generalTerms["CMD_LOGIN"];
?>
" onclick="check_input_boxes()"/>
</td>
</tr>
<tr>
<td>
</td>
<td>
<!-- <a href='password_reset.php'>
<small><?php
echo LangUtil::getPageTerm("MSG_NEWPWD");
?>
</small>
</a> -->
</td>
</tr>
<?php
$password_reset_needed = password_reset_required();
if ($password_reset_needed) {
?>
<tr>
<td>
</td>
<td>
<a href='oneTime_password_reset.php'>
<small>Reset the Password</small>
开发者ID:caseyi,项目名称:BLIS,代码行数:31,代码来源:login.php
示例20: getNewSpecimenForm
function getNewSpecimenForm($form_num, $pid, $dnum, $session_num, $doc="" ,$title ="Dr.")
{
# Returns HTML for new specimen form
LangUtil::setPageId("new_specimen");
$form_name = 'specimenform_'.$form_num;
$form_id = $form_name;
$form_class = 'specimenform_class';
$testbox_id = $form_id.'_testbox';
$stype_id = $form_id.'_stype';
$dnum_id = $form_id.'_dnum';
$time_id = $form_id.'_ctime';
$div_id = 'specimen_form_container_'.$form_num;
$dialog_id = $div_id."_dialog";
$specimen_id_div_id = 'specimen-id_'.$form_num;
$specimen_err_div_id = 'specimen_msg_'.$form_num;
$doc_row_id = 'doc_row_'.$form_num;
$ref_out_row_id = 'ref_out_row_'.$form_num;
$ref_out_check_id = 'ref_out_'.$form_num;
$lab_config = LabConfig::getById($_SESSION['lab_config_id']);
?>
<div id='<?php echo $div_id; ?>'>
<div class='pretty_box' style='width:530px;'>
<form name='<?php echo $form_name; ?>' id='<?php echo $form_id; ?>' action='ajax/specimen_add.php?session_num=<?php echo $session_num ?>' method='post'>
<input type='hidden' name='pid' value='<?php echo $pid; ?>' class='uniform_width'></input>
<?php /*<input type='hidden' name='session_num' value='<?php echo get_session_number(); ?>' class='uniform_width'></input> */ ?>
<table class='regn_form_table'>
<tbody>
<tr valign='top' <?php
if(is_numeric($_SESSION['dnum']) && $_SESSION['dnum'] == 0)
{
# Hide if daily num not in use
echo " style='display:none;' ";
}
?>
>
<td>
<label for='dnum'><?php echo LangUtil::$generalTerms['PATIENT_DAILYNUM']; ?><?php $this->getAsterisk(); ?></label>
</td>
<td> </td>
<td>
<input type="text" name="dnum" id="dnum" value=<?php echo $dnum; ?> size="20" class='uniform_width'> </input>
</td>
</tr>
<tr valign='top'>
<td>
<label for='stype'><?php echo LangUtil::$generalTerms['SPECIMEN_TYPE']; ?><?php $this->getAsterisk(); ?></label>
</td>
<td> </td>
<td>
<select
name='stype'
id='<?php echo $stype_id; ?>'
onchange="javascript:get_testbox('<?php echo $testbox_id; ?>', '<?php echo $stype_id; ?>');"
class='uniform_width'
>
option value="">-<?php echo LangUtil::$generalTerms['CMD_SELECT']; ?>-</option>
<?php $this->getSpecimenTypesSelect($_SESSION['lab_config_id']); ?>
</select>
</td>
</tr>
<tr valign='top'>
<td>
<label for='tests'><?php echo LangUtil::$generalTerms['TESTS']; ?> <?php $this->getAsterisk(); ?></label>
</td>
<td> </td>
<td>
<span id='<?php echo $testbox_id; ?>' class='uniform_width'>
-<?php echo LangUtil::$pageTerms['MSG_SELECT_STYPE']; ?>-
</span>
</td>
</tr>
<tr valign='top'<?php
//if($_SESSION['sid'] == 0)
if(true)
echo " style='display:none;' ";
?>>
<td>
<label for='sid'>DB Key
<?php if($_SESSION['sid'] == 2) $this->getAsterisk(); ?></label>
</td>
<td> </td>
<td>
<!--
<input type="text" name="specimen_id" id="<?php echo $specimen_id_div_id; ?>" value="" onblur="javascript:check_specimen_id('<?php echo $specimen_id_div_id; ?>', '<?php echo $specimen_err_div_id; ?>');" size="20" class='uniform_width'>
</input>
-->
<input type='text' name='specimen_id' id='specimen_id' value="<?php echo $form_num; ?>" readonly="readonly" class='uniform_width'>
</input>
<br><span id='<?php echo $specimen_err_div_id; ?>'></span>
</td>
</tr>
<tr valign='top' <?php
if($lab_config->specimenAddl == 0)
echo " style='display:none;' ";
?>>
<td>
<label for='addlid'><?php echo LangUtil::$generalTerms['SPECIMEN_ID']; ?><?php if($_SESSION['s_addl'] == 2) $this->getAsterisk(); ?> </label>
</td>
<td> </td>
<td>
//.........这里部分代码省略.........
开发者ID:jfurlong,项目名称:BLIS,代码行数:101,代码来源:page_elemsdff.php
注:本文中的LangUtil类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论