Parašė sydow· 2008 Lie. 29 12:07:25
#1
Taigi atsisiunciau soki toki albumu moda ir man albumus nuo seniau iki naujausio... Zodziu naujausias buna apacioje o seniausia virsuje... Kaip padaryti kad naujausias butu virsuje o seniausias apacioje? Stai
php failas:
<?php
require_once("../../maincore.php");
require_once(BASEDIR."subheader.php");
require_once(BASEDIR."side_left.php");
require_once("include/common.php");
require_once("include/usertheme.php");
opentable($locale['aw_title']);
if(iMDB_EDIT) {
echo "<div align='right'><a href='admin/cats.php'>"
.$locale['do_admin']."</a></div>";
}
$artist_id = show_artists_form(isset($_GET['artist_id'])
? $_GET['artist_id'] : NULL);
$rowstart = 0;
if(isset($_GET['rowstart']) && isNum($_GET['rowstart'])) {
$rowstart = $_GET['rowstart'];
}
$album_count = dbrows(dbquery("SELECT album_id"
." FROM ".DB_PREFIX."aw_music_albums"
." WHERE album_artist='$artist_id'"));
echo "<div align='center'>".makePageNav($rowstart, $mdb_settings['per_page'],
$album_count, $album_count,
FUSION_SELF."?artist_id=$artist_id&")."</div>";
if(!isset($artist_id)) {
echo "<p>".$locale['empty'];
} else {
$query_id = dbquery("SELECT * FROM ".DB_PREFIX."aw_music_albums"
." LEFT JOIN ".DB_PREFIX."aw_music_labels ON label_id=album_label"
." LEFT JOIN ".DB_PREFIX."aw_music_sales ON sale_id=album_sale"
." WHERE album_artist='$artist_id'"
." LIMIT $rowstart, ".$mdb_settings['per_page']);
if($query_id) {
while($album = dbarray($query_id)) {
show_album($album);
}
}
}
closetable();
require_once(BASEDIR."side_right.php");
require_once(BASEDIR."footer.php");
?>