Files
pmgr/site/views/locks/view.ctp
Abijah bda18fc78a Changed field last_key to key_last
git-svn-id: file:///svn-source/pmgr/branches/v0.3_work@1047 97e9348a-65ac-dc4b-aefc-98561f571b83
2014-03-04 00:47:16 +00:00

61 lines
1.9 KiB
PHP

<?php /* -*- mode:PHP -*- */
echo '<div class="lock view">' . "\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 '<div CLASS="detail supporting">' . "\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 '</div>' . "\n";
/* End page div */
echo '</div>' . "\n";