file summary table now starting to work with templates.need to change query around to be configurable still.

This commit is contained in:
Naomi 2013-08-02 15:29:39 -04:00
parent b480a5ae18
commit c110b4b4df
10 changed files with 298 additions and 162 deletions

View file

@ -177,18 +177,18 @@ class Application_Model_Datatables
try {
Logging::info($sqlTotalRows);
//Logging::info($sqlTotalRows);
$r = $con->query($sqlTotalRows);
$totalRows = $r->fetchColumn(0);
if (isset($sqlTotalDisplayRows)) {
Logging::info("sql is set");
Logging::info($sqlTotalDisplayRows);
//Logging::info("sql is set");
//Logging::info($sqlTotalDisplayRows);
$totalDisplayRows = Application_Common_Database::prepareAndExecute($sqlTotalDisplayRows, $params, 'column');
}
else {
Logging::info("sql is not set.");
//Logging::info("sql is not set.");
$totalDisplayRows = $totalRows;
}

View file

@ -1377,4 +1377,12 @@ class Application_Model_Preference
public static function GetHistoryItemTemplate() {
return self::getValue("history_item_template");
}
public static function SetHistoryFileTemplate($value) {
self::setValue("history_file_template", $value);
}
public static function GetHistoryFileTemplate() {
return self::getValue("history_file_template");
}
}