Show
Ignore:
Timestamp:
03/25/08 12:38:24 (8 months ago)
Author:
aarkerio
Message:

Newsletter fixed

Location:
trunk/app/views/newsletters
Files:
1 added
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/app/views/newsletters/admin_add.ctp

    r277 r346  
    1 <?php echo $javascript->link('myfunctions'); ?> 
    2 <?php echo $javascript->link('fckeditor/fckeditor'); ?>  
     1<?php  
     2    echo $javascript->link('myfunctions'); 
     3    echo $javascript->link('fckeditor/fckeditor');  
    34 
    4 <?php echo $html->addCrumb('Control Tools', '/admin/entries/start'); ?>  
    5 <?php echo $html->addCrumb('Entries', '/admin/newsletters/listing'); ?>  
    6 <?php echo $html->getCrumbs(' / '); ?> 
    7 <?php echo $html->formTag('/admin/newsletters/add/','post'); ?> 
     5    echo $html->addCrumb('Control Tools', '/admin/entries/start');  
     6    echo $html->addCrumb('Entries', '/admin/newsletters/listing');  
     7    echo $html->getCrumbs(' / ');  
     8 
     9    echo $form->create('Newsletter');  
     10?> 
    811 
    912<fieldset> 
    10 <legend>New n</legend> 
     13<legend>New newsletter</legend> 
    1114 
    1215<table style="margin:0 auto 0 auto;"> 
    13 <tr><td> 
    14    
    15   <?php echo $form->labelTag('Newsletter/title', 'Title:' );?><br />  
    16   <?php echo $html->input('Newsletter/title', array("size" => 50, "maxlength" => 50)); ?> 
    17   <?php echo $html->tagErrorMsg('Newsletter/title', 'Title is required.'); ?> 
     16<tr> 
     17   <td> 
     18    <?php 
     19      echo $form->input('Newsletter.title', array("size" => 50, "maxlength" => 50)); 
     20    ?> 
    1821  </td> 
    1922   <td> 
    20   <?php echo $html->link($html->image('admin/myimages.jpg', array("alt"=>"My Images", "title"=>"My Images")), '#', array("onclick"=>"javascript:window.open('/admin/images/listing/set', 'blank', 'toolbar=no, scrollbars=yes,width=700,height=500')"), null, false) ?></p> 
     23    <?php  
     24        echo $html->link($html->image('admin/myimages.jpg', array("alt"=>"My Images", "title"=>"My Images")),  
     25                         '#',  
     26                         array("onclick"=>"javascript:window.open('/admin/images/listing/set', 'blank', 'toolbar=no, scrollbars=yes,width=700,height=500')"), null, false); ?></p> 
    2127  </td> 
    2228  </tr> 
    2329  <tr><td colspan="2"> 
    24   <?php echo $form->labelTag( 'Newsletter/Body', 'Body:' );?><br /> 
    25   <?php echo $html->textarea('Newsletter/body', array("class"=>"formas", "cols"=>60, "rows"=>17)); ?> 
    26   <?php echo $fck->load('Newsletter/body', 'Karamelo'); ?>  
    27   <?php echo $html->tagErrorMsg('Newsletter/body', 'Body is required.'); ?> 
     30  <?php  
     31    echo $form->label('Newsletter.Body', 'Text:'); 
     32    echo $form->textarea('Newsletter.body', array("cols"=>60, "rows"=>17));  
     33    echo $fck->load('NewsletterBody', 'Karamelo');  
     34  ?> 
    2835  </td> 
    2936</tr>  
    3037<tr> 
    3138  <td> 
    32        <?php echo $form->labelTag( 'Newsletter/status', 'Published:' );?> 
    33        <?php echo $html->checkbox('Newsletter/status', null, array("value"=>1)); ?> 
     39       <?php 
     40            echo $form->label('Newsletter.status', 'Published:'); 
     41            echo $form->checkbox('Newsletter.status', null, array('value'=>1));  
     42        ?> 
    3443  </td> 
    3544   <td> 
    36        <?php echo $form->labelTag( 'Newsletter/end', 'Finish edition:' );?><br /> 
    37        <?php echo $html->checkbox('Newsletter/end', null, array("value" => 1)); ?> 
     45       <?php  
     46            echo $form->label('Newsletter.end', 'Finish edition:' ); 
     47            echo $form->checkbox('Newsletter.end', array('value' => 1));  
     48       ?> 
    3849   </td> 
    3950  </tr> 
    40   <tr><td colspan="2"> 
    41   <?php echo $html->submit('Save'); ?> 
     51  <tr><td colspan="2"></fieldset> 
     52  <?php echo $form->end('Save'); ?> 
    4253</td></tr> 
    4354</table> 
    44 </fieldset> 
    45 </form>