Changeset 404
- Timestamp:
- 04/16/08 03:39:00 (9 months ago)
- Location:
- trunk/app
- Files:
-
- 7 modified
-
controllers/components/search.php (modified) (1 diff)
-
controllers/discussions_controller.php (modified) (3 diffs)
-
controllers/entries_controller.php (modified) (2 diffs)
-
views/discutions/add.ctp (modified) (1 diff)
-
views/elements/search.ctp (modified) (1 diff)
-
views/news/view.ctp (modified) (3 diffs)
-
views/users/entry.ctp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/controllers/components/search.php
r71 r404 2 2 /** 3 3 * 4 * GPLv3 Chipotle Software 2002-200 74 * GPLv3 Chipotle Software 2002-2008 5 5 * 6 6 **/ 7 loadModel('Entry');8 loadModel('News');9 loadModel('Podcast');10 loadModel('Faq');11 loadModel('Glossary');12 loadModel('Lesson');7 App::import('Model', 'Entry'); 8 App::import('Model', 'News'); 9 App::import('Model', 'Podcast'); 10 App::import('Model', 'Faq'); 11 App::import('Model', 'Glossary'); 12 App::import('Model', 'Lesson'); 13 13 14 14 class SearchComponent extends Object -
trunk/app/controllers/discussions_controller.php
r403 r404 12 12 uses('sanitize'); 13 13 14 //App::import('Model','User');14 App::import('Model','User'); 15 15 16 16 class DiscussionsController extends AppController … … 24 24 public function beforeFilter() 25 25 { 26 $this->Auth->allow(array('captcha', 'a dd', 'rss'));26 $this->Auth->allow(array('captcha', 'agregar', 'rss')); 27 27 parent::beforeFilter(); 28 28 } … … 40 40 } 41 41 42 public function a dd()42 public function agregar() 43 43 { 44 44 $this->layout = 'portal'; -
trunk/app/controllers/entries_controller.php
r400 r404 8 8 * @package Karamelo 9 9 */ 10 // file : app/controller/ colleges_controller.php10 // file : app/controller/entries_controller.php 11 11 12 12 uses('sanitize'); … … 16 16 public $helpers = array('Ajax', 'Fck', 'Gags'); 17 17 18 public $components = array('Edublog', 'Portal' );18 public $components = array('Edublog', 'Portal', 'Search'); 19 19 20 20 public function beforeFilter() -
trunk/app/views/discutions/add.ctp
r268 r404 1 1 <h1>La vista</h1> -
trunk/app/views/elements/search.ctp
r241 r404 24 24 </script> 25 25 <?php 26 echo $form->create('Entry', array( "action"=>"return chkSearch();"));27 echo $form->input('Entry /terms', array("size" => 12, "value"=> "Search...", "maxlength" => 40,26 echo $form->create('Entry', array('action'=>'search', 'onsubmit'=>"return chkSearch()")); 27 echo $form->input('Entry.terms', array('label'=>'', 'size' =>12, 'value' => "Search...", "maxlength" => 40, 28 28 "onblur" => "if(this.value=='') this.value='Search...';", 29 29 "onfocus"=>"if(this.value=='Search...') this.value='';")); -
trunk/app/views/news/view.ctp
r401 r404 53 53 echo "</div>"; 54 54 55 echo $form->create('Discussion', array('action'=>'add')); 55 echo $form->create('Discussion', array('action'=>'agregar')); 56 ?> 57 <fieldset> 58 <legend>Write comment:</legend> 59 <?php 56 60 echo $form->hidden('Discussion.new_id', array('value'=>$data['News']['id'])); 57 61 echo $form->hidden('Discussion.level', array('value'=>1)); 58 62 echo $form->hidden('Discussion.comentnew_id', array('value'=>1)); 59 ?> 60 <fieldset> 61 <legend>Add comment:</legend> 62 <?php 63 63 64 if ( isset( $cU['User']['id'] ) ): 64 65 echo $form->hidden('Discussion.user_id', array('value'=> $cU['User']['id'])); … … 70 71 echo $form->hidden('Discussion.user_id', array('value'=> 0)); 71 72 echo $form->input('Discussion.name', array('size'=> 25, 'maxlength' => 40)); 72 73 73 echo '<br /><br /> <img src="'. $html->url('/discussions/captcha') .'" alt="Captcha" title="Captcha" /> <br />'; 74 74 echo $form->input('Discussion.captcha', array("size" => 6, "maxlength" => 6)); … … 76 76 endif; 77 77 78 echo $form->textarea('Discussion.comment', array('cols'=>60, 'rows'=>10)) . $form->end('Send comment'); ?>78 echo $form->textarea('Discussion.comment', array('cols'=>60, 'rows'=>10)) . $form->end('Send comment'); 79 79 80 81 <?php }?>80 } 81 ?> 82 82 </div><!-- bodynew --> -
trunk/app/views/users/entry.ctp
r325 r404 43 43 $user = ( $v["user_id"] != 0 ) ? $html->link($v["username"], '/users/about/'.$v["username"]) : $v["username"]; 44 44 45 echo '<div style="border:2px dotted #e2e2e2;margin:15px 0 15px 0;padding:4px;background-color:'.$bg.'">' . $k++ . '.- <b>' . $user . '</b> wrote: '; 46 echo '<br /><br />'; 45 echo '<div style="border:2px dotted #e2e2e2;margin:15px 0 15px 0;padding:8px;background-color:'.$bg.'">' . $k++ . '.- <b>' . $user . '</b> wrote: '; 47 46 48 echo $v['comment'] . '<br /><br />';47 echo $v['comment']; 49 48 50 49 echo '<span class="small" style="font-size:7pt;font-weight:bold;">' . $v['created'] . '</span></div>'; … … 66 65 echo $cU['User']['username'] . " writes:"; 67 66 ?> 68 <p>67 69 68 <?php echo $form->label('Comment.comment', 'Comment:' );?><br /> 70 69 <?php echo $form->textarea('Comment.comment', array("rows" => 10, "cols" => 50)); ?> 71 70 <?php echo $form->error('Comment.comment', 'A comment is required.'); ?> 72 </p>71 73 72 <br /></fieldset> 74 73 <?php echo $form->end('Send'); ?>
