Added more lock functionality, and fixed a couple bugs

git-svn-id: file:///svn-source/pmgr/branches/v0.3_work@1039 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
Abijah
2014-03-03 06:04:00 +00:00
parent e08afdd8b1
commit ec0363325c
8 changed files with 58 additions and 12 deletions

View File

@@ -2,11 +2,13 @@
// Define the table columns
$cols = array();
$cols['Name'] = array('index' => 'name', 'formatter' => 'longname');
$cols['Quantity'] = array('index' => 'qty', 'formatter' => 'number');
$cols['Key'] = array('index' => 'key', 'formatter' => 'shortname');
$cols['Last Key'] = array('index' => 'last_key', 'formatter' => 'shortname');
$cols['Name'] = array('index' => 'name', 'formatter' => 'name');
$cols['Comment'] = array('index' => 'comment', 'formatter' => 'comment');
$cols['Key'] = array('index' => 'key', 'formatter' => 'number');
$cols['Last Key'] = array('index' => 'last_key', 'formatter' => 'number');
$cols['Quantity'] = array('index' => 'qty', 'formatter' => 'number');
$cols['In Use'] = array('index' => 'inuse', 'formatter' => 'number');
$cols['Available']= array('index' => 'avail', 'formatter' => 'number');
// Render the grid
$grid
@@ -15,4 +17,4 @@ $grid
->defaultFields(array('Name'))
->searchFields(array('Name'))
->render($this, isset($config) ? $config : null,
array_diff(array_keys($cols), array('Comment')));
array_diff(array_keys($cols), array('Last Key')));