<?php
/* Smarty version 3.1.30, created on 2018-01-25 03:02:27
  from "C:\xampp\htdocs\decydownik\module\therapist\proces.tpl" */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.30',
  'unifunc' => 'content_5a693ab3a2e355_35947250',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '27a665c773350620fe12992252beedd0e135db57' => 
    array (
      0 => 'C:\\xampp\\htdocs\\decydownik\\module\\therapist\\proces.tpl',
      1 => 1516844291,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_5a693ab3a2e355_35947250 (Smarty_Internal_Template $_smarty_tpl) {
?>
<div class="Content">
    <div class="ContentLabel tal">
        <?php echo l('Szczegóły procesu');?>
: <?php echo $_smarty_tpl->tpl_vars['Proces']->value->nazwa;?>

    </div>  
    <div class="ContentWrapper">

        <table class="table">
            <thead>
                <tr>
                    <td class="bold">Kryterium</td>
                    <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['Headers']->value, 'HeaderName');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['HeaderName']->value) {
?>
                    <td><?php echo $_smarty_tpl->tpl_vars['HeaderName']->value;?>
</td>
                    <?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
?>

                    <td class="bold">Waga</td>
                </tr>
            </thead>
            <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['Wartosci']->value, 'Rows', false, 'RowName');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['RowName']->value => $_smarty_tpl->tpl_vars['Rows']->value) {
?>
            <tr>
                <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['Rows']->value, 'item', false, NULL, 'rows', array (
  'first' => true,
  'last' => true,
  'index' => true,
  'iteration' => true,
  'total' => true,
));
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['item']->value) {
$_smarty_tpl->tpl_vars['__smarty_foreach_rows']->value['iteration']++;
$_smarty_tpl->tpl_vars['__smarty_foreach_rows']->value['index']++;
$_smarty_tpl->tpl_vars['__smarty_foreach_rows']->value['first'] = !$_smarty_tpl->tpl_vars['__smarty_foreach_rows']->value['index'];
$_smarty_tpl->tpl_vars['__smarty_foreach_rows']->value['last'] = $_smarty_tpl->tpl_vars['__smarty_foreach_rows']->value['iteration'] == $_smarty_tpl->tpl_vars['__smarty_foreach_rows']->value['total'];
?>
                <?php if ((isset($_smarty_tpl->tpl_vars['__smarty_foreach_rows']->value['first']) ? $_smarty_tpl->tpl_vars['__smarty_foreach_rows']->value['first'] : null)) {?>
                <td class="tac" style="border:1px solid #C3C3C3 !important;background: #F6F6F6"><?php echo $_smarty_tpl->tpl_vars['RowName']->value;?>
</td>
                <?php }?>
                <td class="tac" style="border:1px solid #C3C3C3 !important"><?php echo $_smarty_tpl->tpl_vars['item']->value['wartosc'];?>
</td>
                <?php if ((isset($_smarty_tpl->tpl_vars['__smarty_foreach_rows']->value['last']) ? $_smarty_tpl->tpl_vars['__smarty_foreach_rows']->value['last'] : null)) {?>
                <td class="tac" style="border:1px solid #C3C3C3 !important;background: #F6F6F6"><?php echo $_smarty_tpl->tpl_vars['item']->value['waga'];?>
</td>
                <?php }?>
                <?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
?>

            </tr>
            <?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
?>

        </table>
        <?php if ($_smarty_tpl->tpl_vars['Proces']->value->therapist) {?>
        <div class="p10 tar">
            <a href="<?php echo core::$i->url;?>
/index.php?mode=therapist&function=proces_edit&id=<?php echo $_smarty_tpl->tpl_vars['Proces']->value->id;?>
" class="btn btn-primary">Edytuj</a>
        </div>
        <?php }?>
        <br /><br />
        <table class="table table-striped">
            <thead>
                <tr>
                    <td class="tac bold">RANKING</td>
                </tr>
            </thead>
            <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['Proces']->value->ranking->Items, 'Alternatywa', false, NULL, 'alternatywy', array (
));
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['Alternatywa']->value) {
?>
            <tr>
                <td class="tac" style="padding: 20px !important"><?php echo $_smarty_tpl->tpl_vars['Alternatywa']->value->nazwa;?>
</td>
            </tr>
            <?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
?>

        </table>
    </div>
</div><?php }
}
