' . "\n"; /********************************************************************** ********************************************************************** ********************************************************************** ********************************************************************** * Lock Detail Main Section */ $lock = $lock['Lock']; $rows = array(); $rows[] = array('Name', $lock['name']); $rows[] = array('Quantity', $lock['qty']); $rows[] = array('Key', $lock['key']); if (!empty($lock['last_key'])) $rows[] = array('Last Key', $lock['last_key']); $rows[] = array('Comment', $lock['comment']); echo $this->element('table', array('class' => 'item lock detail', 'caption' => 'Lock Information', 'rows' => $rows, 'column_class' => array('field', 'value'))); /********************************************************************** ********************************************************************** ********************************************************************** ********************************************************************** * Supporting Elements Section */ echo '
' . "\n"; /********************************************************************** * Unit Entries */ echo $this->element('units', array (// Grid configuration 'config' => array ('caption' => "Units locked by " . $lock['name'], 'filter' => array('Lock.id' => $lock['id']), 'include' => array('Comment'), 'exclude' => array('Size', 'Area', 'Rent'), ))); /* End "detail supporting" div */ echo '
' . "\n"; /* End page div */ echo '' . "\n";