2011-07-20 06:58:18 +00:00
|
|
|
<? echo $javascript->link('ckeditor/ckeditor');
|
|
|
|
|
echo $javascript->link('ckeditor/adapters/jquery');
|
|
|
|
|
?>
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
$('.ckeditor').ckeditor(config);
|
|
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|
|
2010-02-17 03:34:17 +00:00
|
|
|
|
2009-02-23 02:22:19 +00:00
|
|
|
<div class="addproduct">
|
|
|
|
|
<?php echo $form->create('Product', array('id'=>'productaddform', 'class'=>'addproduct'));?>
|
2009-01-13 05:13:18 +00:00
|
|
|
<fieldset>
|
|
|
|
|
<legend><?php __('Add Product');?></legend>
|
|
|
|
|
<?php
|
2010-01-10 18:05:04 +00:00
|
|
|
echo $form->input('principle_id', array('empty' => 'Choose a Principle'));
|
2009-09-10 03:23:39 +00:00
|
|
|
|
2009-11-16 03:31:10 +00:00
|
|
|
echo $form->input('title', array('class' => 'required', 'title'=>'Please Enter the Title for the Product'));
|
2009-10-06 10:29:00 +00:00
|
|
|
echo $form->input('description', array('id' => 'description', 'class'=>'ckeditor'));
|
|
|
|
|
|
2011-11-14 02:40:06 +00:00
|
|
|
|
|
|
|
|
echo $form->input('item_code');
|
|
|
|
|
echo $form->input('item_description');
|
|
|
|
|
|
|
|
|
|
|
2009-02-23 02:22:19 +00:00
|
|
|
echo $form->input('notes');
|
2009-11-16 03:31:10 +00:00
|
|
|
|
2010-02-17 03:34:17 +00:00
|
|
|
|
2009-09-11 02:50:16 +00:00
|
|
|
|
|
|
|
|
|
2009-01-13 05:13:18 +00:00
|
|
|
?>
|
|
|
|
|
</fieldset>
|
2009-11-16 03:31:10 +00:00
|
|
|
<?php echo $form->end(array('label' => 'Add Product'));
|
2010-02-17 03:34:17 +00:00
|
|
|
|
2009-11-16 03:31:10 +00:00
|
|
|
?>
|
|
|
|
|
|
|
|
|
|
|
2009-01-13 05:13:18 +00:00
|
|
|
</div>
|
|
|
|
|
<div class="actions">
|
|
|
|
|
<ul>
|
|
|
|
|
<li><?php echo $html->link(__('List Products', true), array('action'=>'index'));?></li>
|
|
|
|
|
<li><?php echo $html->link(__('List Principles', true), array('controller'=> 'principles', 'action'=>'index')); ?> </li>
|
|
|
|
|
<li><?php echo $html->link(__('New Principle', true), array('controller'=> 'principles', 'action'=>'add')); ?> </li>
|
|
|
|
|
<li><?php echo $html->link(__('List Product Options', true), array('controller'=> 'product_options', 'action'=>'index')); ?> </li>
|
|
|
|
|
<li><?php echo $html->link(__('New Product Option', true), array('controller'=> 'product_options', 'action'=>'add')); ?> </li>
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|