From b6d8a87811ecdeb63c1f0a8816cc7e78e108b59b Mon Sep 17 00:00:00 2001 From: Sebastian Wagner Date: Thu, 15 Sep 2011 16:30:48 +0200 Subject: multicheckbox to select days in addForm --- application/forms/EventAdd.php | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/application/forms/EventAdd.php b/application/forms/EventAdd.php index d20d0cc..3dc5676 100755 --- a/application/forms/EventAdd.php +++ b/application/forms/EventAdd.php @@ -179,6 +179,27 @@ class Application_Form_EventAdd extends Zend_Form 'label' => 'Repeat Type:', )); + /* + * This is the multiCheckbox to select special days. + * To do: create a css-file... + * + $this->addElement('multiCheckbox', 'repeatDays', array( + 'multiOptions' => array( + 'mon' => 'Monday', + 'tue' => 'Thuestay', + 'wed' => 'Wednesday', + 'thu' => 'Thursday', + 'fri' => 'Friday', + 'sat' => 'Saturday', + 'sun' => 'Sunday', + ), + 'onchange' => '', + 'required' => false, + 'label' => 'Repeat days:', + 'value'=>array(0,1), + )); + */ + $this->addElement('select', 'repeatOption', array( 'multioptions' => array( 'after' => 'After', -- cgit v1.2.3-55-g7522