Viewing file: 979ffb7314a74c6775f425d0b7880e0227611c26.file.group-select.tpl.php (1.53 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php /* Smarty version Smarty3-RC3, created on 2012-08-07 07:09:32 compiled from "modules/publications/templates/group-select.tpl" */ ?> <?php /*%%SmartyHeaderCode:800418179502094fc8b6871-37634921%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed'); $_smarty_tpl->decodeProperties(array ( 'file_dependency' => array ( '979ffb7314a74c6775f425d0b7880e0227611c26' => array ( 0 => 'modules/publications/templates/group-select.tpl', 1 => 1344312571, ), ), 'nocache_hash' => '800418179502094fc8b6871-37634921', 'function' => array ( ), 'has_nocache_code' => false, )); /*/%%SmartyHeaderCode%%*/?> <form method="post"><center> Виберіть групу: <select name="group_id" onchange="$(this).closest('form').submit();">
<option value="<?php echo $_smarty_tpl->getVariable('row')->value['group_id'];?> "></option>
<?php $_smarty_tpl->tpl_vars['row'] = new Smarty_Variable; $_from = $_smarty_tpl->getVariable('groups')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');} if (count($_from) > 0){ foreach ($_from as $_smarty_tpl->tpl_vars['row']->key => $_smarty_tpl->tpl_vars['row']->value){ ?>
<option value="<?php echo $_smarty_tpl->tpl_vars['row']->value['group_id'];?> " <?php if ($_REQUEST['group_id']==$_smarty_tpl->tpl_vars['row']->value['group_id']){?> selected="selected" <?php }?>><?php echo $_smarty_tpl->tpl_vars['row']->value['group_name_ukr'];?> </option>
<?php }} ?>
</select> </center></form><br />
|