PHP Classes
elePHPant
Icontem

File: View/Articles/admin_form.ctp

Recommend this page to a friend!
  Classes of Andraž  >  pingvincek  >  View/Articles/admin_form.ctp  >  Download  
File: View/Articles/admin_form.ctp
Role: Example script
Content type: text/plain
Description: Example script
Class: pingvincek
Manage a site for organizing dates between people
Author: By
Last change:
Date: 8 months ago
Size: 1,167 bytes
 

Contents

Class file image Download
<div class="articles form">
<?php echo $this->Form->create('Article');?>
<fieldset>
        <legend><?php echo __('?lanek');?></legend>
    <?php
       
echo $this->Form->input('id');
        echo
$this->Form->input('title', array('label' => 'Naslov'));
        echo
$this->Form->input('body', array('label' => 'Vsebina'));
   
?>
</fieldset>
    <fieldset>
        <legend><?php echo __('SEO');?></legend>
        <?php
           
echo $this->Form->input('slug', array('label' => 'SLUG (naslov-clanka)'));
            echo
$this->Form->input('description', array('label' => 'Kratek opis/povzetek ?lanka'));
            echo
$this->Form->input('keywords', array('label' => 'Klju?ne besede (kljucna, beseda, clanek)'));
       
?>
</fieldset>
    <fieldset>
        <legend><?php echo __('Ostalo');?></legend>
        <?php
           
echo $this->Form->input('published', array('label' => 'Objavljen'));
            echo
$this->Form->input('start', array('label' => 'Datum pri?etka objave', 'dateFormat' => 'DMY'));
       
?>
</fieldset>
<?php echo $this->Form->end('Shrani');?>
</div>

<div class="actions">
    <ul>
        <li><?php echo $this->Html->link(__('Spisek ?lankov'), array('action'=>'index'));?></li>
    </ul>
</div>

<script>
    $( '#ArticleBody' ).ckeditor();
</script>