本文整理汇总了PHP中Patient::getReportfieldsOrder方法的典型用法代码示例。如果您正苦于以下问题:PHP Patient::getReportfieldsOrder方法的具体用法?PHP Patient::getReportfieldsOrder怎么用?PHP Patient::getReportfieldsOrder使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Patient
的用法示例。
在下文中一共展示了Patient::getReportfieldsOrder方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: foreach
echo "tblnoborder";
}
?>
'>
<tbody>
<?php
$combined_fields = $SYSTEM_PATIENT_FIELDS;
$lab_config = LabConfig::getById($_SESSION['lab_config_id']);
if ($lab_config) {
$custom_field_list = $lab_config->getPatientCustomFields();
foreach ($custom_field_list as $custom_field) {
$custom_array = array("p_custom_{$custom_field->id}" => $custom_field->fieldName);
$combined_fields = array_merge($combined_fields, $custom_array);
}
}
$ordered_fields = Patient::getReportfieldsOrder();
$column_size = $report_config->rowItems;
if (is_array($ordered_fields)) {
$ordered = explode(",", $ordered_fields['o_fields']);
$pfields = explode(",", $report_config->patientFields);
$c = 0;
foreach ($ordered as $field) {
if ($c == 0) {
echo "<tr valign='top'>";
}
$c++;
/*if($c == 0)
{
echo "<tr valign='top'>";
$c=1;
}
示例2: getPatientFieldsOrderForm
public function getPatientFieldsOrderForm()
{
global $SYSTEM_PATIENT_FIELDS;
?>
<table cellspacing='5px' class='smaller_font'>
<tr valign='top'>
<td><b><?php echo LangUtil::$generalTerms['PATIENT_FIELDS']?></b></td>
<td></td>
<td><b><?php echo LangUtil::$generalTerms['PATIENT_ORDERED_FIELDS']?></b></td>
<td></td>
</tr>
<?php # Patient main fields ?>
<tr valign='top'>
<td>
<input type="hidden" id="p_fields_left" name="p_fields_left" />
<input type="hidden" id="o_fields_left" name="o_fields_left" />
<select id="p_fields" name="p_fields" size="15" onchange="javascript:setSel(this);">
<?php
$combined_fields =$SYSTEM_PATIENT_FIELDS;
$lab_config = LabConfig::getById($_SESSION['lab_config_id']);
if( $lab_config ) {
$custom_field_list = $lab_config->getPatientCustomFields();
foreach($custom_field_list as $custom_field)
{
$custom_array = array ("p_custom_$custom_field->id" => $custom_field->fieldName);
$combined_fields = array_merge($combined_fields,$custom_array);
}
}
$record=Patient::getReportfieldsOrder();
if(!is_array($record))
{
foreach ($combined_fields as $field=>$text)
{?>
<option value="<?php echo $field ?>"><?php if(!stristr($field,"custom")) echo LangUtil::$generalTerms[$text]; else
echo $text;?></option>
<?php
}
}
else
{
$unordered=explode(",",$record['p_fields']);
foreach( $unordered as $field)
{
?>
<option value="<?php echo $field ?>"><?php
if(!stristr($field,"custom"))
echo LangUtil::$generalTerms[$combined_fields[$field]];
else
echo $combined_fields[$field];?></option>
<?php
}
}
?>
</select>
</td>
<td valign="middle">
<input type="button" name="AddOrder" id="AddOrder" value=">" disabled="disabled" onclick="javascript:setOrder();"/>
<input type="button" name="RemOrder" id="RemOrder" value="<" disabled="disabled" onclick="javascript:remOrder();" />
</td>
<td><select id="o_fields" name="o_fields" size="15" onchange="javascript:setSel(this);">
<?php
if(is_array($record))
{
$ordered=explode(",",$record['o_fields']);
foreach( $ordered as $field)
{
?>
<option value="<?php echo $field ?>"><?php
if(!stristr($field,"custom"))
echo LangUtil::$generalTerms[$combined_fields[$field]];
else
echo $combined_fields[$field];?></option>
<?php
}
}
?>
</select>
</td>
<td valign="middle">
<input type="button" id="o_up" name="o_up" value="ʌ" onclick="javascript:reorder('up');"/><br />
<input type="button" id="o_down" name="o_down" value="v" onclick="javascript:reorder('down');" />
</td>
</tr>
<tr>
<td> <br /> <input type='button' value='<?php echo LangUtil::$generalTerms['CMD_SUBMIT']; ?>' id='ordered_fields_submit' onclick='javascript:submit_ordered_fields_form();'>
</input><small>
<a href='lab_config_home.php?id=<?php echo $lab_config->id; ?>'>
<?php echo LangUtil::$generalTerms['CMD_CANCEL']; ?>
</a>
</small>
</td>
<td>
<span id='ordered_fields_submit_progress' style='display:none;'>
<?php $this->getProgressSpinner(LangUtil::$generalTerms['CMD_SUBMITTING']); ?>
//.........这里部分代码省略.........