<?php /* Smarty version 2.6.19, created on 2008-05-22 21:16:23
         compiled from includes/filter.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'cat', 'includes/filter.tpl', 2, false),array('function', 'insert_form', 'includes/filter.tpl', 5, false),array('function', 'insert_id_selections', 'includes/filter.tpl', 14, false),array('function', 'html_options', 'includes/filter.tpl', 26, false),)), $this); ?>
    <div class="space"></div>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ((is_array($_tmp=$this->_tpl_vars['webdoc']['template_dir'])) ? $this->_run_mod_handler('cat', true, $_tmp, "message.tpl") : smarty_modifier_cat($_tmp, "message.tpl")), 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<?php if (! $this->_tpl_vars['no_display']): ?>
    <form method="get" action="">
<?php echo smarty_function_insert_form(array('type' => 'hidden','name' => 'subpage1','value' => $_GET['subpage1']), $this);?>

<?php echo smarty_function_insert_form(array('type' => 'hidden','name' => 'subpage2','value' => 'filter'), $this);?>

<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ((is_array($_tmp=$this->_tpl_vars['webdoc']['template_dir'])) ? $this->_run_mod_handler('cat', true, $_tmp, "pages_hidden.tpl") : smarty_modifier_cat($_tmp, "pages_hidden.tpl")), 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ((is_array($_tmp=$this->_tpl_vars['webdoc']['template_dir'])) ? $this->_run_mod_handler('cat', true, $_tmp, "sort_hidden.tpl") : smarty_modifier_cat($_tmp, "sort_hidden.tpl")), 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ((is_array($_tmp=$this->_tpl_vars['webdoc']['template_dir'])) ? $this->_run_mod_handler('cat', true, $_tmp, "columns_hidden.tpl") : smarty_modifier_cat($_tmp, "columns_hidden.tpl")), 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
      <input type="submit" name="button_filtrate" value="Filtrate" style="display: none;">
      <table class="record">
        <tr><th colspan="2">Name:</th></tr><tr><td colspan="2"><?php echo smarty_function_insert_form(array('type' => 'text','name' => 'name','value' => $this->_tpl_vars['filter']['name']), $this);?>
</td></tr><tr class="space"><td colspan="2"></td></tr>
<?php if ($this->_tpl_vars['webdoc']['main_table'] == 'requirement' || $this->_tpl_vars['webdoc']['main_table'] == 'product'): ?>
        <tr><th colspan="2"><?php if ($this->_tpl_vars['webdoc']['main_table'] == 'product'): ?>Families<?php else: ?>Categories<?php endif; ?>:</th></tr><tr><td colspan="2"><?php echo smarty_function_insert_id_selections(array('select_name' => 'categories_id','buttons_name' => 'category','select' => $this->_tpl_vars['categories'],'array_id' => $this->_tpl_vars['filter']['categories_id']), $this);?>
</td></tr><tr class="space"><td colspan="2"></td></tr>
        <tr><th colspan="2">Parents:</th></tr><tr><td colspan="2"><?php echo smarty_function_insert_id_selections(array('select_name' => 'parents_id','buttons_name' => 'parent','select' => $this->_tpl_vars['parents'],'array_id' => $this->_tpl_vars['filter']['parents_id']), $this);?>
</td></tr><tr class="space"><td colspan="2"></td></tr>
<?php endif; ?>
        <tr><th colspan="2">Created:</th></tr><tr><td class="nb-right nb-bottom">From: </td><td class="nb-bottom nb-left"><?php echo smarty_function_insert_form(array('type' => 'text','name' => 'created_from','value' => $this->_tpl_vars['filter']['created_from']), $this);?>
</td></tr><tr><td class="nb-top nb-right">To: </td><td class="nb-top nb-left"><?php echo smarty_function_insert_form(array('type' => 'text','name' => 'created_to','value' => $this->_tpl_vars['filter']['created_to']), $this);?>
</td></tr><tr class="space"><td colspan="2"></td></tr>
        <tr><th colspan="2">Creators:</th></tr><tr><td colspan="2"><?php echo smarty_function_insert_id_selections(array('select_name' => 'creators_id','buttons_name' => 'creator','select' => $this->_tpl_vars['creators'],'array_id' => $this->_tpl_vars['filter']['creators_id']), $this);?>
</td></tr><tr class="space"><td colspan="2"></td></tr>
        <tr><th colspan="2">Approved:</th></tr><tr><td class="nb-right nb-bottom">From: </td><td class="nb-bottom nb-left"><?php echo smarty_function_insert_form(array('type' => 'text','name' => 'approved_from','value' => $this->_tpl_vars['filter']['approved_from']), $this);?>
</td></tr><tr><td class="nb-top nb-right">To: </td><td class="nb-top nb-left"><?php echo smarty_function_insert_form(array('type' => 'text','name' => 'approved_to','value' => $this->_tpl_vars['filter']['approved_to']), $this);?>
</td></tr><tr class="space"><td colspan="2"></td></tr>
        <tr><th colspan="2">Approvers:</th></tr><tr><td colspan="2"><?php echo smarty_function_insert_id_selections(array('select_name' => 'approvers_id','buttons_name' => 'approver','select' => $this->_tpl_vars['approvers'],'array_id' => $this->_tpl_vars['filter']['approvers_id']), $this);?>
</td></tr><tr class="space"><td colspan="2"></td></tr>
<?php if ($this->_tpl_vars['webdoc']['main_table'] == 'test_run'): ?>
        <tr><th colspan="2">Tested:</th></tr><tr><td class="nb-right nb-bottom">From: </td><td class="nb-bottom nb-left"><?php echo smarty_function_insert_form(array('type' => 'text','name' => 'tested_from','value' => $this->_tpl_vars['filter']['tested_from']), $this);?>
</td></tr><tr><td class="nb-top nb-right">To: </td><td class="nb-top nb-left"><?php echo smarty_function_insert_form(array('type' => 'text','name' => 'tested_to','value' => $this->_tpl_vars['filter']['tested_to']), $this);?>
</td></tr><tr class="space"><td colspan="2"></td></tr>
        <tr><th colspan="2">Testers:</th></tr><tr><td colspan="2"><?php echo smarty_function_insert_id_selections(array('select_name' => 'testers_id','buttons_name' => 'tester','select' => $this->_tpl_vars['testers'],'array_id' => $this->_tpl_vars['filter']['testers_id']), $this);?>
</td></tr><tr class="space"><td colspan="2"></td></tr>
<?php endif; ?>
<?php if ($this->_tpl_vars['webdoc']['main_table'] == 'requirement'): ?>
        <tr><th colspan="2">Active:</th></tr><tr><td colspan="2"><?php echo smarty_function_html_options(array('name' => 'active','options' => $this->_tpl_vars['active_options'],'selected' => $this->_tpl_vars['filter']['active']), $this);?>
</td></tr><tr class="space"><td colspan="2"></td></tr>
<?php endif; ?>
<?php if ($this->_tpl_vars['webdoc']['main_table'] == 'test_run'): ?>
        <tr><th colspan="2">SW Rev:</th></tr><tr><td colspan="2"><?php echo smarty_function_insert_form(array('type' => 'text','name' => 'sw_rev','value' => $this->_tpl_vars['filter']['sw_rev']), $this);?>
</td></tr><tr class="space"><td colspan="2"></td></tr>
        <tr><th colspan="2">HW Rev:</th></tr><tr><td colspan="2"><?php echo smarty_function_insert_form(array('type' => 'text','name' => 'hw_rev','value' => $this->_tpl_vars['filter']['hw_rev']), $this);?>
</td></tr><tr class="space"><td colspan="2"></td></tr>
        <tr><th colspan="2">Setup:</th></tr><tr><td colspan="2"><?php echo smarty_function_insert_form(array('type' => 'text','name' => 'setup','value' => $this->_tpl_vars['filter']['setup']), $this);?>
</td></tr><tr class="space"><td colspan="2"></td></tr>
        <tr><th colspan="2">Result:</th></tr><tr><td colspan="2"><?php echo smarty_function_insert_form(array('type' => 'text','name' => 'result','value' => $this->_tpl_vars['filter']['result']), $this);?>
</td></tr><tr class="space"><td colspan="2"></td></tr>
        <tr><th colspan="2">Duration:</th></tr><tr><td colspan="2"><?php echo smarty_function_insert_form(array('type' => 'text','name' => 'duration','value' => $this->_tpl_vars['filter']['duration']), $this);?>
</td></tr><tr class="space"><td colspan="2"></td></tr>
<?php endif; ?>
<?php if ($this->_tpl_vars['webdoc']['main_table'] != 'test'): ?>
        <tr><th colspan="2">Description:</th></tr><tr><td colspan="2"><?php echo smarty_function_insert_form(array('type' => 'text','name' => 'description','value' => $this->_tpl_vars['filter']['description']), $this);?>
</td></tr><tr class="space"><td colspan="2"></td></tr>
<?php endif; ?>
<?php if ($this->_tpl_vars['webdoc']['main_table'] == 'test'): ?>
        <tr><th colspan="2">Acceptance criteria:</th></tr><tr><td colspan="2"><?php echo smarty_function_insert_form(array('type' => 'text','name' => 'acceptance_criteria','value' => $this->_tpl_vars['filter']['acceptance_criteria']), $this);?>
</td></tr><tr class="space"><td colspan="2"></td></tr>
<?php endif; ?>
<?php if ($this->_tpl_vars['webdoc']['main_table'] == 'test' || $this->_tpl_vars['webdoc']['main_table'] == 'requirement' || $this->_tpl_vars['webdoc']['main_table'] == 'product'): ?>
        <tr><th colspan="2">Comments:</th></tr><tr><td colspan="2"><?php echo smarty_function_insert_form(array('type' => 'text','name' => 'comments','value' => $this->_tpl_vars['filter']['comments']), $this);?>
</td></tr><tr class="space"><td colspan="2"></td></tr>
<?php endif; ?>
<?php if ($this->_tpl_vars['webdoc']['main_table'] == 'test'): ?>
        <tr><th colspan="2">Terminated:</th></tr><tr><td class="nb-right nb-bottom">From: </td><td class="nb-bottom nb-left"><?php echo smarty_function_insert_form(array('type' => 'text','name' => 'terminate_from','value' => $this->_tpl_vars['filter']['terminate_from']), $this);?>
</td></tr><tr><td class="nb-top nb-right">To: </td><td class="nb-top nb-left"><?php echo smarty_function_insert_form(array('type' => 'text','name' => 'terminate_to','value' => $this->_tpl_vars['filter']['terminate_to']), $this);?>
</td></tr><tr class="space"><td colspan="2"></td></tr>
        <tr><th colspan="2">Terminator:</th></tr><tr><td colspan="2"><?php echo smarty_function_insert_id_selections(array('select_name' => 'terminators_id','buttons_name' => 'terminator','select' => $this->_tpl_vars['terminators'],'array_id' => $this->_tpl_vars['filter']['terminators_id']), $this);?>
</td></tr><tr class="space"><td colspan="2"></td></tr>
<?php endif; ?>
<?php if ($this->_tpl_vars['webdoc']['main_table'] == 'requirement'): ?>
        <tr><th colspan="2">Dependces:</th></tr><tr><td colspan="2"><?php echo smarty_function_insert_id_selections(array('select_name' => 'dependences_id','buttons_name' => 'dependence','select' => $this->_tpl_vars['dependences'],'array_id' => $this->_tpl_vars['filter']['dependences_id']), $this);?>
</td></tr><tr class="space"><td colspan="2"></td></tr>
        <tr><th colspan="2">Is product specific:</th></tr><tr><td colspan="2"><?php echo smarty_function_html_options(array('name' => 'is_product_specific','options' => $this->_tpl_vars['is_product_specific_options'],'selected' => $this->_tpl_vars['filter']['is_product_specific']), $this);?>
</td></tr><tr class="space"><td colspan="2"></td></tr>
<?php endif; ?>
        <tr><td colspan="2"><?php echo smarty_function_insert_form(array('type' => 'submit','name' => 'button_filtrate','value' => 'Filtrate'), $this);?>
 <?php echo smarty_function_insert_form(array('type' => 'submit','name' => 'button_clear','value' => 'Clear'), $this);?>
</td><tr>
      </table>
    </form>
<?php endif; ?>