2 // Copyright (C) 2010-2011 Aron Racho <aron@mi-squred.com>
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.
9 <?php
$allowed = $viewBean->allowed?
>
10 <?php
$ruleId = $viewBean->id
;?
>
11 <?php
$groupId = $viewBean->groupId
;?
>
13 <script type
="text/javascript">
16 <table
class="header">
18 <td
class="title"><?php
echo out(xl('Rule Edit')); ?
></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
>
27 <div
class="rule_detail edit text">
28 <p
class="header"><?php
echo out(xl('Add criteria')); ?
> </p
>
30 <?php
foreach ($allowed as $type) { ?
>
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
)); ?
>