root/trunk/app/views/entries/admin_edit.ctp

Revision 861, 1.9 kB (checked in by aarkerio, 4 weeks ago)

Better helps

Line 
1<?php 
2  echo $javascript->link('fckeditor/fckeditor');
3  echo $html->addCrumb('Control Panel', '/admin/entries/start');
4  echo $html->addCrumb(__('Entries', true), '/admin/entries/listing');
5  echo $html->getCrumbs(' / ');
6  echo $form->create('Entry', array('action' => 'edit')); 
7  if (!empty($this->data) && isset($this->data['Entry']['id'])):
8     echo $form->hidden('Entry.id');
9     $legend = __('Edit Entry', true);
10  else:
11     $legend = __('New Entry', true);
12  endif;
13?>
14<fieldset>
15<legend><?php echo $legend; ?></legend>
16<table style="margin:0 auto 0 auto;">
17<tr><td>
18<?php echo $form->input('Entry.title', array('size' => 40, 'maxlength' => 50, 'label'=>__('Title', true))); ?>
19</td><td>
20 <?php
21   echo $form->label('Entry.subject_id', __('Subject', true));
22   echo $form->select('Entry.subject_id', $subjects, null, array(), false);
23  ?>
24</td><td>
25<?php
26  echo $html->link($html->image('admin/myimages.jpg', array('alt'=>__('My Images', true), 'title'=>__('My Images',true))), '#', array("onclick"=>"javascript:window.open('/admin/images/listing/set', 'blank', 'toolbar=no, scrollbars=yes,width=700,height=500')"), null, false);
27?>
28  </td>
29  </tr>
30  <tr>
31 <td colspan="3">
32  <?php
33     echo $form->textarea('Entry.body', array('cols'=>80, 'rows'=>22));
34     echo $fck->load('EntryBody', 'Karamelo');
35     echo $form->error('Entry.body');
36  ?>
37  </td></tr>
38  <tr><td>
39    <?php
40        echo $form->label('Entry.status', __('Published',true) );
41        echo $form->checkbox('Entry.status');
42    ?>
43  </td>
44  <td>
45 <?php
46   echo $form->label('Entry.discution', __('Allow comments', true) );
47   echo $form->checkbox('Entry.discution');
48?>
49  </td>
50  <td>
51 <?php
52      echo $form->label('Entry.end', __('Finish edition', true) );
53      echo $form->checkbox('Entry.end');
54  ?>
55   </td>
56  </tr>
57  <tr>
58  <td colspan="3">
59       <?php echo $form->end(__('Save', true)); ?>
60  </td>
61  </tr>
62</table>
63</fieldset>
Note: See TracBrowser for help on using the browser.