<!-- BEGIN: main -->
<script type="text/javascript" src="{NV_BASE_SITEURL}{NV_ASSETS_DIR}/js/jquery/jquery.validate.min.js"></script>
<script type="text/javascript" src="{NV_BASE_SITEURL}{NV_ASSETS_DIR}/js/language/jquery.validator-{NV_LANG_INTERFACE}.js"></script>

<div class="alert alert-info <!-- BEGIN: error --> alert-danger <!-- END: error -->"><span>{LANG.vmodule_blockquote}</div>

<form id="vform" action="{NV_BASE_ADMINURL}index.php" method="post">
	<input type="hidden" name="{NV_NAME_VARIABLE}" value="{MODULE_NAME}" />
	<input type="hidden" name ="{NV_OP_VARIABLE}" value="{OP}" />
	<input name="checkss" type="hidden" value="{NV_CHECK_SESSION}" />
	<div class="table-responsive">
		<table class="table table-striped table-bordered table-hover">
			<tfoot>
				<tr>
					<td class="text-center" colspan="2"><input name="submit1" type="submit" value="{GLANG.submit}" class="btn btn-primary" /></td>
				</tr>
			</tfoot>
			<tbody>
				<tr>
					<td class="w250 text-right"><strong>{LANG.vmodule_name}: </strong><sup class="required">(*)</sup></td>
					<td><input class="w400 required form-control" style="margin-right: 10px;" name="title" type="text" value="{TITLE}" maxlength="50" /> ({LANG.vmodule_maxlength})</td>
				</tr>
				<tr>
					<td class="text-right"><strong>{LANG.vmodule_file}: </strong><sup class="required">(*)</sup></td>
					<td>
					<select name="module_file" class="required form-control w250" style="margin-right: 10px;">
						<option value="">{LANG.vmodule_select}</option>
						<!-- BEGIN: modfile -->
						<option value="{MODFILE.key}"{MODFILE.selected}>{MODFILE.key}</option>
						<!-- END: modfile -->
					</select></td>
				</tr>
				<tr>
					<td class="text-right top">
					<br />
					<strong>{LANG.vmodule_note}:</strong></td>
					<td><textarea style="width: 450px" name="note" cols="80" rows="5" class="form-control">{NOTE}</textarea></td>
				</tr>
			</tbody>
		</table>
	</div>
</form>
<script type="text/javascript">
	//<![CDATA[
	$(function() {
		$('#vform').validate({
			rules : {
				title : {
					minlength : 3
				}
			}
		});
	});
	//]]>
</script>
<!-- END: main -->