printTabs('edit');
    ?>


<div id="content">

<h1>Sort Album: <?php 
    echo $album->getTitle();
    ?>
</h1>
<p><?php 
    printAlbumEditLinks('', "&laquo; " . gettext("back to the album list"), gettext("Back to the list of albums"));
    ?>
 
| <?php 
    printAlbumEditLinks("&album=" . urlencode($album->getFolder()), gettext("edit album"), gettext("Edit Album"));
    ?>
 
| <?php 
    printViewLink($album, gettext("view album"), gettext("View Album"));
    ?>
</p>
	<?php 
    if (isset($_GET['saved'])) {
        echo '<div class="messagebox" id="fade-message">';
        echo "<h2>" . gettext("Image order saved");
        echo '</h2></div>';
    }
    ?>

<div class="box" style="padding: 15px;">
    }
    if (isset($_GET['counters_reset'])) {
        echo '<div class="messagebox" id="fade-message">';
        echo "<h2>" . gettext("Hitcounters have been reset") . "</h2>";
        echo '</div>';
    }
    ?>
<h1><?php 
    echo gettext("Edit Album:");
    ?>
 <em><?php 
    echo $album->name;
    ?>
</em></h1>
<p><?php 
    printAlbumEditLinks('' . $albumdir, "&laquo; " . gettext("Back"), gettext("Back to the list of albums (go up one level)"));
    ?>
 | <?php 
    if (!$album->isDynamic() && $album->getNumImages() > 1) {
        printSortLink($album, gettext("Sort Album"), gettext("Sort Album"));
        echo ' | ';
    }
    printViewLink($album, gettext("View Album"), gettext("View Album"));
    ?>
</p>


	<?php 
    displayDeleted();
    /* Display a message if needed. Fade out and hide after 2 seconds. */
    ?>