<!--{include file="<!--{$salepath}-->public/header.tpl"}-->
	<body>
		<div class="layui-tab page-content-wrap">
			<ul class="layui-tab-title">
				<li class="layui-this">站点配置</li>
			</ul>
			<div class="layui-tab-content">
				<!--站点配置-->
				<div class="layui-tab-item layui-show">
					<form class="layui-form" style="width: 90%;padding-top: 20px;">
                                                <input type="hidden" name="c" autocomplete="off" class="layui-input" value="System">
                                                <input type="hidden" name="a" autocomplete="off" class="layui-input" value="save">
                                                <input type="hidden" name="data_type" autocomplete="off" class="layui-input" value="system">
						<div class="layui-form-item">
							<label class="layui-form-label">网站名称：</label>
							<div class="layui-input-block">
								<input type="text" name="system_name" autocomplete="off" class="layui-input" value="<!--{$system_data.system_name}-->">
							</div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label">SEO标题：</label>
							<div class="layui-input-block">
								<input type="text" name="system_title" placeholder="请输入seo标题" autocomplete="off" class="layui-input" value="<!--{$system_data.system_title}-->">
							</div>
						</div>
                                                        <div class="layui-form-item">
							<label class="layui-form-label">关键字：</label>
							<div class="layui-input-block">
								<input type="text" name="system_keyword" placeholder="请输入seo关键字" autocomplete="off" class="layui-input" value="<!--{$system_data.system_keyword}-->">
							</div>
						</div>
						<div class="layui-form-item layui-form-text">
							<label class="layui-form-label">描述：</label>
							<div class="layui-input-block">
								<textarea name="system_desc" placeholder="请输入seo描述" class="layui-textarea"><!--{$system_data.system_desc}--></textarea>
							</div>
						</div>
						<div class="layui-form-item">
							<div class="layui-input-block">
								<button class="layui-btn layui-btn-normal" lay-submit lay-filter="siteInfo">立即提交</button>
							</div>
						</div>
					</form>
				</div>



			</div>
		</div>
		<script src="<!--{$salepath}-->static/layui/layui.js" type="text/javascript" charset="utf-8"></script>
                 <script src="<!--{$salepath}-->static/js/jquery.min.js" type="text/javascript" charset="utf-8"></script>
		<script>
			//Demo
			layui.use(['form', 'element'], function() {
				var form = layui.form();
				var element = layui.element();
				form.render();
				//监听信息提交
				form.on('submit(siteInfo)', function(data) {
                                        
                                           
                                   
				});
				//监听seo提交
				form.on('submit(seoInfo)', function(data) {
					
				});
				//监听seo提交
				form.on('submit(emailInfo)', function(data) {
					layer.msg(JSON.stringify(data.field));
					return false;
				});
				//监听评论提交
				form.on('submit(commentInfo)', function(data) {
					layer.msg(JSON.stringify(data.field));
					return false;
				});
			});
                        function ajaxsiteInfo(data){
                                      var post_url="sale.php?c=System&a=save";
                                            $.ajax({
                                                    type : "POST",
                                                    url : post_url,
                                                    data : data.field,
                                                    dataType : "json",
                                                    success : function(data) {

                                                          
                                                    }
                                            });
                        }
		</script>
	</body>

</html