<script>
$(document).ready(function(){
$("#phone").dynamicForm("#plus", "#minus");
});
</script>
<div class="photos form">
<?php echo $this->
Form->
create('Photo',
array('type' =>
'file',
'id' =>
'form_add'));?>
<fieldset>
<legend><?php __('Admin Add Photo'); ?></legend>
<?php echo $this->
Form->
input('album_id');
?> <?php echo $this->
Form->
input('picture',
array('type' =>
'file',
'id' =>
'pic'));?>
<p><span><a id="minus" href="">[-]</a> <a id="plus" href="">[+]</a></span></p>
<input id="phone" type="text" name="phone" size="30">
<p><span><a id="minus" href="">[-]</a> <a id="plus" href="">[+]</a></span></p>
<?php
echo $this->
Form->
input('dir',
array('type' =>
'hidden'));
echo $this->
Form->
input('mimetype',
array('type' =>
'hidden'));
echo $this->
Form->
input('filesize',
array('type' =>
'hidden'));
?>
</fieldset>
<?php echo $this->
Form->
end(__
('Submit',
true));?>
</div>