- + - - - $structure):?> - - + + $subject):?> + - + - - $structure):?> - "; - } - else - { - echo ""; - } - } - ?> + + + + + - - + + $subject):?> - - - + + + - + + - - + + - +
budget->subject . '/' . $lang->budget->stage?>budget->subject . '/' . $lang->budget->stage;?> budget->summary; ?>budget->summary;?>
" . zget($modules, $subject) . "
- - - - - -
budget->summary;?> - - - - -
-
budget->total . ':' . $summary['total'] . $lang->budget->{$program->budgetUnit};?>
+
budget->total . ':' . array_sum($summary['subjects']) . $lang->budget->{$program->budgetUnit};?>
-

+

noData;?>

diff --git a/module/budget/view/view.html.php b/module/budget/view/view.html.php index 1772323154..93bf99eaa1 100644 --- a/module/budget/view/view.html.php +++ b/module/budget/view/view.html.php @@ -42,7 +42,7 @@ budget->stage;?> - stage);?> + stage);?> budget->subject;?> diff --git a/module/holiday/control.php b/module/holiday/control.php index 24a3aa04a2..e1e15ae6c5 100644 --- a/module/holiday/control.php +++ b/module/holiday/control.php @@ -1,13 +1,13 @@ + * @author Chunsheng Wang * @package holiday - * @version $Id$ - * @link http://www.ranzhi.org + * @version $Id + * @link http://www.zentao.net */ class holiday extends control { diff --git a/module/holiday/model.php b/module/holiday/model.php index bd62164736..92e2cd6462 100644 --- a/module/holiday/model.php +++ b/module/holiday/model.php @@ -1,13 +1,13 @@ + * @author Chunsheng Wang * @package holiday - * @version $Id$ - * @link http://www.ranzhi.org + * @version $Id + * @link http://www.zentao.net */ class holidayModel extends model { diff --git a/module/programplan/model.php b/module/programplan/model.php index 49658b005c..ea6e9f71e0 100644 --- a/module/programplan/model.php +++ b/module/programplan/model.php @@ -94,23 +94,7 @@ class programplanModel extends model */ public function getPlanPairsForBudget($programID = 0) { - $pairs = array(); - $plans = $this->getPlans($programID); - $program = $this->getByID($programID); - foreach($plans as $planID => $plan) - { - $name = $plan->name; - if($program->product == 'multiple') $name = $plan->productName . '/' . $name; - $pairs[$planID] = '/'.$name; - - foreach($plan->children as $childID => $child) - { - $childName = $name . '/' . $child->name; - $pairs[$childID] = $childName; - } - } - - return $pairs; + return $this->loadModel('project')->getExecutionsByProject($programID, 'all', 0, true); } /**