当前位置: 首页>>代码示例>>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;未经允许,请勿转载。