<?php
/* Smarty version 3.1.30, created on 2018-02-15 13:20:38
  from "/home/users/spine/public_html/decydownik/module/therapist/proces_edit.tpl" */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.30',
  'unifunc' => 'content_5a857b162c7996_04256508',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '9e5ad06abb80b986c828aca1a35e9c0e293bc608' => 
    array (
      0 => '/home/users/spine/public_html/decydownik/module/therapist/proces_edit.tpl',
      1 => 1518359776,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_5a857b162c7996_04256508 (Smarty_Internal_Template $_smarty_tpl) {
?>
<div class="Content">
    <div class="ContentLabel tal">
        <?php echo l('Edycja 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', false, 'key');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['key']->value => $_smarty_tpl->tpl_vars['HeaderName']->value) {
?>
                    <td><?php echo $_smarty_tpl->tpl_vars['HeaderName']->value;?>
 <a href="javascript:;" onclick="$.getJSON('ajax.php?mode=proces&function=removealt&id=<?php echo $_smarty_tpl->tpl_vars['key']->value;?>
',function(){ window.location.reload() })" class="SetTooltip" title="Usuń alternatywę"><i class="fa fa-trash"></i></a></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;?>
<a href="javascript:;" onclick="$.getJSON('ajax.php?mode=proces&function=removekryterium&id=<?php echo $_smarty_tpl->tpl_vars['item']->value['kryterium_id'];?>
',function(){ window.location.reload() })" class="SetTooltip" title="Usuń kryterium"><i class="fa fa-trash"></i></a></td>
                <?php }?>
                <td class="tac" style="border:1px solid #C3C3C3 !important"><?php echo $_smarty_tpl->tpl_vars['item']->value['wartosc'];?>
 <a href="javascript:;" class="ProcesMoreOptions" data-url="ajax.php?mode=proces&function=editwartosc&id=<?php echo $_smarty_tpl->tpl_vars['item']->value['id'];?>
"><i class="fa fa-edit"></i></a></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'];?>
 <a href="javascript:;" class="ProcesMoreOptions" data-url="ajax.php?mode=proces&function=wagaedit&id=<?php echo $_smarty_tpl->tpl_vars['item']->value['id'];?>
"><i class="fa fa-edit"></i></a></td>
                <?php }?>
                <?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
?>

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

        </table>
        <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 }
}
