$page_title = 'View/Edit Tours'; $section = 'tours'; include 'layout/header.php'; ?> <div id="breadcrumb"> <a href="index.php">Audition ></a> <a href="live.php">Live ></a> Tours </div> <h1>tours:</h1> <div class="inset"> <p> <?php $tours = new TourList(); $tourlist = $tours->get_tours($_GET['entries_per_page'], $_GET['start']); $news_total = $tours->get_total(); ?> <form id="amount_form" action="<?php echo $PHP_SELF; ?> " method="get"> <?php if (User::isAdmin()) { ?> <a href="tour_add.php">Add Tour</a><span class="padded">|</span><?php } ?> <?php include 'layout/paging.php';
$media->args['media'] = $mi; $media->args['exitURL'] = USE_MOD_REWRITE ? '/tour/' . $t->getID() . '/' : '/tours.php?id=' . $t->getID(); } } } else { $view = 'detail'; $tour = new SectionTemplate(); $tour->file = "tour_detail.php"; $tour->args['tour'] = $t; if (USE_MOD_REWRITE) { $auxLink = '<a href="' . SITE_WEB_DIRECTORY . '/tours/">Return to Tour List</a>'; } else { $auxLink = '<a href="' . SITE_WEB_DIRECTORY . '/tours.php">Return to Tour List</a>'; } } } if ($view != 'media' && $view != 'detail') { $view = 'list'; $sl = new TourList(); $result = $sl->get_tours(9999, 0, 1); $tours = array(); foreach ($result as $t) { $detail = new SectionTemplate(); $detail->file = "tour_summary.php"; $detail->args['tour'] = $t; $tours[] = $detail; } if (count($tours) == 0) { unset($tours); } }