| 1 | <?php |
|---|
| 2 | echo $javascript->link('fckeditor/fckeditor'); |
|---|
| 3 | |
|---|
| 4 | echo $html->addCrumb('Control Panel', '/admin/entries/start'); |
|---|
| 5 | echo $html->addCrumb(__('Newsletters', true), '/admin/newsletters/listing'); |
|---|
| 6 | echo $html->getCrumbs('/'); |
|---|
| 7 | |
|---|
| 8 | echo $form->create('Newsletter'); |
|---|
| 9 | ?> |
|---|
| 10 | <fieldset> |
|---|
| 11 | <legend><?php __('New newsletter'); ?></legend> |
|---|
| 12 | |
|---|
| 13 | <table style="margin:0 auto 0 auto;"> |
|---|
| 14 | <tr> |
|---|
| 15 | <td> |
|---|
| 16 | <?php echo $form->input('Newsletter.title', array('size'=>50, 'maxlength' => 50, 'label'=>__('Title', true))); ?> |
|---|
| 17 | </td> |
|---|
| 18 | <td> |
|---|
| 19 | <?php |
|---|
| 20 | echo $html->link($html->image('admin/myimages.jpg', array('alt'=>__('My Images', true), 'title'=>__('My Images', true))), |
|---|
| 21 | '#', |
|---|
| 22 | array("onclick"=>"javascript:window.open('/admin/images/listing/set', 'blank', 'toolbar=no, scrollbars=yes,width=700,height=500')"), null, false); ?> |
|---|
| 23 | </td> |
|---|
| 24 | </tr> |
|---|
| 25 | <tr><td colspan="2"> |
|---|
| 26 | <?php |
|---|
| 27 | echo $form->textarea('Newsletter.body', array('cols'=>60, 'rows'=>17)); |
|---|
| 28 | echo $form->error('Newsletter.body'); |
|---|
| 29 | echo $fck->load('NewsletterBody', 'Karamelo'); |
|---|
| 30 | ?> |
|---|
| 31 | </td> |
|---|
| 32 | </tr> |
|---|
| 33 | <tr> |
|---|
| 34 | <td> |
|---|
| 35 | <?php |
|---|
| 36 | echo $form->label('Newsletter.status', __('Published', true)); |
|---|
| 37 | echo $form->checkbox('Newsletter.status'); |
|---|
| 38 | |
|---|
| 39 | echo $form->label('Newsletter.public', __('Public', true)); |
|---|
| 40 | echo $form->checkbox('Newsletter.public'); |
|---|
| 41 | ?> |
|---|
| 42 | </td> |
|---|
| 43 | <td> |
|---|
| 44 | <?php |
|---|
| 45 | echo $form->label('Newsletter.end', __('Finish edition', true) ); |
|---|
| 46 | echo $form->checkbox('Newsletter.end'); |
|---|
| 47 | ?> |
|---|
| 48 | </td> |
|---|
| 49 | </tr> |
|---|
| 50 | <tr><td colspan="2"> |
|---|
| 51 | <?php echo $form->end(__('Save', true)); ?> |
|---|
| 52 | </fieldset> |
|---|
| 53 | </td></tr> |
|---|
| 54 | </table> |
|---|