Highway to PSR2
[openemr.git] / interface / super / rules / controllers / edit / view / lifestyle.php
blob5cb2ef2e9b7ac6c4cbe1111718a6648e04a3c1ce
1 <?php
2 // Copyright (C) 2010-2011 Aron Racho <aron@mi-squred.com>
3 //
4 // This program is free software; you can redistribute it and/or
5 // modify it under the terms of the GNU General Public License
6 // as published by the Free Software Foundation; either version 2
7 // of the License, or (at your option) any later version.
8 ?>
9 <p class="row">
10 <span class="left_col colhead req" data-fld="fld_lifestyle"><?php echo out($criteria->getTitle()); ?></span>
11 <span class="end_col">
12 <?php echo render_select(array( "target" => "fld_lifestyle",
13 "name" => "fld_lifestyle",
14 "value" => $criteria->type,
15 "options" => $criteria->getOptions() )); ?>
16 </span>
17 </p>
19 <br/>
21 <p class="lifestyle">
22 <span class="left_col colhead req"><?php echo out(xl('Value')); ?></span>
23 <span class="end_col">
24 <input type="radio" name="fld_value_type" class="field" value="match"
25 <?php echo !is_null($criteria->matchValue) ? "CHECKED" : ""?>> <?php echo out(xl('Match')); ?>
26 <input type="text" name="fld_value" class="field short" value="<?php echo out($criteria->matchValue); ?>" />
27 </span>
28 </p>
30 <p class="row lifestyle">
31 <span class="left_col colhead">&nbsp;</span>
32 <span class="end_col">
33 <input type="radio" name="fld_value_type" class="field" value="any"
34 <?php echo is_null($criteria->matchValue) ? "CHECKED" : ""?>> <?php echo out(xl('Any')); ?>
35 </span>
36 </p>
38 <br/>
40 <!-- optional/required and inclusion/exclusion fields -->
41 <?php echo common_fields(array( "criteria" => $criteria)); ?>