當前位置: 首頁>>代碼示例>>PHP>>正文


PHP LangUtil::getMeasureRemarks方法代碼示例

本文整理匯總了PHP中LangUtil::getMeasureRemarks方法的典型用法代碼示例。如果您正苦於以下問題:PHP LangUtil::getMeasureRemarks方法的具體用法?PHP LangUtil::getMeasureRemarks怎麽用?PHP LangUtil::getMeasureRemarks使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在LangUtil的用法示例。


在下文中一共展示了LangUtil::getMeasureRemarks方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: PageElems

#
include "../includes/db_lib.php";
include "../includes/page_elems.php";
$page_elems = new PageElems();
$lab_config_id = $_REQUEST['lid'];
$test_type_id = $_REQUEST['ttype'];
include $LOCAL_PATH . "langdata_" . $lab_config_id . "/remarks.php";
$saved_id = $_SESSION['lab_config_id'];
$lab_config = LabConfig::getById($lab_config_id);
$test_type = TestType::getById($test_type_id);
# Fetch all measures for this test
$measure_list = $test_type->getMeasures();
# For each measure, fetch existing remarks data from remarks.XML
$measure_remarks = array();
foreach ($measure_list as $measure) {
    $measure_remarks[$measure->measureId] = LangUtil::getMeasureRemarks($lab_config->id, $measure->measureId);
}
# Generate form
?>
<div class='pretty_box' style='width:auto;'>
<form name='remarks_form' id='remarks_form' action='remarks_update.php' method='post'>
<input type='hidden' name='lid' value='<?php 
echo $lab_config_id;
?>
'></input>
<input type='hidden' name='ttype' value='<?php 
echo $test_type_id;
?>
'></input>
<?php 
foreach ($measure_list as $measure) {
開發者ID:jfurlong,項目名稱:BLIS,代碼行數:31,代碼來源:remarks_form_fetch_old.php


注:本文中的LangUtil::getMeasureRemarks方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。