| @@ 31-38 (lines=8) @@ | ||
| 28 | break; |
|
| 29 | } |
|
| 30 | break; |
|
| 31 | case 'image': |
|
| 32 | $file = Files\File::get($item->$colName); |
|
| 33 | if ($file) { |
|
| 34 | $value = '<img src="' . $file->path . '?resize=60x120" />'; |
|
| 35 | } else { |
|
| 36 | $value = '<img src="/static/system/images/no-image.png?resize=60x120" />'; |
|
| 37 | } |
|
| 38 | break; |
|
| 39 | case 'bool': |
|
| 40 | $value = $item->$colName ? 'Да' : 'Нет'; |
|
| 41 | break; |
|
| @@ 221-228 (lines=8) @@ | ||
| 218 | break; |
|
| 219 | } |
|
| 220 | break; |
|
| 221 | case 'image': |
|
| 222 | $file = Files\File::get($item->$colName); |
|
| 223 | if ($file) { |
|
| 224 | $value = '<img src="' . $file->path . '?resize=60x120" />'; |
|
| 225 | } else { |
|
| 226 | $value = '<img src="/static/system/images/no-image.png?resize=60x120" />'; |
|
| 227 | } |
|
| 228 | break; |
|
| 229 | case 'bool': |
|
| 230 | $value = $item->$colName ? 'Да' : 'Нет'; |
|
| 231 | break; |
|