示例#1
0
				<div class="grid">
					<div class="col span6">
						<div class="input-wrap" data-hint="<?php 
echo Lang::txt('COM_BLOG_FIELD_SCOPE_HINT');
?>
">
							<label for="field-scope"><?php 
echo Lang::txt('COM_BLOG_FIELD_SCOPE');
?>
:</label><br />
							<?php 
if ($this->row->isNew() || User::authorise('core.admin', $this->option)) {
    ?>
								<?php 
    echo Components\Blog\Admin\Helpers\Html::scopes($this->row->get('scope'), 'fields[scope]', 'field-scope');
    ?>
							<?php 
} else {
    ?>
								<input type="text" name="fields[scope]" id="field-scope" disabled="disabled" value="<?php 
    echo $this->escape(stripslashes($this->row->get('scope')));
    ?>
" />
							<?php 
}
?>
						</div>
					</div>
					<div class="col span6">
						<div class="input-wrap">
示例#2
0
				<input type="submit" value="<?php 
echo Lang::txt('COM_BLOG_GO');
?>
" />
				<button type="button" onclick="$('#filter_search').val('');$('#filter-state').val('');this.form.submit();"><?php 
echo Lang::txt('JSEARCH_FILTER_CLEAR');
?>
</button>
			</div>
			<div class="col span8 align-right">
				<label for="filter-scope"><?php 
echo Lang::txt('COM_BLOG_FIELD_SCOPE');
?>
:</label>
				<?php 
echo Components\Blog\Admin\Helpers\Html::scopes($this->filters['scope'], 'scope', 'filter-scope', 'onchange="this.form.submit()"');
?>

				<label for="filter-state"><?php 
echo Lang::txt('COM_BLOG_FIELD_STATE');
?>
:</label>
				<select name="state" id="filter-state" onchange="this.form.submit();">
					<option value="-1"<?php 
if ($this->filters['state'] == '-1') {
    echo ' selected="selected"';
}
?>
><?php 
echo Lang::txt('COM_BLOG_ALL_STATES');
?>