Highway to PSR2
[openemr.git] / interface / super / rules / controllers / edit / view / add_criteria.php
blob6083169203a5118e0bb892e9dca01eeb515ebd16
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 <?php $allowed = $viewBean->allowed?>
10 <?php $ruleId = $viewBean->id;?>
11 <?php $groupId = $viewBean->groupId;?>
13 <script type="text/javascript">
14 </script>
16 <table class="header">
17 <tr>
18 <td class="title"><?php echo out(xl('Rule Edit')); ?></td>
19 <td>
20 <a href="index.php?action=detail!view&id=<?php echo out($ruleId); ?>" class="iframe_medium css_button" onclick="top.restoreSession()">
21 <span><?php echo out(xl('Cancel')); ?></span>
22 </a>
23 </td>
24 </tr>
25 </table>
27 <div class="rule_detail edit text">
28 <p class="header"><?php echo out(xl('Add criteria')); ?> </p>
29 <ul>
30 <?php foreach ($allowed as $type) { ?>
31 <li>
32 <a href="index.php?action=edit!choose_criteria&id=<?php echo out($ruleId); ?>&group_id=<?php echo out($groupId); ?>&type=<?php echo out($viewBean->type); ?>&criteriaType=<?php echo out($type->code); ?>" onclick="top.restoreSession()">
33 <?php echo out(xl($type->lbl)); ?>
34 </a>
35 </li>
36 <?php } ?>
37 </ul>
38 </div>