|
@@ 29-35 (lines=7) @@
|
| 26 |
|
$sort_asc_image = WWW_ROOT_THEMES_CORE . 'images/icons/asc.png'; |
| 27 |
|
$sort_desc_image = WWW_ROOT_THEMES_CORE . 'images/icons/desc.png'; |
| 28 |
|
|
| 29 |
|
if ($params['cid'] !== null) { |
| 30 |
|
if ($SMCS_id !== $params['cid']) { |
| 31 |
|
$current_id = 0; |
| 32 |
|
} |
| 33 |
|
|
| 34 |
|
$SMCS_id = $params['cid']; |
| 35 |
|
} |
| 36 |
|
|
| 37 |
|
// Retrieve the $_SESSION columnsort object. |
| 38 |
|
if (!isset($_SESSION['SmartyColumnSort'][$SMCS_id])) { |
|
@@ 64-71 (lines=8) @@
|
| 61 |
|
} |
| 62 |
|
|
| 63 |
|
// ID for column table |
| 64 |
|
if ($params['id'] !== null) { |
| 65 |
|
$id = $params['id']; |
| 66 |
|
|
| 67 |
|
// Increase current id with 1 to prepare for next value |
| 68 |
|
$current_id = $id + 1; |
| 69 |
|
} else { |
| 70 |
|
$id = $current_id++; |
| 71 |
|
} |
| 72 |
|
|
| 73 |
|
/* disabled |
| 74 |
|
if (($params['asc_image'] !== null) && ($params['desc_image'] !== null)) { |