?>
				</select>
				<input type="submit" value="Search"><img src="popcorn-icon.png">

		</td></tr>
		
		<tr><td id="space" colspan="4"></td></tr>
		
		<tr><td colspan="4"><h2>Filter Movies By Director, Genre, and/or Rating</h2></td></tr>
			
		<tr><td>
			<h3>Director</h3>
			<select size=1 name="director">
				<option value="-1">Choose A Director</option>
				<?php 
$directorNames = getDirectors();
foreach ($directorNames as $director) {
    echo "<option value='" . $director['director'] . "'>" . $director['director'] . "</option>";
}
?>
			</select>
		</td>

		<td>
			<h3>Genre</h3>
			<select size=1 name="genre">
				<option value="-1">Choose A Genre</option>
				<?php 
$movieGenres = getGenres();
foreach ($movieGenres as $genre) {
    echo "<option value='" . $genre['genre'] . "'>" . $genre['genre'] . "</option>";
Beispiel #2
0
 }
 $_SESSION['link_to_programs'] = getItemByFolderParameter($arrTree, 'products-programs')->link;
 $_SESSION['link_to_myscreenings'] = getItemByFolderParameter($arrTree, 'products-selftimes')->link;
 // FILMID A-Z / FILMS A-Z
 if ($recNode->parameters == 'products-filmsAZ') {
     $engSmarty->assign("filmsAZ_linktoprograms", getItemByFolderParameter($arrTree, 'products-programs')->link);
     $engSmarty->assign("filmsAZ_alphabet", receiveAlphabet());
     $engSmarty->assign("filmsAZ_dropmenus", receiveFilmsAZ_dropmenus());
     $engSmarty->assign("filmsAZ", receiveFilmsAZ($recNode->lang));
 } elseif ($recNode->parameters == 'products-programs') {
     $filmsPrograms = getItemByFolderParameter($arrTree, 'products-programs')->arrNode;
     foreach ($filmsPrograms as &$program) {
         $program->title_list = mb_convert_case($program->title, MB_CASE_UPPER, "UTF-8");
     }
     $engSmarty->assign("filmsPrograms", $filmsPrograms);
     $directors = getDirectors();
     $countries = getCountries();
     if (isset($arrContent[0]->products)) {
         // modification: for better speed - getDirectors
         foreach ($arrContent[0]->products as $product) {
             foreach ($product->arrVariable as $key => &$var) {
                 if ($key == 'director') {
                     $cs = @explode(',', $var->value->strValue);
                     foreach ($cs as &$c) {
                         $c = $directors[trim($c)];
                     }
                     $var->value->strValue = implode(', ', $cs);
                 } elseif ($key == 'country') {
                     $cs = @explode(',', $var->value->strValue);
                     $cs = array_unique($cs);
                     foreach ($cs as &$c) {
Beispiel #3
0
            $strError = $arrTranslation["structure"]["error"]["noprivileges"];
        }
    }
    if ($arrGlobalRights[5485] != "deny") {
        include MODULE_DIR . "productcatalog/actions.product.inc";
    } else {
        $recProduct->recForm->boolClose = true;
    }
}
if ($strError) {
    $recProduct->recError->strError = $strError;
} elseif ($recError) {
    $recProduct->recError->strError = $arrTranslation["structure"]["error"][$recError->type];
    if (is_array($recError->fields)) {
        foreach ($recError->fields as $errField) {
            $recProduct->recError->{$errField} = "error";
        }
    }
}
//$engSmarty->debugging = true;
$engSmarty->assign("directors", getDirectors());
$engSmarty->assign("countries", getCountries());
$engSmarty->assign("screenings", receiveScreeningsAdmin($_GET['ID']));
$engSmarty->assign("id", $id);
adminSplitMultipleData($recProduct, $id);
$engSmarty->assign("_GET", $_GET);
$engSmarty->assign("boolRefresh", $_GET["refresh"]);
$engSmarty->assign("arrTranslation", $arrTranslation);
$engSmarty->assign("recProduct", $recProduct);
$engSmarty->assign("RELATIVE_DIR", '/' . RELATIVE_DIR);
$engSmarty->display("admin/pop.product.tpl");