Skip to content

Commit

Permalink
CDR Module: Incorporated restore session in admin gui scripts.
Browse files Browse the repository at this point in the history
    TO DO before commit to sourceforge:
     1) allow non-continuous group ids in engine
     2) Fix bugs in reports related to cqm/amc mechanism.
  • Loading branch information
bradymiller committed Apr 24, 2011
1 parent d5fdc49 commit d65396a
Show file tree
Hide file tree
Showing 10 changed files with 44 additions and 44 deletions.
6 changes: 3 additions & 3 deletions interface/super/rules/controllers/add/view/add.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
<tr >
<td class="title"><?php echo out( xl( 'Add Rule' ) ); ?></td>
<td>
<a href="index.php?action=add!add" class="iframe_medium css_button"><span><?php echo out( xl( 'Save' ) ); ?></span></a>
<a href="index.php?action=browse!list" class="iframe_medium css_button"><span><?php echo out( xl( 'Cancel') ); ?></span></a>
<a href="index.php?action=add!add" class="iframe_medium css_button" onclick="top.restoreSession()"><span><?php echo out( xl( 'Save' ) ); ?></span></a>
<a href="index.php?action=browse!list" class="iframe_medium css_button" onclick="top.restoreSession()"><span><?php echo out( xl( 'Cancel') ); ?></span></a>
</td>
</tr>
</table>
</table>
4 changes: 2 additions & 2 deletions interface/super/rules/controllers/alerts/view/list_actmgr.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
</tr>
<tr>
<td>
<a href="javascript:document.cdralertmgr.submit();" class="css_button"><span><?php echo out( xl('Save') ); ?></span></a><a href="javascript:document.cdralertmgr.reset();" class="css_button" ><span><?php echo out( xl('Reset') ); ?></span></a>
<a href="javascript:document.cdralertmgr.submit();" class="css_button" onclick="top.restoreSession()"><span><?php echo out( xl('Save') ); ?></span></a><a href="javascript:document.cdralertmgr.reset();" class="css_button" onclick="top.restoreSession()"><span><?php echo out( xl('Reset') ); ?></span></a>
</td>
</tr>
</table>

&nbsp;

<form name="cdralertmgr" method="post" action="index.php?action=alerts!submitactmgr" >
<form name="cdralertmgr" method="post" action="index.php?action=alerts!submitactmgr" onsubmit="return top.restoreSession()">
<table cellpadding="1" cellspacing="0" class="showborder">
<tr class="showborder_head">
<th width="250px"><?php echo out( xl('Title') ); ?></th>
Expand Down
6 changes: 3 additions & 3 deletions interface/super/rules/controllers/browse/view/list.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<tr>
<td class="title"><?php echo out( xl( 'Rules Configuration' ) ); ?></td>
<td>
<a href="index.php?action=edit!summary" class="iframe_medium css_button">
<a href="index.php?action=edit!summary" class="iframe_medium css_button" onclick="top.restoreSession()">
<span><?php echo out( xl( 'Add new' ) ); ?></span>
</a>
</td>
Expand All @@ -34,7 +34,7 @@

<!-- template -->
<div class="rule_row data template">
<span class="rule_title"><a href="index.php?action=detail!view"></a></span>
<span class="rule_type"><a href="index.php?action=detail!view"></a></span>
<span class="rule_title"><a href="index.php?action=detail!view" onclick="top.restoreSession()"></a></span>
<span class="rule_type"><a href="index.php?action=detail!view" onclick="top.restoreSession()"></a></span>
</div>

30 changes: 15 additions & 15 deletions interface/super/rules/controllers/detail/view/view.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<tr >
<td class="title"><?php echo out( xl( 'Rule Detail' ) ); ?></td>
<td>
<a href="index.php?action=browse!list" class="iframe_medium css_button"><span><?php echo out( xl( 'Back' ) ); ?></span></a>
<a href="index.php?action=browse!list" class="iframe_medium css_button" onclick="top.restoreSession()"><span><?php echo out( xl( 'Back' ) ); ?></span></a>
</td>
</tr>
</table>
Expand All @@ -31,7 +31,7 @@
<p class="header">
<?php echo out( xl( 'Summary' ) ); ?>
<a href="index.php?action=edit!summary&id=<?php echo out( $rule->id ); ?>"
class="action_link" id="edit_summary">(<?php echo out( xl( 'edit' ) ); ?>)</a>
class="action_link" id="edit_summary" onclick="top.restoreSession()">(<?php echo out( xl( 'edit' ) ); ?>)</a>
</p>
<p><b><?php echo out( xl( $rule->title ) ); ?></b>
(<?php echo implode_funcs( ", ", $rule->getRuleTypeLabels(), array( 'xl', 'out' ) ); ?>)
Expand All @@ -45,7 +45,7 @@ class="action_link" id="edit_summary">(<?php echo out( xl( 'edit' ) ); ?>)</a>
<div class="section text">
<p class="header">
<?php echo out( xl( 'Reminder intervals' ) ); ?>
<a href="index.php?action=edit!intervals&id=<?php echo $rule->id ?>" class="action_link">(<?php echo out( xl( 'edit' ) ); ?>)</a>
<a href="index.php?action=edit!intervals&id=<?php echo $rule->id ?>" class="action_link" onclick="top.restoreSession()">(<?php echo out( xl( 'edit' ) ); ?>)</a>
</p>

<?php if ( $intervals->getTypes() ) {?>
Expand Down Expand Up @@ -75,7 +75,7 @@ class="action_link" id="edit_summary">(<?php echo out( xl( 'edit' ) ); ?>)</a>
<!-- -->
<?php $filters = $rule->filters; if ( $filters ) { ?>
<div class="section text">
<p class="header"><?php echo out( xl( 'Demographics filter criteria' ) ); ?> <a href="index.php?action=edit!add_criteria&id=<?php echo out( $rule->id ); ?>&criteriaType=filter" class="action_link">(<?php echo out( xl( 'add' ) ); ?>)</a></p>
<p class="header"><?php echo out( xl( 'Demographics filter criteria' ) ); ?> <a href="index.php?action=edit!add_criteria&id=<?php echo out( $rule->id ); ?>&criteriaType=filter" class="action_link" onclick="top.restoreSession()">(<?php echo out( xl( 'add' ) ); ?>)</a></p>
<p>
<?php if ( $filters->criteria ) { ?>

Expand All @@ -90,11 +90,11 @@ class="action_link" id="edit_summary">(<?php echo out( xl( 'edit' ) ); ?>)</a>
<div>
<span class="left_col">
<a href="index.php?action=edit!filter&id=<?php echo out( $rule->id ); ?>&guid=<?php echo out( $criteria->guid ); ?>"
class="action_link">
class="action_link" onclick="top.restoreSession()">
(<?php echo out( xl( 'edit' ) ); ?>)
</a>
<a href="index.php?action=edit!delete_filter&id=<?php echo out( $rule->id ); ?>&guid=<?php echo out( $criteria->guid ); ?>"
class="action_link">
class="action_link" onclick="top.restoreSession()">
(<?php echo out( xl( 'delete' ) ); ?>)
</a>
</span>
Expand Down Expand Up @@ -126,7 +126,7 @@ class="action_link">
<?php $targets = $group->ruleTargets; if ( $targets ) { ?>
<div class="section text">
<p class="header"><?php echo out( xl( 'Clinical targets' ) ); ?>
<a href="index.php?action=edit!add_criteria&id=<?php echo out( $rule->id ); ?>&group_id=<?php echo out( $group->groupId ); ?>&criteriaType=target" class="action_link">
<a href="index.php?action=edit!add_criteria&id=<?php echo out( $rule->id ); ?>&group_id=<?php echo out( $group->groupId ); ?>&criteriaType=target" class="action_link" onclick="top.restoreSession()">
(<?php echo out( xl( 'add' ) ); ?>)
</a>
</p>
Expand All @@ -144,11 +144,11 @@ class="action_link">
<div class="row">
<span class="left_col">
<a href="index.php?action=edit!target&id=<?php echo out( $rule->id ); ?>&guid=<?php echo out( $criteria->guid ); ?>"
class="action_link">
class="action_link" onclick="top.restoreSession()">
(<?php echo out( xl( 'edit' ) ); ?>)
</a>
<a href="index.php?action=edit!delete_target&id=<?php echo out( $rule->id ); ?>&guid=<?php echo out( $criteria->guid ); ?>"
class="action_link">
class="action_link" onclick="top.restoreSession()">
(<?php echo out( xl( 'delete' ) ); ?>)
</a>
</span>
Expand All @@ -175,7 +175,7 @@ class="action_link">
<?php $actions = $group->ruleActions; if ( $actions ) { ?>
<div class="section text">
<p class="header"><?php echo out( xl( 'Actions' ) ); ?>
<a href="index.php?action=edit!add_action&id=<?php echo out( $rule->id ); ?>&group_id=<?php echo out( $group->groupId );?>" class="action_link">
<a href="index.php?action=edit!add_action&id=<?php echo out( $rule->id ); ?>&group_id=<?php echo out( $group->groupId );?>" class="action_link" onclick="top.restoreSession()">
(<?php echo out( xl( 'add' ) ); ?>)
</a>
</p>
Expand All @@ -190,10 +190,10 @@ class="action_link">
<?php foreach($actions->actions as $action) { ?>
<span class="left_col">
<a href="index.php?action=edit!action&id=<?php echo out( $rule->id ); ?>&guid=<?php echo out( $action->guid ); ?>"
class="action_link">
class="action_link" onclick="top.restoreSession()">
(<?php echo out( xl( 'edit' ) ); ?>)</a>
<a href="index.php?action=edit!delete_action&id=<?php echo out( $rule->id ); ?>&guid=<?php echo out( $action->guid ); ?>"
class="action_link">
class="action_link" onclick="top.restoreSession()">
(<?php echo out( xl( 'delete' ) ); ?>)</a>
</span>
<span class="end_col"><?php echo out( $action->getTitle() ); ?></span>
Expand All @@ -211,14 +211,14 @@ class="action_link">
<?php $nextGroupId = $groupId + 1; ?>
<div class="section text">
<p class="header"><?php echo out( xl( 'Clinical targets' ) ); ?>
<a href="index.php?action=edit!add_criteria&id=<?php echo out( $rule->id ); ?>&group_id=<?php echo $nextGroupId; ?>&criteriaType=target" class="action_link">
<a href="index.php?action=edit!add_criteria&id=<?php echo out( $rule->id ); ?>&group_id=<?php echo $nextGroupId; ?>&criteriaType=target" class="action_link" onclick="top.restoreSession()">
(<?php echo out( xl( 'add' ) ); ?>)
</a>
</p>
</div>
<div class="section text">
<p class="header"><?php echo out( xl( 'Actions' ) ); ?>
<a href="index.php?action=edit!add_action&id=<?php echo out( $rule->id ); ?>&group_id=<?php echo $nextGroupId; ?>" class="action_link">
<a href="index.php?action=edit!add_action&id=<?php echo out( $rule->id ); ?>&group_id=<?php echo $nextGroupId; ?>" class="action_link" onclick="top.restoreSession()">
(<?php echo out( xl( 'add' ) ); ?>)
</a>
</p>
Expand All @@ -227,4 +227,4 @@ class="action_link">

</div>

</div>
</div>
8 changes: 4 additions & 4 deletions interface/super/rules/controllers/edit/template/criteria.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,17 @@
<tr>
<td class="title"><?php echo out( xl( 'Rule Edit' ) ); ?></td>
<td>
<a href="index.php?action=detail!view&id=<?php echo out( $rule->id ); ?>" class="iframe_medium css_button">
<a href="index.php?action=detail!view&id=<?php echo out( $rule->id ); ?>" class="iframe_medium css_button" onclick="top.restoreSession()">
<span><?php echo out( xl( 'Cancel' ) ); ?></span>
</a>
<a href="javascript:;" class="iframe_medium css_button" id="btn_save"><span><?php echo out( xl( 'Save' ) ); ?></span></a>
<a href="javascript:;" class="iframe_medium css_button" id="btn_save" onclick="top.restoreSession()"><span><?php echo out( xl( 'Save' ) ); ?></span></a>
</td>
</tr>
</table>

<div class="rule_detail edit text">

<form action="index.php?action=edit!submit_criteria" method="post" id="frm_submit">
<form action="index.php?action=edit!submit_criteria" method="post" id="frm_submit" onsubmit="return top.restoreSession()">
<input type="hidden" name="id" value="<?php echo out( $rule->id ); ?>"/>
<input type="hidden" name="group_id" value="<?php echo out( $criteria->groupId ); ?>"/>
<input type="hidden" name="guid" value="<?php echo out( $criteria->guid ); ?>"/>
Expand All @@ -64,4 +64,4 @@

</body>

</html>
</html>
10 changes: 5 additions & 5 deletions interface/super/rules/controllers/edit/view/action.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,18 @@
<tr>
<td class="title"><?php echo out( xl( 'Rule Edit' ) ); ?></td>
<td>
<a href="index.php?action=detail!view&id=<?php echo $action->id ?>" class="iframe_medium css_button">
<a href="index.php?action=detail!view&id=<?php echo $action->id ?>" class="iframe_medium css_button" onclick="top.restoreSession()">
<span><?php echo out( xl( 'Cancel' ) ); ?></span>
</a>
<a href="javascript:;" class="iframe_medium css_button" id="btn_save"><span><?php echo out( xl('Save' ) ); ?></span></a>
<a href="javascript:;" class="iframe_medium css_button" id="btn_save" onclick="top.restoreSession()"><span><?php echo out( xl('Save' ) ); ?></span></a>
</td>
</tr>
</table>

<div class="rule_detail edit text">
<p class="header"><?php echo out( xl( 'Action' ) ); ?> </p>

<form action="index.php?action=edit!submit_action" method="post" id="frm_submit">
<form action="index.php?action=edit!submit_action" method="post" id="frm_submit" onsubmit="return top.restoreSession()">
<input type="hidden" name="guid" value="<?php echo out( $action->guid ); ?>"/>
<input type="hidden" name="group_id" value="<?php echo out( $action->groupId ); ?>"/>
<input type="hidden" name="id" value="<?php echo out( $action->id ); ?>"/>
Expand All @@ -47,15 +47,15 @@
"name" => "fld_category_lbl",
"title" => xl("Category"),
"value" => out( $action->getCategoryLabel() ) ) ); ?>
<br/><a href="javascript:;" id="change_category">(change)</a>
<br/><a href="javascript:;" id="change_category" onclick="top.restoreSession()">(change)</a>
<input type="hidden" id="fld_category" name="fld_category" value="<?php echo out( $action->category ); ?>" />

<!-- item -->
<?php echo textfield_row(array("id" => "fld_item_lbl",
"name" => "fld_item_lbl",
"title" => xl("Item"),
"value" => out( $action->getItemLabel() ) ) ); ?>
<br/><a href="javascript:;" id="change_item">(change)</a>
<br/><a href="javascript:;" id="change_item" onclick="top.restoreSession()">(change)</a>
<input type="hidden" id="fld_item" name="fld_item" value="<?php echo out( $action->item ); ?>" />

<!-- reminder link -->
Expand Down
6 changes: 3 additions & 3 deletions interface/super/rules/controllers/edit/view/add_criteria.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<tr>
<td class="title"><?php echo out( xl( 'Rule Edit' ) ); ?></td>
<td>
<a href="index.php?action=detail!view&id=<?php echo out( $ruleId ); ?>" class="iframe_medium css_button">
<a href="index.php?action=detail!view&id=<?php echo out( $ruleId ); ?>" class="iframe_medium css_button" onclick="top.restoreSession()">
<span><?php echo out( xl( 'Cancel' ) ); ?></span>
</a>
</td>
Expand All @@ -29,10 +29,10 @@
<ul>
<?php foreach ( $allowed as $type ) { ?>
<li>
<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 ); ?>">
<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()">
<?php echo out( xl( $type->lbl ) ); ?>
</a>
</li>
<?php } ?>
</ul>
</div>
</div>
6 changes: 3 additions & 3 deletions interface/super/rules/controllers/edit/view/bucket.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@
"name" => "fld_category_lbl",
"title" => xl("Category"),
"value" => $criteria->getCategoryLabel() ) ); ?>
<br/><a href="javascript:;" id="change_category">(change)</a>
<br/><a href="javascript:;" id="change_category" onclick="top.restoreSession()">(change)</a>
<input type="hidden" id="fld_category" name="fld_category" value="<?php echo $criteria->category?>" />

<!-- item -->
<?php echo textfield_row(array("id" => "fld_item_lbl",
"name" => "fld_item_lbl",
"title" => xl("Item"),
"value" => $criteria->getItemLabel() ) ); ?>
<br/><a href="javascript:;" id="change_item">(change)</a>
<br/><a href="javascript:;" id="change_item" onclick="top.restoreSession()">(change)</a>
<input type="hidden" id="fld_item" name="fld_item" value="<?php echo out( $criteria->item ); ?>" />

<!-- completed -->
Expand Down Expand Up @@ -66,4 +66,4 @@
<br/>

<!-- optional/required and inclusion/exclusion fields -->
<?php echo common_fields( array( "criteria" => $criteria) ); ?>
<?php echo common_fields( array( "criteria" => $criteria) ); ?>
6 changes: 3 additions & 3 deletions interface/super/rules/controllers/edit/view/intervals.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,18 @@
<tr>
<td class="title"><?php echo out( xl( 'Rule Edit' ) ); ?></td>
<td>
<a href="index.php?action=detail!view&id=<?php echo out( $rule->id ); ?>" class="iframe_medium css_button">
<a href="index.php?action=detail!view&id=<?php echo out( $rule->id ); ?>" class="iframe_medium css_button" onclick="top.restoreSession()">
<span><?php echo out( xl( 'Cancel' ) ); ?></span>
</a>
<a href="javascript:;" class="iframe_medium css_button" id="btn_save"><span><?php echo out( xl( 'Save' ) ); ?></span></a>
<a href="javascript:;" class="iframe_medium css_button" id="btn_save" onclick="top.restoreSession()"><span><?php echo out( xl( 'Save' ) ); ?></span></a>
</td>
</tr>
</table>

<div class="rule_detail edit text">
<p class="header"><?php echo out( xl( 'Reminder intervals' ) ); ?> </p>

<form action="index.php?action=edit!submit_intervals" method="post" id="frm_submit">
<form action="index.php?action=edit!submit_intervals" method="post" id="frm_submit" onsubmit="return top.restoreSession()">
<input type="hidden" name="id" value="<?php echo out( $rule->id ); ?>"/>

<div class="intervals">
Expand Down
6 changes: 3 additions & 3 deletions interface/super/rules/controllers/edit/view/summary.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,18 @@
<tr>
<td class="title"><?php echo $rule->id ? out( xl( 'Rule Edit' ) ) : out( xl( 'Rule Add' ) ); ?></td>
<td>
<a href="index.php?action=detail!view&id=<?php echo out( $rule->id ); ?>" class="iframe_medium css_button">
<a href="index.php?action=detail!view&id=<?php echo out( $rule->id ); ?>" class="iframe_medium css_button" onclick="top.restoreSession()">
<span><?php echo out( xl( 'Cancel' ) ); ?></span>
</a>
<a href="javascript:;" class="iframe_medium css_button" id="btn_save"><span><?php echo out( xl( 'Save' ) ); ?></span></a>
<a href="javascript:;" class="iframe_medium css_button" id="btn_save" onclick="top.restoreSession()"><span><?php echo out( xl( 'Save' ) ); ?></span></a>
</td>
</tr>
</table>

<div class="rule_detail edit summry text">
<p class="header"><?php echo out( xl( 'Summary' ) ); ?> </p>

<form action="index.php?action=edit!submit_summary" method="post" id="frm_submit">
<form action="index.php?action=edit!submit_summary" method="post" id="frm_submit" onsubmit="return top.restoreSession()">
<input type="hidden" name="id" value="<?php echo out( $rule->id ); ?>"/>

<p class="row">
Expand Down

0 comments on commit d65396a

Please sign in to comment.