Changeset 29 for trunk/app/views/news
- Timestamp:
- 07/13/07 20:42:19 (17 months ago)
- Location:
- trunk/app/views/news
- Files:
-
- 3 modified
-
admin_add.thtml (modified) (2 diffs)
-
admin_edit.thtml (modified) (2 diffs)
-
view.thtml (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/views/news/admin_add.thtml
r25 r29 19 19 <td> 20 20 <?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); 23 23 ?> 24 24 </td> … … 38 38 <?php echo $html->tagErrorMsg('News/body', 'Body is required.'); ?> 39 39 </td></tr> 40 <tr><td colspan=" 4"><?php40 <tr><td colspan="2"><?php 41 41 echo $form->labelTag( 'News/status', 'Published:' ); 42 42 echo $html->checkbox('News/status', null, array("value"=>1)); 43 43 ?> 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> 45 52 46 53 <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(); ?> 5 8 6 9 <?php echo $html->addCrumb('Control Tools', '/admin/entries/index'); ?> … … 22 25 <td> 23 26 <?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); 26 29 ?> 27 30 </td> -
trunk/app/views/news/view.thtml
r22 r29 8 8 <div class="titnew"><?php echo $val['News']['title']; ?></div> 9 9 <div class="redaccion"> 10 Desde la redacción de <i><?php echo $val['Theme']['theme']; ?></i>,10 <i>From the <?php echo $val['Theme']['theme']; ?> department</i>, 11 11 <a style="font-size:7pt;" href="/users/blogger/<?php echo $val['User']['username']; ?>"><?php echo $val['User']['username']; ?></a> informa. 12 12 <?php echo $val['News']['created']; ?> … … 22 22 </div> 23 23 24 <?php 25 echo $news->newVote($val['News']['id'], $val['News']['votes']); 24 <?php 26 25 echo $val['News']['body']; 27 26 ?> … … 35 34 36 35 <?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")), 38 37 $val['News']['reference'], 39 38 array("onclick"=>"window.open(this.href, '_help', 'status,scrollbars,resizable,width=800,height=600,left=10,top=10,menubar,toolbar')"), … … 46 45 { 47 46 $num_coment = count($val["Comentnew"]); 47 48 48 if ( $num_coment > 0 ) 49 49 { 50 echo " ". $html->link($num_coment . ' Com entarios', '/news/display/'.$val['News']['id'], array("style"=>"font-size:7pt"));50 echo " ". $html->link($num_coment . ' Comments', '/news/display/'.$val['News']['id'], array("style"=>"font-size:7pt")); 51 51 } 52 52 echo $html->link('Pon tu comentario', '/news/display/'.$val['News']['id'], array("style"=>"font-size:7pt;padding-left:20px")) . "<br />"; … … 57 57 echo "</div><br />"; 58 58 59 } 59 } 60 60 61 61 print $pagination;
