Skip to content

Commit

Permalink
CDR Module: Fixed broken headers in Admin GUI. No longer require outp…
Browse files Browse the repository at this point in the history
…ut buffering.
  • Loading branch information
kchapple authored and bradymiller committed Apr 14, 2011
1 parent 84fd3b6 commit e9ecb9d
Show file tree
Hide file tree
Showing 60 changed files with 12 additions and 119 deletions.
1 change: 0 additions & 1 deletion interface/super/rules/base/template/basic.php
Expand Up @@ -6,7 +6,6 @@
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
?>

<html>
<head>
<?php html_header_show();?>
Expand Down
4 changes: 2 additions & 2 deletions interface/super/rules/base/template/redirect.php
Expand Up @@ -5,5 +5,5 @@
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
?>
<?php header("Location: $_redirect"); exit; ?>
header("Location: $_redirect"); exit; ?>
4 changes: 2 additions & 2 deletions interface/super/rules/base/template/undecorated.php
Expand Up @@ -5,5 +5,5 @@
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
?>
<?php if ( file_exists($viewBean->_view_body) ) { require_once($viewBean->_view_body); } ?>
if ( file_exists($viewBean->_view_body) ) { require_once($viewBean->_view_body); } ?>
4 changes: 2 additions & 2 deletions interface/super/rules/base/view/error.php
Expand Up @@ -5,5 +5,5 @@
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
?>
<?php echo xl('An unexpected error has occurred.'); ?>

echo xl('An unexpected error has occurred.'); ?>
3 changes: 1 addition & 2 deletions interface/super/rules/controllers/add/controller.php
Expand Up @@ -5,8 +5,7 @@
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
?>
<?php

class Controller_add extends BaseController {

function _action_add() {
Expand Down
2 changes: 0 additions & 2 deletions interface/super/rules/controllers/browse/controller.php
Expand Up @@ -5,9 +5,7 @@
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
?>

<?php
require_once( src_dir() . "/clinical_rules.php");

class Controller_browse extends BaseController {
Expand Down
3 changes: 1 addition & 2 deletions interface/super/rules/controllers/detail/controller.php
Expand Up @@ -5,8 +5,7 @@
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
?>
<?php

class Controller_detail extends BaseController {

function _action_view() {
Expand Down
4 changes: 2 additions & 2 deletions interface/super/rules/controllers/detail/view/view.php
Expand Up @@ -5,8 +5,8 @@
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
?>
<?php $rule = $viewBean->rule ?>

$rule = $viewBean->rule ?>

<script language="javascript" src="<?php js_src('detail.js') ?>"></script>
<script type="text/javascript">
Expand Down
2 changes: 0 additions & 2 deletions interface/super/rules/controllers/edit/controller.php
Expand Up @@ -5,9 +5,7 @@
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
?>

<?php
class Controller_edit extends BaseController {

function _action_summary() {
Expand Down
1 change: 0 additions & 1 deletion interface/super/rules/controllers/edit/view/age.php
Expand Up @@ -6,7 +6,6 @@
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
?>

<!-- age -->
<p class="row">
<span class="left_col colhead req" data-fld="fld_value"><?php echo out( xl( 'Age' ) );?> <?php echo out( xl( $criteria->getType() ) ); ?></span>
Expand Down
1 change: 0 additions & 1 deletion interface/super/rules/controllers/edit/view/bucket.php
Expand Up @@ -6,7 +6,6 @@
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
?>

<head>
<script language="javascript" src="<?php js_src('bucket.js') ?>"></script>

Expand Down
1 change: 0 additions & 1 deletion interface/super/rules/controllers/edit/view/custom.php
Expand Up @@ -6,7 +6,6 @@
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
?>

<head>
<script language="javascript" src="<?php js_src('custom.js') ?>"></script>

Expand Down
1 change: 0 additions & 1 deletion interface/super/rules/controllers/edit/view/intervals.php
@@ -1,7 +1,6 @@
<?php require_once( $GLOBALS["srcdir"] . "/../interface/super/rules/controllers/edit/helper/common.php" ); ?>
<?php $rule = $viewBean->rule ?>
<?php $intervals = $rule->reminderIntervals ?>

<script language="javascript" src="<?php js_src('edit.js') ?>"></script>
<script type="text/javascript">
var edit = new rule_edit( {});
Expand Down
1 change: 0 additions & 1 deletion interface/super/rules/controllers/edit/view/lifestyle.php
Expand Up @@ -6,7 +6,6 @@
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
?>

<p class="row">
<span class="left_col colhead req" data-fld="fld_lifestyle"><?php echo out( $criteria->getTitle() ); ?></span>
<span class="end_col">
Expand Down
1 change: 0 additions & 1 deletion interface/super/rules/controllers/edit/view/sex.php
Expand Up @@ -6,7 +6,6 @@
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
?>

<p class="row">
<span class="left_col colhead req" data-fld="fld_sex"><?php echo xl('Sex');?></span>
<span class="end_col">
Expand Down
Expand Up @@ -6,7 +6,6 @@
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
?>

<p class="row">
<span class="left_col colhead req" data-fld="fld_value"><?php echo out( $criteria->getTitle() ); ?></span>
<span class="end_col"><input id="fld_value" type="text" name="fld_value" class="field" value="<?php echo out( $criteria->getRequirements() ); ?>"></span>
Expand Down
4 changes: 1 addition & 3 deletions interface/super/rules/controllers/edit/view/summary.php
Expand Up @@ -5,9 +5,7 @@
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
?>

<?php $rule = $viewBean->rule ?>
$rule = $viewBean->rule ?>

<script language="javascript" src="<?php js_src('edit.js') ?>"></script>
<script type="text/javascript">
Expand Down
2 changes: 0 additions & 2 deletions interface/super/rules/include/common.php
Expand Up @@ -5,9 +5,7 @@
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
?>

<?php
/**
* This is a shortcut for htmlspecial vars.
* @param <type> $txt
Expand Down
2 changes: 0 additions & 2 deletions interface/super/rules/include/header.php
Expand Up @@ -5,9 +5,7 @@
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
?>

<?php
// for security
$fake_register_globals=false;
$sanitize_all_escapes=true;
Expand Down
5 changes: 1 addition & 4 deletions interface/super/rules/include/ui.php
Expand Up @@ -5,10 +5,7 @@
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
?>

<?php


require_once( $GLOBALS['fileroot'] . "/library/options.inc.php" );

function getLabel( $value, $list_id ) {
Expand Down
1 change: 0 additions & 1 deletion interface/super/rules/library/CdrHelper.class.php
@@ -1,4 +1,3 @@

<?php
// Copyright (C) 2011 Ensoftek, Inc
//
Expand Down
2 changes: 0 additions & 2 deletions interface/super/rules/library/Code.php
Expand Up @@ -5,9 +5,7 @@
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
?>

<?php
/**
* Description of Code
*
Expand Down
2 changes: 0 additions & 2 deletions interface/super/rules/library/CodeManager.php
Expand Up @@ -5,9 +5,7 @@
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
?>

<?php
/**
* Description of CodeManager
*
Expand Down
2 changes: 0 additions & 2 deletions interface/super/rules/library/Option.php
Expand Up @@ -5,9 +5,7 @@
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
?>

<?php
/**
* Description of Option
*
Expand Down
2 changes: 0 additions & 2 deletions interface/super/rules/library/ReminderIntervalDetail.php
Expand Up @@ -5,9 +5,7 @@
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
?>

<?php
/**
* Description of ReminderIntervalDetail
*
Expand Down
2 changes: 0 additions & 2 deletions interface/super/rules/library/ReminderIntervalRange.php
Expand Up @@ -5,9 +5,7 @@
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
?>

<?php
/**
* todo docs
* enum
Expand Down
2 changes: 0 additions & 2 deletions interface/super/rules/library/ReminderIntervalType.php
Expand Up @@ -5,9 +5,7 @@
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
?>

<?php
/**
* enum
* @author aron
Expand Down
3 changes: 0 additions & 3 deletions interface/super/rules/library/ReminderIntervals.php
Expand Up @@ -5,9 +5,6 @@
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
?>

<?php

/**
* This object maintains a collection of ReminderIntervalDetail for a given rule.
Expand Down
2 changes: 0 additions & 2 deletions interface/super/rules/library/Rule.php
Expand Up @@ -5,9 +5,7 @@
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
?>

<?php
/**
* This is the primary domain object representing a rule in the rules engine.
* Rules are composed of:
Expand Down
2 changes: 0 additions & 2 deletions interface/super/rules/library/RuleAction.php
Expand Up @@ -5,9 +5,7 @@
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
?>

<?php
/**
* Description of RuleAction
*
Expand Down
2 changes: 0 additions & 2 deletions interface/super/rules/library/RuleActions.php
Expand Up @@ -5,9 +5,7 @@
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
?>

<?php
/**
* Description of RuleActions
*
Expand Down
2 changes: 0 additions & 2 deletions interface/super/rules/library/RuleCriteria.php
Expand Up @@ -5,9 +5,7 @@
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
?>

<?php
/**
* Description of RuleCriteria
*
Expand Down
2 changes: 0 additions & 2 deletions interface/super/rules/library/RuleCriteriaAge.php
Expand Up @@ -5,9 +5,7 @@
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
?>

<?php
/**
* Description of RuleCriteriaAge
*
Expand Down
2 changes: 0 additions & 2 deletions interface/super/rules/library/RuleCriteriaAgeBuilder.php
Expand Up @@ -5,9 +5,7 @@
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
?>

<?php
require_once( library_src( 'RuleCriteriaBuilder.php') );
/**
* Description of RuleCriteriaAgeBuilder
Expand Down
2 changes: 0 additions & 2 deletions interface/super/rules/library/RuleCriteriaAllergy.php
Expand Up @@ -5,9 +5,7 @@
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
?>

<?php
require_once( library_src( 'RuleCriteriaSimpleText.php') );

/**
Expand Down
2 changes: 0 additions & 2 deletions interface/super/rules/library/RuleCriteriaBuilder.php
Expand Up @@ -5,9 +5,7 @@
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
?>

<?php
/**
* Description of RuleCriteriaBuilder
*
Expand Down
2 changes: 0 additions & 2 deletions interface/super/rules/library/RuleCriteriaDatabaseBucket.php
Expand Up @@ -5,9 +5,7 @@
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
?>

<?php
/**
* Description of RuleCriteriaDatabaseBucketBuilder
*
Expand Down
2 changes: 0 additions & 2 deletions interface/super/rules/library/RuleCriteriaDatabaseBuilder.php
Expand Up @@ -5,9 +5,7 @@
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
?>

<?php
/**
* Description of RuleCriteriaDatabaseBuilder
*
Expand Down
2 changes: 0 additions & 2 deletions interface/super/rules/library/RuleCriteriaDatabaseCustom.php
Expand Up @@ -5,9 +5,7 @@
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
?>

<?php
/**
* Description of RuleCriteriaDatabaseCustom
*
Expand Down
2 changes: 0 additions & 2 deletions interface/super/rules/library/RuleCriteriaDbView.php
Expand Up @@ -5,9 +5,7 @@
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
?>

<?php
/**
* Description of RuleCriteriaDbModel
*
Expand Down
2 changes: 0 additions & 2 deletions interface/super/rules/library/RuleCriteriaDiagnosis.php
Expand Up @@ -5,9 +5,7 @@
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
?>

<?php
/**
* Description of RuleCriteriaDiagnosis
*
Expand Down
2 changes: 0 additions & 2 deletions interface/super/rules/library/RuleCriteriaFactory.php
Expand Up @@ -5,9 +5,7 @@
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
?>

<?php
/**
* Description of RuleCriteriaFactory
*
Expand Down

0 comments on commit e9ecb9d

Please sign in to comment.