Changeset 29 for trunk/app/views/news

Show
Ignore:
Timestamp:
07/13/07 20:42:19 (17 months ago)
Author:
aarkerio
Message:

Add images

Location:
trunk/app/views/news
Files:
3 modified

Legend:

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

    r25 r29  
    1919<td> 
    2020  <?php  
    21     echo $form->labelTag( 'News/subject_id', 'Category' ); 
    22     echo $html->selectTag('News/subject_id', $subjects, null, null, null, false, false);       
     21    echo $form->labelTag( 'News/theme_id', 'Theme:' ); 
     22    echo $html->selectTag('News/theme_id', $themes, null, null, null, false, false);       
    2323  ?> 
    2424</td> 
     
    3838  <?php echo $html->tagErrorMsg('News/body', 'Body is required.'); ?> 
    3939</td></tr> 
    40 <tr><td colspan="4"><?php  
     40<tr><td colspan="2"><?php  
    4141              echo $form->labelTag( 'News/status', 'Published:' ); 
    4242              echo $html->checkbox('News/status', null, array("value"=>1));  
    4343              ?> 
    44 </td></tr> 
     44</td> 
     45 <td colspan="2"> 
     46            <?php  
     47              echo $form->labelTag( 'News/end', 'Finish editing:' ); 
     48              echo $html->checkbox('News/end', null, array("value"=>1));  
     49              ?> 
     50</td> 
     51</tr> 
    4552   
    4653<tr><td colspan="4">  <?php echo $html->submit('Add'); ?> </form></td></tr> 
  • trunk/app/views/news/admin_edit.thtml

    r20 r29  
    1 <?php echo $javascript->link('prototype'); ?> 
    2 <?php echo $javascript->link('myfunctions'); ?> 
    3 <?php echo $javascript->link('poll'); ?> 
    4 <?php echo $javascript->link('fckeditor/fckeditor'); ?>  
     1 
     2<?php echo $javascript->link('fckeditor/fckeditor'); ?> 
     3 
     4<script type="text/javascript"> 
     5   window.onload = timedMsg; 
     6</script> 
     7<?php $session->flash(); ?> 
    58 
    69<?php echo $html->addCrumb('Control Tools', '/admin/entries/index'); ?>  
     
    2225<td> 
    2326  <?php  
    24     echo $form->labelTag( 'News/subject_id', 'Category' ); 
    25     echo $html->selectTag('News/subject_id', $subjects, null, null, null, false, false);       
     27    echo $form->labelTag( 'News/theme_id', 'Theme:' ); 
     28    echo $html->selectTag('News/theme_id', $themes, null, null, null, false, false);       
    2629  ?> 
    2730</td> 
  • trunk/app/views/news/view.thtml

    r22 r29  
    88 <div class="titnew"><?php echo $val['News']['title']; ?></div> 
    99    <div class="redaccion"> 
    10         Desde la redacci&oacute;n de <i><?php echo $val['Theme']['theme']; ?></i>,  
     10        <i>From the <?php echo $val['Theme']['theme']; ?> department</i>,  
    1111        <a style="font-size:7pt;" href="/users/blogger/<?php echo $val['User']['username']; ?>"><?php echo $val['User']['username']; ?></a> informa.  &nbsp;  
    1212        <?php echo $val['News']['created']; ?> 
     
    2222    </div> 
    2323      
    24     <?php  
    25        echo $news->newVote($val['News']['id'], $val['News']['votes']); 
     24    <?php 
    2625       echo $val['News']['body'];  
    2726    ?> 
     
    3534     
    3635    <?php echo $html->link( 
    37                            $html->image('/admin/newwindow.gif', array("alt"=>"Abre Ventana", "title"=>"Abre Ventana")), 
     36                           $html->image('admin/newwindow.gif', array("alt"=>"Open Window", "title"=>"Open Window")), 
    3837                           $val['News']['reference'], 
    3938                           array("onclick"=>"window.open(this.href, '_help', 'status,scrollbars,resizable,width=800,height=600,left=10,top=10,menubar,toolbar')"),  
     
    4645    { 
    4746            $num_coment = count($val["Comentnew"]); 
     47             
    4848            if ( $num_coment > 0 )  
    4949            { 
    50                 echo  "&nbsp;". $html->link($num_coment . ' Comentarios', '/news/display/'.$val['News']['id'], array("style"=>"font-size:7pt")); 
     50                echo  "&nbsp;". $html->link($num_coment . ' Comments', '/news/display/'.$val['News']['id'], array("style"=>"font-size:7pt")); 
    5151            } 
    5252            echo  $html->link('Pon tu comentario', '/news/display/'.$val['News']['id'], array("style"=>"font-size:7pt;padding-left:20px")) . "<br />"; 
     
    5757    echo "</div><br />"; 
    5858     
    59     }  
     59    } 
    6060 
    6161print $pagination;