Skip to content

Instantly share code, notes, and snippets.

@adamfairholm
Created October 16, 2011 17:41
Show Gist options
  • Save adamfairholm/1291179 to your computer and use it in GitHub Desktop.
Save adamfairholm/1291179 to your computer and use it in GitHub Desktop.
PyroCMS 1.4 Blog Filter
<fieldset id="filters">
<legend><?php echo lang('global:filters'); ?></legend>
<?php echo form_open(); ?>
<?php echo form_hidden('f_module', $module_details['slug']); ?>
<ul>
<li>
<?php echo lang('blog_status_label', 'f_status'); ?>
<?php echo form_dropdown('f_status', array(0 => lang('global:select-all'), 'draft'=>lang('blog_draft_label'), 'live'=>lang('blog_live_label'))); ?>
</li>
<li>
<?php echo lang('blog_category_label', 'f_category'); ?>
<?php echo form_dropdown('f_category', array(0 => lang('global:select-all')) + $categories); ?>
</li>
<li><?php echo form_input('f_keywords'); ?></li>
<li><?php echo anchor(current_url() . '#', lang('buttons.cancel'), 'class="cancel"'); ?></li>
</ul>
<?php echo form_close(); ?>
</fieldset>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment