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


PHP LangUtil::setPageId方法代码示例

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


在下文中一共展示了LangUtil::setPageId方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1:

		}
	});
	}
        
        
        
</script>

<?php 
#
# This is the footer file to display at the end of the file.
# Closes any open database connections, and-
# displays footer so the users know the page is done loading.
#
include "db_close.php";
LangUtil::setPageId("footer");
?>


</div><!-- end of center_pane-->

<div id='bottom_pane'>
	<br>
	<hr>
	<div class='footer_message'>
		<small>
		
		<?php 
if ($_SESSION['locale'] == "en") {
    echo "<a href='userguide/BLIS_User_Guide.pdf' target='_blank' >User Guide |</a>";
} else {
开发者ID:jfurlong,项目名称:BLIS,代码行数:31,代码来源:footer.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: labconfig_disp

<?php

include "redirect.php";
include "includes/header.php";
include "includes/random.php";
include "includes/stats_lib.php";
LangUtil::setPageId("blis_help_page");
$script_elems->enableTableSorter();
$script_elems->enableJQueryForm();
?>
<br>
<style type='text/css'>
label
{
	width: 10em;
	float: left;
	text-align: right;
	margin-right: 0.5em;
	display: block
}
</style>
<script>

function labconfig_disp()
{
if(document.getElementById('labconfig_disp').style.display =='none')
$('#labconfig_disp').show();
else
$('#labconfig_disp').hide();
//$('.right_pane').hide();
}
开发者ID:jfurlong,项目名称:BLIS,代码行数:31,代码来源:help.php

示例5: specimen

<?php

#
# Main page for registering new specimen(s) in a single session/accession
#
/*
$load_time = microtime(); 
$load_time = explode(' ',$load_time); 
$load_time = $load_time[1] + $load_time[0]; 
$page_start = $load_time; 
*/
include "redirect.php";
include "includes/header.php";
LangUtil::setPageId("new_specimen");
$script_elems->enableDatePicker();
$script_elems->enableLatencyRecord();
$script_elems->enableJQueryForm();
$script_elems->enableAutocomplete();
$pid = $_REQUEST['pid'];
if (isset($_REQUEST['dnum'])) {
    $dnum = (string) $_REQUEST['dnum'];
} else {
    $dnum = get_daily_number();
}
if (isset($_REQUEST['session_num'])) {
    $session_num = $_REQUEST['session_num'];
} else {
    $session_num = get_session_number();
}
/* check discrepancy between dnum and session number and correct 
if ( substr($session_num,strpos($session_num, "-")+1 ) )
开发者ID:nchopra,项目名称:C4G-BLIS,代码行数:31,代码来源:new_specimen.php

示例6: array

<?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

示例7: in_array

#
# (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/db_lib.php");
include("../includes/user_lib.php");

LangUtil::setPageId("update");

$user = get_user_by_id($_SESSION['user_id']);

$def = '';

if ( is_super_admin($user) || is_country_dir($user) ) {
	//$labConfigList = get_lab_configs($user->userId);
	//foreach($labConfigList as $labConfig) {
		//$labConfigId = $labConfig->id;
		//runUpdate($labConfigId);
//          }
	//runGlobalUpdate();
    $db_name = "blis_revamp";
        $ufile = "db_update_revamp";
        blis_db_update($lab_config_id, $db_name, $ufile);
开发者ID:jfurlong,项目名称:BLIS,代码行数:31,代码来源:blis_update.php

示例8: session_start

# Start session if not already started
if (session_id() == "") {
    session_start();
}
$TRACK_LOADTIME = false;
$TRACK_LOADTIMEJS = false;
if ($TRACK_LOADTIME) {
    $starttime = microtime();
    $startarray = explode(" ", $starttime);
    $starttime = $startarray[1] + $startarray[0];
}
# Include required libraries
require_once "includes/db_lib.php";
require_once "includes/page_elems.php";
require_once "includes/script_elems.php";
LangUtil::setPageId("header");
require_once "includes/perms_check.php";
# Perform system updates to portable version , if any
/*
if
(
	$SERVER == $ON_PORTABLE && 
	strpos($_SERVER['PHP_SELF'], "/home.php") !== false &&
	$_SESSION['user_level'] != $LIS_SUPERADMIN &&
	$_SESSION['user_level'] != $LIS_COUNTRYDIR
)
{
	if
	(
		$_SESSION['user_level'] == $LIS_ADMIN && 
		! User::onlyOneLabConfig($_SESSION['user_id'], $_SESSION['user_level'])
开发者ID:jfurlong,项目名称:BLIS,代码行数:31,代码来源:header.php

示例9: 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

示例10: getNewSpecimenForm

	function getNewSpecimenForm($form_num, $pid, $dnum, $session_num, $doc="" ,$title ="Dr.", $refTo="")
	{
		# 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;
		$refTo_row_id = 'refTo_row_'.$form_num;
		$ref_out_row_id = 'ref_out_row_'.$form_num;
		$ref_out_check_id = 'ref_out_'.$form_num;
		
		$ref_from_row_id = 'ref_from_row_'.$form_num;
		$ref_from_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>
			
			<?php $this->generate_patient_Number($dnum);?>
			<?php $this->generate_specimen_type($stype_id, $testbox_id);?>
			<?php $this->generate_test($testbox_id);?>
			
			<?php 
					$specimenFieldOrder = $_SESSION['specimenFieldOrder'];
					$custom_field_list = get_custom_fields_specimen();
					$custFieldArray = array();
					foreach($custom_field_list as $custom_field)
					{	
						if(($custom_field->flag)==NULL)
						{
							array_push($custFieldArray, $custom_field->fieldName);
						}
					}
					if(sizeOf($specimenFieldOrder) > 0){
						foreach($specimenFieldOrder as $field){
							
							if(in_array($field, $custFieldArray)){
								// custom field generation
								$custom_field = null;
								foreach($custom_field_list as $custField){
									if($custField->fieldName == $field){
										$custom_field = $custField;
									}
								}
								$this->generate_customFields($custom_field); 
							}
							else if($field == "Specimen ID"){
								 $this->generate_specimen_addId($lab_config);
							} /*else if($field == "Specimen Additional ID"){
								<?php $this->generate_specimen_addId($lab_config);?>
							}*/ else if($field == "Comments"){
								$this->generate_comments(); 
							} else if($field == "Lab Reciept Date"){
								 $this->generate_reciept_date($lab_config, $form_id);
							} else if($field == "Referred Out"){
								$this->generate_refOut($ref_out_check_id, $ref_out_row_id, $refTo_row_id, $ref_from_row_id, $refTo); 
							} else if($field == "Physician"){
								$this->generate_doctors($doc_row_id, $doc);
							} 
						}
					}
					
					
				?>
				
				
			
			
			
			
			<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>
					-->
//.........这里部分代码省略.........
开发者ID:jfurlong,项目名称:BLIS,代码行数:101,代码来源:page_elems.php

示例11: right_load1

<?php

#
# Main page for editting user profile
#
include "redirect.php";
include "includes/header.php";
LangUtil::setPageId("edit_profile");
$pwd_tip = LangUtil::getPageTerm("TIPS_CASEPWD");
$page_elems = new PageElems();
$page_elems->getSideTip(LangUtil::$generalTerms["TIPS"], $pwd_tip);
$user_profile = get_user_by_id($_SESSION['user_id']);
?>
<script type='text/javascript'>
$(document).ready(function(){
	$('#curr_pwd_error').hide();
	$('#new_pwd1_error').hide();
	$('#new_pwd2_error').hide();
	$('#pwd_match_error').hide();
	$('#pwd_len_error').hide();
	$('#lang_id').attr("value", "<?php 
echo $user_profile->langId;
?>
");
});

function right_load1()
{
	$('#change_pwd_div').hide();
	$('#edit_profile_div').show();
	$('#err_msg').hide();
开发者ID:caseyi,项目名称:BLIS,代码行数:31,代码来源:edit_profile.php

示例12: count

<?php

#
# Main page for showing specimen addition confirmation
# Called from new_specimen.php
#
include "redirect.php";
include "includes/header.php";
LangUtil::setPageId("specimen_added");
$session_num = $_REQUEST['snum'];
//$session_num = get_session_current_number();
$specimen_list = get_specimens_by_session($session_num);
?>
<br>
<b><?php 
echo LangUtil::getTitle();
?>
</b>
 | <?php 
echo LangUtil::$generalTerms['ACCESSION_NUM'];
?>
 <?php 
echo $session_num;
if (count($specimen_list) > 1) {
    ?>
 | <?php 
    echo LangUtil::$generalTerms['SPECIMEN'];
    ?>
: <?php 
    echo count($specimen_list);
    ?>
开发者ID:nchopra,项目名称:C4G-BLIS,代码行数:31,代码来源:specimen_added.php

示例13: 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

示例14: in_array

#
# (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("updateCountryDbAtLocal");

$script_elems = new ScriptElems();
$script_elems->enableJQuery();
$script_elems->enableJQueryForm();

?>
<html>
<head>
<script type="text/javascript">
function performDbUpdate() {
	$.ajax({
		type : 'POST',
		url : 'update/updateCountryDbAtLocal.php',
		success : function (param) {
			$('#updating').hide();
开发者ID:jfurlong,项目名称:BLIS,代码行数:31,代码来源:updateCountryDbAtLocalUI.php

示例15: 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


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