Subversion Repositories SmartDukaan

Rev

Rev 14849 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 14849 Rev 14928
Line 52... Line 52...
52
				$this->Session->setFlash(__('The notification rule has been saved.'));
52
				$this->Session->setFlash(__('The notification rule has been saved.'));
53
				return $this->redirect(array('action' => 'index'));
53
				return $this->redirect(array('action' => 'index'));
54
			} else {
54
			} else {
55
				$this->Session->setFlash(__('The notification rule could not be saved. Please, try again.'));
55
				$this->Session->setFlash(__('The notification rule could not be saved. Please, try again.'));
56
			}
56
			}
57
		}
57
		}		
58
	}
58
	}
59
 
59
 
60
/**
60
/**
61
 * edit method
61
 * edit method
62
 *
62
 *
Line 140... Line 140...
140
				return $this->redirect(array('action' => 'index'));
140
				return $this->redirect(array('action' => 'index'));
141
			} else {
141
			} else {
142
				$this->Session->setFlash(__('The notification rule could not be saved. Please, try again.'));
142
				$this->Session->setFlash(__('The notification rule could not be saved. Please, try again.'));
143
			}
143
			}
144
		}
144
		}
-
 
145
		$popup_types = array('forced'=>'Forced','clicktoskip'=>'Click To Skip','dismisstoskip'=>'Dismiss To Skip');
145
		$types = array('link'=>'Link','popup'=>'Popup');//,'inline'=>'Inline')
146
		$types = array('link'=>'Link','popup'=>'Popup');//,'inline'=>'Inline')
146
		$this->set(compact('types'));
147
		$this->set(compact('types','popup_types'));
147
	}
148
	}
148
 
149
 
149
/**
150
/**
150
 * admin_edit method
151
 * admin_edit method
151
 *
152
 *
Line 166... Line 167...
166
			}
167
			}
167
		} else {
168
		} else {
168
			$options = array('conditions' => array('NotificationRule.' . $this->NotificationRule->primaryKey => $id));
169
			$options = array('conditions' => array('NotificationRule.' . $this->NotificationRule->primaryKey => $id));
169
			$this->request->data = $this->NotificationRule->find('first', $options);
170
			$this->request->data = $this->NotificationRule->find('first', $options);
170
		}
171
		}
-
 
172
		$popup_types = array('forced'=>'Forced','clicktoskip'=>'Click To Skip','dismisstoskip'=>'Dismiss To Skip');
-
 
173
		$types = array('link'=>'Link','popup'=>'Popup');//,'inline'=>'Inline')
-
 
174
		$this->set(compact('types','popup_types'));
171
	}
175
	}
172
 
176
 
173
/**
177
/**
174
 * admin_delete method
178
 * admin_delete method
175
 *
179
 *