[eluser]liz217[/eluser]
Here is the body from myform_view.php
Code:
<?php // Change the css classes to suit your needs
$attributes = array('class' => '', 'id' => '');
echo form_open('myform/sub', $attributes); ?>
<body>
<table><tbody id="tblBody"><tr><td>
<label for="work_order_type">Work Order Type: <span class="required">*</span></label>
<?php echo form_error('work_order_type'); ?></td><td><label for="customer_account">Customer Account #: <span class="required">*</span></label>
<?php echo form_error('customer_account'); ?></td></tr>
<tr><td>
<?php $options = array('SC Install' =>'SC Install',
'SC Service Call'=>'SC Service Call',
'Former Install'=>'Former Install',
'New Install'=>'New Install',
'Commercial Install'=>'Commercial Install',
'Service Call'=>'Service Call',
'Upgrade'=>'Upgrade');
echo form_dropdown('work_order_type',$options, set_value('work_order_type')) ?>
</td><td colspan=2><?php echo form_input('customer_account', set_value('customer_account'))?>
</td></tr>
<tr><td>
<label for="receiver_type">Receiver Type:</label>
<?php echo form_error('receiver_type'); ?>
</td>
<td colspan=2><label for="access_card">Access Card #:</label>
<?php echo form_error('access_card'); ?></td></tr>
<tr><td>
<?php
$options = array(
''=>'Select One',
'Standard' => 'Standard',
'DVR' => 'DVR',
'HD' => 'HD',
'HD_DVR' => 'HD DVR',
);
echo form_dropdown('receiver_type',$options, set_value('receiver_type')) ?></td>
<td colspan=2>
<?php echo form_input('access_card', set_value('access_card')) ?></td>
</tr>
<tr><td colspan=3><input type="hidden" id="recidnum" name="recidnum" value="1" />
<div id="newfields"></div>
<div>
<input name="add" type="button" class="button" id="add" value="Add Another Receiver">
</div></td></tr>
<tr><td colspan='3'><label for="dish_type_consumed">Dish Type Consumed:</label>
<?php echo form_error('dish_type_consumed'); ?></td>
</tr>
<tr>
<td colspan=3><?php $options = array(''=>'Select One','Standard/18x20'=>'Standard/18x20',
'KAKU'=>'KAKU',
'International/36 inch'=>'International/36 inch');
echo form_dropdown('dish_type_consumed', $options, set_value('dish_type_consumed'));
?>
</td></tr>
<tr><td colspan=3><input type="hidden" id="dishidnum" name="dishidnum" value="1" />
<div id="newDish"></div>
<div>
<input name="add" type="button" class="button" id="add" value="Add Another Dish">
</div></td></tr>
<tr><td colspan=3><label for="multiswitch_consumed">MultiSwitch Consumed:</label>
<?php echo form_error('multiswitch_consumed'); ?></td></tr>
<tr><td colspan=3><?php $options = array(''=>'Select One', '4x8'=>'4x8', '6x8'=>'6x8');
echo form_dropdown('multiswitch_consumed', $options, set_value('multiswitch_consumed'))?></td>
</tr>
<tr><td><label for="payment_for">Payment For:</label>
<?php echo form_error('payment_for'); ?></td>
<td><label for="amount">Amount:</label>
<?php echo form_error('amount'); ?></td>
<td><label for="comissioned">Commissioned:</label>
<?php echo form_error('comissioned'); ?>
</td></tr>
<tr><td><?php echo form_input('payment_for', set_value('payment_for')); ?></td>
<td><?php echo form_input('amount', set_value('amount'));?></td>
<td><?php echo form_checkbox('commissioned', '1'); ?></td>
</tr>
<tr><td colspan=3><input type="hidden" id="payidnum" name="payidnum" value="1" />
<div id="newPay"></div>
<div>
<input name="add" type="button" class="button" id="add" value="Add Another Payment Item">
</div></td></tr>
<tr><td colspan=3><label for="detail">Detail any custom labor or parts:</label>
<?php echo form_error('detail'); ?></td></tr>
<tr><td colspan=3><?php $data = array(
'name' => 'detail',
'id' => 'detail',
'value' => set_value('detail'),
'rows' => '5',
'cols' => '50',
'style' => '',
);
echo form_textarea($data);
?>
</td></tr>
<tr><td colspan=3><label for="notes">Notes:</label>
<?php echo form_error('notes'); ?></td></tr>
<tr><td colspan=3><?php $data = array(
'name' => 'notes',
'id' => 'notes',
'value' => set_value('notes'),
'rows' => '5',
'cols' => '50',
'style' => '',
);
echo form_textarea($data);
?>
</td></tr>
<tr><td colspan=3>
<?php echo form_submit( 'submit', 'Submit'); ?>
</td></tr></tbody>
</table>
<?php echo form_close(); ?>
</body>