<div class="stt-block">
	<div class="stt-block-title">
		Публикация новости на сайте
	</div>
	<div class="stt-block-content">
		<div class="form-line-tt">
			<div class="form-line-tt-left">
				Введите заголовок:
			</div>
			<div class="form-line-tt-right mob2">
				<input type="text" name="title" style="width: 300px;" value="{title}" class="add-n-form mob1" maxlength="150" />
			</div>
		</div>
		
		<div class="form-line-tt">
			<div class="form-line-tt-left">
				Категория:
			</div>
			<div class="form-line-tt-right">
				{category}
			</div>
		</div>
		
		<div class="form-line-tt">
			<div class="form-line-tt-left">
				Вводная часть:
			</div>
			[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="form-line-tt">
			<div class="form-line-tt-left">
				Подробная часть:
			</div>
			[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>
		
		<div class="form-line-tt add-news-table">
			<table width="100%" cellpadding="0" cellspacing="0">
				{xfields}
			</table>			
		</div>

		[question]
		<div class="form-line-tt">
			<div class="form-line-tt-left">
				Вопрос:
			</div>
			<div class="form-line-tt-right">
				{question}
			</div>
		</div>

		<div class="form-line-tt">
			<div class="form-line-tt-left">
				Ответ:
			</div>
			<div class="form-line-tt-right">
				<input type="text" name="question_answer" id="question_answer" />
			</div>
		</div>
		[/question]
		[sec_code]
		<div class="form-line-tt">
			<div class="form-line-tt-left">
				Код:
			</div>
			<div class="form-line-tt-right">
				{sec_code}
			</div>
		</div>
		
		<div class="form-line-tt">
			<div class="form-line-tt-left">
				Введите код:
			</div>
			<div class="form-line-tt-right">
				<input type="text" name="sec_code" id="sec_code" style="width:115px" />
			</div>
		</div>
		[/sec_code]
		[recaptcha]		
		Введите два слова, показанных на изображении: <span class="impot">*</span>
		<div>{recaptcha}</div>
		[/recaptcha]
		
		<div style="padding: 15px 0;">
			{admintag}
		</div>
		<div style="padding: 15px 0;">
			<input type="submit" class="form-button-tt" name="add" value="отправить" />  
			<input type="button" class="form-button-tt" name="nview" onclick="preview()" value="просмотр" />
		</div>
		
	</div>
</div>
<script type="text/javascript">
	$(document).ready(function() {
	
		$('.add-news-table td.addnews').next('td').find('textarea').wrap('<div style="width: 95%;"></div>');
	
	});
</script>