updateById($_POST['artist_id'], $_POST['artist_name'], $_POST['url'], $_POST['picture_url'], $artist->formatDateTime($_POST['artist_day'], $_POST['artist_month'], $_POST['artist_year']), $_POST['artist_descr'], (strcmp($_POST['enabled'], NULL)) ? TRUE : FALSE)) { _e("The artist was successfully updated in the database!
\n", $i18n_domain); } else { _e("A problem occurred while trying to update the artist and the update information was lost!
\n", $i18n_domain); } } else if (strcmp($_POST['edit'], NULL) && strcmp($_POST['edit'], '0')) { if (!strcmp($_POST['update'], NULL)) { if($artist->loadById($_POST['edit'])->getTotalRows() > 0) { $day = 0; $month = 0; $year = 0; $artist-> display_manage_artist_form ($artist->id, stripslashes($artist->name), $day, $month, $year, stripslashes($artist->picture_url), stripslashes($artist->url), stripslashes($artist->description), $artist->enabled, FALSE); } } } else if (strcmp($_POST['new'], NULL) && strcmp($_POST['artist_name'], NULL)) { if ($artist->insert($_POST['artist_name'], $_POST['url'], $_POST['picture_url'], $artist->formatDateTime($_POST['artist_day'], $_POST['artist_month'], $_POST['artist_year']), $_POST['artist_descr'], (strcmp($_POST['enabled'], NULL)) ? TRUE : FALSE)) { _e('The artist was successfully entered into the database!', $i18n_domain); } } if ($_POST['show']) { $artist_show = $_SESSION['artist_show'] = TRUE; } else { $artist_show = $_SESSION['artist_show'] = FALSE; echo '

'; } echo "
"; $artist->display_manage_artist_form(); echo "
"; echo "
\n" . "
\n" . "

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

\n" . "
" . " " . "
" . " \n" . " \n" . " \n" . " \n" . " \n" . " \n" . " \n" . " \n" . " \n" . " \n" . " \n"; if ($artist->loadAll('name ASC')->getTotalRows() === 0) { echo " \n" . " \n" . " \n"; } else { for($i = 0; $i < $artist->getTotalRows(); $i++) { $artist->loadByNode($i); echo " \n" . " \n" . " \n" . " \n"; } } echo " \n" . "
IDArtArtistEnabledActions
\n" . __('No Artists Available in the Database!', $i18n_domain) . "\n
" .$artist->id. "\n" . "" . " \n" . " " .stripslashes($artist->name). "" . " \n" . (($artist->enabled) ? "YES" : "NO") . " \n" . '
' . '
'; /* Delete Button */ echo '
' . " " . '
' . "
\n" . "\n"; unset($artist); ?>