<%@ page language="C#" autoeventwireup="true" inherits="user_myWebsite, kfenlei" %><%@ Register TagPrefix="qth8" TagName="userManageLeft" Src="~/inc/userWebSiteLeft.ascx" %><%@ Register TagPrefix="qth8" TagName="userManageTop" Src="~/inc/userManageTop.ascx" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title><%=sWebName %> - 商家网站设置</title>
<link rel="stylesheet" type="text/css" href="css.css" />
<link rel="stylesheet" type="text/css" href="/template/css.css" />
</head>
<body>
<div align="center">
<qth8:userManageTop runat="server" ID="userManageTop" selectValue="4" />
<script type="text/javascript" language="javascript" src="/js/layui.js"></script>
<link href="/js/css/layui.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
layui.use(['form','laydate'], function(){
var form = layui.form();
    form.render();
});
</script>
<div class="main" align="left">
<div class="clear"></div>
<qth8:userManageLeft runat="server" selectValue="4" ID="userManageLeft" />
<div class="userRight">
<div class="userRightContent">
<div class="userRightContentTop">商家网站设置</div>
<form action="action.aspx?s=website" method="post" class="layui-form" name="websiteEdit" id="websiteEdit">
<table width="970" class="formTable" border="0" cellspacing="0" cellpadding="5">
<tr>
<td width="140" class="head">自动跳转手机版：</td>
<td><input type="radio" name="s1" value="0" checked="checked" title="启用" /><input type="radio" name="s1" value="1" title="关闭" /></td>
<td class="commentary"></td> 
</tr>
<tr>
<td class="head">二级域名：</td>
<td><input class="textInputP" value="<%=user_name%>" name="user_name" type="text" size="10" /> .<%=webdomain %></td>
<td class="commentary"></td> 
</tr>
<tr>
<td class="head">网站LOGO：</td>
<td><input class="textInput" onclick="alert('请点击上传，进行修改！')" value="<%=top_pic%>" name="top_pic" id="top_pic" type="text" size="39" />　<a href="#nogo" onclick="window.open('/'+$('#top_pic').val());">[查看]</a>　<a href="#nogo" onclick="showDiv('upfileDiv')">[上传]</a>
<div class="clear"></div>
<div class="upfileDiv" id="upfileDiv">
<div class="upfileClose" onclick="hideDiv('upfileDiv')">关闭</div>
<iframe width="300" height="100" style=" padding:0px; margin:0px;" src="actionUpLoad.aspx?tn=top_pic&fn=websiteEdit&js=top.hideDiv('upfileDiv');top.valiUpPic('top_pic','imgpic','{picUrl}');" frameborder="0" scrolling="no"></iframe>
</div>
</td>
<td class="commentary"></td> 
</tr>
<tr>
<td class="head">手机网站LOGO：</td>
<td><input class="textInput" onclick="alert('请点击上传，进行修改！')" value="<%=top_pic1%>" name="top_pic1" id="top_pic1" type="text" size="39" />　<a href="#nogo" onclick="window.open('/'+$('#top_pic1').val());">[查看]</a>　<a href="#nogo" onclick="showDiv('upfileDiv2')">[上传]</a>
<div class="clear"></div>
<div class="upfileDiv" id="upfileDiv2">
<div class="upfileClose" onclick="hideDiv('upfileDiv2')">关闭</div>
<iframe width="300" height="100" style=" padding:0px; margin:0px;" src="actionUpLoad.aspx?tn=top_pic1&fn=websiteEdit&js=top.hideDiv('upfileDiv2');top.valiUpPic('top_pic1','imgpic','{picUrl}');" frameborder="0" scrolling="no"></iframe>
</div>
</td>
<td class="commentary"></td>
</tr>
<tr>
<td class="head">网站背景图片：</td>
<td><input class="textInput" onclick="alert('请点击上传，进行修改！')" value="<%=bg_pic%>" name="bg_pic" id="bg_pic" type="text" size="39" />　<a href="#nogo" onclick="window.open('/'+$('#bg_pic').val());">[查看]</a>　<a href="#nogo" onclick="showDiv('upfileDiv1')">[上传]</a>
<div class="clear"></div>
<div class="upfileDiv" id="upfileDiv1">
<div class="upfileClose" onclick="hideDiv('upfileDiv1')">关闭</div>
<iframe width="300" height="100" style=" padding:0px; margin:0px;" src="actionUpLoad.aspx?tn=bg_pic&fn=websiteEdit&js=top.hideDiv('upfileDiv1');top.valiUpPic('bg_pic','imgpic','{picUrl}');" frameborder="0" scrolling="no"></iframe>
</div>
</td>
<td class="commentary"></td> 
</tr>
<tr>
<td class="head">网站标题：</td>
<td><input class="textInput" value="<%=title%>" name="title" type="text" size="39" /></td>
<td class="commentary"></td> 
</tr>
<tr>
<td class="head">网站关键词：</td>
<td><input class="textInput" value="<%=keywords%>" placeholder="多个关键词请用英文逗号分隔" name="keywords" type="text" size="39" /></td>
<td class="commentary"></td> 
</tr>
<tr>
<td class="head">网站描述：</td>
<td><input class="textInput" value="<%=description%>" name="description" type="text" size="39" /></td>
<td class="commentary"></td> 
</tr>
<tr>
<td class="head">关于我们：</td>
<td><textarea class="postTextarea" name="about" rows="5" cols="50"><%=about%></textarea></td>
<td class="commentary" valign="top"></td>
</tr>
<tr>
<td class="head">备案号：</td>
<td><textarea class="postTextarea" name="beian" rows="2" cols="50"><%=beian%></textarea></td>
<td class="commentary" valign="top"></td>
</tr>
<tr>
<td class="head">统计代码：</td>
<td><textarea class="postTextarea" name="stat" rows="2" cols="50"><%=stat%></textarea></td>
<td class="commentary" valign="top"></td>
</tr>
<tr><td></td><td><input type="submit" class="inputSubmit" value="修改企业网站" /></td><td></td></tr>
</table>
</form>
<script type="text/javascript">
$(":radio[value='<%=sS1 %>']").attr("checked","checked");
</script>
<script language="javascript" type="text/javascript">
function valiUpPic(picInputId,picId,picValue)
  {
	if(document.getElementById(picInputId)!=null)
	{
  		document.getElementById(picInputId).value=picValue;
		
		
	}
	if(document.getElementById(picId)!=null)
	{
		if(picValue!="")
		{
			document.getElementById(picId).src="/"+picValue;
		}
		else
		{
			document.getElementById(picId).src="/user/images/nopic2.gif";
		}
		
	}
	
  }
  function showDiv(divId)
  {
  	document.getElementById(divId).style.display="block"
  }
  function hideDiv(divId)
  {
  	document.getElementById(divId).style.display="none"
  }
</script>
</div>
</div>
</div></div>
</body>
</html>
