<?php /* Smarty version 2.6.18, created on 2009-03-30 11:48:38
         compiled from list_codes.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'trim', 'list_codes.tpl', 22, false),array('modifier', 'nl2br', 'list_codes.tpl', 24, false),)), $this); ?>

<table border=1 cellpadding="3" cellspacing="0" borderwidth=1 RULES=rows >
	<tr>
		<th>Veld</th>
		<th>Code</th>
		<th>Waarde</th>
	</tr>

<?php $_from = $this->_tpl_vars['custom']['codes']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['code'] => $this->_tpl_vars['cat']):
?>

	<tr>
		<th colspan="3" style="text-align:left;border-top: 2px solid black;background-color:#DDDDDD;"><?php echo $this->_tpl_vars['cat']['title']; ?>
</th>
	</tr>

	<?php $_from = $this->_tpl_vars['cat']['items']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['code'] => $this->_tpl_vars['field']):
?>

		<tr>
			<td style="vertical-align:top;"><?php echo $this->_tpl_vars['field']['lbl']; ?>
</td>
			<td style="vertical-align:top;">[<?php echo $this->_tpl_vars['cat']['prefix']; ?>
:<?php echo $this->_tpl_vars['code']; ?>
]</td>
			<td>
				<?php if (in_array ( $this->_tpl_vars['code'] , array ( 'list_structuur' , 'list_structuur_plus' ) )): ?>
					<pre style="font-family: monospace"><?php echo ((is_array($_tmp=$this->_tpl_vars['field']['value'])) ? $this->_run_mod_handler('trim', true, $_tmp) : trim($_tmp)); ?>
</pre>
				<?php else: ?>
					<?php echo ((is_array($_tmp=$this->_tpl_vars['field']['value'])) ? $this->_run_mod_handler('nl2br', true, $_tmp) : smarty_modifier_nl2br($_tmp)); ?>

				<?php endif; ?>
			</td>
		</tr>
	<?php endforeach; endif; unset($_from); ?>
<?php endforeach; endif; unset($_from); ?>
</table>
