view
------------------------
h4><?php echo __("[o] Basic data about the engagement:",true); ?></h4>
<fieldset>
<table class="input">
<tr>
<td><table class="input">
<tr><td class="ti-td1"><?php echo
$form->label('category_id',
__('Category', true).':<span class="red">*</span>');?></td>
<td class="ti-td2"><?php echo
$form->input('category_id',
array('label' => false, 'options' => $categories, 'empty' => '--' ));?
></td>
</tr>
<tr><td class="ti-td1"><?php echo $form->label( 'price',
__('Amount', true).':<span class="red">*</span>');?></td>
<td class="ti-td2"><?php echo $form->input(
'price',
array('label'=> false, 'style' =>'width: 5.5em' ));?></td>
</tr>
<tr><td class="ti-td1"><?php echo $form->label(
'taxRate', __('Tax
rate', true).':<span class="red">*</span>');?></td>
<td class="ti-td2"><?php echo $form->input(
'taxRate',
array('label'=> false, 'style' => 'width: 5.5em'));?></td>
</tr>
</table></td>
<td><table class="input">
<tr><td class="ti-td1"><?php echo
$form->label('description',
__('Description', true).':<span class="red">*</span>');?></td>
<td class="ti-td2"><?php echo
$form->input('description',
array('label' => false, 'rows' => 7));?></td>
</tr>
</table></td>
</tr>
</table>
<?php
$options = array('url' => 'getprice', 'update' => 'ItemPrice',
'frequency' => 0 );
echo $ajax->observeField('ItemCategoryId', $options );
?>
</fieldset>
<h4><?php echo __("[x]",true); ?></h4>
<?php echo $this->element('submit'); ?>
--------------------------------------------------------------------
Please help me to write function "getprice" in controller to update
value of field "Price"?
thanks
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en