##// END OF EJS Templates
modificada la instancia de la clase SessionModel
modificada la instancia de la clase SessionModel

File last commit:

r0:1
r11:12
Show More
frm_04.php
128 lines | 4.2 KiB | text/x-php | XmlPhpLexer
<?php
//var_dump($list_history);
$html_history = "";
$html_ocultar = "display: none";
$html_ok = "";
if (isset($oculto)){
if ($oculto==1){
$html_ocultar = "display: block";
$html_ok = "checked";
}
}
if (isset($list_history)){
$items = count($list_history) - 1;
for ($i=0; $i<=$items; $i++){
$data_mhistory = $list_history[$i];
$idmed_history = $data_mhistory->idmed_history;
$idapplication = $data_mhistory->idapplication;
$description = $data_mhistory->description;
$bool_active = $data_mhistory->bool_active;
$date_create = $data_mhistory->date_create;
$date_update = $data_mhistory->date_update;
if ($bool_active==1){
$marcar_1 = "<span style='color:#f00; font-size:18px; font-weigth:bold'>X</span>";
$marcar_0 = "";
}else{
$marcar_0 = "<span style='color:#f00; font-size:18px; font-weigth:bold'>X</span>";
$marcar_1 = "";
}
$html_history.= "<tr>";
$html_history.= "<td>".($i+1)."</td>";
$html_history.= "<td >".$description."</td>";
$html_history.= "<td >".$marcar_1."</td>";
$html_history.= "<td >".$marcar_0."</td>";
$html_history.= "</tr>";
}// ....fin del for
}
?>
<script>
$(function(){
$("#h_mh_yes").click(function(){
$("#div_history").css("display","block");
});
$("#h_mh_no").click(function(){
$("#div_history").css("display","none");
});
})
</script>
<div style="width:650px; margin:0 auto;">
<h1>Screening Medical History</h1>
<form name="frm_screeningmedicalhistory" method="post" action="index.php">
<table width="100%" id="" class="" style="" >
<tbody>
<tr>
<td><p>Does the subject have any clinically significant medical history?</p></td>
</tr>
<tr>
<td style="text-align:right;"><label>Yes (specific below)</label><input type="radio" <?php echo $html_ok ?> id="h_mh_yes" name="datos[mh]" value="Y">
<label>No</label><input type="radio" id="h_mh_no" name="datos[mh]" value="N"></td>
</tr>
</tbody>
</table>
<div>
<input type="submit" value="save" id="btn_save" name="btn_save"><input type="reset" value="clear" id="btn_clear" name="btn_clear">
</div>
<div id="div_history" style="border:1px solid #f00; width: 100%; margin-top: 10px; <?php echo $html_ocultar;?>">
<table id="" class="" style="" width="100%" border="1">
<thead>
<tr>
<td colspan="3" >Clinically significant Medical History</td>
</tr>
<tr>
<td> List Finding Below</td>
<td style="width:65px; text-align:center;">Active</td>
<td style="width:65px; text-align:center;">No&nbsp;Active</td>
</tr>
</thead>
<tbody>
<tr>
<td ><textarea id="finding" name="datos[finding]" value="" style="width:450px; height:50px" ></textarea></td>
<td style="text-align:center; vertical-align:top;" ><input type="radio" id="finding_status_active" name="datos[finding_status]" value="1"></td>
<td style="text-align:center; vertical-align:top;" ><input type="radio" id="finding_status_inactive" name="datos[finding_status]" value="0"></td>
</tr>
</tbody>
<tfoot>
<tr>
<td colspan="3"></td>
</tr>
</tfoot>
</table>
<table border="0" width="100%" >
<thead>
<tr>
<td >&nbsp;</td>
<td style="text-align:center;">&nbsp;</td>
<td style="width:65px; text-align:center;">Active</td>
<td style="width:65px; text-align:center;">No&nbsp;Active</td>
</tr>
</thead>
<tbody>
<?php echo $html_history?>
</tbody>
<tfoot>
<tr>
<td colspan="2"></td>
</tr>
</tfoot>
</table>
</div>
<input type="hidden" name="option" value="com_data" />
<input type="hidden" name="controller" value="Data" />
<input type="hidden" name="action" value="save" />
<input type="hidden" name="name_form" value="frm_04" />
<input type="hidden" name="num_form" value="4" />
<input type="hidden" name="title_form" value="4" />
</form>
</div>