' . "\n"; /********************************************************************** ********************************************************************** ********************************************************************** ********************************************************************** * Lock Detail Main Section */ $lock = $lock['Lock']; $rows = array(); $rows[] = array('Name', $lock['name']); if ($lock['qty'] > 1) $rows[] = array('Quantity', $lock['qty']); $rows[] = array('Key', $lock['key']); if (!empty($lock['key_last'])) { $rows[] = array('Previous Key', $lock['key_last'] . " (Changed on " . FormatHelper::datetime($lock['key_ts']) . ")"); } $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 '