$str .= "var sel_cat_genre_id_2\n"; $str .= "var sel_cat_genre_id_3\n"; $str .= "var sel_cat_genre_id_4\n"; } return $str; } ?> <script> var all_cat_genres = new Array() <? echo get_selected_cat_genres(); echo "\n"; echo get_categories(); echo "\n"; echo get_genres(); echo "\n"; echo get_selected_genres(); echo "\n"; if (@$_GET['id']){ echo "var sel_category_id = ".$category_id."\n"; }else{ echo "var sel_category_id = 0\n"; } if (Admin::isPageActionAllowed()){ echo "var can_md5dum=1\n"; }else{ echo "var can_md5dum=0\n"; }
function get_genres_select_options($default = "bm") { $str = ""; $json = json_decode(get_genres()); $str .= '<option value="">wie Album</option>'; $str .= "\n"; foreach ($json as $genres) { $str .= '<option value="' . $genres->id . '" '; if ((string) $genres->id == $default) { $str .= "selected"; } $str .= ' >'; $str .= $genres->genre . '</option>'; $str .= "\n"; } return $str; }
<?php require_once 'data/_data.php'; require_once 'data/_genres.php'; require_once 'data/_comics.php'; define('SUBMIT', 'submit'); $genres = get_genres(); if (array_key_exists(SUBMIT, $_GET)) { if (isset($_GET[P_GENRES])) { $comics = comics_genres($_GET[P_GENRES][0]); //var_dump($_GET); } } ?> <!--Genre && search form--> <form class="form-inline" action="<?php echo PAGE_INDEX; ?> "> <div class="form-group col-md-3"> <input type="text" name="<?php echo P_INPUT_SEARCH; ?> " class="form-control" placeholder="Search" /> <input type="submit" name="<?php echo NAV_SEARCH; ?> " class="btn btn-default" value="Rechercher" /> </div>
/** * show a menu dropdown of genre * * @name dropdown_genres * @return select */ function dropdown_genres($name, $selected = null, $all = false, $extra = null) { $genres = get_genres(); $output = "<select id='{$name}' name='{$name}' {$extra}>"; if ($all) { $output .= "<option value=''>----------</option>"; } foreach ($genres as $acronym => $genre) { $att = ''; if ($acronym == $selected) { $att = 'selected="selected"'; } $output .= "<option value='{$acronym}' {$att}>{$genre}</option>"; } $output .= "</select>"; return $output; }
$media_link = get_post_meta($pid, '_video_link'); $buy_link = get_post_meta($pid, '_buy_link'); $artist = get_post_meta($pid, '_artist'); $explodeArray = array_filter(explode(' ', $artist[0])); $arrayLength = count($explodeArray); $i = 0; if ($arrayLength > 1) { foreach ($explodeArray as $array) { $artist_meta[$i] = get_the_title($array); $i++; } } else { $artist_name = get_the_title($explodeArray[0]); } // Lets grab all the genres associated with each song $all_genres = get_genres($pid, 'genre'); ?> <?php // Start the loop. while (have_posts()) { the_post(); ?> <header class="intro"> <div class="intro-body"> <div class="container"> <div class="row"> <div class="col-md-8 col-md-offset-2"> <?php if ($artist_meta) {
if ($_SERVER['REQUEST_METHOD'] == 'GET') { // GET Request set_headers($type); if ($path_params[1] != null) { if ($path_params[1] == languages) { render_result(get_languages(), "meta", $type); /* render language table */ } if ($path_params[1] == types) { render_result(get_types(), "meta", $type); /* render musictype table */ } if ($path_params[1] == rating) { render_result(get_rating(), "meta", $type); /* render possible rating values */ } if ($path_params[1] == quality) { render_result(get_quality(), "meta", $type); /* render possible quality values */ } if ($path_params[1] == genres) { render_result(get_genres(), "meta", $type); /* render genre table */ } if ($path_params[1] == source) { render_result(get_source(), "meta", $type); /* render source table */ } } } mysql_close($database);