当前位置: 首页>>代码示例>>PHP>>正文


PHP LangUtil类代码示例

本文整理汇总了PHP中LangUtil的典型用法代码示例。如果您正苦于以下问题:PHP LangUtil类的具体用法?PHP LangUtil怎么用?PHP LangUtil使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了LangUtil类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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'>&laquo; <?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>
&nbsp;&nbsp;&nbsp;&nbsp;
<input type='button' onclick="javascript:export_as_word('export_content');" value='<?php 
echo LangUtil::$generalTerms['CMD_EXPORTWORD'];
?>
'></input>
&nbsp;&nbsp;&nbsp;&nbsp;
<input type='button' onclick="javascript:window.close();" value='<?php 
echo LangUtil::$generalTerms['CMD_CLOSEPAGE'];
?>
'></input>
&nbsp;&nbsp;&nbsp;&nbsp;
<?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>
						&nbsp;<?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>
						&nbsp;<?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'>&laquo; 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();"/>&nbsp;&nbsp;
</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


注:本文中的LangUtil类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。