Changeset 108
- Timestamp:
- 07/18/07 13:56:42 (1 year ago)
- Files:
-
- branch/controllers/posts_controller.php (modified) (2 diffs)
- branch/views/posts/admin_index.ctp (modified) (3 diffs)
- branch/webroot/css/default.css (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branch/controllers/posts_controller.php
r89 r108 111 111 $this->Post->create(); 112 112 if($this->Post->save($this->data)) { 113 //$this->Session->setFlash('The Post has been saved');114 //$this->redirect(array('action'=>'index'), null, true);113 $this->Session->setFlash('The Post has been saved'); 114 $this->redirect(array('action'=>'index'), null, true); 115 115 } else { 116 116 $this->Session->setFlash('The Post could not be saved. Please, try again.'); … … 119 119 $this->set('access_levels', $this->Group->generateList(null, 'Group.name ASC', null,'{n}.Group.level', '{n}.Group.name')); 120 120 $this->set('subjects', $this->Post->Subject->generateList()); 121 $this->set('images', $this->Post->Image->generateList( ));121 $this->set('images', $this->Post->Image->generateList(null,null,null,'{n}.Image.id', '{n}.Image.alt')); 122 122 } 123 123 branch/views/posts/admin_index.ctp
r60 r108 4 4 5 5 <table cellpadding="0" cellspacing="0"> 6 <thead> 6 7 <tr> 7 8 <th><?php echo $paginator->sort('id');?></th> … … 17 18 <th>Actions</th> 18 19 </tr> 20 </thead> 21 <tbody> 19 22 <?php $row = 0; ?> 20 23 <?php foreach ($posts as $post): ?> … … 41 44 <?php $row++; ?> 42 45 <?php endforeach; ?> 46 </tbody> 43 47 </table> 44 48 branch/webroot/css/default.css
r107 r108 10 10 div#hd { 11 11 height:130px; 12 background: #45484B; 13 /*background: #fff url('../img/NoHalfMeasures.jpg') no-repeat;*/ 12 background: #45484B /*url('../img/NoHalfMeasures.jpg') no-repeat*/; 14 13 color: #fff; 15 14 }