Minor fixes to statement, services and internal things
Many misc updates
This commit is contained in:
@@ -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']) {
|
||||
|
Reference in New Issue
Block a user