Lines Matching refs:col
80 foreach(array_keys($dataau['cols']) as $col) {
88 $res = $sqlite->query($sql, $col, $id);
95 $cond[] = " ( T1.key = " . $sqlite->quote_string($col) .
105 $col = $dataau['sort'][0];
107 if($col == '%pageid%') {
109 } elseif($col == '%title%') {
113 if(!$tables[$col]) {
114 $tables[$col] = 'T' . (++$cnt);
115 … $from .= ' LEFT JOIN dataau AS ' . $tables[$col] . ' ON ' . $tables[$col] . '.pid = pages.pid';
116 $from .= ' AND ' . $tables[$col] . ".key = " . $sqlite->quote_string($col);
119 $order = ', ' . $tables[$col] . '.value ' . $dataau['sort'][1];
130 $col = $filter['key'];
133 if($col == '%pageid%') {
135 } elseif($col == '%title%') {
139 if(!$tables[$col]) {
140 $tables[$col] = 'T' . (++$cnt);
141 … $from .= ' LEFT JOIN dataau AS ' . $tables[$col] . ' ON ' . $tables[$col] . '.pid = pages.pid';
142 $from .= ' AND ' . $tables[$col] . ".key = " . $sqlite->quote_string($col);
145 … $where .= ' ' . $filter['logic'] . ' ' . $tables[$col] . '.value ' . $filter['compare'] .