summaryrefslogtreecommitdiffstats
path: root/application/forms/EventEdit.php
diff options
context:
space:
mode:
Diffstat (limited to 'application/forms/EventEdit.php')
-rwxr-xr-xapplication/forms/EventEdit.php58
1 files changed, 31 insertions, 27 deletions
diff --git a/application/forms/EventEdit.php b/application/forms/EventEdit.php
index 4a9f046..afd4614 100755
--- a/application/forms/EventEdit.php
+++ b/application/forms/EventEdit.php
@@ -184,41 +184,45 @@ class Application_Form_EventEdit extends Zend_Form
));
}
- $repeattypefield = $this->createElement('select','repeattype');
- $repeattypefield ->setLabel('Repeat Type:');
-
- if(count($this->repeattypelist)>0){
- foreach($this->repeattypelist as $type => $t){
- $title = $t->getTitle();
- $id = $t->getID();
- $repeattypefield->addMultiOption($id, $title);
+ if(isset($this->params['repeat']) == 1) {
+ $repeattypefield = $this->createElement('select','repeattype');
+ $repeattypefield ->setLabel('Repeat Type:');
+
+ if(count($this->repeattypelist)>0){
+ foreach($this->repeattypelist as $type => $t){
+ $title = $t->getTitle();
+ $id = $t->getID();
+ $repeattypefield->addMultiOption($id, $title);
+ }
}
- }
- $repeattypefield->setRegisterInArrayValidator(false);
- $repeattypefield->setAttrib("disabled", true);
- if(isset($this->params['repeattype'])) {
- $repeattypefield->setValue($this->params['repeattype']);
+ $repeattypefield->setRegisterInArrayValidator(false);
+ $repeattypefield->setAttrib("disabled", true);
+ if(isset($this->params['repeattype'])) {
+ $repeattypefield->setValue($this->params['repeattype']);
+ }
+ $this->addElement($repeattypefield);
}
- $this->addElement($repeattypefield);
- $repeatendfield = $this->createElement('select','repeatend');
- $repeatendfield ->setLabel('Repeat End:');
+ if(isset($this->params['repeat']) == 1) {
+ $repeatendfield = $this->createElement('select','repeatend');
+ $repeatendfield ->setLabel('Repeat End:');
- if(count($this->repeatendlist)>0){
- foreach($this->repeatendlist as $end => $e){
- $title = $e->getTitle();
- $id = $e->getID();
- $repeatendfield->addMultiOption($id, $title);
+ if(count($this->repeatendlist)>0){
+ foreach($this->repeatendlist as $end => $e){
+ $title = $e->getTitle();
+ $id = $e->getID();
+ $repeatendfield->addMultiOption($id, $title);
+ }
}
- }
- $repeatendfield->setRegisterInArrayValidator(false);
- $repeatendfield->setAttrib("disabled", true);
- if(isset($this->params['repeatend'])) {
- $repeatendfield->setValue($this->params['repeatend']);
+ $repeatendfield->setRegisterInArrayValidator(false);
+ $repeatendfield->setAttrib("disabled", true);
+ if(isset($this->params['repeatend'])) {
+ $repeatendfield->setValue($this->params['repeatend']);
+ }
+ $this->addElement($repeatendfield);
}
- $this->addElement($repeatendfield);
if(isset($this->params['repeatend']) && $this->params['repeatend'] == 2) {
if(isset($this->params['repeatdate'])) {