load->helper('form');
$link_form = 'building/doassign';
$attr_deass = array(
'name' => 'submit',
'value' => 'Deassign',
'class' => 'submit');
$attr_input = array(
'name' => 'num_assign',
'maxlength' => '10',
'size' => '8',
'class' => 'input');
$attr_assign = array(
'name' => 'submit',
'value' => 'Assign',
'class' => 'submit');
?>
=form_open($link_form); ?>
=form_hidden('slotid', $slotid); ?>
=form_hidden('assignmentid', $row['id']); ?>
Assigned =$row['name']; ?>
=$row['max']; ?>/=$ass['num_unit']; ?>
=form_submit($attr_deass); ?>
=form_close(); ?>
=form_open($link_form); ?>
=form_hidden('slotid', $slotid); ?>
=form_hidden('assignmentid', $row['id']); ?>
(You have:
=$u['unitcount']; ?>)
0)
=$row['max']; ?>/=form_input($attr_input); ?>
=form_submit($attr_assign); ?>
=form_close(); ?>
This building doesn't have assignments!