|
|
<?php
|
|
|
if (!isset($date_test))
|
|
|
$date_test = "";
|
|
|
?>
|
|
|
<script>
|
|
|
$(function() {
|
|
|
$( "#date_exam" ).datepicker({
|
|
|
showWeek: true,
|
|
|
dateFormat: 'dd/M/yy',
|
|
|
firstDay: 1
|
|
|
});
|
|
|
});
|
|
|
</script>
|
|
|
<?php if(isset($flag_edit) and ($flag_edit)){ ?>
|
|
|
<form name="frm_08" method="post" action="index.php">
|
|
|
<?php } ?>
|
|
|
<div class="header_frm_page">
|
|
|
<label class="title1">Screening Chemistry</label>
|
|
|
<label class="title2">(Within 21 Days prior to dose 1 )</label>
|
|
|
<label class="title3">(use if labs need to be transcribed)</label>
|
|
|
</div>
|
|
|
<span>
|
|
|
<label>Date:</label>
|
|
|
<?php if(isset($flag_edit) and ($flag_edit)){ ?><input type="text" id="date_exam" name="datos[txt_date]" />
|
|
|
<?php }else{ ?>
|
|
|
<label><?php echo $date_test; ?></label>
|
|
|
<?php } ?>
|
|
|
</span>
|
|
|
<table width="100%" id="" class="" style="">
|
|
|
<thead>
|
|
|
<tr>
|
|
|
<th style="text-align:center;">Test</th>
|
|
|
<th style="text-align:center;">Result<br>(include units)</th>
|
|
|
<th style="text-align:center;">Clinically<br> Significant?<br/>(Y/N)</th>
|
|
|
<th style="text-align:center;">Repeated<br/>(Y/N)</th>
|
|
|
<th style="text-align:center;">If no, comment</th>
|
|
|
</tr>
|
|
|
</thead>
|
|
|
<tbody>
|
|
|
<?php
|
|
|
if($method == "add"){
|
|
|
foreach($data_fields as $data_field){
|
|
|
foreach ($data_field as $value_data){
|
|
|
?>
|
|
|
<tr>
|
|
|
<td><?php echo $value_data['name_field']; ?><input type="hidden" name="var_ids[]" value="<?php echo $value_data['iddm']; ?>" /></td>
|
|
|
<td><?php //if($flag_edit){ ?>
|
|
|
<input type="text" class="txt_result" name="datos[txt_value_<?php echo $value_data['iddm']; ?>]" value="" />
|
|
|
<?php //}else{ ?>
|
|
|
<?php //} ?>
|
|
|
</td>
|
|
|
<td>
|
|
|
<select id="lst_clinically_sig" name="datos[sign_<?php echo $value_data['iddm']; ?>]" class="form_select">
|
|
|
<option value="1">Yes</option>
|
|
|
<option value="0">No</option>
|
|
|
</select>
|
|
|
</td>
|
|
|
<td>
|
|
|
<select id="lst_repeat" name="datos[repeat_<?php echo $value_data['iddm']; ?>]" class="form_select">
|
|
|
<option value="1">Yes</option>
|
|
|
<option value="0">No</option>
|
|
|
</select>
|
|
|
</td>
|
|
|
<td>
|
|
|
<textarea name="datos[comment_<?php echo $value_data['iddm']; ?>]" id="glucose_comment" style="width:210px; height:35px;"></textarea>
|
|
|
</td>
|
|
|
</tr>
|
|
|
<?php
|
|
|
}
|
|
|
}
|
|
|
}else{
|
|
|
if(isset($lst_chemistry)){
|
|
|
foreach($lst_chemistry as $data_chemistry){
|
|
|
|
|
|
?>
|
|
|
<tr>
|
|
|
<td><?php echo $data_chemistry['name_field']; ?></td>
|
|
|
<td><?php echo $data_chemistry['results']; ?></td>
|
|
|
<td style="text-align:center;">
|
|
|
<?php if($data_chemistry['clinically_significant'] == 1) echo "YES"; else echo "NO"; ; ?>
|
|
|
</td>
|
|
|
<td style="text-align:center;"><?php if($data_chemistry['repeated'] == 1) echo "YES"; else echo "NO"; ?></td>
|
|
|
<td><?php echo $data_chemistry['description']; ?></td>
|
|
|
</tr>
|
|
|
<?php
|
|
|
}// fin del foreach
|
|
|
} // fin del condicional if
|
|
|
}
|
|
|
?>
|
|
|
</tbody>
|
|
|
</table>
|
|
|
<?php if((isset($flag_edit)) and ($flag_edit)){ ?>
|
|
|
<div class="tool_buttons">
|
|
|
<input type="submit" value="save" id="btn_save" name="btn_save" />
|
|
|
</div>
|
|
|
<input type="hidden" name="option" value="com_data" />
|
|
|
<input type="hidden" name="controller" value="chemistry" />
|
|
|
<input type="hidden" name="action" value="save" />
|
|
|
<input type="hidden" name="name_form" value="frm_08" />
|
|
|
<input type="hidden" name="num_form" value="8" />
|
|
|
<input type="hidden" name="datos[idtest]" value="<?php echo $idtest; ?>" />
|
|
|
<input type="hidden" name="title_form" value="8" />
|
|
|
</form>
|
|
|
<?php } ?>
|