<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="baseform">	
<div class="title">Yangilik joylash</div>
	<table class="tableform">
		<tr>
			<td class="label">
				Sarlavha:<span class="impot">*</span>
			</td>
			<td><input type="text" name="title" value="{title}" maxlength="150" class="f_input" /></td>
		</tr>
	
		<tr>
			<td class="label">
				Bo'lim:<span class="impot">*</span>
			</td>
			<td>{category}</td>
		</tr>
		<tr>
			<td colspan="2">
				<b>Qisqacha: <span class="impot">*</span></b>
				<div>
					[not-wysywyg]
					
					<textarea name="short_story" id="short_story" onfocus="setFieldName(this.name)" style="width:98%;" rows="15" class="f_textarea" >{short-story}</textarea>
					[/not-wysywyg]
					{shortarea}
				</div>
			</td>
		</tr>
		<tr>
			<td colspan="2">
				<b>Batafsil:</b>
				<div>
						[not-wysywyg]
						
						<textarea name="full_story" id="full_story" onfocus="setFieldName(this.name)" style="width:98%;" rows="15" class="f_textarea" >{full-story}</textarea>
						[/not-wysywyg]
						{fullarea}
				</div>
			</td>
		</tr>
		<tr>
			<td class="label">Teglar:</td>
			<td><input type="text" name="tags" id="tags" value="{tags}" maxlength="150"  class="f_input" autocomplete="off" /></td>
		</tr>
			{xfields}
		[question]
		<tr>
			<td class="label">
				Savol:
			</td>
			<td>
				<div>{question}</div>
			</td>
		</tr>
		<tr>
			<td class="label">
				Ответ:<span class="impot">*</span>
			</td>
			<td>
				<div><input type="text" name="question_answer" class="f_input" /></div>
			</td>
		</tr>
		[/question]
			[sec_code]
			<tr>
				<td class="label">
					Kodni<br />kiriting:<span class="impot">*</span>
				</td>
				<td>
					<div>{sec_code}</div>
					<div><input type="text" name="sec_code" id="sec_code" style="width:115px" class="f_input" /></div>
				</td>
			</tr>
			[/sec_code]
			[recaptcha]
			<tr>
				<td class="label">
					Rasmdagi so'zlarni kiriting:<span class="impot">*</span>
				</td>
				<td>
					<div>{recaptcha}</div>
				</td>
			</tr>
			[/recaptcha]
			<tr>
				<td colspan="2">{admintag}</td>
			</tr>
	</table>
	<div class="fieldsubmit">
		<button name="add" class="fbutton" type="submit">Joylash</button>
		<button name="nview" onclick="preview()" class="fbutton" type="submit">Ko'rish</button>
	</div>
</div>