コード例 #1
0
    echo $filter;
    ?>
"
			id="idFilter<?php 
    echo $filter;
    ?>
"
			<?php 
    echo isset($_POST["filter" . $filter]) ? 'checked="checked"' : "";
    ?>
 />
		<label for="idFilter<?php 
    echo $filter;
    ?>
"><?php 
    echo getFilterName($filter);
    ?>
</label>
	</div>
	<?php 
    $found = true;
}
?>
</div>
<?php 
if ($found) {
    ob_end_flush();
} else {
    ob_end_clean();
}
?>
コード例 #2
0
ファイル: p_keywords.php プロジェクト: brocococonut/yGallery
					Filters automatically applied by the system when a submission uses this keyword:
				</div>
				<div class="sep">
					<table cellspacing="0" cellpadding="4" border="0">
					<tr>
					<?php 
    $cols = 0;
    $objFilters = preg_split('/[\\s\\,\\;]/', $keyData["keyFilter"], 64, PREG_SPLIT_NO_EMPTY);
    foreach (getEnabledFilters() as $filter) {
        if ($cols > 2) {
            ?>
							</tr><tr>
							<?php 
            $cols = 0;
        }
        $filterName = $filter == -1 ? _SUBMIT_TYPE_EXTRA : getFilterName($filter);
        ?>
						<td align="right" width="40px">
							<input <?php 
        echo in_array($filter, $objFilters) ? 'checked="checked"' : "";
        ?>
							class="checkbox" id="idFilter<?php 
        echo $filter;
        ?>
" name="filter<?php 
        echo $filter;
        ?>
"
							type="checkbox" /></td>
						<td>
							<label for="idFilter<?php 
コード例 #3
0
ファイル: p_view.php プロジェクト: brocococonut/yGallery
echo _KEYWORDS;
?>
:</div>
		<div class="container2" id="keywords">
			<?php 
iefixStart();
if (isLoggedIn()) {
    // If the submission is mature, display this information on the
    // content details panel.
    $objFilters = preg_split('/[\\s\\,\\;]/', $objData["objMature"], 64, PREG_SPLIT_NO_EMPTY);
    ?>
				<div class="f_right mar_left mar_right mar_bottom">
					<?php 
    foreach (getEnabledFilters() as $filter) {
        if (in_array($filter, $objFilters)) {
            echo "&bull; " . getFilterName($filter) . "<br />";
        }
    }
    ?>
					<div class="sep a_right smalltext">
						<a href="<?php 
    echo url("site");
    ?>
"><?php 
    echo _SET_FILTERS;
    ?>
							<?php 
    echo getIMG(url() . "images/emoticons/nav-next.png");
    ?>
</a>
					</div>
コード例 #4
0
ファイル: p_submit.php プロジェクト: brocococonut/yGallery
        echo implode("", $stringList);
        ?>
			</div>
			<?php 
        $filters = getFiltersByKeywords(preg_split('/\\s/', $_POST["keywordList"], -1, PREG_SPLIT_NO_EMPTY));
        if (count($filters) > 0) {
            $useFilters = preg_split('/[\\s\\,\\;]/', $_auth["useObjFilters"], 64, PREG_SPLIT_NO_EMPTY);
            ?>
				<div class="sep caption"><?php 
            echo _FILTER_OPTIONS;
            ?>
:</div>
				<div class="container2 notsowide">
					<?php 
            foreach ($filters as $filter) {
                $filterName = getFilterName($filter);
                ?>
						<div>&bull; <?php 
                echo $filterName;
                ?>
						<?php 
                if (in_array($filter, $useFilters)) {
                    ?>
							<span class="error">-- <?php 
                    echo _SUBMIT_DISABLED_FILTERS;
                    ?>
</span>
							<?php 
                    $allowContinue = false;
                }
                ?>