<?php /* Smarty version 2.6.19, created on 2008-05-23 09:33:11
         compiled from includes/view.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'cat', 'includes/view.tpl', 3, false),)), $this); ?>
<?php if (! $this->_tpl_vars['no_display_message']): ?>
    <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 endif; ?>
<?php if (! $this->_tpl_vars['no_display']): ?>
<?php if ($this->_tpl_vars['record']): ?>
<?php if (! isset ( $this->_tpl_vars['record']['current'] ) || $this->_tpl_vars['record']['current'] != 1): ?>
    <p>Viewing older version.</p>
<?php endif; ?>
    <table class="record">
      <tr><th>Name:</th></tr><tr><td><?php echo $this->_tpl_vars['record']['name']; ?>
</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 if (! isset ( $this->_tpl_vars['record']['category'] )): ?>-<?php else: ?><?php echo $this->_tpl_vars['record']['category']; ?>
<?php endif; ?></td></tr><tr class="space"><td></td></tr>
      <tr><th>Parent:</th></tr><tr><td><?php if (! isset ( $this->_tpl_vars['record']['parent'] )): ?>-<?php else: ?><?php echo $this->_tpl_vars['record']['parent']; ?>
<?php endif; ?></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>
<?php if ($this->_tpl_vars['webdoc']['main_table'] == 'requirement'): ?>        
      <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>
<?php endif; ?>
      <tr><th>Description:</th></tr><tr><td><?php echo $this->_tpl_vars['record']['description']; ?>
</td></tr><tr class="space"><td></td></tr>
      <tr><th>Comments:</th></tr><tr><td><?php echo $this->_tpl_vars['record']['comments']; ?>
</td></tr>
<?php if ($this->_tpl_vars['webdoc']['main_table'] == 'product'): ?>
<tr class="space"><td></td></tr>
      <tr><th>Requirements (state, priority):</th></tr><tr><td>
<?php $this->assign('i', 0); ?>
<?php $_from = $this->_tpl_vars['record']['requirements']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['requirement']):
?>
<?php $this->assign('i', $this->_tpl_vars['i']+1); ?>
<?php echo $this->_tpl_vars['requirement']; ?>
 (<?php echo $this->_tpl_vars['record']['states'][$this->_tpl_vars['key']]; ?>
, <?php echo $this->_tpl_vars['record']['priorities'][$this->_tpl_vars['key']]; ?>
)
<?php if ($this->_tpl_vars['i'] < count ( $this->_tpl_vars['record']['requirements'] )): ?><br /><?php endif; ?>
<?php endforeach; endif; unset($_from); ?>
<?php if (! isset ( $this->_tpl_vars['record']['requirements'] )): ?>No<?php endif; ?>
<?php endif; ?>
<?php if ($this->_tpl_vars['webdoc']['main_table'] == 'requirement'): ?>
<tr class="space"><td></td></tr>
      <tr><th>Dependences:</th></tr><tr><td>
<?php $this->assign('i', 0); ?>
<?php $_from = $this->_tpl_vars['record']['dependences']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['dependence']):
?>
<?php $this->assign('i', $this->_tpl_vars['i']+1); ?>
<?php echo $this->_tpl_vars['dependence']; ?>

<?php if ($this->_tpl_vars['i'] < count ( $this->_tpl_vars['record']['dependences'] )): ?><br /><?php endif; ?>
<?php endforeach; endif; unset($_from); ?>
<?php if (! isset ( $this->_tpl_vars['record']['dependences'] )): ?>No<?php endif; ?>
      </td></tr><tr class="space"><td></td></tr>
      <tr><th>Is product specific:</th></tr><tr><td><?php if ($this->_tpl_vars['record']['is_product_specific']): ?>Yes<?php else: ?>No<?php endif; ?></td></tr></tr>
<?php endif; ?>
    </table>
<?php endif; ?>
<?php endif; ?>