From d75f0807d3d054fba633ffef4e4785900d05de6e Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Sat, 02 Aug 2008 05:08:03 -0400
Subject: [PATCH] - Enabled tools module for administrator by default. - Updated Ubuntu installation instructions.
---
interface/lib/classes/listform_actions.inc.php | 19 ++++++++++++++-----
1 files changed, 14 insertions(+), 5 deletions(-)
diff --git a/interface/lib/classes/listform_actions.inc.php b/interface/lib/classes/listform_actions.inc.php
index c67c7fa..4a198f5 100644
--- a/interface/lib/classes/listform_actions.inc.php
+++ b/interface/lib/classes/listform_actions.inc.php
@@ -38,8 +38,8 @@
class listform_actions {
private $id;
- private $idx_key;
- private $DataRowColor;
+ public $idx_key;
+ public $DataRowColor;
public $SQLExtWhere = '';
public $SQLOrderBy = '';
@@ -66,7 +66,6 @@
// Getting Datasets from DB
$records = $app->db->queryAllRecords($this->getQueryString());
-
$this->DataRowColor = "#FFFFFF";
$records_new = '';
if(is_array($records)) {
@@ -83,7 +82,7 @@
}
- private function prepareDataRow($rec)
+ public function prepareDataRow($rec)
{
global $app;
@@ -97,6 +96,11 @@
foreach($app->listform->listDef['item'] as $field) {
$key = $field['field'];
if(isset($field['formtype']) && $field['formtype'] == 'SELECT') {
+ if(strtolower($rec[$key]) == 'y' or strtolower($rec[$key]) == 'n') {
+ // Set a additional image variable for bolean fields
+ $rec['_'.$key.'_'] = (strtolower($rec[$key]) == 'y')?'list_icon_true.png':'list_icon_false.png';
+ }
+ //* substitute value for select field
$rec[$key] = @$field['value'][$rec[$key]];
}
}
@@ -139,7 +143,12 @@
{
global $app;
- //* Set Language File
+ //* Set global Language File
+ $lng_file = ISPC_LIB_PATH.'/lang/'.$_SESSION['s']['language'].'.lng';
+ include($lng_file);
+ $app->tpl->setVar($wb);
+
+ //* Set local Language File
$lng_file = 'lib/lang/'.$_SESSION['s']['language'].'_'.$app->listform->listDef['name'].'_list.lng';
include($lng_file);
$app->tpl->setVar($wb);
--
Gitblit v1.9.1