summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-07-31 04:39:31 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-07-31 04:39:31 +0000
commita93cc6b8ebb2d1bcd67aa91f670905f298d6d98e (patch)
treedd3af15133416f80b44bdbe50c0e88d9d73b7d9a
parent652474071e711585fec6b8495b3f22a927c9672e (diff)
downloadampache-a93cc6b8ebb2d1bcd67aa91f670905f298d6d98e.tar.gz
ampache-a93cc6b8ebb2d1bcd67aa91f670905f298d6d98e.tar.bz2
ampache-a93cc6b8ebb2d1bcd67aa91f670905f298d6d98e.zip
added paging to artists, albums and fixed a missed link
-rw-r--r--templates/list_header.inc.php16
-rw-r--r--templates/show_albums.inc.php3
-rw-r--r--templates/show_artists.inc.php2
-rw-r--r--templates/show_songs.inc.php2
4 files changed, 5 insertions, 18 deletions
diff --git a/templates/list_header.inc.php b/templates/list_header.inc.php
index fb86a932..62725752 100644
--- a/templates/list_header.inc.php
+++ b/templates/list_header.inc.php
@@ -115,9 +115,7 @@ if ($pages > 1) {
else {
// Hack Alert
$page++;
- ?>
- <a class="list-header" href="<?php echo $script; ?>?<?php echo $action; ?>&amp;sort_type=<?php echo $GLOBALS['view']->sort_type; ?>&amp;offset=<?php echo $offset; ?>&amp;keep_view=true"><?php echo $page; ?></a>&nbsp;
- <?php
+ echo Ajax::text('?action=page&start=' . $offset,$page,'browse_page_' . $page,'','list-header');
}
} // end foreach down
@@ -134,18 +132,6 @@ if ($pages > 1) {
echo Ajax::text('?action=page&start=' . $offset,$page,'browse_page_' . $page,'','list-header');
} // end else
} // end foreach up
- /*
- $counter = 1;
- $offset_pages = 0;
- while ($counter <= $pages) {
- if ($start == $offset_pages) { ?>
- <?php } else { ?>
- <?php
- } // end if ($start == $offset_pages) and else
- $offset_pages += $limit;
- $counter++;
- } // end while ($counter <= $pages)
- */
?>
</td>
<td valign="top">
diff --git a/templates/show_albums.inc.php b/templates/show_albums.inc.php
index b4815a6f..851f31e3 100644
--- a/templates/show_albums.inc.php
+++ b/templates/show_albums.inc.php
@@ -23,7 +23,8 @@ $ajax_url = Config::get('ajax_url');
?>
<table class="tabledata" cellspacing="0" cellpadding="0" border="0">
<tr class="table-header">
- <td colspan="5">
+ <td colspan="6">
+ <?php require Config::get('prefix') . '/templates/list_header.inc.php'; ?>
</td>
</tr>
<tr class="table-header">
diff --git a/templates/show_artists.inc.php b/templates/show_artists.inc.php
index e1c7b270..3e76c26c 100644
--- a/templates/show_artists.inc.php
+++ b/templates/show_artists.inc.php
@@ -24,7 +24,7 @@ $web_path = Config::get('web_path');
<table class="tabledata" cellspacing="0" cellpadding="0" border="0">
<tr class="table-header" align="center">
<td colspan="5">
- <?php if ($GLOBALS['view']->offset_limit) { require Config::get('prefix') . '/templates/list_header.inc'; } ?>
+ <?php require Config::get('prefix') . '/templates/list_header.inc.php'; ?>
</td>
</tr>
<tr class="table-header">
diff --git a/templates/show_songs.inc.php b/templates/show_songs.inc.php
index ab42637e..047ae748 100644
--- a/templates/show_songs.inc.php
+++ b/templates/show_songs.inc.php
@@ -26,7 +26,7 @@ $ajax_url = Config::get('ajax_url');
?>
<table class="tabledata" cellspacing="0" cellpadding="0">
<tr class="table-header" align="center">
- <td colspan="12">
+ <td colspan="7">
<?php require Config::get('prefix') . '/templates/list_header.inc.php'; ?>
</td>
</tr>