Commit e685ae331359f9df9b579fdcb9c9309193808492

Authored by omar
1 parent 7a83215c

Allow Booleans represented by a check box pic


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@2039 c91229c3-7414-0410-bfa2-8a42b809f60b
lib/visualpatterns/PatternTableSqlQuery.inc
... ... @@ -52,7 +52,7 @@ class PatternTableSqlQuery {
52 52 /** message that will be displayed if the table is empty*/
53 53 var $sEmptyTableMessage;
54 54 /** Picture path */
55   - var $sPicPath;
  55 + var $sChkPicPath = "/graphics/widgets/checked.gif";
56 56  
57 57 var $bIncludeBorder = false;
58 58  
... ... @@ -92,12 +92,12 @@ class PatternTableSqlQuery {
92 92 $this->bIncludeBorder = $bNewValue;
93 93 }
94 94  
95   - function setPicPath($sNewPicPath) {
96   - $this->sPicPath = $sNewPicPath;
  95 + function setChkPicPath($sNewChkPicPath) {
  96 + $this->sChkPicPath = $sNewChkPicPath;
97 97 }
98 98  
99   - function getPicPath() {
100   - return $this->sPicPath ;
  99 + function getChkPicPath() {
  100 + return $this->sChkPicPath ;
101 101 }
102 102  
103 103 /**
... ... @@ -156,7 +156,7 @@ class PatternTableSqlQuery {
156 156 if ($sql->f($this->aColumns[$i]) != null) {
157 157 $value = $sql->f($this->aColumns[$i]);
158 158 if ($value) {
159   - $sToRender .= "<img src='" . $this->sPicPath . "'>";
  159 + $sToRender .= "<img src='" . $this->sChkPicPath . "'>";
160 160 }
161 161 $sToRender .= "&nbsp;</td>";
162 162 } else {
... ...