<?php
/* Smarty version 3.1.30, created on 2018-02-03 21:09:25
  from "C:\xampp\htdocs\decydownik\module\user\game.tpl" */

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

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

    </div>  
    <div class="ContentWrapper">
    <?php if ($_smarty_tpl->tpl_vars['KryteriaLista']->value) {?>
        <div class="fs24 p10 tac">
            Co wybierasz?
        </div>
        <form method="post" action="<?php echo core::$i->url;?>
/index.php">
        <input type="hidden" name="mode" value="user" />
        <input type="hidden" name="function" value="game_result" />
        <input type="hidden" name="temat_id" value="<?php echo $_smarty_tpl->tpl_vars['temat_id']->value;?>
" />
        <input type="hidden" name="proces_id" value="<?php echo $_smarty_tpl->tpl_vars['proces_id']->value;?>
" />
        <?php if ($_smarty_tpl->tpl_vars['ShowDetails']->value) {?>
        <input type="hidden" name="details" value="1" />
        <?php }?>
         <div class="GameHandler">
            <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['Pairs']->value, 'Pair', false, 'key', 'pary', array (
  'first' => true,
  'last' => true,
  'index' => true,
  'iteration' => true,
  'total' => true,
));
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['key']->value => $_smarty_tpl->tpl_vars['Pair']->value) {
$_smarty_tpl->tpl_vars['__smarty_foreach_pary']->value['iteration']++;
$_smarty_tpl->tpl_vars['__smarty_foreach_pary']->value['index']++;
$_smarty_tpl->tpl_vars['__smarty_foreach_pary']->value['first'] = !$_smarty_tpl->tpl_vars['__smarty_foreach_pary']->value['index'];
$_smarty_tpl->tpl_vars['__smarty_foreach_pary']->value['last'] = $_smarty_tpl->tpl_vars['__smarty_foreach_pary']->value['iteration'] == $_smarty_tpl->tpl_vars['__smarty_foreach_pary']->value['total'];
?>
            <div class="ChooseElement<?php if (!(isset($_smarty_tpl->tpl_vars['__smarty_foreach_pary']->value['first']) ? $_smarty_tpl->tpl_vars['__smarty_foreach_pary']->value['first'] : null)) {?> none<?php }?>">
                <div>
                    <div class="col-xs-6">
                        <div class="ElementPair">
                            <div class="p5 tac fs14 bold">
                                <?php echo $_smarty_tpl->tpl_vars['KryteriaLista']->value[$_smarty_tpl->tpl_vars['Pair']->value['A']];?>

                            </div>
                            <div class="ElementA">
                                <div class="tac">
                                    <?php if ($_smarty_tpl->tpl_vars['KryteriaGrafika']->value[$_smarty_tpl->tpl_vars['Pair']->value['A']]) {?>
                                    <img src="<?php echo $_smarty_tpl->tpl_vars['KryteriaGrafika']->value[$_smarty_tpl->tpl_vars['Pair']->value['A']];?>
" style="width: 100%;" alt="<?php echo $_smarty_tpl->tpl_vars['KryteriaLista']->value[$_smarty_tpl->tpl_vars['Pair']->value['A']];?>
" /> <?php } else { ?>
                                    <div class="wmax" style="padding: 60px 0px"><?php echo $_smarty_tpl->tpl_vars['KryteriaLista']->value[$_smarty_tpl->tpl_vars['Pair']->value['A']];?>
</div>
                                    <?php }?>
                                </div>
                                <input type="hidden" name="kryterium[<?php echo $_smarty_tpl->tpl_vars['Pair']->value['A'];?>
][]" value="0" />
                            </div>
                        </div>
                    </div>
                    <div class="col-xs-6">
                        <div class="ElementPair">
                            <div class="p5 tac fs14 bold">
                                <?php echo $_smarty_tpl->tpl_vars['KryteriaLista']->value[$_smarty_tpl->tpl_vars['Pair']->value['B']];?>

                            </div>
                            <div class="ElementB">
                                <div class="tac">
                                    <?php if ($_smarty_tpl->tpl_vars['KryteriaGrafika']->value[$_smarty_tpl->tpl_vars['Pair']->value['B']]) {?>
                                    <img src="<?php echo $_smarty_tpl->tpl_vars['KryteriaGrafika']->value[$_smarty_tpl->tpl_vars['Pair']->value['B']];?>
" style="width: 100%;" alt="<?php echo $_smarty_tpl->tpl_vars['KryteriaLista']->value[$_smarty_tpl->tpl_vars['Pair']->value['B']];?>
" /> <?php } else { ?>
                                    <div class="wmax" style="padding: 60px 0px"><?php echo $_smarty_tpl->tpl_vars['KryteriaLista']->value[$_smarty_tpl->tpl_vars['Pair']->value['B']];?>
</div>
                                    <?php }?>
                                </div>
                               <input type="hidden" name="kryterium[<?php echo $_smarty_tpl->tpl_vars['Pair']->value['B'];?>
][]" value="0" />        
                            </div>
                        </div>
                    </div>
                    <div class="clear"></div>
                </div>
                <div class="RangeHandler">
                    <div class="col-md-6 col-md-offset-3 col-xs-12">

                        <div>

                            <input class="selectionrang" type="range" min="0" value="2" max="4" step="1" />

                        </div>

                    </div>
                    <div class="clear"></div>
                    <div class="p10 tac">
                        <br />
                        <?php if ((isset($_smarty_tpl->tpl_vars['__smarty_foreach_pary']->value['last']) ? $_smarty_tpl->tpl_vars['__smarty_foreach_pary']->value['last'] : null)) {?>
                        <input type="submit" class="btn btn-primary" value="Następny etap gry" />
                        <?php } else { ?>
                        <a href="javascript:;" class="btn btn-primary NextGameElement">Dalej</a>
                        <?php }?>
                    </div>
                </div> 
            </div>
            <?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
?>

         </div> 
        </form>
        <?php } else { ?>
        <div class="p20">
            <div class="col-md-10 col-md-offset-1 col-xs-12">    
                <div class="p10 tac bold fs22">
                    Wybierz zestaw kryteriów
                </div>
                <table class="table table-striped">
                    <thead>
                        <tr>
                            <td class="tac">ID</td>
                            <td class="tal">Nazwa</td>
                            <td class="tal">Temat</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 }?> class="tac"><?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 }?> class="tar">
                            <a href="<?php echo core::$i->url;?>
/index.php?mode=user&function=game&id=<?php echo $_smarty_tpl->tpl_vars['Proces']->value->id;?>
" class="btn btn-primary"><i class="fa fa-cube"></i> Graj</a>

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

                </table>
            </div>
            <div class="clear"></div>
        </div>
        <?php }?>
    </div>
</div>
<?php }
}
