Lines Matching refs:col

106 													foreach($cols as $col){
107 $col = trim($col);
108 if(!$col) continue;
109 list($key,$type) = $this->dthlp->_column($col);
127 foreach($cols as $col){
128 $col = trim($col);
129 $col = trim($col);
130 if(!$col) continue;
131 list($key,$type) = $this->dthlp->_column($col);
183 foreach(array_keys($data['cols']) as $col){
184 if($col == '%pageid%'){
186 }elseif($col == '%title%'){
189 $data['headers'][] = $col;
257 foreach($row as $num => $col){
259 $xValue = $this->dthlp->_formatData($cols[$num],$col,$types[$num],$renderer);
328 foreach (array_keys($data['cols']) as $col){
329 if($col == '%pageid%'){
331 }elseif($col == '%title%'){
334 if(!$tables[$col]){
335 $tables[$col] = 'T'.(++$cnt);
336 … $from .= ' LEFT JOIN data AS '.$tables[$col].' ON '.$tables[$col].'.pid = pages.pid';
337 $from .= ' AND '.$tables[$col].".key = '".sqlite_escape_string($col)."'";
339 $select[] = 'group_concat('.$tables[$col].".value,'\n')";
345 $col = $data['sort'][0];
347 if($col == '%pageid%'){
349 }elseif($col == '%title%'){
353 if(!$tables[$col]){
354 $tables[$col] = 'T'.(++$cnt);
355 … $from .= ' LEFT JOIN data AS '.$tables[$col].' ON '.$tables[$col].'.pid = pages.pid';
356 $from .= ' AND '.$tables[$col].".key = '".sqlite_escape_string($col)."'";
359 $order = 'ORDER BY '.$tables[$col].'.value '.$data['sort'][1];
370 $col = $filter['key'];
372 if($col == '%pageid%'){
374 }elseif($col == '%title%'){
378 if(!$tables[$col]){
379 $tables[$col] = 'T'.(++$cnt);
380 … $from .= ' LEFT JOIN data AS '.$tables[$col].' ON '.$tables[$col].'.pid = pages.pid';
381 $from .= ' AND '.$tables[$col].".key = '".sqlite_escape_string($col)."'";
384 $where .= ' '.$filter['logic'].' '.$tables[$col].'.value '.$filter['compare'].
394 list($col,$val) = split(':',$_GET['dataflt'],2);
395 if(!$tables[$col]){
396 $tables[$col] = 'T'.(++$cnt);
397 … $from .= ' LEFT JOIN data AS '.$tables[$col].' ON '.$tables[$col].'.pid = pages.pid';
398 $from .= ' AND '.$tables[$col].".key = '".sqlite_escape_string($col)."'";
401 $where .= ' AND '.$tables[$col].".value = '".sqlite_escape_string($val)."'";