|
|
<?php
|
|
|
switch($method){
|
|
|
case "add":
|
|
|
$flag_edit = TRUE;
|
|
|
break;
|
|
|
case "view":
|
|
|
$flag_edit = FALSE;
|
|
|
break;
|
|
|
}
|
|
|
?>
|
|
|
<form name="frm_inclusion" method="post" action="index.php">
|
|
|
<div style="width:650px; margin:0 auto;">
|
|
|
<h1>Screening <br />Inclusion Criteria</h1>
|
|
|
<p>All of the following must be answered YES for the subject to qualify for study enrollment.</p>
|
|
|
<table id="" class="" style="" >
|
|
|
<thead>
|
|
|
<tr>
|
|
|
<td> </td>
|
|
|
<td>Criteria</td>
|
|
|
<td>YES</td>
|
|
|
<td>NO</td>
|
|
|
<td>N/A</td>
|
|
|
</tr>
|
|
|
</thead>
|
|
|
<tbody>
|
|
|
<?php if($flag_edit){
|
|
|
foreach($data_list as $data_result){ ?>
|
|
|
<tr>
|
|
|
<td><?php echo $data_result['ordering']; ?></td>
|
|
|
<td><p><?php echo $data_result['name_field']; ?></p></td>
|
|
|
<td>
|
|
|
<input type="radio" class="criteria_01_yes" name="datos[criteria_<?php echo $data_result["ordering"]; ?>]" value="1" />
|
|
|
<input type="hidden" name="datos[id_<?php echo $data_result["ordering"]; ?>]" value="<?php echo $data_result['iddata_general']; ?>" />
|
|
|
</td>
|
|
|
<td style="background-color:#A6A6A6;">
|
|
|
<input type="radio" id="criteria_01_no" name="datos[criteria_<?php echo $data_result["ordering"]; ?>]" value="2" />
|
|
|
</td>
|
|
|
<td><input type="radio" id="criteria_01_na" name="datos[criteria_<?php echo $data_result["ordering"]; ?>]" value="3"></td>
|
|
|
</tr>
|
|
|
<?php } ?>
|
|
|
<?php }else{ ?>
|
|
|
<?php foreach($data_list as $data_result){ ?>
|
|
|
<tr>
|
|
|
<td><?php echo $data_result['ordering']; ?></td>
|
|
|
<td><p><?php echo $data_result['name_field']; ?></p></td>
|
|
|
<td><?php if($data_result['value'] == 1) echo "-"; ?></td>
|
|
|
<td><?php if($data_result['value'] == 2) echo "-"; ?></td>
|
|
|
<td><?php if($data_result['value'] == 3) echo "-"; ?></td>
|
|
|
</tr>
|
|
|
<?php } ?>
|
|
|
<?php } ?>
|
|
|
</tbody>
|
|
|
</table>
|
|
|
</div>
|
|
|
<?php if($flag_edit){ ?>
|
|
|
<div class="tool_buttons">
|
|
|
<input type="submit" value="save" id="btn_save" name="btn_save">
|
|
|
<input type="reset" value="clear" id="btn_clear" name="btn_clear">
|
|
|
</div>
|
|
|
<?php }else{ ?>
|
|
|
<div class="tool_links_navigator" style="padding-top: 10px">
|
|
|
<a href="index.php?option=com_data&controller=Data&action=add&name_form=frm_03">Next Form</a>
|
|
|
</div>
|
|
|
<?php } ?>
|
|
|
<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_02" />
|
|
|
<input type="hidden" name="num_form" value="2" />
|
|
|
<input type="hidden" name="title_form" value="2" />
|
|
|
</form>
|
|
|
|