<?php /* Smarty version 2.6.19, created on 2008-04-28 22:00:59
         compiled from includes/edit_test_run.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'cat', 'includes/edit_test_run.tpl', 2, false),array('function', 'insert_form', 'includes/edit_test_run.tpl', 6, 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="post" action="">
      <table class="record" border=0>
        <?php if ($this->_tpl_vars['record']['is_approved'] <> 1): ?><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><?php else: ?><?php echo smarty_function_insert_form(array('type' => 'hidden','name' => 'name','value' => $this->_tpl_vars['record']['name']), $this);?>
<?php endif; ?>
        <?php if (! isset ( $this->_tpl_vars['record']['edit'] )): ?><?php if (isset ( $this->_tpl_vars['record']['test_id'] )): ?><tr><th>Test ID:</th></tr><tr><td><?php echo $this->_tpl_vars['record']['test_id']; ?>
<?php echo smarty_function_insert_form(array('type' => 'hidden','name' => 'test_id','value' => $this->_tpl_vars['record']['test_id']), $this);?>
</td></tr><tr class="space"><td></td></tr><?php endif; ?><?php endif; ?>
        <?php if (! isset ( $this->_tpl_vars['record']['edit'] )): ?><?php if (isset ( $this->_tpl_vars['record']['product_id'] )): ?><tr><th>Product ID:</th></tr><tr><td><?php echo $this->_tpl_vars['record']['product_id']; ?>
<?php echo smarty_function_insert_form(array('type' => 'hidden','name' => 'product_id','value' => $this->_tpl_vars['record']['product_id']), $this);?>
</td></tr><tr class="space"><td></td></tr><?php endif; ?><?php endif; ?>
        <?php if ($this->_tpl_vars['record']['is_approved'] <> 1): ?><tr><th>SW rev:</th></tr><tr><td><?php echo smarty_function_insert_form(array('type' => 'text','name' => 'sw_rev','value' => $this->_tpl_vars['record']['sw_rev']), $this);?>
</td></tr><tr class="space"><td></td></tr><?php else: ?><?php echo smarty_function_insert_form(array('type' => 'hidden','name' => 'sw_rev','value' => $this->_tpl_vars['record']['sw_rev']), $this);?>
<?php endif; ?>
        <?php if ($this->_tpl_vars['record']['is_approved'] <> 1): ?><tr><th>HW rev:</th></tr><tr><td><?php echo smarty_function_insert_form(array('type' => 'text','name' => 'hw_rev','value' => $this->_tpl_vars['record']['hw_rev']), $this);?>
</td></tr><tr class="space"><td></td></tr><?php else: ?><?php echo smarty_function_insert_form(array('type' => 'hidden','name' => 'hw_rev','value' => $this->_tpl_vars['record']['hw_rev']), $this);?>
<?php endif; ?>
        <?php if ($this->_tpl_vars['record']['is_approved'] <> 1): ?><tr><th>Setup:</th></tr><tr><td><?php echo smarty_function_insert_form(array('type' => 'textarea','name' => 'setup','value' => $this->_tpl_vars['record']['setup']), $this);?>
</td></tr><tr class="space"><td></td></tr><?php else: ?><?php echo smarty_function_insert_form(array('type' => 'hidden','name' => 'setup','value' => $this->_tpl_vars['record']['setup']), $this);?>
<?php endif; ?>
        <tr><th>Result:</th></tr><tr><td><?php echo smarty_function_insert_form(array('type' => 'textarea','name' => 'result','value' => $this->_tpl_vars['record']['result']), $this);?>
</td></tr><tr class="space"><td></td></tr>
        <tr><th>Duration:</th></tr><tr><td><?php echo smarty_function_insert_form(array('type' => 'text','name' => 'duration','value' => $this->_tpl_vars['record']['duration']), $this);?>
</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><td colspan="2"><?php if ($this->_tpl_vars['record']['edit']): ?><?php echo smarty_function_insert_form(array('type' => 'hidden','name' => 'test_run_id','value' => $this->_tpl_vars['record']['test_run_id']), $this);?>
<?php echo smarty_function_insert_form(array('type' => 'submit','name' => 'button_edit','value' => 'Edit Test Run'), $this);?>
<?php else: ?><?php echo smarty_function_insert_form(array('type' => 'submit','name' => 'button_save','value' => 'Add new Test Run'), $this);?>
<?php endif; ?></td><tr>
      </table>
    </form>
<?php endif; ?>