First pass at implementing a new lock tracking mechnism. Not complete, but the basics seem to work

git-svn-id: file:///svn-source/pmgr/branches/v0.3_work@1038 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
Abijah
2014-03-03 03:25:29 +00:00
parent 8249ecc5cd
commit e08afdd8b1
9 changed files with 597 additions and 7 deletions

43
site/views/locks/view.ctp Normal file
View File

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