echo smarty_function_editbox(array('name' => 'urlname', 'width' => "90%", 'max' => 100, 'text' => $this->_tpl_vars['form']['urlname']), $this); ?> </td> </tr> </table> <p><a class="cp_link_headding" href="javascript:togglepbox('<?php echo $this->_tpl_vars['system']['item']; ?> _catpbox')">Дополнительно</a></p> <div id="<?php echo $this->_tpl_vars['system']['item']; ?> _catpbox" style="display:none"> <p>Описание:</p> <p><?php echo smarty_function_fckeditor(array('name' => 'description', 'toolbar' => 'Medium', 'height' => 200, 'text' => $this->_tpl_vars['form']['description']), $this); ?> </p> <?php $_smarty_tpl_vars = $this->_tpl_vars; $this->_smarty_include(array('smarty_include_tpl_file' => "objcomp_fieldseditor_include.tpl", 'smarty_include_vars' => array())); $this->_tpl_vars = $_smarty_tpl_vars; unset($_smarty_tpl_vars); ?> <p>Изображение:</p> <?php if ($this->_tpl_vars['form']['idimg']) { ?> <table width="100%" class="invisiblegrid"> <tr> <td width="80" align="center">
"> <fieldset> <legend>Page Editing</legend> <div class="type-text"> <label for="title_<?php echo $_smarty_tpl->tpl_vars['lingua']->value;?> ">Title</label> <input type="text" name="title_<?php echo $_smarty_tpl->tpl_vars['lingua']->value;?> " id="title_<?php echo $_smarty_tpl->tpl_vars['lingua']->value;?> " size="20" value="<?php echo $_smarty_tpl->getVariable('title')->value[$_smarty_tpl->getVariable('lingua')->value];?> " /> </div> <div class="type-text"> <label for="text_<?php echo $_smarty_tpl->tpl_vars['lingua']->value;?> ">Text</label> <?php echo smarty_function_fckeditor(array('BasePath'=>"/admin/editor/",'InstanceName'=>"text_".($_smarty_tpl->tpl_vars['lingua']->value),'Width'=>"100%",'Height'=>"500px",'ToolbarSet'=>'Default','Value'=>$_smarty_tpl->getVariable('text')->value[$_smarty_tpl->getVariable('lingua')->value]),$_smarty_tpl);?> </div> </fieldset> <fieldset> <legend>SEO</legend> <div class="type-text"> <label for="seo_desc_<?php echo $_smarty_tpl->tpl_vars['lingua']->value;?> ">Description</label> <input type="text" name="seo_desc_<?php echo $_smarty_tpl->tpl_vars['lingua']->value;?> " id="seo_desc_<?php echo $_smarty_tpl->tpl_vars['lingua']->value;?> " size="20" value="<?php echo $_smarty_tpl->getVariable('seo_desc')->value[$_smarty_tpl->getVariable('lingua')->value];?> " /> </div>
echo $this->_tpl_vars['form']['fields'][$this->_sections['i']['index']]['name']; ?> :</p> <p><?php echo smarty_function_textarea(array('name' => $this->_tpl_vars['form']['fields'][$this->_sections['i']['index']]['field'], 'rows' => $this->_tpl_vars['form']['fields'][$this->_sections['i']['index']]['property'], 'text' => $this->_tpl_vars['form']['fields'][$this->_sections['i']['index']]['value']), $this); ?> </p> <?php } elseif ($this->_tpl_vars['form']['fields'][$this->_sections['i']['index']]['type'] == 'format') { ?> <p><?php echo $this->_tpl_vars['form']['fields'][$this->_sections['i']['index']]['name']; ?> :</p> <p><?php echo smarty_function_fckeditor(array('name' => $this->_tpl_vars['form']['fields'][$this->_sections['i']['index']]['field'], 'height' => $this->_tpl_vars['form']['fields'][$this->_sections['i']['index']]['property'], 'text' => $this->_tpl_vars['form']['fields'][$this->_sections['i']['index']]['value'], 'toolbar' => 'Basic'), $this); ?> </p> <?php } elseif ($this->_tpl_vars['form']['fields'][$this->_sections['i']['index']]['type'] == 'select') { ?> <p><?php echo $this->_tpl_vars['form']['fields'][$this->_sections['i']['index']]['name']; ?> :</p> <p><?php echo smarty_function_combobox(array('name' => $this->_tpl_vars['form']['fields'][$this->_sections['i']['index']]['field'], 'options' => $this->_tpl_vars['form']['fields'][$this->_sections['i']['index']]['options'], 'selected' => $this->_tpl_vars['form']['fields'][$this->_sections['i']['index']]['value'], 'size' => 35), $this); ?> </p> <?php } elseif ($this->_tpl_vars['form']['fields'][$this->_sections['i']['index']]['type'] == 'mselect') {
?> </p> <?php } ?> </td> <td width="30%" valign="top"> <?php echo smarty_function_editbox(array('name' => 'art', 'max' => 30, 'width' => "90%"), $this); ?> </td> </tr> </table> <p>Текст:</p> <?php if ($this->_tpl_vars['options']['fckeditor']) { echo smarty_function_fckeditor(array('name' => 'content', 'height' => 250, 'toolbar' => 'Medium'), $this); ?> <?php } else { echo smarty_function_textarea(array('name' => 'content', 'rows' => 6), $this); ?> <?php } if (!$this->_tpl_vars['options']['autoanons']) { ?> <p>Аннотация:</p> <p><?php echo smarty_function_textarea(array('name' => 'description', 'rows' => 3), $this); ?>
?> </td> <td width="30%"> <?php if ($this->_tpl_vars['options']['usedate']) { echo smarty_function_dateselect(array('name' => 'date', 'date' => $this->_tpl_vars['form']['date'], 'usetime' => true), $this); } ?> </td> <?php } ?> </table> <p>Текст:</p> <?php if ($this->_tpl_vars['options']['fckeditor']) { echo smarty_function_fckeditor(array('name' => 'content', 'height' => 400, 'text' => $this->_tpl_vars['form']['content']), $this); ?> <?php } else { echo smarty_function_textarea(array('name' => 'content', 'rows' => 6, 'text' => $this->_tpl_vars['form']['content']), $this); ?> <?php } if (!$this->_tpl_vars['options']['autoanons']) { ?> <p>Аннотация:</p> <p><?php echo smarty_function_textarea(array('name' => 'description', 'rows' => 3, 'text' => $this->_tpl_vars['form']['description']), $this); ?>
?> <p><label><input type="checkbox" name="subitem" checked> Подуровень</label></p> <?php } ?> <p><a class="cp_link_headding" href="javascript:togglepbox('<?php echo $this->_tpl_vars['system']['item']; ?> _catpbox')">Дополнительно</a></p> <div id="<?php echo $this->_tpl_vars['system']['item']; ?> _catpbox" style="display:none"> <p>Описание:</p> <p><?php echo smarty_function_fckeditor(array('name' => 'description', 'toolbar' => 'Medium', 'height' => 200), $this); ?> </p> <?php $_smarty_tpl_vars = $this->_tpl_vars; $this->_smarty_include(array('smarty_include_tpl_file' => "objcomp_fieldseditor_include.tpl", 'smarty_include_vars' => array())); $this->_tpl_vars = $_smarty_tpl_vars; unset($_smarty_tpl_vars); ?> <p>Изображение:</p> <p><input type="file" name="catimage"></p> <?php if ($this->_tpl_vars['options']['usetags']) { ?> <p>Теги (через запятую):</p> <p><?php
function createRedactorElement($nameField, $nameInput, $value, $params, $smarty) { $nameInput = preg_match("/\\[\\]/", $nameInput) ? str_replace("[]", "[" . $nameField . "]", $nameInput) : $nameField; $smartyParams['name'] = $nameInput; $smartyParams['width'] = "700px"; $smartyParams['height'] = "250px"; $smartyParams['text'] = $value; $smartyParams['id'] = $nameField; return smarty_function_fckeditor($smartyParams, $smarty, false); }
<?php /* Smarty version 2.6.26, created on 2015-10-22 16:34:45 compiled from block_html_edit.tpl */ require_once SMARTY_CORE_DIR . 'core.load_plugins.php'; smarty_core_load_plugins(array('plugins' => array(array('function', 'fckeditor', 'block_html_edit.tpl', 1, false))), $this); echo smarty_function_fckeditor(array('name' => 'b_content', 'height' => 250, 'toolbar' => 'Medium', 'text' => $this->_tpl_vars['form']['content']), $this);