Index: language/en_us/errors.php =================================================================== --- language/en_us/errors.php (revision 133) +++ language/en_us/errors.php (working copy) @@ -12,6 +12,7 @@ // General 'invalid email address' => 'Email address format is not valid', + 'id missing' => 'required ID value is missing', // Company validation errors 'company name required' => 'Company / organization name is required', Index: language/en_us/general.php =================================================================== --- language/en_us/general.php (revision 133) +++ language/en_us/general.php (working copy) @@ -117,6 +117,14 @@ 'month 10' => 'October', 'month 11' => 'November', 'month 12' => 'December', + + 'dow 1' => 'Sunday', + 'dow 2' => 'Monday', + 'dow 3' => 'Tuesday', + 'dow 4' => 'Wednesday', + 'dow 5' => 'Thursday', + 'dow 6' => 'Friday', + 'dow 7' => 'Saturday', ); // array ?> Index: language/en_us/actions.php =================================================================== --- language/en_us/actions.php (revision 133) +++ language/en_us/actions.php (working copy) @@ -63,6 +63,7 @@ 'add milestone' => 'Add milestone', 'edit milestone' => 'Edit milestone', 'delete milestone' => 'Delete milestone', + 'view calendar' => 'View calendar', // People 'update people' => 'Update', Index: application/controllers/MilestoneController.class.php =================================================================== --- application/controllers/MilestoneController.class.php (revision 133) +++ application/controllers/MilestoneController.class.php (working copy) @@ -362,6 +362,31 @@ $this->redirectToReferer($milestone->getViewUrl()); } // open + /** + * Show calendar view milestone page + * + * @access public + * @param void + * @return null + */ + function calendar() { + $this->addHelper('textile'); + + $project = active_project(); + $id = get_id(); + if (strlen($id) == 0) { + $id = gmdate('Ym'); + } + if (preg_match('/^(\d{4})(\d{2})$/', $id, $matches)) { + tpl_assign('year', $matches[1]); + tpl_assign('month', $matches[2]); + } else { + flash_error(lang('id missing')); + $this->redirectToReferer(get_url('milestone')); + } + tpl_assign('milestones', $project->getMilestones()); + } // calendar + } // MilestoneController ?> Index: application/views/milestone/calendar.php =================================================================== --- application/views/milestone/calendar.php (revision 0) +++ application/views/milestone/calendar.php (revision 0) @@ -0,0 +1,120 @@ + + +
| + | + | + | + | + | + | + |
|---|---|---|---|---|---|---|
| + + |
+
+
+
|
+
+
+ |||||
| + + |