.
*/
if ( !class_exists( 'GiglogAdmin_ImportGigsPage' ) ) {
require_once __DIR__ . '/../../band.php';
require_once __DIR__ . '/../../concert.php';
require_once __DIR__ . '/../../concertlogs.php';
require_once __DIR__ . '/../../venue.php';
class GiglogAdmin_ImportGigsPage {
static function render_html() {
?>
Import gigs
Import gig data from a tab separated data file.
id();
}
//not sure how to check dates, hopefully manual verification of files will take care of it
$cresults = GiglogAdmin_Concert::get($newconcert[0], $newconcert[1], $condate);
if ($cresults) {
error_log( 'DUPLICATE ROW detected: '
. ' BAND ' . $band . ' with band ID ' . $newconcert[0]
. ', VENUE ' . $venue . ' with venue ID ' . $newconcert[1]
. ', CONCERTDATE ' . $condate);
} else {
$id = GiglogAdmin_Concert::create(
$newconcert[0],
$newconcert[1],
$condate,
$ticketlink,
$eventlink);
error_log( 'NEW CONCERT ADDED: '
. ' ID: ' . $id
. ' BAND ' . $band . ' with band ID ' . $newconcert[0]
. ', VENUE ' . $venue . ' with venue ID ' . $newconcert[1]
. ', CONCERTDATE ' . $condate
. ', Ticket LINK ' . $ticketlink
. ', Event LINK ' . $eventlink);
GiglogAdmin_Concertlogs::add($id);
}
}
}
}
}