當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Format::selected方法代碼示例

本文整理匯總了PHP中Format::selected方法的典型用法代碼示例。如果您正苦於以下問題:PHP Format::selected方法的具體用法?PHP Format::selected怎麽用?PHP Format::selected使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Format的用法示例。


在下文中一共展示了Format::selected方法的8個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: display_str

			<tr id="tagfilter">
				<td class="label">Tags (comma-separated):</td>
				<td>
					<input type="search" name="tags" id="tags" size="60" value="<?php 
    echo !empty($TagNames) ? display_str($TagNames) : '';
    ?>
"<?php 
    Users::has_autocomplete_enabled('other');
    ?>
 />&nbsp;
					<input type="radio" name="tags_type" id="tags_type0" value="0"<?php 
    Format::selected('tags_type', 0, 'checked');
    ?>
 /><label for="tags_type0"> Any</label>&nbsp;&nbsp;
					<input type="radio" name="tags_type" id="tags_type1" value="1"<?php 
    Format::selected('tags_type', 1, 'checked');
    ?>
 /><label for="tags_type1"> All</label>
				</td>
			</tr>
			<tr id="include_filled">
				<td class="label"><label for="include_filled_box">Include filled:</label></td>
				<td>
					<input type="checkbox" id="include_filled_box" name="show_filled"<?php 
    if (!$Submitted || !empty($_GET['show_filled']) || !$Submitted && !empty($_GET['type']) && $_GET['type'] === 'filled') {
        ?>
 checked="checked"<?php 
    }
    ?>
 />
				</td>
開發者ID:Kufirc,項目名稱:Gazelle,代碼行數:31,代碼來源:requests.php

示例2: display_str

echo display_str($_GET['avatar']);
?>
" />
				</td>
				<td class="label nobr">Stylesheet:</td>
				<td>
					<select name="stylesheet" id="stylesheet">
						<option value="">Any</option>
<?php 
foreach ($Stylesheets as $Style) {
    ?>
						<option value="<?php 
    echo $Style['ID'];
    ?>
"<?php 
    Format::selected('stylesheet', $Style['ID']);
    ?>
><?php 
    echo $Style['ProperName'];
    ?>
</option>
<?php 
}
?>
					</select>
				</td>
				<td class="label tooltip nobr" title="Two-letter codes as defined in ISO 3166-1 alpha-2">Country code:</td>
				<td width="30%">
					<select name="cc_op">
						<option value="equal"<?php 
if ($_GET['cc_op'] === 'equal') {
開發者ID:Kufirc,項目名稱:Gazelle,代碼行數:31,代碼來源:advancedsearch.php

示例3: empty

				</td>
			</tr>
			<tr id="tor_showfilt_tr">
				<td class="label tooltip" title="Displaying filter controls will show torrent filtering options in the torrent search menu by default. Displaying filters for official tags will list clickable filters for official tags in the torrent search menu by default."><strong>Torrent search filters</strong></td>
				<td>
					<ul class="options_list nobullet">
						<li>
							<input type="checkbox" name="showtfilter" id="showtfilter"<?php 
echo !isset($SiteOptions['ShowTorFilter']) || $SiteOptions['ShowTorFilter'] ? ' checked="checked"' : '';
?>
 />
							<label for="showtfilter">Display filter controls</label>
						</li>
						<li>
							<input type="checkbox" name="showtags" id="showtags"<?php 
Format::selected('ShowTags', 1, 'checked', $SiteOptions);
?>
 />
							<label for="showtags">Display official tag filters</label>
						</li>
					</ul>
				</td>
			</tr>
			<tr id="tor_autocomp_tr">
				<td class="label tooltip" title="Autocomplete will try to predict the word or phrase that you're typing. Selecting &quot;Everywhere&quot; will enable autocomplete on artist and tag fields across the site. Selecting &quot;Searches only&quot; will enable autocomplete in searches."><strong>Autocompletion</strong></td>
				<td>
					<select name="autocomplete">
						<option value="0"<?php 
echo empty($SiteOptions['AutoComplete']) ? ' selected="selected"' : '';
?>
>Everywhere</option>
開發者ID:Kufirc,項目名稱:Gazelle,代碼行數:31,代碼來源:edit.php

示例4:

			</tr>
			<tr id="order">
				<td class="label">Order by:</td>
				<td colspan="3" class="ft_order">
					<select name="order_by" style="width: auto;" class="ft_order_by">
						<option value="time"<?Format::selected('order_by', 'time')?>>Time added</option>
						<option value="year"<?Format::selected('order_by', 'year')?>>Year</option>
						<option value="size"<?Format::selected('order_by', 'size')?>>Size</option>
						<option value="snatched"<?Format::selected('order_by', 'snatched')?>>Snatched</option>
						<option value="seeders"<?Format::selected('order_by', 'seeders')?>>Seeders</option>
						<option value="leechers"<?Format::selected('order_by', 'leechers')?>>Leechers</option>
						<option value="random"<?Format::selected('order_by', 'random')?>>Random</option>
					</select>
					<select name="order_way" class="ft_order_way">
						<option value="desc"<?Format::selected('order_way', 'desc')?>>Descending</option>
						<option value="asc"<?Format::selected('order_way', 'asc')?>>Ascending</option>
					</select>
				</td>
			</tr>
			<tr id="search_group_results">
				<td class="label">
					<label for="group_results">Group by release:</label>
				</td>
				<td colspan="3" class="ft_group_results">
					<input type="checkbox" value="1" name="group_results" id="group_results"<?php 
echo $GroupResults ? ' checked="checked"' : '';
?>
 />
				</td>
			</tr>
		</table>
開發者ID:nguyenducduy,項目名稱:Gazelle,代碼行數:31,代碼來源:browse.php

示例5:

						<option value="leechers"<?php 
Format::selected('order_by', 'leechers');
?>
>Leechers</option>
						<option value="random"<?php 
Format::selected('order_by', 'random');
?>
>Random</option>
					</select>
					<select name="order_way" class="ft_order_way">
						<option value="desc"<?php 
Format::selected('order_way', 'desc');
?>
>Descending</option>
						<option value="asc"<?php 
Format::selected('order_way', 'asc');
?>
>Ascending</option>
					</select>
				</td>
			</tr>
			<tr id="search_group_results">
				<td class="label">
					<label for="group_results">Group by release:</label>
				</td>
				<td colspan="3" class="ft_group_results">
					<input type="checkbox" value="1" name="group_results" id="group_results"<?php 
echo $GroupResults ? ' checked="checked"' : '';
?>
 />
				</td>
開發者ID:Kufirc,項目名稱:Gazelle,代碼行數:31,代碼來源:browse.php

示例6: foreach

    echo $OrderText;
    ?>
</option>
<?php 
}
?>
						</select>&nbsp;
						<select name="way" class="ft_order_way">
<?php 
foreach ($Ways as $WayKey => $WayText) {
    ?>
							<option value="<?php 
    echo $WayKey;
    ?>
"<?php 
    Format::selected('way', $WayKey);
    ?>
><?php 
    echo $WayText;
    ?>
</option>
<?php 
}
?>
						</select>
					</td>
				</tr>
			</table>

			<table class="layout cat_list">
<?php 
開發者ID:Kufirc,項目名稱:Gazelle,代碼行數:31,代碼來源:user.php

示例7:

?>
>Descending</option>
						<option value="asc"<?php 
Format::selected('order_way', 'asc');
?>
>Ascending</option>
					</select>
				</td>
			</tr>
			<tr id="search_group_results">
				<td class="label">
					<label for="group_results">Group by release:</label>
				</td>
				<td colspan="3" class="ft_group_results">
					<input type="checkbox" value="1" name="group_results" id="group_results"<?php 
Format::selected('group_results', 1, 'checked');
?>
 />
				</td>
			</tr>
		</table>
		<table class="layout cat_list ft_cat_list">
<?php 
$x = 0;
reset($Categories);
foreach ($Categories as $CatKey => $CatName) {
    if ($x % 7 == 0) {
        if ($x > 0) {
            ?>
			</tr>
<?php 
開發者ID:karamanolev,項目名稱:Gazelle,代碼行數:31,代碼來源:browse.php

示例8: foreach

        echo $Properties['CategoryID'];
        ?>
" />
		<table>
			<tr>
				<td class="label">Change category</td>
				<td>
					<select id="newcategoryid" name="newcategoryid" onchange="ChangeCategory(this.value);">
<?php 
        foreach ($Categories as $CatID => $CatName) {
            ?>
						<option value="<?php 
            echo $CatID + 1;
            ?>
"<?php 
            Format::selected('CategoryID', $CatID + 1, 'selected', $Properties);
            ?>
><?php 
            echo $CatName;
            ?>
</option>
<?php 
        }
        ?>
					</select>
				</td>
			<tr id="split_releasetype">
				<td class="label">Release type</td>
				<td>
					<select name="releasetype">
<?php 
開發者ID:Kufirc,項目名稱:Gazelle,代碼行數:31,代碼來源:edit.php


注:本文中的Format::selected方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。