<script type="text/javascript">		
	$(document).ready(function() {
		$('.chonngonngu li a').click(function(event) {
			var lang = $(this).attr('href');
			$('.chonngonngu li a').removeClass('active');
			$(this).addClass('active');
			$('.lang_hidden').removeClass('active');
			$('.lang_'+lang).addClass('active');
			return false;
		});
	});

</script>
<div class="control_frm breadcrumb" style="margin-top:25px;">
	<div class="bc">
		<ul id="breadcrumbs" class="breadcrumbs">
			<li><a href="index.php?com=setting&act=capnhat"><span>Thiết lập hệ thống</span></a></li>
			<li class="current"><a href="#" onclick="return false;">Cấu hình website</a></li>
		</ul>
		<div class="clear"></div>
	</div>
</div>
<script type="text/javascript">		
	function TreeFilterChanged2(){		
		$('#validate').submit();		
	}
</script>
<form name="supplier" id="validate" class="form" action="index.php?com=setting&act=save&curPage=<?=$_REQUEST['curPage']?>" method="post" enctype="multipart/form-data">
	

	<div class="widget">

		<?php include _template."helper/lang.php";?>
		
		<?php include _template."helper/ten_lang.php";?>
		

		<?php foreach($config_lang as $key => $name){
			if(!$setting_slogan) break;
			?>
			<div class="formRow lang_hidden lang_<?=$key?> <?=$key=='vi'?'active':''?>">
				<label>Slogan (<?=$name?>)</label>
				<div class="formRight">
					<input type="text" name="slogan_<?=$key?>" title="Nhập slogan" id="slogan_<?=$key?>" class="form-control tipS" value="<?=@$item['slogan_'.$key]?>" />
				</div>
				<div class="clear"></div>
			</div>
		<?php } ?>		


		<div class="formRow">
			<label>Email</label>
			<div class="formRight">
				<input type="text" value="<?=@$item['email']?>" name="email" title="Nhập địa chỉ email" class="tipS form-control" />
			</div>
			<div class="clear"></div>
		</div>

		<?php 
		$txt_title = "Địa Chỉ";
		$txt_key = "diachi_";
		include _template."helper/input_text_lang.php";
		?>		

		<div class="formRow">
			<label>Website</label>
			<div class="formRight">
				<input type="text" value="<?=@$item['website']?>" name="website" title="Nhập địa chỉ website" class="tipS form-control" />
			</div>
			<div class="clear"></div>
		</div>	
		
		
		<div class="formRow">
			<label>Iframe bản đồ</label>
			<div class="formRight">
				<textarea rows="8" cols="" title="toado" class="tipS form-control" name="toado"><?=@$item['toado']?></textarea>
			</div>
			<div class="clear"></div>
		</div>	
		
		<div class="formRow">
			<label>Link bản đồ</label>
			<div class="formRight">
				<input type="text" value="<?=@$item['toado1']?>" name="toado1" title="Nhập link bản đồ" class="tipS form-control" />
			</div>
			<div class="clear"></div>
		</div> 
		
		<div class="formRow">
			<label>Giờ làm việc</label>
			<div class="formRight">
				<input type="text" value="<?=@$item['chieu']?>" name="chieu" title="Nhập thời gian" class="form-control tipS" />
			</div>
			<div class="clear"></div>
		</div>	


		<div class="formRow">
			<label>Sản phẩm phân trang</label>
			<div class="formRight">
				<input type="text" name="sanpham" title="Nhập số sản phẩm trang chủ" id="sanpham" class="tipS form-control validate[required]" value="<?=@$item['sanpham']?>" />
			</div>
			<div class="clear"></div>
		</div>
		
		<!-- <div class="formRow">
			<label>Đóng dấu ảnh</label>
			<div class="formRight">
				 <div class="mt10"><img src="../upload/watermark.png"  alt="NO PHOTO" width="100" /></div><br>
				<input type="file" id="dongdau" name="dongdau" />
				<div class="note"> width : 400px - Height : 400px</div>
			</div>
			<div class="clear"></div>
		</div> -->




		

	</div>
	<div class="widget mt-4 card">
		<div class="title"><img src="./images/icons/dark/record.png" alt="" class="titleIcon" />
			<h6>Liên Kết</h6>
		</div>
		<div class="formRow">
			<label>Hotline</label>
			<div class="formRight">
				<input type="text" value="<?=@$item['hotline']?>" name="hotline" title="Nhập hotline" class="tipS form-control" />
			</div>
			<div class="clear"></div>
		</div>
		<div class="formRow">
			<label>Điện thoại</label>
			<div class="formRight">
				<input type="text" value="<?=@$item['dienthoai']?>" name="dienthoai" title="Nhập số điện thoại" class="tipS form-control" />
			</div>
			<div class="clear"></div>
		</div>
		<div class="formRow">
			<label>Facebook</label>
			<div class="formRight">
				<input type="text" value="<?=@$item['facebook']?>" name="facebook" title="Nhập link fanpage facebook" class="tipS form-control" />
			</div>
			<div class="clear"></div>
		</div> 
		<div class="formRow">
			<label>Zalo</label>
			<div class="formRight">
				<input type="text" value="<?=@$item['zalo']?>" name="zalo" title="Nhập zalo" class="tipS form-control" />
			</div>
			<div class="clear"></div>
		</div>
		<div class="formRow">
			<label>Viber</label>
			<div class="formRight">
				<input type="text" value="<?=@$item['youtube']?>" name="youtube" title="Nhập link fanpage viber" class="tipS form-control" />
			</div>
			<div class="clear"></div>
		</div>
		<div class="formRow">
			<label>Whatapp</label>
			<div class="formRight">
				<input type="text" value="<?=@$item['skype']?>" name="skype" title="Nhập link fanpage whatapp" class="tipS form-control" />
			</div>
			<div class="clear"></div>
		</div>

		<div class="formRow d-none">
			<label>Google</label>
			<div class="formRight">
				<input type="text" value="<?=@$item['google']?>" name="google" title="Nhập link fanpage google" class="tipS form-control" />
			</div>
			<div class="clear"></div>
		</div> 
	</div>
	<div class="widget mt-4 card d-none">
		<div class="title"><img src="./images/icons/dark/record.png" alt="" class="titleIcon" />
			<h6>quang cao</h6>
		</div>
		<div class="formRow">
			<label>Hotline2</label>
			<div class="formRight">
				<input type="text" value="<?=@$item['hotline2']?>" name="hotline2" title="Nhập hotline" class="tipS form-control" />
			</div>
			<div class="clear"></div>
		</div>
		<div class="formRow">
			<label>Facebook</label>
			<div class="formRight">
				<input type="text" value="<?=@$item['facebook2']?>" name="facebook2" title="Nhập link fanpage facebook" class="tipS form-control" />
			</div>
			<div class="clear"></div>
		</div> 
		<div class="formRow">
			<label>Zalo</label>
			<div class="formRight">
				<input type="text" value="<?=@$item['zalo2']?>" name="zalo2" title="Nhập zalo" class="tipS form-control" />
			</div>
			<div class="clear"></div>
		</div>
		<div class="formRow">
			<label>Youtube</label>
			<div class="formRight">
				<input type="text" value="<?=@$item['youtube2']?>" name="youtube2" title="Nhập link fanpage youtube" class="tipS form-control" />
			</div>
			<div class="clear"></div>
		</div>
		<div class="formRow">
			<label>Skype</label>
			<div class="formRight">
				<input type="text" value="<?=@$item['skype2']?>" name="skype2" title="Nhập link fanpage skype" class="tipS form-control" />
			</div>
			<div class="clear"></div>
		</div>

		<div class="formRow">
			<label>Google</label>
			<div class="formRight">
				<input type="text" value="<?=@$item['google2']?>" name="google2" title="Nhập link fanpage google" class="tipS form-control" />
			</div>
			<div class="clear"></div>
		</div> 
	</div>
	<div class="widget mt-4 card">
		<div class="title"><img src="./images/icons/dark/record.png" alt="" class="titleIcon" />
			<h6>Nội dung seo</h6>
		</div>			
		
		<div class="formRow">
			<label>Title</label>
			<div class="formRight">
				<input type="text" value="<?=@$item['title']?>" name="title" title="Nội dung thẻ meta Title dùng để SEO" class="tipS form-control" />
			</div>
			<div class="clear"></div>
		</div>
		
		<div class="formRow">
			<label>Từ khóa</label>
			<div class="formRight">
				<input type="text" value="<?=@$item['keywords']?>" name="keywords" title="Từ khóa chính cho website" class="tipS form-control" />
			</div>
			<div class="clear"></div>
		</div>
		
		<div class="formRow">
			<label>Description:</label>
			<div class="formRight">
				<textarea rows="8" cols="" title="Nội dung thẻ meta Description dùng để SEO" class="tipS form-control" name="description"><?=@$item['description']?></textarea>
				<input readonly="readonly form-control" type="text" style="width:25px; margin-top:10px; text-align:center;" name="des_char" value="<?=@$item['des_char']?>" /> ký tự <b>(Tốt nhất là 160 ký tự)</b>
			</div>
			<div class="clear"></div>
		</div>	

		<div class="formRow">
			<label>Head code :</label>
			<div class="formRight">
				<textarea rows="8" cols="" title="Scriptcode" class="tipS form-control" name="scriptcode"><?=@$item['scriptcode']?></textarea>
			</div>
			<div class="clear"></div>
		</div>	
		
		<div class="formRow">
			<label>Body code :</label>
			<div class="formRight">
				<textarea rows="8" cols="" title="Bodycode" class="tipS form-control" name="bodycode"><?=@$item['bodycode']?></textarea>
			</div>
			<div class="clear"></div>
		</div>	

		<div class="formRow">
			<div class="formRight">
				<input type="hidden" name="id" id="id_this_setting" value="<?=@$item['id']?>" />
				<input type="submit" class="btn btn-primary"  value="Hoàn tất" />
			</div>
			<div class="clear"></div>
		</div> 			
	</div>


</form>   