echo $this->_tpl_vars['form']['fields'][$this->_sections['i']['index']]['name'];
            ?>
:</p>
<p><?php 
            echo smarty_function_dateselect(array('name' => $this->_tpl_vars['form']['fields'][$this->_sections['i']['index']]['field'], 'date' => $this->_tpl_vars['form']['fields'][$this->_sections['i']['index']]['value']), $this);
            ?>
</p>
<?php 
        } elseif ($this->_tpl_vars['form']['fields'][$this->_sections['i']['index']]['type'] == 'text') {
            ?>
<p><?php 
            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') {
Exemplo n.º 2
0
        ?>
</div>
	</fieldset>
		</p>
		<div class="clear" style="margin-bottom: 1em;"></div>
	<?php 
    }
    ?>

	<?php 
    ob_start();
    echo $this->_tpl_vars['tabid'];
    $this->_smarty_vars['capture']['default'] = ob_get_contents();
    $this->assign('blockAsParamValue', ob_get_contents());
    ob_end_clean();
    echo smarty_function_textarea(array('name' => 'code', 'id' => "code_" . $this->_tpl_vars['blockAsParamValue'], 'class' => 'code'), $this);
    ?>

	<?php 
    ob_start();
    echo $this->_tpl_vars['tabid'];
    $this->_smarty_vars['capture']['default'] = ob_get_contents();
    $this->assign('blockAsParamValue', ob_get_contents());
    ob_end_clean();
    echo smarty_function_hidden(array('name' => 'file', 'id' => "file_" . $this->_tpl_vars['blockAsParamValue']), $this);
    ?>


	<?php 
    if ($this->_tpl_vars['new']) {
        ?>
Exemplo n.º 3
0
                echo $this->_tpl_vars['fieldName'];
                ?>
_<?php 
                echo $this->_tpl_vars['lang']['ID'];
                ?>
" class="setting"><?php 
                echo smarty_function_translate(array('text' => $this->_tpl_vars['values'][$this->_tpl_vars['fieldName']]['title']), $this);
                ?>
:</label>

		<fieldset class="error">
			<?php 
                if ($this->_tpl_vars['types'][$this->_tpl_vars['fieldName']] == 'longtext') {
                    ?>
				<?php 
                    echo smarty_function_textarea(array('class' => 'tinyMCE', 'name' => $this->_tpl_vars['fieldName'] . "_" . $this->_tpl_vars['lang']['ID'], 'id' => $this->_tpl_vars['fieldName'] . "_" . $this->_tpl_vars['lang']['ID']), $this);
                    ?>

			<?php 
                } else {
                    ?>
				<?php 
                    echo smarty_function_textfield(array('class' => 'text wide', 'name' => $this->_tpl_vars['fieldName'] . "_" . $this->_tpl_vars['lang']['ID'], 'id' => $this->_tpl_vars['fieldName'] . "_" . $this->_tpl_vars['lang']['ID']), $this);
                    ?>

			<?php 
                }
                ?>
			<div class="errorText hidden"></div>
		</fieldset>
	</p>
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);
    ?>
</p>
<?php 
}
if ($this->_tpl_vars['options']['usetags']) {
    ?>
<p>Теги (через запятую):</p>
<p><?php 
    echo smarty_function_tags(array(), $this);
    ?>
</p>
<?php 
} else {
    echo smarty_function_hidden(array('name' => 'tags', 'value' => ""), $this);
    ?>
?>

		<?php 
$this->_tag_stack[] = array('form', array('action' => "controller=user action=addNote id=" . $this->_tpl_vars['order']['ID'], 'method' => 'POST', 'id' => 'noteForm', 'handle' => $this->_tpl_vars['noteForm']));
$_block_repeat = true;
smarty_block_form($this->_tag_stack[count($this->_tag_stack) - 1][1], null, $this, $_block_repeat);
while ($_block_repeat) {
    ob_start();
    ?>
			
				<label for="text"><span class="label"><?php 
    echo smarty_function_translate(array('text' => '_enter_question'), $this);
    ?>
:</span></label>
				<fieldset class="error"><?php 
    echo smarty_function_textarea(array('name' => 'text'), $this);
    ?>

			
	<div class="errorText hidden<?php 
    $this->_tag_stack[] = array('error', array('for' => 'text'));
    $_block_repeat = true;
    smarty_block_error($this->_tag_stack[count($this->_tag_stack) - 1][1], null, $this, $_block_repeat);
    while ($_block_repeat) {
        ob_start();
        ?>
 visible<?php 
        $_block_content = ob_get_contents();
        ob_end_clean();
        $_block_repeat = false;
        echo smarty_block_error($this->_tag_stack[count($this->_tag_stack) - 1][1], $_block_content, $this, $_block_repeat);
Exemplo n.º 6
0
        ?>
_<?php 
        echo $this->_tpl_vars['lang']['ID'];
        ?>
" class="wide"><?php 
        echo smarty_function_translate(array('text' => '_meta_description'), $this);
        ?>
:</label>
			<fieldset class="error">
				<?php 
        ob_start();
        echo $this->_tpl_vars['lang']['ID'];
        $this->_smarty_vars['capture']['default'] = ob_get_contents();
        $this->assign('blockAsParamValue', ob_get_contents());
        ob_end_clean();
        echo smarty_function_textarea(array('class' => 'longDescr', 'name' => "metaDescription_" . $this->_tpl_vars['blockAsParamValue'], 'id' => "metaDecription_" . $this->_tpl_vars['page']['ID'] . "_" . $this->_tpl_vars['lang']['ID'], 'style' => "width: 100%; height: 4em;"), $this);
        ?>

				<div class="errorText hidden" style="margin-top: 5px;"></div>
			</fieldset>
		</p>

	<?php 
        $_block_content = ob_get_contents();
        ob_end_clean();
        $_block_repeat = false;
        echo smarty_block_language($this->_tag_stack[count($this->_tag_stack) - 1][1], $_block_content, $this, $_block_repeat);
    }
    array_pop($this->_tag_stack);
    ?>
echo smarty_function_editbox(array('name' => 'url', 'text' => $this->_tpl_vars['form']['url']), $this);
?>
</p>
<p>title:</p>
<p><?php 
echo smarty_function_editbox(array('name' => 'title', 'text' => $this->_tpl_vars['form']['title']), $this);
?>
</p>
<p>keywords:</p>
<p><?php 
echo smarty_function_textarea(array('name' => 'keywords', 'rows' => 4, 'text' => $this->_tpl_vars['form']['keywords']), $this);
?>
</p>
<p>description:</p>
<p><?php 
echo smarty_function_textarea(array('name' => 'description', 'rows' => 4, 'text' => $this->_tpl_vars['form']['description']), $this);
?>
</p>
<p>Перенаправление (301):</p>
<p><?php 
echo smarty_function_editbox(array('name' => 'move', 'text' => $this->_tpl_vars['form']['move']), $this);
?>
</p>
<?php 
echo smarty_function_hidden(array('name' => 'id', 'value' => $this->_tpl_vars['form']['id']), $this);
?>

<?php 
echo smarty_function_hidden(array('name' => 'mode', 'value' => $this->_tpl_vars['system']['mode']), $this);
?>
        }
        ?>
>&nbsp;<?php 
        echo $this->_tpl_vars['form']['sections'][$this->_sections['i']['index']]['caption'];
        ?>
</label><?php 
        if (!$this->_sections['i']['last']) {
            ?>
,  <?php 
        }
    }
}
?>
<p>По адресам (URL по строкам):</p>
<p><?php 
echo smarty_function_textarea(array('name' => 'showurl', 'rows' => 3, 'text' => $this->_tpl_vars['form']['showurl']), $this);
?>

</div>
<p>Период показа:</p>
<p><input type="checkbox" name="date"<?php 
if ($this->_tpl_vars['form']['date'] == 'Y') {
    ?>
 checked<?php 
}
?>
>
с <?php 
echo smarty_function_dateselect(array('name' => 'date1', 'date' => $this->_tpl_vars['form']['date1'], 'onchange' => "this.form.date.checked=true"), $this);
?>
Exemplo n.º 9
0
			<div class="errorText hidden"></div>
		</fieldset>
	</div>
</p>

<p class="required">
	<label for="newsletter_<?php 
echo $this->_tpl_vars['cat'];
?>
_<?php 
echo $this->_tpl_vars['newsletter']['ID'];
?>
_shortdes"><?php 
echo smarty_function_translate(array('text' => '_text'), $this);
?>
:</label>
	<div class="textarea">
		<fieldset class="error">
			<?php 
echo smarty_function_textarea(array('id' => "newsletter_" . $this->_tpl_vars['cat'] . "_" . $this->_tpl_vars['newsletter']['ID'] . "_shortdes", 'name' => 'text'), $this);
?>

			<div class="errorText hidden"></div>
		</fieldset>
	</div>
</p>




Exemplo n.º 10
0
				<label><?php 
        echo smarty_function_translate(array('text' => '_descr'), $this);
        ?>
:</label>
				<?php 
        echo smarty_function_textarea(array('name' => "description_" . $this->_tpl_vars['lang']['ID'], 'class' => 'tinyMCE'), $this);
        ?>

			</p>
			<p>
				<label><?php 
        echo smarty_function_translate(array('text' => '_keywords'), $this);
        ?>
:</label>
				<?php 
        echo smarty_function_textarea(array('name' => "keywords_" . $this->_tpl_vars['lang']['ID'], 'class' => 'categoryKeywords'), $this);
        ?>

			</p>
			<p>
				<label><?php 
        echo smarty_function_translate(array('text' => '_pageTitle'), $this);
        ?>
:</label>
				<?php 
        echo smarty_function_textfield(array('name' => "pageTitle_" . $this->_tpl_vars['lang']['ID'], 'class' => 'wide'), $this);
        ?>

			</p>

			<?php 
		<label for="product_<?php 
    echo $this->_tpl_vars['cat'];
    ?>
_<?php 
    echo $this->_tpl_vars['product']['ID'];
    ?>
_longdes_<?php 
    echo $this->_tpl_vars['lang']['ID'];
    ?>
"><?php 
    echo smarty_function_translate(array('text' => '_long_description'), $this);
    ?>
:</label>
		<div class="textarea">
			<?php 
    echo smarty_function_textarea(array('class' => 'longDescr tinyMCE', 'name' => "longDescription_" . $this->_tpl_vars['lang']['ID'], 'id' => "product_" . $this->_tpl_vars['cat'] . "_" . $this->_tpl_vars['product']['ID'] . "_longdes_" . $this->_tpl_vars['lang']['ID']), $this);
    ?>

		</div>
	</p>
	<p>
		<label for="product_<?php 
    echo $this->_tpl_vars['cat'];
    ?>
_<?php 
    echo $this->_tpl_vars['product']['ID'];
    ?>
_pageTitle_<?php 
    echo $this->_tpl_vars['lang']['ID'];
    ?>
"><?php 
Exemplo n.º 12
0
        array_pop($this->_tag_stack);
        ?>
</div>
	</fieldset>
		</p>
		<div class="clear" style="margin-bottom: 1em;"></div>
	<?php 
    }
    ?>
	<input type="hidden" value="<?php 
    echo $this->_tpl_vars['tabid'];
    ?>
" name="tabid" />

	<?php 
    echo smarty_function_textarea(array('name' => 'code', 'class' => 'code', 'id' => "code_" . $this->_tpl_vars['tabid']), $this);
    ?>

	<?php 
    echo smarty_function_hidden(array('name' => 'file', 'id' => 'file'), $this);
    ?>


	<?php 
    if ($this->_tpl_vars['new']) {
        ?>
		<?php 
        echo smarty_function_hidden(array('name' => 'new', 'value' => 'true'), $this);
        ?>

	<?php 
    ?>
	<?php 
    ob_start();
    echo $this->_tpl_vars['textFieldClass'];
    $this->_smarty_vars['capture']['default'] = ob_get_contents();
    $this->assign('blockAsParamValue', ob_get_contents());
    ob_end_clean();
    echo smarty_function_textfield(array('id' => "product_" . $this->_tpl_vars['cat'] . "_" . $this->_tpl_vars['item']['ID'] . "_" . $this->_tpl_vars['fieldName'], 'name' => $this->_tpl_vars['prefix'] . $this->_tpl_vars['fieldName'], 'class' => "text " . $this->_tpl_vars['blockAsParamValue'], 'autocomplete' => $this->_tpl_vars['autocomplete']), $this);
    ?>


<?php 
} elseif ($this->_tpl_vars['field']['type'] == 4) {
    ?>
	<div class="textarea" style="margin-left: 0;">
		<?php 
    echo smarty_function_textarea(array('id' => "product_" . $this->_tpl_vars['cat'] . "_" . $this->_tpl_vars['item']['ID'] . "_" . $this->_tpl_vars['fieldName'], 'name' => $this->_tpl_vars['prefix'] . $this->_tpl_vars['fieldName'], 'class' => 'tinyMCE'), $this);
    ?>

		<div class="errorText hidden"></div>
	</div>

<?php 
} elseif ($this->_tpl_vars['field']['type'] == 6) {
    ?>
	<?php 
    echo smarty_function_calendar(array('id' => "product_" . $this->_tpl_vars['cat'] . "_" . $this->_tpl_vars['item']['ID'] . "_" . $this->_tpl_vars['fieldName'], 'name' => $this->_tpl_vars['prefix'] . $this->_tpl_vars['fieldName']), $this);
    ?>

<?php 
}
	<?php 
        if ($this->_tpl_vars['field']['type'] == 'string') {
            ?>
		 <p class="p5"><?php 
            echo smarty_function_editbox(array('name' => $this->_tpl_vars['field']['field'], 'max' => $this->_tpl_vars['field']['length'], 'id' => 'inp3', 'text' => $this->_tpl_vars['field']['value'], 'width' => '300', 'class' => "toggle-inputs"), $this);
            echo $this->_tpl_vars['field']['name'];
            ?>
</p>   
	<?php 
        } elseif ($this->_tpl_vars['field']['type'] == 'text') {
            ?>
		 <p class="p5">
			<table width="100%" border="0">
				<tr>
					<td class="td6"><?php 
            echo smarty_function_textarea(array('name' => $this->_tpl_vars['field']['field'], 'id' => 'inp4', 'width' => '300', 'rows' => $this->_tpl_vars['field']['property'], 'text' => $this->_tpl_vars['field']['value']), $this);
            ?>
</td>
					<td class="td8_2" ><?php 
            echo $this->_tpl_vars['field']['name'];
            ?>
</td>
				</tr>
			</table>
        </p>
	<?php 
        }
    }
}
unset($_from);
?>
<td><?php 
echo smarty_function_textarea(array('name' => 'siteclosetext', 'rows' => 2, 'text' => $this->_tpl_vars['options']['siteclosetext']), $this);
?>
</td>
</tr>
<tr>
<td>Код счетчиков:</td>
<td><?php 
echo smarty_function_textarea(array('name' => 'codecounters', 'rows' => 3, 'text' => $this->_tpl_vars['options']['codecounters']), $this);
?>
</td>
</tr>
<tr>
<td>Код своих мета тегов:</td>
<td><?php 
echo smarty_function_textarea(array('name' => 'codemeta', 'rows' => 3, 'text' => $this->_tpl_vars['options']['codemeta']), $this);
?>
</td>
</tr>
<?php 
if ($this->_tpl_vars['auth']->isSuperAdmin()) {
    ?>
<tr>
<td><label for="resetcache">Сбросить кэш:</label></td>
<td><input id="resetcache" type="checkbox" name="resetcache"></td>
</tr>
<tr>
<td><label for="cleartpl">Перекомпилировать шаблоны:</label></td>
<td><input id="cleartpl" type="checkbox" name="cleartpl"></td>
</tr>
<?php 
Exemplo n.º 16
0
				<label class="wide"><?php 
        echo smarty_function_translate(array('text' => '_text'), $this);
        ?>
:</label>
				<?php 
        echo smarty_function_textarea(array('name' => "text_" . $this->_tpl_vars['lang']['ID'], 'class' => 'tinyMCE'), $this);
        ?>

			</p>
			<p>
				<label class="wide"><?php 
        echo smarty_function_translate(array('text' => '_more_text'), $this);
        ?>
:</label>
				<?php 
        echo smarty_function_textarea(array('name' => "moreText_" . $this->_tpl_vars['lang']['ID'], 'class' => 'tinyMCE'), $this);
        ?>

			</p>
		<?php 
        $_block_content = ob_get_contents();
        ob_end_clean();
        $_block_repeat = false;
        echo smarty_block_language($this->_tag_stack[count($this->_tag_stack) - 1][1], $_block_content, $this, $_block_repeat);
    }
    array_pop($this->_tag_stack);
    ?>

		<fieldset class="controls" <?php 
    $this->_tag_stack[] = array('denied', array('role' => 'news'));
    $_block_repeat = true;