From e685ae331359f9df9b579fdcb9c9309193808492 Mon Sep 17 00:00:00 2001 From: omar Date: Tue, 3 Jun 2003 07:28:10 +0000 Subject: [PATCH] Allow Booleans represented by a check box pic --- lib/visualpatterns/PatternTableSqlQuery.inc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/visualpatterns/PatternTableSqlQuery.inc b/lib/visualpatterns/PatternTableSqlQuery.inc index 275e007..6a8b2ec 100644 --- a/lib/visualpatterns/PatternTableSqlQuery.inc +++ b/lib/visualpatterns/PatternTableSqlQuery.inc @@ -52,7 +52,7 @@ class PatternTableSqlQuery { /** message that will be displayed if the table is empty*/ var $sEmptyTableMessage; /** Picture path */ - var $sPicPath; + var $sChkPicPath = "/graphics/widgets/checked.gif"; var $bIncludeBorder = false; @@ -92,12 +92,12 @@ class PatternTableSqlQuery { $this->bIncludeBorder = $bNewValue; } - function setPicPath($sNewPicPath) { - $this->sPicPath = $sNewPicPath; + function setChkPicPath($sNewChkPicPath) { + $this->sChkPicPath = $sNewChkPicPath; } - function getPicPath() { - return $this->sPicPath ; + function getChkPicPath() { + return $this->sChkPicPath ; } /** @@ -156,7 +156,7 @@ class PatternTableSqlQuery { if ($sql->f($this->aColumns[$i]) != null) { $value = $sql->f($this->aColumns[$i]); if ($value) { - $sToRender .= ""; + $sToRender .= ""; } $sToRender .= " "; } else { -- libgit2 0.21.4