Minor fixes to statement, services and internal things

Many misc updates
This commit is contained in:
Deon George
2011-10-14 16:44:12 +11:00
parent 7876a16413
commit 56c11507f4
71 changed files with 2192 additions and 677 deletions

View File

@@ -31,13 +31,18 @@ class lnApp_Table {
return '';
$pag = NULL;
$view = $output = '';
$view = $output = $button = '';
if (isset($option['type']) AND $option['type'])
switch ($option['type']) {
case 'select':
$view = 'table/select';
if (! empty($option['button']))
$button = implode('',$option['button']);
else
$button = '<input type="submit" name="Submit" value="View/Edit" class="form_button"/>';
Script::add(array(
'type'=>'stdin',
'data'=>'
@@ -156,6 +161,10 @@ $(document).ready(function() {
'));
$output .= Form::open((isset($option['form']) ? $option['form'] : ''));
if (! empty($option['hidden']))
$output .= '<div>'.implode('',$option['hidden']).'</div>';
break;
case 'list':
@@ -226,7 +235,8 @@ $(document).ready(function() {
->set('count',$i-$rows)
->set('other',$other);
$output .= View::factory($view.'_foot');
$output .= View::factory($view.'_foot')
->set('button',$button);
if (isset($option['type']) AND $option['type'])
switch ($option['type']) {