<%@ page language="C#" autoeventwireup="true" inherits="wap_user_myWebsite, kfenlei" %><!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Cache-control" content="no-cache" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0">
<title><%=sWebName %> - 商家网站设置</title>
<link href="/js/css/layui.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="css.css" />
</head>
<body>
<%=qTemplate.Ac("wapUserTop.html") %>
<script type="text/javascript" language="javascript" src="/js/layui.js"></script>
<script type="text/javascript" src="/js/jquery.form.js"></script>
<script type="text/javascript">
layui.use(['form','laydate'], function(){
var form = layui.form();
    form.render();
});
</script>
<div align="left">
<div class="wapPageTitle"><a href="/wap/user/index1.aspx" class="infoback">返回</a>商家网站设置</div>
<div class="clear10"></div>
<div class="infowrap" align="left">
<form action="/inc/kfUpload.aspx?s=nowatermark" style="display:none;" id="upFileForm" name="upFileForm" method="post" enctype="multipart/form-data">
<input type="file" id="upFile" name="upFile" />
<input type="submit" value="上传">
</form>
<form action="action.aspx?s=website" method="post" class="layui-form" name="websiteEdit" id="websiteEdit">
<table width="100%" class="userMessTable" border="0" cellspacing="0" cellpadding="5">
<td class="head" width="100">自动跳转：</td>
<td><input type="radio" name="s1" value="0" checked="checked" title="启用" /><input type="radio" name="s1" value="1" title="关闭" /><br>
<div class="commentary">自动跳转到手机版</div></td>
</tr>
<tr>
<td class="head">二级域名：</td>
<td><input class="inputText" value="<%=user_name%>" name="user_name" type="text" size="10" style="width:100px;" /> .<%=webdomain %></td>
</tr>
<tr>
<td class="head">网站LOGO：</td>
<td><input class="inputText" value="<%=top_pic%>" id="top_pic" name="top_pic" type="text" size="15" /> 
<div class="clear10"></div>
<a href="#nogo" onclick="window.open('/'+$('#top_pic').val());" target="_blank" class="bt2 fl5">查看</a><a href="#nogo" class="bt2 fl5" id="top_pic_btn" onClick="upPic('top_pic','top_pic_btn')">上传</a></td>
</tr>
<tr>
<td class="head">手机网站LOGO:</td>
<td><input class="inputText" value="<%=top_pic1%>" id="top_pic1" name="top_pic1" type="text" size="15" />
<div class="clear10"></div>
<a href="#nogo" onclick="window.open('/'+$('#top_pic1').val());" class="bt2 fl5" target="_blank">查看</a><a href="#nogo" class="bt2 fl5" id="top_pic1_btn" onClick="upPic('top_pic1','top_pic1_btn')">上传</a></td>
</tr>
<tr>
<td class="head">网站<br>
背景图片：</td>
<td><input class="inputText" value="<%=bg_pic%>" id="bg_pic" name="bg_pic" type="text" size="15" />
<div class="clear10"></div>
<a href="#nogo" onclick="window.open('/'+$('#bg_pic').val());" class="bt2 fl5" target="_blank">查看</a><a href="#nogo" class="bt2 fl5" id="bg_pic_btn" onClick="upPic('bg_pic','bg_pic_btn')">上传</a></td>
</tr>
<tr>
<td class="head">网站标题：</td>
<td><input class="inputText" value="<%=title%>" name="title" type="text" size="25" /></td>
</tr>
<tr>
<td class="head">网站关键词：</td>
<td><input class="inputText" value="<%=keywords%>" name="keywords" type="text" size="25" /></td>
</tr>
<tr>
<td class="head">网站描述：</td>
<td><input class="inputText" value="<%=description%>" name="description" type="text" size="25" /></td>
</tr>
<tr>
<td class="head">关于我们：</td>
<td><textarea class="inputTextarea" name="about" rows="5" cols="25"><%=about%></textarea></td>
</tr>
<tr>
<td class="head">备案号：</td>
<td><textarea class="inputTextarea" name="beian" rows="5" cols="25"><%=beian%></textarea></td>
</tr>
<tr>
<td class="head">统计代码：</td>
<td><textarea class="inputTextarea" name="stat" rows="5" cols="25"><%=stat%></textarea></td>
</tr>
</table>
<input type="submit" class="postSubmit" value="修改企业网站" />
</form>
<script type="text/javascript">
var objPic='';
var objBtn='';
$(":radio[value='<%=sS1 %>']").attr("checked","checked");
function upPic(pic,btn)
{
	objPic=pic;
	objBtn=btn;
	$("#upFile").click();
}
$('#upFile').change(function(){
$("#"+objBtn).html('正在上传……');
$("#upFileForm").ajaxSubmit(
{
	url:"/inc/kfUpload.aspx",type:"POST",
	success:function(response)
	{
		var data=eval("("+response+")");
		if(data.status=="1")
		{
			$("#"+objPic).val(data.pic);
			$("#"+objBtn).html('上传完成，重新上传');
		}
		else
		{
			$("#"+objBtn).html('上传');
  			alert(data.ps);
		}
  	},
 	error:function(msg)
	{
	}
});
$('#upFile').val('');
});
  function valiForm()
  {
    return true
  }
</script>
</div></div>
<div class="clear80"></div>
</body>
</html>
