CDR Module: Fixed broken headers in Admin GUI. No longer require output buffering.
[openemr.git] / interface / super / rules / controllers / edit / view / age.php
blobab08e91f91228f72e602b0759fc26815275f1abd
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 <!-- age -->
10 <p class="row">
11 <span class="left_col colhead req" data-fld="fld_value"><?php echo out( xl( 'Age' ) );?> <?php echo out( xl( $criteria->getType() ) ); ?></span>
12 <span class="end_col"><input id="fld_value" type="text" name="fld_value" class="field short" value="<?php echo out( $criteria->getRequirements() ); ?>"></span>
13 </p>
15 <!-- age unit -->
16 <p class="row">
17 <span class="left_col colhead req" data-fld="fld_timeunit"><?php echo out( xl('Unit') );?></span>
18 <span class="end_col">
19 <?php echo timeunit_select( array( "context" => "rule_age_intervals", "target"=>"fld_target_interval_type", "name" => "fld_target_interval_type", "value" => $criteria->timeUnit ) ); ?>
20 </span>
21 </p>
23 <input type="hidden" name="fld_type" value="<?php echo out( $criteria->type ); ?>"/>
25 <br/>
27 <!-- optional/required and inclusion/exclusion fields -->
28 <?php echo common_fields( array( "criteria" => $criteria) ); ?>