示例#1
0
        echo "<a class='ui-selectee' href='#'><strong>{$venue['venue_name']}</strong><br/><small>" . implode(",", $address) . "</small></a>";
    }
    ?>
	</div>	
	
<?php 
}
if ($_GET["page"] == "all_artists") {
    $artists = WT_Artist::all();
    $artistObj = new WT_Artist();
    ?>
	
	<div class="wordtour-selectable">
		<?php 
    foreach ($artists as $value) {
        $artist = $artistObj->db_out($value);
        echo "<a class='ui-selectee' href='#'><strong>{$artist['artist_name']}</strong></a>";
    }
    ?>
	</div>	
	
<?php 
}
if ($_GET["page"] == "all_tour") {
    $tours = WT_Tour::all();
    $tourObj = new WT_Tour();
    ?>
	
	<div class="wordtour-selectable">
		<?php 
    foreach ($tours as $value) {
示例#2
0
function artists_rows($rows)
{
    global $wpdb;
    if (!$rows) {
        ?>
		<tr class="empty">
			<td colspan="5"><p>No Artists Found</p></td>
		</tr> 
	<?php 
    } else {
        ?>
	<?php 
        $artist = new WT_Artist();
        foreach ($rows as $row) {
            echo get_artist_row_html($artist->db_out($row));
        }
    }
}
示例#3
0
     if ($_POST["id"]) {
         $track = new WT_Track();
         $track->delete_all(json_decode(stripslashes($_POST["id"])), $_POST["_nonce"]);
         $track->db_response("json");
     }
     break;
     // ARTIST
 // ARTIST
 case "get_artist":
     $artist = new WT_Artist($_POST["artist_id"]);
     if (!empty($_POST["artist_id"])) {
         $artist->retrieve();
     } else {
         $artist->defaults();
     }
     echo json_encode($artist->db_out(null, 0));
     break;
 case "update_artist":
     $artist = new WT_Artist($_POST["artist_id"]);
     $artist->update($_POST);
     $artist->db_response("json");
     break;
 case "quickupdate_artist":
     $artist = new WT_Artist($_POST["artist_id"]);
     $artist->quick_update($_POST);
     $artist->db_response("json");
     break;
 case "insert_artist":
     $artist = new WT_Artist();
     $artist->insert($_POST);
     $artist->db_response("json");