<!doctype html public "-//w3c//dtd html 4.01 transitional//en" "http://www.w3c.org/tr/1999/rec-html401-19991224/loose.dtd">

<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>网站基本信息设置</title>
<link href="../plugins/bootstrap/bootstrap.min.css" rel="stylesheet">
<link href="../plugins/bootstrap/font-awesome.min.css?t=20230419" rel="stylesheet">
<link href="../plugins/bootstrap/animate.min.css" rel="stylesheet">
<link href="../plugins/bootstrap/style.min.css" rel="stylesheet">
<link href="css/adminstyle.css" rel="stylesheet">

<script src="../js/jquery.min.js"></script>
<script src="../plugins/colorpicker/bootstrap-colorpicker.min.js"></script>
<!--[if lte ie 9]>
<script src="../js/respond.min.js"></script>
<script src="../js/html5.js"></script>
<![endif]-->
</head>
<body class="gray-bg">
<div class="wrapper wrapper-content">
  <div class="row">
  <form method="post" class="form-horizontal"> <div class="col-sm-12">
      <div class="tabs-container">
        <ul class="nav nav-tabs">
          <li class="tab1 "><a href="?act=siteedit"> <i class="fa fa-laptop"></i>中文信息</a> </li>
          <li class="tab2 active"><a  href="#"> <i class="fa fa-laptop"></i>英文信息</a> </li>
        </ul>
        <div class="tab-content">
          <div id="tab-1" class="tab-pane active">
            <div class="panel-body">
              <div class="form-group">
                <label class="col-sm-2 control-label">网站名称</label>
                <div class="col-sm-4">
                  <input type="text" name="sitetitle" id="sitetitle" placeholder="{$togbk [r sitetitle]}"  value="{$togbk [r sitetitle]}" class="form-control">
                </div>
                 <label class="col-sm-2 control-label">公司名称</label>
                <div class="col-sm-4">
                  <input type="text" name="companyname" id="companyname" placeholder="{$togbk [r companyname]}" value="{$togbk [r companyname]}" class="form-control">
                </div>
              </div>
              <div class="form-group">
                <label class="col-sm-2 control-label">网页附加名称</label>
                <div class="col-sm-4">
                  <input type="text" name="additiontitle" id="additiontitle"  placeholder="{$togbk [r additiontitle]}"  value="{$togbk [r additiontitle]}" class="form-control">
                </div>
                <label class="col-sm-2 control-label">备案号</label>
                <div class="col-sm-4">
                  <input type="text" name="companyicp" id="companyicp" placeholder="{$togbk [r companyicp]}" value="{$togbk [r companyicp]}" class="form-control">
                </div>
              </div>
              <div class="form-group">
                <label class="col-sm-2 control-label">网站logo</label>
                <div class="col-sm-5">
                  <input type="text" name="sitepclogo" id="pclogo" placeholder="[r:sitepclogo]" value="[r:sitepclogo]" class="form-control">
                </div>
                <div class="col-sm-2">
                  <div id="logo_upload">上传</div>
                </div>
                <div class="col-sm-2"> <img src="[r:sitepclogo]" height="30" id="img_pclogo"></div>
              </div>
              <div class="form-group">
                <label class="col-sm-2 control-label">手机logo</label>
                <div class="col-sm-5">
                  <input type="text" name="sitewaplogo" id="waplogo" placeholder="[r:sitewaplogo]" value="[r:sitewaplogo]"  class="form-control">
                </div>
                <div class="col-sm-2">
                  <div id="waplogo_upload">上传</div>
                </div>
                <div class="col-sm-2"> <img src="[r:sitewaplogo]" height="30" id="img_waplogo"></div>
              </div>
              <div class="form-group">
                <label class="col-sm-2 control-label">微信二维码</label>
                <div class="col-sm-5">
                  <input type="text" name="weixin" id="weixin" placeholder="[r:weixin]" value="[r:weixin]" class="form-control">
                </div>
                <div class="col-sm-2">
                  <div id="weixin_upload">上传</div>
                </div>
                <div class="col-sm-2"> <img src="[r:weixin]" height="30" id="img_weixin"></div>
              </div>
              <div class="form-group">
                <label class="col-sm-2 control-label">pc网址</label>
                <div class="col-sm-4">
                  <input type="text" name="siteurl" id="siteurl" placeholder="[r:siteurl]" value="[r:siteurl]" class="form-control">
                </div>

                <label class="col-sm-2 control-label">wap网址</label>
                <div class="col-sm-4">
                  <input type="text" name="sitewapurl" id="sitewapurl" placeholder="[r:sitewapurl]" value="[r:sitewapurl]" class="form-control">
                </div>
              </div>
              <div class="form-group">
                <label class="col-sm-2 control-label">网站关键字</label>
                <div class="col-sm-4">
                  <input type="text" name="sitekeys" id="sitekeys" placeholder="{$togbk [r sitekeys]}" value="{$togbk [r sitekeys]}" class="form-control">
                </div>

                <label class="col-sm-2 control-label">网站描述</label>
                <div class="col-sm-4">
                  <input type="text" name="sitedesc" id="sitedesc" placeholder="{$togbk [r sitedesc]}" value="{$togbk [r sitedesc]}" class="form-control">
                </div>
              </div>
              
              <div class="form-group">
                <label class="col-sm-2 control-label">联系人</label>
                <div class="col-sm-4">
                  <div class="input-group">
                    <input type="text"  name="companycontact" id="companycontact" placeholder="{$togbk [r companycontact]}" value="{$togbk [r companycontact]}" class="form-control">
                    <span class="input-group-addon">多个联系人用|分隔</span> </div>
                </div>
 				 <label class="col-sm-2 control-label">手机</label>
                <div class="col-sm-4">
                  <input type="text"  name="companymobile" id="companymobile" placeholder="[r:companymobile]" value="[r:companymobile]" class="form-control">
                </div>
                 </div>
              <div class="form-group">
                <label class="col-sm-2 control-label">电话</label>
                <div class="col-sm-4">
                  <div class="input-group">
                    <input type="text" name="companytel" id="companytel" placeholder="[r:companytel]" value="[r:companytel]" title="支持多个电话，用|分隔" class="form-control">
                    <span class="input-group-addon">多个电话号用|分隔</span> </div>
                </div>
              <label class="col-sm-2 control-label">传真</label>
                <div class="col-sm-4">
                  <input type="text" name="companyfax" id="companyfax"  placeholder="[r:companyfax]" value="[r:companyfax]" class="form-control">
                </div>
              </div>
              
              <div class="form-group">
                <label class="col-sm-2 control-label">邮箱</label>
                <div class="col-sm-4">
                  <div class="input-group">
                    <input type="text" name="companyemail" id="companyemail" placeholder="[r:companyemail]" value="[r:companyemail]" class="form-control">
                    <span class="input-group-addon">多个邮箱号用|分隔</span> </div>
                </div>
              <label class="col-sm-2 control-label">联系qq</label>
                <div class="col-sm-4">
                  <div class="input-group">
                    <input type="text" title="支持多个qq，用|分隔" name="qq" id="qq" placeholder="[r:qq]"  value="[r:qq]"  class="form-control">
                    <span class="input-group-addon">多个客服qq用|分隔</span> </div>
                </div>
              </div>
                
              <div class="form-group">
                <label class="col-sm-2 control-label">地址</label>
                <div class="col-sm-4">
                  <input type="text" name="companyaddress" id="companyaddress" placeholder="{$togbk [r companyaddress]}"  value="{$togbk [r companyaddress]}" class="form-control">
                </div>
                <label class="col-sm-2 control-label">邮编</label>
                <div class="col-sm-4">
                  <input type="text"name="companypostcode" id="companypostcode" placeholder="[r:companypostcode]"  value="[r:companypostcode]"  class="form-control">
                </div>
              </div>           
     			
         
              <div class="form-group">
                <label class="col-sm-2 control-label">百度地图</label>
                <div class="col-sm-8">
                  <input type="text"  name="companymappoint" id="companymappoint" placeholder="[r:companymappoint]" value="[r:companymappoint]" class="form-control">
                </div>
                <div class="col-sm-2"> <a class="btn btn-success " onClick="openmap('[r:companymappoint]')">获取坐标</a> </div>
              </div>
              <div class="form-group">
                <label class="col-sm-2 control-label">版权信息</label>
                <div class="col-sm-10">
                  <textarea id="copyright" name="copyright" class="form-control" placeholder="{$togbk [r copyright]}">{$togbk [r copyright]}</textarea>
                </div>
              </div>
              <div class="form-group">
                <label class="col-sm-2 control-label">统计代码</label>
                <div class="col-sm-8">
                  <textarea id="statisticalcode" name="statisticalcode" class="form-control"  placeholder="[r:statisticalcode]">[r:statisticalcode]</textarea>
                </div>
                <div class="col-sm-2"> <a class="btn btn-success " onClick="opennew('tongji.cnzz.com/main.php?c=site&a=frame&siteid=')">查看统计</a> </div>
              </div>
            </div>
          </div>       
        </div>
      </div>
    </div>
    <div class="col-sm-12  m-t">
      <div class=" col-sm-10 col-md-offset-1">
        <button class="btn btn-primary" type="button" disabled><i class="fa fa-floppy-o"></i>　自动保存</button>
        <button onClick="location.reload()" class="btn" type="button"><i class="fa fa-refresh"></i> 刷新</button>
      </div>
    </div>
  </form>
</div>
</div>
<!-- end panel other -->
</div>
<script src="../plugins/bootstrap/bootstrap.min.js"></script>
<link href="../plugins/colorpicker/bootstrap-colorpicker.min.css" rel="stylesheet">
<script src="../plugins/layer/layer.min.js"></script> 
<script src="js/adminjs.js?t=20231027"></script> 
<script src="../plugins/webuploader/js/webuploader.js"></script> 
<script src="js/webconfig.php"></script> 
<script src="../plugins/webuploader/js/oneupload.js"></script> 
<script>
$(function () {
	fileuploader("logo_upload","image","logo","pclogo","")
	fileuploader("waplogo_upload","image","logo","waplogo","")
	fileuploader("weixin_upload","image","logo","weixin","")
	 $("li").on("click",".dropdown li",function(){
		qqkfval=$("#qqkf").val()
	});
$(window).on('popstate', function() {
	var anchor = location.hash || $("a[data-toggle=tab]").first().attr("href");
	$('a[href=' + anchor + ']').tab('show');
});
	$("input,textarea").blur(function() {
	var colval = $(this).val();
	var colplace = $(this).attr('placeholder');
	var colname = $(this).attr('name');
		if (colval != colplace) {
			$(this).attr('placeholder', colval);      
			$.post("save.php?act=saveid",{'table':'language',"colval":colval,"colname":colname,"colid":<?php echo G('ID')?>},function(data){layer.msg('保存成功');});
		}
	});	
	if(location.hash) {
        $('a[href=' + location.hash + ']').tab('show');
    }
    $(document.body).on("click", "a[data-toggle]", function(event) {
        location.hash = this.getAttribute("href");
    });
});
function openmap(type){layer.open({type:2,area:['1000px','600px'],fix:false,maxmin:true,content:'?act=baidumap&type='+type,end:function(index,layero){$("#companymappoint").focus();}});}
</script>
</body>
</html>