diff options
-rw-r--r-- | admin/cat_list.php | 5 | ||||
-rw-r--r-- | template/default/admin/cat_list.vtp | 9 |
2 files changed, 10 insertions, 4 deletions
diff --git a/admin/cat_list.php b/admin/cat_list.php index 474688b3e..cc4d88929 100644 --- a/admin/cat_list.php +++ b/admin/cat_list.php @@ -264,6 +264,7 @@ function display_cat_manager( $id_uppercat, $indent, $vtp->setVar( $sub, 'cat.class', $class ); $vtp->setVar( $sub, 'cat.indent', $indent ); $vtp->setVar( $sub, 'cat.name', $row['name'] ); + $vtp->setVar( $sub, 'cat.id', $row['id'] ); if ( $row['dir'] != '' ) { $vtp->addSession( $sub, 'storage' ); @@ -298,6 +299,7 @@ function display_cat_manager( $id_uppercat, $indent, if ( $row['rank'] != $min_rank ) { $vtp->addSession( $sub, 'up' ); + $vtp->setVar( $sub, 'up.id', $row['id'] ); $url = add_session_id( './admin.php?page=cat_list&up='.$row['id'] ); $vtp->setVar( $sub, 'up.up_url', $url ); $vtp->closeSession( $sub, 'up' ); @@ -305,6 +307,7 @@ function display_cat_manager( $id_uppercat, $indent, else if ( $min_rank != $max_rank ) { $vtp->addSession( $sub, 'no_up' ); + $vtp->setVar( $sub, 'no_up.id', $row['id'] ); $url = add_session_id( './admin.php?page=cat_list&last='.$row['id']); $vtp->setVar( $sub, 'no_up.last_url', $url ); $vtp->closeSession( $sub, 'no_up' ); @@ -312,6 +315,7 @@ function display_cat_manager( $id_uppercat, $indent, if ( $row['rank'] != $max_rank ) { $vtp->addSession( $sub, 'down' ); + $vtp->setVar( $sub, 'down.id', $row['id'] ); $url = add_session_id( './admin.php?page=cat_list&down='.$row['id']); $vtp->setVar( $sub, 'down.down_url', $url ); $vtp->closeSession( $sub, 'down' ); @@ -319,6 +323,7 @@ function display_cat_manager( $id_uppercat, $indent, else if ( $min_rank != $max_rank ) { $vtp->addSession( $sub, 'no_down' ); + $vtp->setVar( $sub, 'no_down.id', $row['id'] ); $url = add_session_id('./admin.php?page=cat_list&first='.$row['id']); $vtp->setVar( $sub, 'no_down.first_url', $url ); $vtp->closeSession( $sub, 'no_down' ); diff --git a/template/default/admin/cat_list.vtp b/template/default/admin/cat_list.vtp index 74e09c211..6aaaa9f9d 100644 --- a/template/default/admin/cat_list.vtp +++ b/template/default/admin/cat_list.vtp @@ -26,6 +26,7 @@ <!--VTP_cat--> <tr> <{#td} style="width:50%;text-align:left;"> + <a name="{#id}"></a> {#indent}<img src="../template/{#user_template}/admin/images/puce.gif" alt=">" /> {#name} [ <!--VTP_storage--> @@ -40,19 +41,19 @@ <{#td} class="{#class}" style="width:1px;white-space:nowrap;text-align:center;"> <!--VTP_up--> - <a href="{#up_url}"><img src="../template/{#user_template}/admin/images/arrow_up.gif" alt="{#cat_up}" title="{#cat_up}" style="border:none;" /></a> + <a href="{#up_url}#{#id}"><img src="../template/{#user_template}/admin/images/arrow_up.gif" alt="{#cat_up}" title="{#cat_up}" style="border:none;" /></a> <!--/VTP_up--> <!--VTP_no_up--> - <a href="{#last_url}"><img src="../template/{#user_template}/admin/images/arrow_last.gif" alt="{#cat_last}" title="{#cat_last}" style="border:none;" /></a> + <a href="{#last_url}#{#id}"><img src="../template/{#user_template}/admin/images/arrow_last.gif" alt="{#cat_last}" title="{#cat_last}" style="border:none;" /></a> <!--/VTP_no_up--> </{#td}> <{#td} class="{#class}" style="width:1px;white-space:nowrap;text-align:center;"> <!--VTP_down--> - <a href="{#down_url}"><img src="../template/{#user_template}/admin/images/arrow_down.gif" alt="{#cat_down}" title="{#cat_down}" style="border:none;" /></a> + <a href="{#down_url}#{#id}"><img src="../template/{#user_template}/admin/images/arrow_down.gif" alt="{#cat_down}" title="{#cat_down}" style="border:none;" /></a> <!--/VTP_down--> <!--VTP_no_down--> - <a href="{#first_url}"><img src="../template/{#user_template}/admin/images/arrow_first.gif" alt="{#cat_first}" title="{#cat_first}" style="border:none;" /></a> + <a href="{#first_url}#{#id}"><img src="../template/{#user_template}/admin/images/arrow_first.gif" alt="{#cat_first}" title="{#cat_first}" style="border:none;" /></a> <!--/VTP_no_down--> </{#td}> <{#td} class="{#class}" style="width:1px;text-align:center;"> |