Advertisement
Guest User

Untitled

a guest
Jul 31st, 2014
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.43 KB | None | 0 0
  1. <?php
  2. echo $this->Html->script("reference.js");
  3. $inputs = array (
  4. 'Landkreis' => 'lk',
  5. 'Jahr' => 'Y',
  6. 'Name' => 'name',
  7. 'Inhaber' => 'owner',
  8. 'Strasse' => 'strasse',
  9. 'Hausnummer' => 'hausnr',
  10. 'PLZ' => 'plz',
  11. 'Ort' => 'ort',
  12. 'Link' => 'link',
  13. 'Text_Link' => 'text_link',
  14. 'Essen' => 'essen'
  15. );
  16. ?>
  17. <div class="container">
  18. <?php
  19. echo $this->Form->create('Reference', array(
  20. 'type' => 'file'
  21. )
  22. );
  23. foreach ( $inputs as $display => $variable )
  24. {
  25. $inputoptions = array(
  26. 'class' => 'form-control input-lg',
  27. 'required' => 'true',
  28. 'label' => ''
  29. );
  30. echo '<div class="input-group input-group-lg">';
  31. echo '<span class="input-group-addon">' . $display . ':</span>';
  32. echo $this->Form->input($variable, $inputoptions);
  33. echo '</div>';
  34. }
  35. echo $this->Form->input('Image.0.ReferencePicture', array('type' => 'file', 'label' => 'Image'));
  36. echo $this->Form->input('Image.1.ReferencePicture', array('type' => 'file', 'label' => 'Image'));
  37. echo '<div class="input-group input-group-lg">';
  38. echo '<span class="input-group-addon">Thumbnail:</span>';
  39. echo $this->Form->input("Reference.thumbnail",array('type' => 'file', 'label' => ''));
  40. echo '</div>';
  41. echo '<div id="pictures"></div>';
  42. echo $this->Form->button('Referenz hinzufuegen', array(
  43. 'class' => 'btn btn-default submit',
  44. 'type' => 'submit')
  45. );
  46. echo $this->Form->end();
  47. ?>
  48.  
  49. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement