Changeset 346 for trunk/app/views/newsletters/admin_add.ctp
- Timestamp:
- 03/25/08 12:38:24 (10 months ago)
- Files:
-
- 1 modified
-
trunk/app/views/newsletters/admin_add.ctp (modified) (1 diff)
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'); 3 4 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 ?> 8 11 9 12 <fieldset> 10 <legend>New n </legend>13 <legend>New newsletter</legend> 11 14 12 15 <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 ?> 18 21 </td> 19 22 <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> 21 27 </td> 22 28 </tr> 23 29 <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 ?> 28 35 </td> 29 36 </tr> 30 37 <tr> 31 38 <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 ?> 34 43 </td> 35 44 <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 ?> 38 49 </td> 39 50 </tr> 40 <tr><td colspan="2"> 41 <?php echo $ html->submit('Save'); ?>51 <tr><td colspan="2"></fieldset> 52 <?php echo $form->end('Save'); ?> 42 53 </td></tr> 43 54 </table> 44 </fieldset>45 </form>
