<?php /* Smarty version Smarty-3.0.6, created on 2011-02-13 19:52:23
         compiled from "W:/home/dcms_seven/www/sys/themes/web_blue/tpl/input.form.tpl" */ ?>
<?php /*%%SmartyHeaderCode:46284d580c47e39c23-51067909%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '0e7ccec316c2fbdf06a53e263817f43e739d6708' => 
    array (
      0 => 'W:/home/dcms_seven/www/sys/themes/web_blue/tpl/input.form.tpl',
      1 => 1297615861,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '46284d580c47e39c23-51067909',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<?php if (!is_callable('smarty_function_html_radios')) include 'W:\home\dcms_seven\www\sys\plugins\smarty\plugins\function.html_radios.php';
?><?php if ($_smarty_tpl->getVariable('upload_on_flash')->value){?>
<script type="text/javascript">
$(document).ready(function() {
  $('#file_upload').uploadify({
  'buttonText'  : 'Выберите файлы',
    'swf'  : '<?php echo $_smarty_tpl->getVariable('path')->value;?>
/uploadify.swf',
    'uploader'    : '<?php echo $_smarty_tpl->getVariable('action')->value;?>
',
    'cancelImage' : '<?php echo $_smarty_tpl->getVariable('path')->value;?>
/for_css/cancel.png',
    'fileObjName'  : 'file',
    'auto'      : true,
    'multi'     : true,
    'removeCompleted' : true,
    'postData': { 'upload_on_flash': '<?php echo $_smarty_tpl->getVariable('upload_on_flash')->value;?>
'},
  'onQueueComplete' : function() {
      location.reload();
    }
  });
});
</script>
<?php }?>


<div class="form">
<form<?php if ($_smarty_tpl->getVariable('method')->value){?> method="<?php echo $_smarty_tpl->getVariable('method')->value;?>
"<?php }?><?php if ($_smarty_tpl->getVariable('action')->value){?> action="<?php echo $_smarty_tpl->getVariable('action')->value;?>
"<?php }?><?php if ($_smarty_tpl->getVariable('files')->value){?> enctype="multipart/form-data"<?php }?>>
<?php unset($_smarty_tpl->tpl_vars['smarty']->value['section']['sect']);
$_smarty_tpl->tpl_vars['smarty']->value['section']['sect']['name'] = 'sect';
$_smarty_tpl->tpl_vars['smarty']->value['section']['sect']['loop'] = is_array($_loop=$_smarty_tpl->getVariable('el')->value) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']['sect']['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']['sect']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sect']['loop'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['sect']['step'] = 1;
$_smarty_tpl->tpl_vars['smarty']->value['section']['sect']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sect']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['sect']['loop']-1;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['sect']['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']['sect']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sect']['loop'];
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']['sect']['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']['sect']['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']['sect']['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['sect']['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']['sect']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sect']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['sect']['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['sect']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['sect']['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['sect']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['sect']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['sect']['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']['sect']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sect']['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['sect']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sect']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['sect']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['sect']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sect']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['sect']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['sect']['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']['sect']['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']['sect']['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']['sect']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['sect']['total']);
?>
<?php if ($_smarty_tpl->getVariable('el')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sect']['index']]['title']){?><?php echo $_smarty_tpl->getVariable('el')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sect']['index']]['title'];?>
:<br /><?php }?>
<?php if ($_smarty_tpl->getVariable('el')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sect']['index']]['type']=='text'){?>
<?php echo $_smarty_tpl->getVariable('el')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sect']['index']]['value'];?>

<?php }elseif($_smarty_tpl->getVariable('el')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sect']['index']]['type']=='captcha'){?>
<img id="captcha" src="/captcha.php?<?php echo passgen(32);?>
&amp;<?php echo @SID;?>
" alt="" /><br />
<script>function captcha_reload(){document.getElementById('captcha').src = "/captcha.php?" + Math.random()+"&amp;<?php echo @SID;?>
";}</script>
<a href="javascript:captcha_reload();">Обновить картинку</a><br />
Введите число с картинки:<br /><input type="text" name="chislo" size="5" maxlength="5" />
<?php }elseif($_smarty_tpl->getVariable('el')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sect']['index']]['type']=='input_text'){?>
<input type="text"<?php if ($_smarty_tpl->getVariable('el')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sect']['index']]['info']['size']){?> size="<?php echo $_smarty_tpl->getVariable('el')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sect']['index']]['info']['size'];?>
"<?php }?><?php if ($_smarty_tpl->getVariable('el')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sect']['index']]['info']['disabled']){?> disabled="disabled"<?php }?><?php if ($_smarty_tpl->getVariable('el')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sect']['index']]['info']['name']){?> name="<?php echo $_smarty_tpl->getVariable('el')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sect']['index']]['info']['name'];?>
"<?php }?><?php if ($_smarty_tpl->getVariable('el')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sect']['index']]['info']['value']){?> value="<?php echo for_value($_smarty_tpl->getVariable('el')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sect']['index']]['info']['value']);?>
"<?php }?><?php if ($_smarty_tpl->getVariable('el')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sect']['index']]['info']['maxlength']){?> maxlength="<?php echo $_smarty_tpl->getVariable('el')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sect']['index']]['info']['maxlength'];?>
"<?php }?> />
<?php }elseif($_smarty_tpl->getVariable('el')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sect']['index']]['type']=='radio'){?>
<?php echo smarty_function_html_radios(array('name'=>$_smarty_tpl->getVariable('el')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sect']['index']]['info']['name'],'values'=>$_smarty_tpl->getVariable('el')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sect']['index']]['info']['values'],'output'=>$_smarty_tpl->getVariable('el')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sect']['index']]['info']['output'],'selected'=>$_smarty_tpl->getVariable('el')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sect']['index']]['info']['selected'],'separator'=>"<br />"),$_smarty_tpl);?>

<?php }elseif($_smarty_tpl->getVariable('el')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sect']['index']]['type']=='hidden'){?>
<input type="hidden"<?php if ($_smarty_tpl->getVariable('el')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sect']['index']]['info']['name']){?> name="<?php echo $_smarty_tpl->getVariable('el')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sect']['index']]['info']['name'];?>
"<?php }?><?php if ($_smarty_tpl->getVariable('el')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sect']['index']]['info']['value']){?> value="<?php echo for_value($_smarty_tpl->getVariable('el')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sect']['index']]['info']['value']);?>
"<?php }?> />
<?php }elseif($_smarty_tpl->getVariable('el')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sect']['index']]['type']=='password'){?>
<input type="password"<?php if ($_smarty_tpl->getVariable('el')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sect']['index']]['info']['size']){?> size="<?php echo $_smarty_tpl->getVariable('el')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sect']['index']]['info']['size'];?>
"<?php }?><?php if ($_smarty_tpl->getVariable('el')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sect']['index']]['info']['name']){?> name="<?php echo $_smarty_tpl->getVariable('el')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sect']['index']]['info']['name'];?>
"<?php }?><?php if ($_smarty_tpl->getVariable('el')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sect']['index']]['info']['value']){?> value="<?php echo for_value($_smarty_tpl->getVariable('el')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sect']['index']]['info']['value']);?>
"<?php }?><?php if ($_smarty_tpl->getVariable('el')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sect']['index']]['info']['maxlength']){?> maxlength="<?php echo $_smarty_tpl->getVariable('el')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sect']['index']]['info']['maxlength'];?>
"<?php }?> />
<?php }elseif($_smarty_tpl->getVariable('el')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sect']['index']]['type']=='textarea'){?>
<?php $_smarty_tpl->tpl_vars["uniq"] = new Smarty_variable(passgen(5), null, null);?>
<div class="textarea">
<textarea id="<?php echo $_smarty_tpl->getVariable('uniq')->value;?>
" <?php if ($_smarty_tpl->getVariable('el')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sect']['index']]['info']['disabled']){?> disabled="disabled"<?php }?><?php if ($_smarty_tpl->getVariable('el')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sect']['index']]['info']['name']){?> name="<?php echo $_smarty_tpl->getVariable('el')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sect']['index']]['info']['name'];?>
"<?php }?>><?php if ($_smarty_tpl->getVariable('el')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sect']['index']]['info']['value']){?><?php echo for_value($_smarty_tpl->getVariable('el')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sect']['index']]['info']['value']);?>
<?php }?></textarea>
<a href="javascript:bb_u('<?php echo $_smarty_tpl->getVariable('uniq')->value;?>
');" title="Подчеркивание">U</a>
<a href="javascript:bb_i('<?php echo $_smarty_tpl->getVariable('uniq')->value;?>
');" title="Курсив">I</a>
<a href="javascript:bb_b('<?php echo $_smarty_tpl->getVariable('uniq')->value;?>
');" title="Жирный">B</a>
<span class="smiles_button">Смайлы<div class="smiles"><?php $_template = new Smarty_Internal_Template('inc.smiles.tpl', $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
 echo $_template->getRenderedTemplate();?><?php $_template->updateParentVariables(0);?><?php unset($_template);?></div></span>
<a href="javascript:bb_php('<?php echo $_smarty_tpl->getVariable('uniq')->value;?>
');" title="Выделение кода">PHP</a>
</div>
<?php }elseif($_smarty_tpl->getVariable('el')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sect']['index']]['type']=='checkbox'){?>
<label><input type="checkbox"<?php if ($_smarty_tpl->getVariable('el')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sect']['index']]['info']['name']){?> name="<?php echo $_smarty_tpl->getVariable('el')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sect']['index']]['info']['name'];?>
"<?php }?><?php if ($_smarty_tpl->getVariable('el')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sect']['index']]['info']['value']){?> value="<?php echo $_smarty_tpl->getVariable('el')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sect']['index']]['info']['value'];?>
"<?php }?><?php if ($_smarty_tpl->getVariable('el')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sect']['index']]['info']['checked']){?> checked="checked"<?php }?> /><?php if ($_smarty_tpl->getVariable('el')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sect']['index']]['info']['text']){?> <?php echo $_smarty_tpl->getVariable('el')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sect']['index']]['info']['text'];?>
<?php }?></label>
<?php }elseif($_smarty_tpl->getVariable('el')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sect']['index']]['type']=='submit'){?>
<?php if (!$_smarty_tpl->getVariable('upload_on_flash')->value){?>
<input type="submit"<?php if ($_smarty_tpl->getVariable('el')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sect']['index']]['info']['name']){?> name="<?php echo $_smarty_tpl->getVariable('el')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sect']['index']]['info']['name'];?>
"<?php }?><?php if ($_smarty_tpl->getVariable('el')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sect']['index']]['info']['value']){?> value="<?php echo $_smarty_tpl->getVariable('el')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sect']['index']]['info']['value'];?>
"<?php }?> />
<?php }?>
<?php }elseif($_smarty_tpl->getVariable('el')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sect']['index']]['type']=='file'){?>
<input type="file"<?php if ($_smarty_tpl->getVariable('el')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sect']['index']]['info']['name']){?> name="<?php echo $_smarty_tpl->getVariable('el')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sect']['index']]['info']['name'];?>
"<?php }?> id="file_upload" />
<?php }elseif($_smarty_tpl->getVariable('el')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sect']['index']]['type']=='select'){?>
<select name="<?php echo $_smarty_tpl->getVariable('el')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sect']['index']]['info']['name'];?>
">
<?php unset($_smarty_tpl->tpl_vars['smarty']->value['section']['select']);
$_smarty_tpl->tpl_vars['smarty']->value['section']['select']['name'] = 'select';
$_smarty_tpl->tpl_vars['smarty']->value['section']['select']['loop'] = is_array($_loop=$_smarty_tpl->getVariable('el')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sect']['index']]['info']['options']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']['select']['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']['select']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['select']['loop'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['select']['step'] = 1;
$_smarty_tpl->tpl_vars['smarty']->value['section']['select']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['select']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['select']['loop']-1;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['select']['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']['select']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['select']['loop'];
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']['select']['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']['select']['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']['select']['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['select']['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']['select']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['select']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['select']['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['select']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['select']['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['select']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['select']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['select']['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']['select']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['select']['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['select']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['select']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['select']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['select']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['select']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['select']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['select']['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']['select']['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']['select']['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']['select']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['select']['total']);
?>
<?php if ($_smarty_tpl->getVariable('el')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sect']['index']]['info']['options'][$_smarty_tpl->getVariable('smarty')->value['section']['select']['index']]['groupstart']){?>
<optgroup label="<?php echo $_smarty_tpl->getVariable('el')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sect']['index']]['info']['options'][$_smarty_tpl->getVariable('smarty')->value['section']['select']['index']][0];?>
">
<?php }elseif($_smarty_tpl->getVariable('el')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sect']['index']]['info']['options'][$_smarty_tpl->getVariable('smarty')->value['section']['select']['index']]['groupend']){?>
</optgroup>
<?php }else{ ?>
<option<?php if ($_smarty_tpl->getVariable('el')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sect']['index']]['info']['options'][$_smarty_tpl->getVariable('smarty')->value['section']['select']['index']][2]){?> selected="selected"<?php }?> value="<?php echo $_smarty_tpl->getVariable('el')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sect']['index']]['info']['options'][$_smarty_tpl->getVariable('smarty')->value['section']['select']['index']][0];?>
"><?php echo $_smarty_tpl->getVariable('el')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sect']['index']]['info']['options'][$_smarty_tpl->getVariable('smarty')->value['section']['select']['index']][1];?>
</option>
<?php }?>
<?php endfor; endif; ?>
</select>
<?php }?>
<?php if ($_smarty_tpl->getVariable('el')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sect']['index']]['br']){?>
<br />
<?php }?>
<?php endfor; endif; ?>
</form>
</div>
