コード例 #1
0
        echo implode(",", $genreIDs);
        ?>
]);
								<?php 
    }
    if ($memberPurposes != null) {
        foreach ($memberPurposes as $purpose) {
            $purposeID = $purpose->getVariable(ReferenceObject::OBJECT_ID);
            switch ($purposeID) {
                case 1:
                    echo "\$('#newBandInput').attr('checked', true);";
                    break;
                case 2:
                    echo "\$('#joinBandInput').attr('checked', true);";
                    break;
                case 3:
                    echo "\$('#jammingInput').attr('checked', true);";
                    break;
            }
        }
    }
    ?>
					</script>
				<?php 
}
?>
	</div>
<?php 
//Output the footer information
TemplateUtilities::writePageFooter();
コード例 #2
0
<?php

require_once $config->getIncludeURL(Config::INCLUDES_PATH, "utilities%location_utilities.php");
//Need to add name to page title.
$pageTitle = SiteConstants::SITE_TITLE . " - My Bands";
$pageDescription = SiteConstants::SITE_DESCRIPTION;
$pageKeywords = SiteConstants::SITE_KEY_WORDS;
$pageCssArray = SiteConstants::getSiteCss();
$pageJsArray = SiteConstants::getSiteJs();
$pageCssArray[] = "css/search_results.css";
$pageCssArray[] = "css/common_form_elements.css";
$pageCssArray[] = "css/band_results.css";
$pageJsArray[] = "js/search_results.js";
$pageJsArray[] = "js/jqModal.js";
$templateUtilities = new TemplateUtilities($config);
$templateUtilities->writePageHeaderAuthorised($memberID, $pageTitle, $pageDescription, $pageKeywords, $pageCssArray, $pageJsArray);
?>
	<div id="searchAdResultsDiv">
		<h1>My Bands</h1>
		<br/>

		<form id="searchForm" action="bands.php" method="get">
			<input type="hidden" id="<?php 
echo SearchConstants::CURRENT_PAGE_ID;
?>
" name="<?php 
echo SearchConstants::CURRENT_PAGE_ID;
?>
" value="<?php 
echo $bandSearchParameters->getVariable(SearchConstants::CURRENT_PAGE_ID);
?>