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


PHP Patient::getReportfieldsOrder方法代碼示例

本文整理匯總了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;
            		}
開發者ID:jfurlong,項目名稱:BLIS,代碼行數:31,代碼來源:reports_testhistory_new.php

示例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>&nbsp;&nbsp;&nbsp;
		<span id='ordered_fields_submit_progress' style='display:none;'>
			<?php $this->getProgressSpinner(LangUtil::$generalTerms['CMD_SUBMITTING']); ?>
//.........這裏部分代碼省略.........
開發者ID:jfurlong,項目名稱:BLIS,代碼行數:101,代碼來源:page_elems.php


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