<%@ page language="C#" autoeventwireup="true" inherits="adead_editUser, App_Web_ha6fmxqv" %><%@ Register Src="../inc/adminTop.ascx" TagName="adminTop" TagPrefix="qth8" %><!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>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<link href="../css.css" rel="stylesheet" type="text/css" />
<title>QTH8分类信息系统 后台管理</title>
</head>
<body>
    <div align="center">
	<div class="main" align="left">
<qth8:adminTop ID="AdminTop1" runat="server" />
    <div class="d01">
	<div class="upfileDiv" style="top:406px;" id="upfileDiv">
<div class="upfileClose" onclick="hideDiv('upfileDiv')">关闭</div>
<iframe width="300" height="100" style="padding:0px; margin:0px;" src="../inc/upFile.aspx?tn=pic&fn=editUser&js=hideDiv('upfileDiv')" frameborder="0" scrolling="no"></iframe>
</div>

	<div class="upfileDiv" style="top:835px;" id="upfileDiv1">
<div class="upfileClose" onclick="hideDiv('upfileDiv1')">关闭</div>
<iframe width="300" height="100" style="padding:0px; margin:0px;" src="../inc/upFile.aspx?tn=top_pic&fn=editUser&js=hideDiv('upfileDiv1')" frameborder="0" scrolling="no"></iframe>
</div>

	<div class="upfileDiv" style="top:871px;" id="upfileDiv2">
<div class="upfileClose" onclick="hideDiv('upfileDiv2')">关闭</div>
<iframe width="300" height="100" style="padding:0px; margin:0px;" src="../inc/upFile.aspx?tn=bg_pic&fn=editUser&js=hideDiv('upfileDiv2')" frameborder="0" scrolling="no"></iframe>
</div>
	<form name="editUser" action="action.aspx?s=editUser&id=<%=id%>" method="post">
	<table border="0" width="985" class="table1" cellspacing="0" cellpadding="0">
	<tr><td class="mhead" colspan="2">商家信息修改</td></tr>
	<tr><td class="mhead1" colspan="2">企业ID <%=id%> <span class="color3">|</span> 用户名 <%=user_name%> <%=power%> <span class="color3">|</span> 注册日期 <%=date%> <span class="color3">|</span> 上次登录 <%=over_date%></td></tr>
	<tr><td class="mhead1" colspan="2">-基本设置</td></tr>
	<tr><td width="200"><strong>商家类别</strong></td><td width="785"> <input type="radio" value="0" name="vip" />普通商家 <input type="radio" value="1" name="vip" />VIP商家 <span class="color3">|</span> VIP开始时间 <input type="text" size="15" value="<%=vstartdate%>" name="vstartdate" /> VIP到期时间 <input type="text" size="15" value="<%=voverdate%>" name="voverdate" />
    </td></tr>
<tr><td><strong>人为排序</strong><br />
数字大于200为首页热门商家</td><td><input type="text" value="<%=num%>" name="num" size="50" /></td></tr>
<tr><td><strong>链接设置</strong><br />
用于手动设置商家的链接地址</td><td><input type="text" size="50" value="<%=url%>" name="url" /></td></tr>
<tr><td><strong>其它</strong></td><td>当日查看次数 <input type="text" value="<%=todayPoint%>" name="todayPoint" size="5" /> 总查看次数 <input type="text" value="<%=point%>" name="point" size="5" /> 评论次数 <input type="text" value="<%=reviewCount%>" name="reviewCount" size="5" /> 举报次数 <input type="text" value="<%=kill%>" name="kill" size="5" /></td></tr>
	<tr><td class="mhead1" colspan="2">-商家资料</td></tr>
<tr><td><strong>商家名称</strong></td><td><input type="text" name="name" size="50" value="<%=name%>" /></td></tr>
<tr><td><strong>商家图标</strong></td><td><input type="text" size="50" value="<%=pic%>" name="pic" /> <a href="/<%=pic%>" target="_blank">[查看]</a> <a href="#nogo" onclick="showDiv('upfileDiv')">[上传]</a></td></tr>
<tr><td><strong>所在地</strong></td><td><%tools.vShowAddressSelect1("address"); %></td></tr>
<tr><td><strong>分类</strong></td><td><% =tools.showSortSelect("sort","sort_1") %></td></tr>
<tr><td><strong>企业地址</strong></td><td><input type="text" name="address_1" value="<%=address_1%>" size="50" /></td></tr>
<tr><td><strong>产品分类</strong></td><td><input type="text" name="sort_2" value="<%=sort_2%>" size="50" /></td></tr>
<tr><td><strong>联系方式</strong></td><td>电话 <input type="text" size="12" value="<%=phone%>" name="phone" /> 传真 <input type="text" size="12" value="<%=faxes%>" name="faxes" /> 手机 <input type="text" size="12" value="<%=tel%>" name="tel" /> 邮箱 <input type="text" size="12" value="<%=email%>" name="email" /></td></tr>
<tr><td><strong>主营的产品或服务</strong></td><td><input type="text" size="50" value="<%=keysword%>" name="keysword" /></td></tr>
<tr><td><strong>商家介绍</strong></td><td><textarea name="about" cols="80" rows="4"><%=about%></textarea></td></tr>
<tr><td class="mhead1" colspan="2">-商家建站设置</td></tr>
<tr><td><strong>商家网站模板</strong><br />
填写模板的文件夹的数字</td><td><input type="text" value="<%=page_style%>" name="page_style" size="50" /></td></tr>
<tr><td><strong>网站头部图片</strong></td><td><input type="text" size="50" value="<%=top_pic%>" name="top_pic" /> <a href="/<%=top_pic%>" target="_blank">[查看]</a> <a href="#nogo" onclick="showDiv('upfileDiv1')">[上传]</a></td></tr>
<tr><td><strong>网站背景图片</strong></td><td><input type="text" size="50" value="<%=bg_pic%>" name="bg_pic" /> <a href="/<%=bg_pic%>" target="_blank">[查看]</a> <a href="#nogo" onclick="showDiv('upfileDiv2')">[上传]</a></td></tr>
<tr><td><strong>企业视频</strong></td><td><input type="text" size="50" value="<%=video%>" name="video" /></td></tr>
   
    <tr><td><strong>友情链接</strong></td><td><textarea name="link" cols="80" rows="4"><%=link%></textarea></td></tr>
   <tr><td><strong>域名绑定</strong><br />
多个域名用逗号隔开，不需要http://</td>
   <td><input type="text" size="50" value="<%=domain%>" name="domain" />&nbsp; 到期日期 <input type="text" size="10" value="<%=domainDate%>" name="domainDate" /></td>
   <tr><td></td><td><input type="submit" value="修改企业信息" /></td></tr>
	</table></form>
	<form name="editPass" action="action.aspx?s=editPass&id=<%=id%>" method="post">
	<table cellpadding="0" width="985" cellspacing="0" border="0" class="table1">
	<tr><td class="mhead1" colspan="2">修改密码</td></tr>
	<tr><td width="200"><strong>新密码</strong></td><td width="785"> <input type="text" size="50" name="password" /></td></tr>
	<tr><td></td><td><input type="submit" value="修改密码" /></td></tr>
	</table>
	</form>
    </div>
    </div>
	</div>
    <script language="javascript" type="text/javascript">
  function changeElementName(elementName,elementValue){
  	var objElement=document.getElementById(elementName);
  	var lenElement=objElement.options.length;
  	for(i=0;i<lenElement;i++){
  		if(objElement[i].value==elementValue){
			objElement[i].selected=true;
		}
  	}
  }
   sort="<%=address %>"
  if(sort!="")
{
    for(i=0;i<document.editUser.address.options.length;i++)
    {
        if(document.editUser.address.options[i].value==sort)
        {
            document.editUser.address.options[i].selected=true
        }
    }  
}
   sort="<%=vip %>"
  if(sort!="")
{
    for(i=0;i<document.editUser.vip.length;i++)
    {
        if(document.editUser.vip[i].value==sort)
        {
            document.editUser.vip[i].checked="checked"
        }
    }  
}
   changeElementName("selectMainSort","<%=sort%>")
  showSort("<%=sort%>")
  changeElementName("selectSort","<%=sort_1%>")
  
  function showDiv(divId)
  {
  	document.getElementById(divId).style.display="block"
  }
  function hideDiv(divId)
  {
  	document.getElementById(divId).style.display="none"
  }
  </script>
</body>
</html>
