<?php
/* Smarty version 3.1.30, created on 2018-02-03 20:52:45
  from "C:\xampp\htdocs\decydownik\module\user\default.tpl" */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.30',
  'unifunc' => 'content_5a76130d18faf8_88610659',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    'b811feedb85e3269031c86dbd83dde1c69532f57' => 
    array (
      0 => 'C:\\xampp\\htdocs\\decydownik\\module\\user\\default.tpl',
      1 => 1517687562,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_5a76130d18faf8_88610659 (Smarty_Internal_Template $_smarty_tpl) {
echo statement::display();?>

<div class="Content">
    <div class="ContentLabel tal">
        <?php echo l('Proces decyzyjny');?>

    </div>  
    <?php if ($_smarty_tpl->tpl_vars['begin']->value) {?>
    <?php echo '<script'; ?>
 type="text/javascript">
    $(document).ready(function(){
         LoadDynamicForm('ajax.php?mode=proces&function=alternatywy&ProcesId=<?php echo $_smarty_tpl->tpl_vars['begin']->value;?>
',$('#BtnStartProcess'));
    });
    <?php echo '</script'; ?>
>
    <?php }?>
    <div class="ContentWrapper">
        <div class="DynamicForms">

            <div>
                <div class="DecsisionFrameText">
                    <form class="p20">
                        <input type="hidden" name="mode" value="proces" />
                        <input type="hidden" name="function" value="start" />
                        Kliknij <strong>start</strong> by rozpocząć nowy proces decyzyjny
                        <div class="p20 tac">
                            <a href="javascript:;" id="BtnStartProcess" class="btn btn-primary DynamicFormSubmit"><?php echo l('START');?>
</a>
                        </div>
                    </form>
                </div>
                <?php if ($_smarty_tpl->tpl_vars['Procesy']->value->Count) {?>
                <div class="p10">
                    <table class="table table-striped">
                        <thead>
                            <tr>
                                <td>ID</td>
                                <td>Nazwa</td>
                                <td>Temat</td>
                                <td>Utworzono</td>
                                <td></td>
                            </tr>
                        </thead>
                        <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['Procesy']->value->Items, 'Proces');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['Proces']->value) {
?>
                        <tr>
                            <td<?php if (!$_smarty_tpl->tpl_vars['Proces']->value->user) {?> style="background: #F7FFF0 !important"<?php }?>><?php echo $_smarty_tpl->tpl_vars['Proces']->value->id;?>
</td>
                            <td<?php if (!$_smarty_tpl->tpl_vars['Proces']->value->user) {?> style="background: #F7FFF0 !important"<?php }?>><?php echo $_smarty_tpl->tpl_vars['Proces']->value->nazwa;?>
</td>
                            <td<?php if (!$_smarty_tpl->tpl_vars['Proces']->value->user) {?> style="background: #F7FFF0 !important"<?php }?>><?php echo $_smarty_tpl->tpl_vars['Proces']->value->tnazwa;?>
</td>
                            <td<?php if (!$_smarty_tpl->tpl_vars['Proces']->value->user) {?> style="background: #F7FFF0 !important"<?php }?>><?php echo $_smarty_tpl->tpl_vars['Proces']->value->crt;?>
</td>
                            <td<?php if (!$_smarty_tpl->tpl_vars['Proces']->value->user) {?> style="background: #F7FFF0 !important"<?php }?> class="tar"><a href="javascript:;" onclick="LoadDynamicForm('ajax.php?mode=proces&function=alternatywy&ProcesId=<?php echo $_smarty_tpl->tpl_vars['Proces']->value->id;?>
',$('#BtnStartProcess'));" class="btn btn-primary">Rozpocznij/Kontynuuj</a></td>
                        </tr>
                        <?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
?>

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

</div>
<?php }
}
