Changeset 76 for trunk/app/views/news

Show
Ignore:
Timestamp:
09/05/07 10:54:01 (15 months ago)
Author:
aarkerio
Message:

add some files

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/app/views/news/display.thtml

    r75 r76  
    3737         $i = 1; 
    3838            echo '<div id="cnews">'; 
    39             foreach($data["Commentnew"] as $v) 
     39            foreach($data["Commentnews"] as $v) 
    4040            { 
    4141              $bg = ($i%2==0) ? "#e2e2e2" : "#fff"; 
     
    5252<p> 
    5353<?php  
    54    echo $html->formTag('/comentnews/add/','post', array("onsubmit"=>"return validateNew()")); 
    55    echo $html->hiddenTag('Comentnews/new_id', $data['News']['id']);  
    56    echo $html->hiddenTag('Comentnews/level', 1); 
    57    echo $html->hiddenTag('Comentnews/comentnew_id', 1); 
     54   echo $html->formTag('/commentnews/add/','post', array("onsubmit"=>"return validateNew()")); 
     55   echo $html->hiddenTag('Commentnews/new_id', $data['News']['id']);  
     56   echo $html->hiddenTag('Commentnews/level', 1); 
     57   echo $html->hiddenTag('Commentnews/comentnew_id', 1); 
    5858    
    5959   // echo $html->image($html->url('/news/captcha', true), array("alt"=>"kcaptcha"), true);  
     
    6565  if ( $othAuth->user('username') )  
    6666  { 
    67      echo $html->hiddenTag('Comentnews/user_id', $othAuth->user('id')); 
    68      echo $html->hiddenTag('Comentnews/name', $othAuth->user('username')); 
     67     echo $html->hiddenTag('Commentnews/user_id', $othAuth->user('id')); 
     68     echo $html->hiddenTag('Commentnews/name', $othAuth->user('username')); 
    6969     echo $othAuth->user('username') . "  escribe:"; 
    7070  } 
    7171  else 
    7272  { 
    73      echo $html->hiddenTag('Comentnews/user_id', 0); 
    74      echo $html->input('Comentnews/name', array("size" => 25, "maxlength" => 50)); 
    75      echo $form->labelTag( 'Comentnews/name', ' Nombre (requerido)' ); 
    76      echo $html->tagErrorMsg('Comentnews/name', 'Name is required.'); 
     73     echo $html->hiddenTag('Commentnews/user_id', 0); 
     74     echo $html->input('Commentnews/name', array("size" => 25, "maxlength" => 50)); 
     75     echo $form->labelTag( 'Commentnews/name', ' Nombre (requerido)' ); 
     76     echo $html->tagErrorMsg('Commentnews/name', 'Name is required.'); 
    7777      
    7878     echo '<br /><br /> <img src="'. $html->url('/comentnews/captcha') .'" alt="Captcha" /> <br />'; 
    79      echo $html->input('Comentnews/captcha', array("size" => 6, "maxlength" => 6)); 
    80      echo $form->labelTag( 'Comentnews/cptcha', 'Introduce el codigo, todas la letras son minusculas' ); 
     79     echo $html->input('Commentnews/captcha', array("size" => 6, "maxlength" => 6)); 
     80     echo $form->labelTag( 'Commentnews/cptcha', 'Introduce el codigo, todas la letras son minusculas' ); 
    8181  } 
    8282  ?> 
    8383   
    84   <?php echo $form->labelTag( 'Comentnews/comment', 'Comentario:' );?><br /> 
    85   <?php echo $html->textarea('Comentnews/comment', array("cols"=>70, "rows"=>10)) ?> 
    86   <?php echo $html->tagErrorMsg('Comentnews/comment', 'Comment is required.'); ?> 
     84  <?php echo $form->labelTag( 'Commentnews/comment', 'Comentario:' );?><br /> 
     85  <?php echo $html->textarea('Commentnews/comment', array("cols"=>70, "rows"=>10)) ?> 
     86  <?php echo $html->tagErrorMsg('Commentnews/comment', 'Comment is required.'); ?> 
    8787  <br /> 
    8888 </p>