updateById($_POST['music_id'], $_POST['artist_id'], $_POST['artist_name'], $_POST['album_name'], $music->formatDateTime($_POST['album_day'], $_POST['album_month'], $_POST['album_year']), $_POST['artist_url'], $_POST['picture_url'], $_POST['store_url'], $_POST['price'], $_POST['download_id'], $_POST['description']) ) { _e("The album was successfully updated in the database!
\n", $i18n_domain); } else { _e("A problem occurred while trying to update the album and the update information was lost!
\n", $i18n_domain); } } else if (strcmp($_POST['edit'], NULL) && strcmp($_POST['edit'], '0')) { if (!strcmp($_POST['update'], NULL)) { $music->loadById($_POST['edit']); if($music->getTotalRows() > 0) { $music->display_manage_music_form ($music->id, $music->artist_name, $music->album_name, $music->album_day, $music->album_month, $music->album_year, $music->picture_url, $music->artist_url, $music->store_url, $music->price, $music->download_id, $music->description, FALSE ); } } } else if (strcmp($_POST['new'], NULL) && strcmp($_POST['artist_name'], NULL)) { if ($music->insert($_POST['artist_id'], $_POST['artist_name'], $_POST['album_name'], $music->formatDateTime($_POST['album_day'], $_POST['album_month'], $_POST['album_year']), $_POST['artist_url'], $_POST['picture_url'], $_POST['store_url'], $_POST['price'], $_POST['download_id'], $_POST['description']) ) { _e('The album was successfully entered into the database!', $i18n_domain); } } if ($_POST['show']) { $album_show = $_SESSION['album_show'] = true; } else { $album_show = $_SESSION['album_show'] = false; echo '

'; } echo "
"; $music->display_manage_music_form(); echo "
"; echo "
\n" . "
\n" . "
\n" . "

" .__('Existing Albums', $i18n_domain). ":

\n" . "
" . " " . " " . "
" . " \n" . " \n" . " \n" . " \n" . " \n" . " \n" . " \n" . " \n" . " \n" . " \n" . " \n" . " \n"; if ($music->loadAll('id DESC')->getTotalRows() === 0) { echo ''; } else { for($i = 0; $i < $music->getTotalRows(); $i++) { $music->loadByNode($i); echo ""; echo "\n"; echo "\n \n"; } } echo " \n" . "
" .__("ID", $i18n_domain). "" .__("Art", $i18n_domain). "" .__("Album", $i18n_domain). "" .__("Downloads", $i18n_domain). "" .__("Price", $i18n_domain). "" .__("Actions", $i18n_domain). "
'; _e('No Albums Available in the Database!', $i18n_domain); echo '
" .stripslashes($music->id). "
\n"; echo "
" .stripslashes($music->artist_name). "
" .stripslashes($music->album_name). "
Released: "; echo $music->album_month. '.' .$music->album_day. '.' .$music->album_year. "
$music->total_downloads" .CURRENCY.$music->price. ""; /* Edit Button */ echo '
'; /* Delete Button */ echo '
' . " " . '
'; echo "
\n" . "
\n"; unset($music); ?>