Viewing file: df500e2cd7fa74f32fa29e92099bb3a1c5c5f5ac.file.city.tpl.php (1.41 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php /* Smarty version Smarty3-RC3, created on 2012-05-10 21:45:31 compiled from "modules/projects/templates/city.tpl" */ ?> <?php /*%%SmartyHeaderCode:17270169374fac0ccba17a66-22989814%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed'); $_smarty_tpl->decodeProperties(array ( 'file_dependency' => array ( 'df500e2cd7fa74f32fa29e92099bb3a1c5c5f5ac' => array ( 0 => 'modules/projects/templates/city.tpl', 1 => 1336675530, ), ), 'nocache_hash' => '17270169374fac0ccba17a66-22989814', 'function' => array ( ), 'has_nocache_code' => false, )); /*/%%SmartyHeaderCode%%*/?> <div style="text-align:center;"><form method="post">
Місто: <select name="city_id" id="city_id" onchange="submit()">
<?php $_smarty_tpl->tpl_vars['city'] = new Smarty_Variable; $_from = $_smarty_tpl->getVariable('cities')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');} if (count($_from) > 0){ foreach ($_from as $_smarty_tpl->tpl_vars['city']->key => $_smarty_tpl->tpl_vars['city']->value){ ?>
<option value="<?php echo $_smarty_tpl->tpl_vars['city']->value['city_id'];?> " <?php if ($_smarty_tpl->tpl_vars['city']->value['city_id']==$_REQUEST['city_id']){?> selected="selected" <?php }?>><?php echo $_smarty_tpl->tpl_vars['city']->value['city_name_ukr'];?> </option>
<?php }} ?>
</select>
</form></div><br>
|