1. <script>
  2. $(document).ready(function(){
  3. $("#phone").dynamicForm("#plus", "#minus");
  4. });
  5. </script>
  6.  
  7. <div class="photos form">
  8. <?php echo $this->Form->create('Photo', array('type' => 'file', 'id' => 'form_add'));?>
  9. <fieldset>
  10. <legend><?php __('Admin Add Photo'); ?></legend>
  11. <?php echo $this->Form->input('album_id'); ?>
  12. <?php echo $this->Form->input('picture', array('type' => 'file', 'id' => 'pic'));?>
  13. <p><span><a id="minus" href="">[-]</a> <a id="plus" href="">[+]</a></span></p>
  14. <input id="phone" type="text" name="phone" size="30">
  15. <p><span><a id="minus" href="">[-]</a> <a id="plus" href="">[+]</a></span></p>
  16.  
  17. <?php
  18. echo $this->Form->input('dir', array('type' => 'hidden'));
  19. echo $this->Form->input('mimetype', array('type' => 'hidden'));
  20. echo $this->Form->input('filesize', array('type' => 'hidden'));
  21. ?>
  22. </fieldset>
  23. <?php echo $this->Form->end(__('Submit', true));?>
  24. </div>