} else { ?> <p><input type="file" name="<?php echo $this->_tpl_vars['form']['fields'][$this->_sections['i']['index']]['field']; ?> " style="width:40%"></p> <?php } } elseif ($this->_tpl_vars['form']['fields'][$this->_sections['i']['index']]['type'] == 'file') { ?> <p><?php echo $this->_tpl_vars['form']['fields'][$this->_sections['i']['index']]['name']; ?> : <?php if ($this->_tpl_vars['form']['fields'][$this->_sections['i']['index']]['value'] > 0) { echo smarty_function_download(array('id' => $this->_tpl_vars['form']['fields'][$this->_sections['i']['index']]['value']), $this); ?> <label><input type="checkbox" name="<?php echo $this->_tpl_vars['form']['fields'][$this->_sections['i']['index']]['field']; ?> _del"> Удалить</label><?php } ?> </p> <?php if ($this->_tpl_vars['form']['fields'][$this->_sections['i']['index']]['value'] > 0) { ?> <p>Заменить:</p> <?php } ?>
"><?php echo $this->_tpl_vars['items'][$this->_sections['i']['index']]['tags'][$this->_sections['j']['index']]['name']; ?> </a><?php if (!$this->_sections['j']['last']) { ?> , <?php } } } ?> </div> <div style="float:right"> <?php if ($this->_tpl_vars['options']['usefiles']) { echo smarty_function_download(array('data' => $this->_tpl_vars['items'][$this->_sections['i']['index']]['files'], 'title' => "Скачать", 'size' => true, 'dwnl' => true, 'max' => 3), $this); } ?> </div> <div class="clear"></div> </div> <?php } ?> </td> </tr> <?php } } ?> </table>