<link rel="stylesheet" type="text/css" href="engine/skins/chosen/chosen.css"/>
<script type="text/javascript" src="engine/skins/chosen/chosen.js"></script>
<script type="text/javascript">
$(function(){
	$('#category').chosen({allow_single_deselect:true, no_results_text: '?????? ?? ???????'});
});
</script>



<div class="shortnews">
    <h3>Добавление публикации на сайт</h3>
    <div class="shortpost">
        <div class="siteforms">
            <div class="siteformrow2">
                <label class="siteformrow2label">
                    <span class="siteformrow2span">Заголовок статьи:</span>
                    <input type="text" name="title" value="{title}" maxlength="150" class="siteforminp" />
                </label>
                <label class="siteformrow2label">
                    <span class="siteformrow2span">URL стать:</span>
                    <input type="text" name="alt_name" value="{alt-name}" maxlength="150" class="siteforminp" />
                </label>
                <label class="siteformrow2label">
                    <span class="siteformrow2span" style="width: 100%; top: 0; margin-bottom: 5px;">Категория:</span>
                    {category}
                </label>
                <div class="siteformrow2label">
                    <span class="siteformrow2span" style="width: 100%; top: 0; margin-bottom: 5px;">Краткое описание:</span>
                    [not-wysywyg]
                    <div class="bb-editor">
                        {bbcode}
                        <textarea name="short_story" id="short_story" onfocus="setFieldName(this.name)" rows="15" class="f_textarea" >{short-story}</textarea>
                    </div>
                    [/not-wysywyg]
                    {shortarea}
                </div>
                <div class="siteformrow2label">
                    <span class="siteformrow2span" style="width: 100%; top: 0; margin-bottom: 5px;">Полное описание:</span>
                    [not-wysywyg]
                    <div class="bb-editor">
                        {bbcode}
                        <textarea name="full_story" id="full_story" onfocus="setFieldName(this.name)" rows="20" class="f_textarea" >{full-story}</textarea>
                    </div>
                    [/not-wysywyg]
                    {fullarea}
                </div>
                [recaptcha]
                <label class="siteformrow2label">
                    <span class="siteformrow2span" style="width: 100%; top: 0; margin-bottom: 5px;">Введите два слова, показанных на изображении:</span>
                    <div>{recaptcha}</div>
                </label>
                [/recaptcha]
                <label>
                    <div>{xfields}</div>
                </label>
                <label class="siteformrow2label">
                    <span class="siteformrow2span">Ключевые слова:</span>
                    <input type="text" name="tags" id="tags" value="{tags}" maxlength="150" autocomplete="off" class="siteforminp" />
                </label>
                <label>
                    <div style="float: left; width: 100%; padding-top: 15px;">{admintag}</div>
                </label>
             </div>
            <div class="siteformrow">
                <button name="add" class="bluelink siteformbut" type="submit">Опубликовать</button>
                <button name="nview" onclick="preview()" class="bluelink siteformbut" type="submit">Посмотреть</button>
            </div>
        </div>
    </div>
</div>