SHARE
TWEET

Untitled

a guest Jan 23rd, 2012 94 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php echo $this->Form->create('Subpage',array('url'=>'/admin/subpages/edit/'.$s['Subpage']['id']))?>
  2. <?php echo $this->Form->hidden('id',array('value'=>$s['Subpage']['id']))?>
  3. <div>
  4.   <table cellspacing="0" cellpadding="0" class="table">
  5.   <?php $i=0;?>
  6.   <?php foreach($langs as $l):?>
  7.     <tr><tdcolspan="2">Language <?php echo $l['Language']['name']?></td></tr>
  8.     <tr>
  9.       <td class="label">Title</td>
  10.       <td class="text"><?php echo $this->Form->text('Subpage.title.'.$l['Language']['code'],array('value'=>$s['titleTranslation'][$i]['content']))?></td>
  11.     </tr>
  12.     <tr>
  13.       <td class="label">Content</td>
  14.       <td class="text"><?php echo $this->Form->textarea('Subpage.content.'.$l['Language']['code'],array('value'=>$s['contentTranslation'][$i]['content']'class'=>'ckeditor'))?></td>
  15.     </tr>
  16.   <?php $i++;?>
  17.   <?php endforeach;?>
  18.   </table>
  19. </div>
  20. <div><input type="submit" value="Save" class="submit"/></div>
  21. <?php echo $this->Form->end();?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top