<?php echo $this->fetch('header.html'); ?>
<div class="row">
  <div class="span12">
    <h3>基本设置</h3>
    <ul class="nav nav-tabs" id="myTab">
      <li  class="active"><a href="#c_base">基本设置</a></li>
      <li><a href="#c_email">邮箱设置</a></li>
      <li><a href="#c_open">开放平台</a></li>
      <li><a href="#c_water">水印设置</a></li>
      <li><a href="#c_sms">短信设置</a></li>
      <li><a href="#c_invite">邀请设置</a></li>
      <li><a href="#c_pay">支付设置</a></li>
      <li><a href="#c_yingye">营业设置</a></li>
    </ul>
    <form method="post" id="t-form" action="<?php echo APPADMIN; ?>?m=admin_config&a=save">
      <div class="tab-content">
        <div class="tab-pane active" id="c_base"><?php echo $this->fetch('config/base.html'); ?></div>
        <div class="tab-pane" id="c_open"><?php echo $this->fetch('config/open.html'); ?></div>
        <div class="tab-pane" id="c_water"><?php echo $this->fetch('config/water.html'); ?></div>
        <div class="tab-pane" id="c_sms"><?php echo $this->fetch('config/sms.html'); ?></div>
        <div class="tab-pane" id="c_invite"><?php echo $this->fetch('config/invite.html'); ?></div>
        <div class="tab-pane" id="c_pay"><?php echo $this->fetch('config/pay.html'); ?></div>
        <div class="tab-pane" id="c_yingye"><?php echo $this->fetch('config/yingye.html'); ?></div>
        <div class="tab-pane" id="c_email"><?php echo $this->fetch('config/email.html'); ?></div>
      </div>
      <div><input type="submit" name="button" id="button" class="btn btn-success btn-large" style="margin-right:100px;" value="提交"></div>
    </form>
  </div>
</div>
<script language="javascript">
$(".tab-content tr").find("td:eq(0)").css("width","100px");
$('#myTab a').click(function (e) {
	  e.preventDefault();
	  $(this).tab('show');
});
$("#testphone").click(function(){
		$.get("<?php echo $this->_var['appadmin']; ?>?m=admin_config&a=testphone",$("#t-form").serialize(),function(data){
			alert(data)
		})
});

$("#testemail").click(function(){
	$.get('<?php echo $this->_var['appadmin']; ?>?m=admin_config&a=testemail',$("#t-form").serialize(),function(data){ 
    	$('#testemail_res').html(data); 
    });
});

</script> 
<?php echo $this->fetch('footer.html'); ?>