mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-19 16:13:00 +02:00
When reordering a category, the page comes back with the top aligned with
the moved category git-svn-id: http://piwigo.org/svn/trunk@198 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -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' );
|
||||
|
||||
@@ -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;">
|
||||
|
||||
Reference in New Issue
Block a user