		<div class="span9">
			<ul class="breadcrumb">
		    	<li><a href="<?php echo base_url('admin/index'); ?>">首页</a> <span class="divider">/</span></li>
		    	<li class="active">网站设置</li>
		    </ul>
		    
		    
			<form class="form-horizontal" id="form">
			    <fieldset>
			      <div id="legend" class="text-center">
			        <legend class="">系统设置</legend>
			      </div>
			    <div class="control-group">
			
			          <!-- Text input-->
			          <label class="control-label" for="input01">网站名称</label>
			          <div class="controls">
			            <input placeholder="" class="input-xlarge" type="text" name="webname" value="<?php echo $setting['webname']; ?>">
			            <p class="help-block">网站标题(网站标题-栏目标题)</p>
			          </div>
			        </div>
			    
			
			    <div class="control-group">
			          <!-- Text input-->
			          <label class="control-label" for="input01">网站描述</label>
			          <div class="controls">
			            <input placeholder="" class="input-xlarge" type="text" name="description" value="<?php echo $setting['description']; ?>">
			            <p class="help-block">网站的描述信息</p>
			          </div>
			        </div>
			
			    <div class="control-group">
			
			          <!-- Text input-->
			          <label class="control-label" for="input01">网站关键字</label>
			          <div class="controls">
			            <input placeholder="" class="input-xlarge" type="text" name="keywords" value="<?php echo $setting['keywords']; ?>">
			            <p class="help-block">网站的关键字(以逗号","分隔)</p>
			          </div>
			        </div>
			
			    <div class="control-group">
			          <!-- Prepended checkbox -->
			          <label class="control-label">是否开启注册</label>
			          <div class="controls">
			            <div class="input-prepend">
			                <label class="checkbox">
			                  <input class="" type="checkbox" name="reg" <?php if($setting['reg']=="1"){echo "checked=\"checked\"";} ?>>开启/关闭用户注册
			                </label>
			            </div>
			          </div>
			        </div>
			
			    <div class="control-group">
			
			          <!-- Prepended checkbox -->
			          <label class="control-label">关闭网站</label>
			          <div class="controls">
			            <div class="input-prepend">
			              <span class="add-on">
			                <label class="checkbox">
			                  <input class="" type="checkbox" name="close" <?php if($setting['close']=="1"){echo "checked=\"checked\"";} ?>>
			                </label>
			              </span>
			              <input class="span2" placeholder="关闭原因" type="text" name="closeq" value="<?php echo $setting['closeq']; ?>">
			            </div>
			          </div>
			        </div>
			    </fieldset>
			    <button class="btn btn-primary pull-right setting" type="button">保存</button>
			  </form>
			
			
			
		</div>	<!--span9-->
	
	</div> <!--wrap-->
	
</div> <!--container-->
<script>
	$('.setting').click(function(){
		
		$.post("<?php echo base_url('index.php/ajax/setsetting'); ?>", $('#form').serialize(),
			function(data){
				if(data.status==1){
					Messenger().post({
						message:data.msg,
						hideAfter: 10,
						hideOnNavigate: true,
						showCloseButton: true
					});
				}else{
					Messenger().post({
						type: 'error',
						message: data.msg,
						hideAfter: 10,
						hideOnNavigate: true,
						showCloseButton: true
					});
				}
		});
		return false;
	});
</script>
</body>

</html>














