frm_03.php
70 lines
| 2.3 KiB
| text/x-php
|
XmlPhpLexer
|
r0 | <?php | |
switch($method){ | |||
case "add": | |||
$flag_edit = TRUE; | |||
break; | |||
case "view": | |||
$flag_edit = FALSE; | |||
break; | |||
} | |||
?> | |||
<form name="frm_exclusion" method="post" action="index.php"> | |||
<div style="width:650px; margin:0 auto;"> | |||
<h1>Screening <br />Exclusion Criteria</h1> | |||
<p>All of the following must be answered NO 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> | |||
</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="radio_white" 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" class="radio_black" name="datos[criteria_<?php echo $data_result["ordering"]; ?>]" value="2" /> | |||
</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> | |||
</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_04">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_03" /> | |||
<input type="hidden" name="num_form" value="3" /> | |||
<input type="hidden" name="title_form" value="3" /> | |||
</form> |