<!-- BEGIN: main -->
<link type="text/css" href="{NV_BASE_SITEURL}{NV_ASSETS_DIR}/js/ui/jquery.ui.core.css" rel="stylesheet" />
<link type="text/css" href="{NV_BASE_SITEURL}{NV_ASSETS_DIR}/js/ui/jquery.ui.theme.css" rel="stylesheet" />
<link type="text/css" href="{NV_BASE_SITEURL}{NV_ASSETS_DIR}/js/ui/jquery.ui.datepicker.css" rel="stylesheet" />
<script type="text/javascript" src="{NV_BASE_SITEURL}{NV_ASSETS_DIR}/js/ui/jquery.ui.core.min.js"></script>
<script type="text/javascript" src="{NV_BASE_SITEURL}{NV_ASSETS_DIR}/js/ui/jquery.ui.datepicker.min.js"></script>
<script type="text/javascript" src="{NV_BASE_SITEURL}{NV_ASSETS_DIR}/js/language/jquery.ui.datepicker-{NV_LANG_INTERFACE}.js"></script>

<form action="{BASE_URL_SITE}" name="fsea" method="get" id="fsea" class="form-horizontal">
	<input type="hidden" name="{NV_LANG_VARIABLE}" value="{NV_LANG_DATA}" />
	<input type="hidden" name="{NV_NAME_VARIABLE}" value="{MODULE_NAME}" />
	<input type="hidden" name="{NV_OP_VARIABLE}" value="{OP_NAME}" />

	<div class="panel panel-default">
		<div class="panel-body">
			<h3 class="text-center"><em class="fa fa-search">&nbsp;</em>{LANG.info_title}</h3>
			<hr/>
			<div class="form-group">
				<label class="col-sm-7 control-label">{LANG.key_title}</label>
				<div class="col-sm-17">
					<input type="text" name="q" value="{KEY}" class="form-control" id="key"/>
				</div>
			</div>

			<div class="form-group">
				<label class="col-sm-7 control-label">{LANG.search_cat}</label>
				<div class="col-sm-17">
					<select name="catid" class ="form-control">
						<!-- BEGIN: search_cat -->
						<option value="{SEARCH_CAT.catid}" {SEARCH_CAT.select}>{SEARCH_CAT.title}</option>
						<!-- END: search_cat -->
					</select>
				</div>
			</div>

			<div class="form-group">
				<label class="col-sm-7 control-label">{LANG.from_date}</label>
				<div class="col-sm-17">
					<div class="input-group">
						<input type="text" class="form-control" name="from_date" id="from_date" value="{FROM_DATE}" readonly="readonly" />
						<span class="input-group-btn">
							<button class="btn btn-default" type="button" id="from-btn">
								<em class="fa fa-calendar fa-fix">&nbsp;</em>
							</button></span>
					</div>
				</div>
			</div>

			<div class="form-group">
				<label class="col-sm-7 control-label">{LANG.to_date}</label>
				<div class="col-sm-17">
					<div class="input-group">
						<input type="text" class="form-control" name="to_date" id="to_date" value="{TO_DATE}" readonly="readonly" />
						<span class="input-group-btn">
							<button class="btn btn-default" type="button" id="to-btn">
								<em class="fa fa-calendar fa-fix">&nbsp;</em>
							</button>
						</span>
					</div>
				</div>
			</div>

			<div class="form-group">
				<label class="col-sm-7 control-label">&nbsp;</label>
				<div class="col-sm-17">
					<input type="submit" class="btn btn-primary" value="{LANG.search_title}"/>
				</div>
			</div>
		</div>
	</div>
</form>

<script type="text/javascript">
	$(document).ready(function() {
		$("#from_date, #to_date").datepicker({
			dateFormat : "dd.mm.yy",
			changeMonth : true,
			changeYear : true,
			showOtherMonths : true,
			showOn : 'focus'
		});
		$('#to-btn').click(function(){
			$("#to_date").datepicker('show');
		});
		$('#from-btn').click(function(){
			$("#from_date").datepicker('show');
		});

	});
</script>
<!-- END: main -->
<!-- BEGIN: results -->
<div class="panel panel-default">
	<div class="panel-body">
		<h3 class="text-center"><em class="fa fa-filter">&nbsp;</em>{LANG.search_on}&nbsp;{TITLE_MOD}</h3>
		<hr/>
		<!-- BEGIN: noneresult -->
		<p>
			<em>{LANG.search_none} : <strong class="label label-info">{KEY}</strong>&nbsp;{LANG.search_in_module}&nbsp;<strong>{INMOD}</strong></em>
		</p>
		<!-- END: noneresult -->

		<!-- BEGIN: result -->
		<div class="clear">
			<h3><a href="{LINK}">{TITLEROW}</a></h3>
			<div class="text-justify col-sm-24">
				<p>
					<!-- BEGIN: result_img -->
					<a href="{LINK}">
						<img src="{IMG_SRC}" class="img-thumbnail pull-left" width="120px"/>
					</a>
					<!-- END: result_img -->
					{CONTENT}
				</p>
				<div class="clear"></div>
				<p class="text-justify text-muted">
					{TIME}
				</p>
			</div>
		</div>
		<hr />
		<!-- END: result -->
		<!-- BEGIN: pages_result -->
		<div class="text-center">
			{VIEW_PAGES}
		</div>
		<!-- END: pages_result -->
		<div class="alert alert-info">
			<p>
				<em>{LANG.search_sum_title}&nbsp;<strong>{NUMRECORD}</strong>&nbsp;{LANG.result_title}
				<br/>{LANG.info_adv}&nbsp;</em>
			</p>
		</div>
		<h4><strong>{LANG.search_adv_internet}&nbsp;:</strong></h4>
		<div class="center-block">
			<form method="get" action="http://www.google.com/search" target="_top">
				<input type="hidden" name="domains" value="{MY_DOMAIN}" />

				<div class="form-group">
					<div class="col-md-8"><img src="http://www.google.com/logos/Logo_25wht.gif" border="0" alt="Google" />
					</div>
					<div class="col-md-8"><input type="text" name="q" maxlength="255" value="{KEY}" id="sbi" class="form-control" />
					</div>
					<div class="col-md-8"><input type="submit" name="sa" value="{LANG.search_title}" id="sbb" class="btn btn-default">
					</div>
				</div>
				<div class="form-group">
					<div class="col-md-8"><input type="radio" name="sitesearch" value="" checked id="ss0" />{LANG.search_on_internet}
					</div>
					<div class="col-md-8"><input type="radio" name="sitesearch" value="{MY_DOMAIN}" />&nbsp;{LANG.search_on_nuke}&nbsp;{MY_DOMAIN}
					</div>
					<div class="col-md-8"></div>
				</div>
			</form>
		</div>
	</div>
</div>
<!-- END: results -->