~mparic/+junk/openauctionlive

« back to all changes in this revision

Viewing changes to app/controllers/action_logs_controller.php

  • Committer: Michael Paric
  • Date: 2012-01-07 20:21:14 UTC
  • Revision ID: mparic@compbizsolutions.com-20120107202114-6q89jiel6y3rbwgc
Updated validation rules to prevent duplicate Bid and Bidder entries; updated return message color for successful form entry to differentiate from error; added simlink in img/ for image to be used in reports - just change what auction_logo.jpg points to instead of changing View code.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
                if (!empty($this->data)) {
21
21
                        $this->ActionLog->create();
22
22
                        if ($this->ActionLog->save($this->data)) {
23
 
                                $this->Session->setFlash(__('The action log has been saved', true));
 
23
                                $this->Session->setFlash(__('The action log has been saved', true),'default', array('class'=>'success-message'));
24
24
                                $this->redirect(array('action' => 'index'));
25
25
                        } else {
26
26
                                $this->Session->setFlash(__('The action log could not be saved. Please, try again.', true));
37
37
                }
38
38
                if (!empty($this->data)) {
39
39
                        if ($this->ActionLog->save($this->data)) {
40
 
                                $this->Session->setFlash(__('The action log has been saved', true));
 
40
                                $this->Session->setFlash(__('The action log has been saved', true),'default', array('class'=>'success-message'));
41
41
                                $this->redirect(array('action' => 'index'));
42
42
                        } else {
43
43
                                $this->Session->setFlash(__('The action log could not be saved. Please, try again.', true));
56
56
                        $this->redirect(array('action'=>'index'));
57
57
                }
58
58
                if ($this->ActionLog->delete($id)) {
59
 
                        $this->Session->setFlash(__('Action log deleted', true));
 
59
                        $this->Session->setFlash(__('Action log deleted', true),'default', array('class'=>'success-message'));
60
60
                        $this->redirect(array('action'=>'index'));
61
61
                }
62
62
                $this->Session->setFlash(__('Action log was not deleted', true));