| | 241 | |
|---|
| | 242 | if (!$this->getUser()->getAttribute('sort', null, 'sf_admin/order/sort')) |
|---|
| | 243 | { |
|---|
| | 244 | <?php if ($sort = $this->getParameterValue('list.sort')): ?> |
|---|
| | 245 | <?php if (is_array($sort)): ?> |
|---|
| | 246 | $this->getUser()->setAttribute('sort', '<?php echo $sort[0] ?>', 'sf_admin/order/sort'); |
|---|
| | 247 | $this->getUser()->setAttribute('type', '<?php echo $sort[1] ?>', 'sf_admin/order/sort'); |
|---|
| | 248 | <?php else: ?> |
|---|
| | 249 | $this->getUser()->setAttribute('sort', '<?php echo $sort ?>', 'sf_admin/order/sort'); |
|---|
| | 250 | $this->getUser()->setAttribute('type', 'asc', 'sf_admin/order/sort'); |
|---|
| | 251 | <?php endif; ?> |
|---|
| | 252 | <?php endif; ?> |
|---|
| | 253 | } |
|---|