Changeset 198


Ignore:
Timestamp:
Oct 12, 2003, 4:30:46 PM (21 years ago)
Author:
z0rglub
Message:

When reordering a category, the page comes back with the top aligned with
the moved category

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/cat_list.php

    r108 r198  
    265265    $vtp->setVar( $sub, 'cat.indent', $indent );
    266266    $vtp->setVar( $sub, 'cat.name', $row['name'] );
     267    $vtp->setVar( $sub, 'cat.id', $row['id'] );
    267268    if ( $row['dir'] != '' )
    268269    {
     
    299300    {
    300301      $vtp->addSession( $sub, 'up' );
     302      $vtp->setVar( $sub, 'up.id', $row['id'] );
    301303      $url = add_session_id( './admin.php?page=cat_list&up='.$row['id'] );
    302304      $vtp->setVar( $sub, 'up.up_url', $url );
     
    306308    {
    307309      $vtp->addSession( $sub, 'no_up' );
     310      $vtp->setVar( $sub, 'no_up.id', $row['id'] );
    308311      $url = add_session_id( './admin.php?page=cat_list&last='.$row['id']);
    309312      $vtp->setVar( $sub, 'no_up.last_url', $url );
     
    313316    {
    314317      $vtp->addSession( $sub, 'down' );
     318      $vtp->setVar( $sub, 'down.id', $row['id'] );
    315319      $url = add_session_id( './admin.php?page=cat_list&down='.$row['id']);
    316320      $vtp->setVar( $sub, 'down.down_url', $url );
     
    320324    {
    321325      $vtp->addSession( $sub, 'no_down' );
     326      $vtp->setVar( $sub, 'no_down.id', $row['id'] );
    322327      $url = add_session_id('./admin.php?page=cat_list&first='.$row['id']);
    323328      $vtp->setVar( $sub, 'no_down.first_url', $url );
  • trunk/template/default/admin/cat_list.vtp

    r68 r198  
    2727<tr>
    2828  <{#td} style="width:50%;text-align:left;">
     29    <a name="{#id}"></a>
    2930    {#indent}<img src="../template/{#user_template}/admin/images/puce.gif" alt="&gt;" />
    3031    &nbsp;{#name} [
     
    4142         style="width:1px;white-space:nowrap;text-align:center;">
    4243    <!--VTP_up-->
    43     <a href="{#up_url}"><img src="../template/{#user_template}/admin/images/arrow_up.gif" alt="{#cat_up}" title="{#cat_up}" style="border:none;" /></a>
     44    <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>
    4445    <!--/VTP_up-->
    4546    <!--VTP_no_up-->
    46     <a href="{#last_url}"><img src="../template/{#user_template}/admin/images/arrow_last.gif" alt="{#cat_last}" title="{#cat_last}" style="border:none;" /></a>
     47    <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>
    4748    <!--/VTP_no_up-->
    4849  </{#td}>
     
    5051         style="width:1px;white-space:nowrap;text-align:center;">
    5152    <!--VTP_down-->
    52     <a href="{#down_url}"><img src="../template/{#user_template}/admin/images/arrow_down.gif" alt="{#cat_down}" title="{#cat_down}" style="border:none;" /></a>
     53    <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>
    5354    <!--/VTP_down-->
    5455    <!--VTP_no_down-->
    55     <a href="{#first_url}"><img src="../template/{#user_template}/admin/images/arrow_first.gif" alt="{#cat_first}" title="{#cat_first}" style="border:none;" /></a>
     56    <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>
    5657    <!--/VTP_no_down-->
    5758  </{#td}>
Note: See TracChangeset for help on using the changeset viewer.