Themeing work based on bootstrap

This commit is contained in:
Deon George
2013-04-25 10:22:36 +10:00
parent b310cdb125
commit 74a9c291e4
184 changed files with 37653 additions and 8903 deletions

View File

@@ -14,11 +14,14 @@ abstract class lnApp_Table {
public static function resolve($d,$key) {
if (is_array($d) AND isset($d[$key]))
$x = $d[$key];
// If the key is a method, we need to eval it
elseif (preg_match('/\(/',$key) OR preg_match('/-\>/',$key))
eval("\$x = \$d->$key;");
elseif (preg_match('/^__VALUE__$/',$key))
$x = $d;
else
$x = $d->display($key);
@@ -42,9 +45,9 @@ abstract class lnApp_Table {
else
$button = Form::button('Submit','View/Edit',array('class'=>'form_button','type'=>'submit'));
Script::add(array(
'type'=>'stdin',
'data'=>'
Script::factory()
->type('stdin')
->data('
(function($) {
// Enable Range Selection
$.fn.enableCheckboxRangeSelection = function() {
@@ -129,14 +132,6 @@ $(document).ready(function() {
$("#select-table :checkbox").check("off");
});
// Our mouse over row highlight
$("#select-table tr:not(.head)").hover(function() {
$(this).children().toggleClass("highlight");
},
function() {
$(this).children().toggleClass("highlight");
});
// Click to select Row
$("#select-table tr:not(.head)")
.filter(":has(:checkbox:checked)")
@@ -157,7 +152,7 @@ $(document).ready(function() {
window.location = $("a", this).attr("href");
});
});
'));
');
$output .= Form::open((isset($option['form']) ? $option['form'] : ''));
@@ -168,9 +163,9 @@ $(document).ready(function() {
case 'list':
default:
Script::add(array(
'type'=>'stdin',
'data'=>'
Script::factory()
->type('stdin')
->data('
// Bind our actions
$(document).ready(function() {
// Our mouse over row highlight
@@ -181,7 +176,7 @@ $(document).ready(function() {
$(this).children().toggleClass("highlight");
});
});
'));
');
}
If (! $view)