<?php /* Smarty version 2.6.19, created on 2008-05-22 21:02:06
         compiled from includes/edit.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'cat', 'includes/edit.tpl', 2, false),array('function', 'insert_form', 'includes/edit.tpl', 8, false),array('function', 'html_options', 'includes/edit.tpl', 9, false),array('function', 'insert_id_selections', 'includes/edit.tpl', 16, 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']): ?>
<?php if (! $this->_tpl_vars['no_display_form']): ?>
    <form method="post" action="">
    <input type="submit" name="button_save" value="Save" style="display: none;">
      <table class="record">
        <tr><th>Name:</th></tr><tr><td><?php echo smarty_function_insert_form(array('type' => 'text','name' => 'name','value' => $this->_tpl_vars['record']['name']), $this);?>
</td></tr><tr class="space"><td></td></tr>
        <tr><th><?php if ($this->_tpl_vars['webdoc']['main_table'] == 'product'): ?>Family<?php else: ?>Category<?php endif; ?>:</th></tr><tr><td><?php echo smarty_function_html_options(array('name' => 'category_id','options' => $this->_tpl_vars['tree'],'selected' => $this->_tpl_vars['record']['category_id']), $this);?>
</td></tr><tr class="space"><td></td></tr>
        <tr><th>Created:</th></tr><tr><td><?php echo $this->_tpl_vars['record']['created']; ?>
<?php if ($this->_tpl_vars['record']['creator']): ?><br /><?php echo $this->_tpl_vars['record']['creator']; ?>
<?php endif; ?></td></tr><tr class="space"><td></td></tr>
        <tr><th>Approved:</th></tr><tr><td><?php if (! isset ( $this->_tpl_vars['record']['approved'] )): ?>No<?php else: ?><?php echo $this->_tpl_vars['record']['approved']; ?>
<?php if (isset ( $this->_tpl_vars['record']['approver'] )): ?><br /><?php echo $this->_tpl_vars['record']['approver']; ?>
<?php endif; ?><?php endif; ?></td></tr><tr class="space"><td></td></tr>
        <tr><th>Active:</th></tr><tr><td><?php if ($this->_tpl_vars['record']['active'] == 1): ?>Yes<?php else: ?>No<?php endif; ?></td></tr><tr class="space"><td></td></tr>
        <tr><th>Description:</th></tr><tr><td><?php echo smarty_function_insert_form(array('type' => 'textarea','name' => 'description','value' => $this->_tpl_vars['record']['description']), $this);?>
</td></tr><tr class="space"><td></td></tr>
        <tr><th>Comments:</th></tr><tr><td><?php echo smarty_function_insert_form(array('type' => 'textarea','name' => 'comments','value' => $this->_tpl_vars['record']['comments']), $this);?>
</td></tr><tr class="space"><td></td></tr>
<?php if ($this->_tpl_vars['webdoc']['main_table'] == 'requirement'): ?>
        <tr><th>Dependces:</th></tr><tr><td><?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['record']['dependences_id']), $this);?>
</td></tr><tr class="space"><td></td></tr>
        <tr><th>Is product specific:</th></tr><tr><td><?php echo smarty_function_html_options(array('name' => 'is_product_specific','options' => $this->_tpl_vars['yesno'],'selected' => $this->_tpl_vars['record']['is_product_specific']), $this);?>
</td></tr></tr><tr class="space"><td></td></tr>
<?php endif; ?>
<?php if ($this->_tpl_vars['webdoc']['main_table'] == 'product'): ?>
        <tr><th>Requirements (state, priority):</th></tr><tr><td><?php echo smarty_function_insert_id_selections(array('select_name' => 'requirements_id','buttons_name' => 'requirement','select' => $this->_tpl_vars['requirements'],'array_id' => $this->_tpl_vars['record']['requirements_id'],'states' => $this->_tpl_vars['states'],'states_id' => $this->_tpl_vars['record']['states_id'],'priorities' => $this->_tpl_vars['priorities'],'priorities_id' => $this->_tpl_vars['record']['priorities_id']), $this);?>
</td></tr><tr class="space"><td></td></tr>
<?php endif; ?>
        <tr><td><?php echo smarty_function_insert_form(array('type' => 'submit','name' => 'button_save','value' => 'Save'), $this);?>
</td><tr>
      </table>
    </form>
<?php endif; ?>
<?php endif; ?>