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

Revision 330, 2.0 kB (checked in by aarkerio, 8 months ago)

improvements on Message system

Line 
1
2<?php echo $javascript->link('fckeditor/fckeditor'); ?>
3
4<?php echo $html->addCrumb('Control Tools', '/admin/entries/start'); ?>
5<?php echo $html->addCrumb('News', '/admin/news/listing'); ?>
6<?php echo $html->getCrumbs(' / '); ?>
7
8<?php echo $html->formTag('/admin/news/edit/','post'); ?>
9<?php echo $html->hiddenTag('News/id'); ?>
10
11<fieldset>
12<legend>Edit new</legend>
13<table>
14<tr>
15  <td>
16  <?php echo $form->labelTag( 'News/title', 'Title' );?><br />
17  <?php echo $html->input('News/title', array("size" => 25, "maxlength" => 80)); ?>
18  <?php echo $html->tagErrorMsg('News/title', 'Title is required.'); ?>
19</td>
20<td>
21   <?php echo $form->labelTag( 'News/theme_id', 'Theme:' );?><br />
22   <?php echo $html->selectTag('News/theme_id', $themes, null, null, null, false); ?>
23</td>
24<td>
25   <?php echo $form->labelTag('News/reference', 'Reference:' );?><br />
26   <?php echo $html->input('News/reference', array("size" => 25, "maxlength" => 200)); ?>
27</td>
28<td>
29   <?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) ?>
30</td>
31</tr>
32
33<tr><td colspan="4">
34   <?php echo $form->labelTag( 'News/Body', 'New:' );?>
35   <?php echo $html->textarea('News/body', array("class"=>"formas", "cols"=>80, "rows"=>65)) ?>
36   <?php echo $fck->load('News/body', 'Karamelo', 700, 500); ?>
37   <?php echo $html->tagErrorMsg('News/body', 'Body is required.'); ?>
38</td></tr>
39
40<tr>
41
42  <td><?php echo $form->labelTag( 'News/status', 'Published:' );?><?php echo $html->checkbox('News/status'); ?></td>
43 
44  <td><?php echo $form->labelTag( 'News/comments', 'Comments allowed:' );?><?php echo $html->checkbox('News/comments'); ?></td>
45 
46  <td colspan="2"><?php echo $form->labelTag( 'News/end', 'End edition:' );?><?php echo $html->checkbox('News/end'); ?></td>
47</tr>
48<tr><td colspan="4">
49  <?php echo $html->submit('Send');  ?>
50</fieldset>
51</form>
52</td></tr></table>
Note: See TracBrowser for help on using the browser.