<!--#include file="inc/conn.asp"-->
<!--#include file=usercookies.asp-->
<!--#include file="inc/jle_sub.asp"-->
<!--#include file=inc/jle_fuction.asp-->
<!--#include file=inc/md5.asp-->
<!--#include file="inc/function.asp"-->
<%
'    @@@@@@ www.jl-e.com @@@@@@@@@@@@@@@@@
'   @                                        @
'  @                                          @
'  @      吉林信息网，服务百姓生活      @
'  @                                          @
'   @                                        @
'    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%>
<!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><%=title%>-会员管理中心-修改资料-新闻公告管理</title>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="icon" href="<%=web%>/favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="<%=web%>/favicon.ico" type="image/x-icon" />
<link href="css/style.css" rel="stylesheet" type="text/css" />
</head>
<SCRIPT language=javascript>
<!--
function CheckForm()
{
if(document.comForm.biaoti.value.length<2||document.comForm.biaoti.value.length>25)
	{
	    alert("新闻标题字数请控制在2－25个之间!");
	    document.comForm.biaoti.focus();
        document.comForm.biaoti.select();
        return false;
	}
if(document.comForm.neirong.value.length<10||document.comForm.neirong.value.length>1500)
	{
	    alert("新闻内容字数请控制在10到1500个之间!");
	    document.comForm.neirong.focus();
        document.comForm.neirong.select();
        return false;
	}
}

//-->
</SCRIPT>
<script>
function loadThreadFollow(t_id,b_id){
	var targetImg =eval("document.all.followImg" + t_id);
	var targetDiv =eval("document.all.follow" + t_id);
	
	if ("object"==typeof(targetImg)){
		if (targetDiv.style.display!='block'){
			targetDiv.style.display="block";
			
		}else{
			targetDiv.style.display="none";
		}
	}
}
</script>
<body>
<%
dim edit,pass2,pass3
username=request.cookies("jle")("username")
edit=Request.form("edit")
pass2=Request.form("pass2")
pass3=Request.form("pass3")
username=request.cookies("jle")("username")
set rs = Server.CreateObject("ADODB.RecordSet")
sql="select * from [jle_shop] where username='"&username&"'" 
rs.open sql,conn,1,1
if rs.eof then
response.write "<br>"
response.write "<li>参数错误！没有该用户信息"
response.end
end if
%> 
<%call top()%><div id="Fmain">


<div id="Uleft">
  <div id=FFTit class=F12bold>会员管理中心</div><div id=FFContent><div Class='FFdiv'>
  <!--#include file=shop_userleft.asp-->
  </div></div></div>
<div id="Uright"> 
  <div id=FFTit class=F12bold>商户资料修改-新闻公告管理</div><div id=FFContent><div Class='FFdiv'>

<%if request("gl")="gg" then
jle=request("jle")
ok=request("ok")
%> <%if jle="ggadd" and ok="1"  then 
set rs=server.createobject("adodb.recordset")
sql="select * from [jle_news] where com='"&username&"'"
rs.open sql,conn,1,3
rs.addnew
rs("gcla")="商户新闻"
rs("biaoti")=HtmlEncode(trim(request("biaoti")))
'rs("neirong")=replace(replace(request("neirong"),chr(13),"<br>"),"   ","&nbsp;")
rs("neirong")=HtmlEncodes(request("neirong"))
rs("com")=username
rs("data")=now()
rs.update
rs.close
set rs=nothing
Response.Write "<script language='javascript'>alert('新闻公告添加成功！');</script>" 
response.write "<meta http-equiv=refresh content=""1;URL=?gl=gg"">"
elseif jle="ggadd" then
%>
<form method="POST" name="comForm" action="?jle=ggadd&gl=gg&ok=1"><input TYPE="hidden" name="username" value="<%=username%>">
	<table width="791" cellspacing="0" cellpadding="0"><tr><td height="30" align="right" width="206"><p style="margin-left: 60px">新闻标题：</td>
		<td align="left" width="585"><input type="text" name="biaoti" size="59"></td></tr><tr><td height="30" align="right" width="206"><p style="margin-left: 60px">新闻内容：</td>
			<td align="left" width="585"><textarea rows="8" name="neirong" cols="50"></textarea></td></tr><tr><td height="38" width="206">　</td>
			<td height="38" width="585"><input type="submit"  onclick="javascript:return CheckForm();"  value="确认添加"></td></tr></table></form><%
end if
id=request("id")

if jle="ggdel" then
set rs1=server.createobject("adodb.recordset")
sql1="delete from [jle_news] where id="&cstr(id)
rs1.open sql1,conn,1,3
Response.Write "<script language='javascript'>alert('新闻公告删除成功！');</script>" 
response.write "<meta http-equiv=refresh content=""1;URL=?gl=gg"">"
response.end
conn.close
set conn=nothing
end if

if jle="ggedit" and ok="1" then
set rs=server.createobject("adodb.recordset")
sql="select * from jle_news where com='"&username&"' and id="&id&""
rs.open sql,conn,1,3
rs("biaoti")=HtmlEncode(trim(request("biaoti")))
'rs("neirong")=replace(replace(request("neirong"),chr(13),"<br>"),"   ","&nbsp;")
rs("neirong")=HtmlEncodes(request("neirong"))
rs("com")=username
rs("data")=now()
rs.update
rs.close
set rs=nothing
Response.Write "<script language='javascript'>alert('新闻公告修改成功！');</script>" 
response.write "<meta http-equiv=refresh content=""1;URL=?gl=gg"">"
elseif jle="ggedit"  then
set rs=server.createobject("adodb.recordset")
sql="select * from jle_news where com='"&username&"'and id="&id&""
rs.open sql,conn,1,3
biaoti=rs("biaoti")
neirong=HtmlEncodex(rs("neirong"))
rs.close
set rs=nothing
%> <form method="POST" name="comForm" action="?jle=ggedit&gl=gg&ok=1&id=<%=id%>"><input TYPE="hidden" name="username" value="<%=username%>">
	<table width="789" border="0" cellspacing="0" cellpadding="0"><tr><td height="30" align="right" width="206"><p style="margin-left: 60px">新闻标题：</td>
		<td align="left" width="583"><input type="text" name="biaoti" size="59" value="<%=biaoti%>"></td></tr><tr><td height="30" align="right" width="206"><p style="margin-left: 60px">新闻内容：</td>
			<td align="left" width="583"><textarea rows="8" name="neirong" cols="50"><%=neirong%></textarea></td></tr><tr><td height="38" width="206">　</td>
			<td height="38" width="583"><input type="submit"  onclick="javascript:return CheckForm();"  value="确认修改"></td></tr></table></form><%
end if
if request("page")="" then
ThisPage=1		
else
ThisPage=request("page")
end if
set rs=server.createobject("adodb.recordset")
sql="select * from [jle_news] where com='"&username&"' order by data  desc"
rs.open sql,conn,1,1
rs.Pagesize=10
Pagesize=rs.Pagesize
Allrecord=rs.Recordcount
Allpage=rs.Pagecount
if ThisPage<1 then                           
ThisPage=1
end if
On Error Resume Next
rs.move (ThisPage-1)*Pagesize
k=0
%> <table border="0" cellpadding="0" width="100%" class="td">
<tr>
<td width="99%" height="26" class="userbg"><p align="center"><b>商户网站新闻公告管理&nbsp; <a href="?jle=ggadd&gl=gg"><font color="#FF0000">添加新闻公告</font></a></b> <b>记录总数</b>:[共<%=Allrecord%>条公告]</td>
</tr>
<tr>
<td width="99%" valign="top" height="24">
<table border="0" cellspacing="1" width="100%" height="24">
<tr>
<td width="6%" class="userbg">
&nbsp;编号
</td>
<td width="53%" class="userbg">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
新&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 闻&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 标&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 题
</td>
<td width="20%" class="userbg">
发布时间
</td>
<td width="9%" class="userbg">
修改操作
</td>
<td width="10%" class="userbg">
删除管理
</td>
</tr>
<%do while not rs.eof%>
 <tr>
 <td width="6%" height="24" style="border-bottom-style: solid; border-bottom-width: 1"><p align="center"><b><font color="#808080"><%=k+1%></font></b></td>
 <td width="53%" style="border-bottom-style: solid; border-bottom-width: 1"><A target="_blank" href="../shownews.asp?id=<%=rs("id")%>"><FONT color=#000000><%=rs("biaoti")%></FONT></A></td>
 <td width="20%" style="border-bottom-style: solid; border-bottom-width: 1"><%=rs("data")%></td>
 <td width="9%" style="border-bottom-style: solid; border-bottom-width: 1"><a href="?gl=gg&jle=ggedit&id=<%=rs("id")%>"><font color="#FF0000">修改</font></a></td>
 <td width="10%" style="border-bottom-style: solid; border-bottom-width: 1"><a onclick='{if(confirm("您确定删除吗?此操作将不能恢复!")){return true;}return false;}' href="?gl=gg&jle=ggdel&id=<%=rs("id")%>"><font color="#FF0000">删除</font></a></td>
 </tr><%
    k=k+1
    rs.movenext
    if k>=Pagesize then exit do
	loop
	 %>
	  </table>
	  </td>
	  </tr>
	  <tr>
	  <td width="99%" valign="top">
	  <table border="0" cellpadding="0" cellspacing="0" width="100%" class="userbg">
	  <tr>
	  <td height="27" width="151" align="center">共有&nbsp;<font color="#CC5200"><%=Allrecord%></font>&nbsp;条记录</td>
	  <td width="181" align="center">共 <font color="#CC5200"><%=Allpage%></font> 页</td>
	  <td width="237" align="center">现在是第 <font color="#CC5200"><%=ThisPage%></font> 页</td>
	  <td width="200" align="center">
	  <%
if ThisPage<2 then     
response.write "<font color=""#808080"">首页</font>&nbsp;"
response.write "<font color=""#808080"">上页</font>&nbsp;"     
else     
response.write "<a href=?gl=gg&page=1>首页</a>&nbsp;"
response.write "<a href=?gl=gg&page="&ThisPage-1&">上页</a>&nbsp;"     
end if
if Allpage-ThisPage<1 then     
response.write "<font color=""#808080"">下页</font>&nbsp;"
response.write "<font color=""#808080"">尾页</font>&nbsp;"  
else     
response.write "<a href=?gl=gg&page="&(ThisPage+1)&">下页</a>&nbsp;"   
response.write "<a href=?gl=gg&page="&Allpage&">尾页</a>&nbsp;"     
end if
%>
</td>
</tr>
</table>
</td>
</tr>
</table>
<%
else
%>
 <%if edit="" then %>
 
 <SCRIPT language=javascript>
<!--
function CheckForm()
{

if(document.comForm1.sjcla1.value.length<1)
	{
	    alert("所属行业一级分类不能为空!");
	    document.comForm1.sjcla1.focus();
	    return (false);
	}
if(document.comForm1.sjcla2.value.length<1)
	{
	    alert("所属行业二级分类不能为空!");
	    document.comForm1.sjcla2.focus();
	    return (false);
	}
if(document.comForm1.sjcla1.value=="一级分类")
	{
	    alert("请您选择所属行业一级分类！");
        document.comForm1.sjcla1.focus();
        return false;
	}
if(document.comForm1.sjcla2.value=="二级分类")
	{
	    alert("请您选择所属行业一级分类带出二级分类！");
        document.comForm1.sjcla2.focus();
        return false;
	}

 if(document.comForm1.com.value.length<3)
	{
	    alert("商家/店铺名称没有填写或小于3位!");
	    document.comForm1.com.focus();
        document.comForm1.com.select();
        return false;
	}
if(document.comForm1.comabout.value.length<3)
	{
	    alert("商家/店铺简介没有填写或小于3位!");
	    document.comForm1.comabout.focus();
        document.comForm1.comabout.select();
        return false;
	}
	if (document.comForm1.name.value.length == 0) {
		alert("请您填写商家姓名！");
		document.comForm1.name.focus();
		return false;
	}
	var str="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ,./'[]{}`1234567890-=\~!@#$%^&*()_+|?><:";
	var errorChar
	errorChar = isCharsInBag(comForm1.name.value,str)
	if (errorChar != "" )
	{
		alert('商家姓名必须是中文！');
		comForm1.name.focus();
		return false;
	} 
function isCharsInBag (s, bag)
{ 
var i,c;
for (i = 0; i < s.length; i++)
{ 
c = s.charAt(i);//字符串s中的字符
if (bag.indexOf(c) > -1) 
return c;
}
return "";
}

if(document.comForm1.name.value.length<2||document.comForm1.name.value.length>4)
	{
	    alert("商家姓名不能少于2字多于4字！");
        document.comForm1.name.focus();
        document.comForm1.name.select();
	    return false;
	}


if(document.comForm1.dianhua.value.length<7)
	{
	    alert("请填写您的联系电话,不能小于七位！");
	    document.comForm1.dianhua.focus();
	    return false;
	}
if(document.comForm1.email.value.length<1)
	{
	    alert("电子邮箱没有填写!");
	    document.comForm1.email.focus();
	    return false;
	}
        var filter=/^\s*([A-Za-z0-9_-]+(\.\w+)*@(\w+\.)+\w{2,3})\s*$/;
        if (!filter.test(document.comForm1.email.value)) { 
                alert("邮件地址不正确,请重新填写！"); 
                document.comForm1.email.focus();
                document.comForm1.email.select();
                return (false); 
                }  
if(document.comForm1.dizhi.value.length<1)
	{
	    alert("通信地址没有填写!");
	    document.comForm1.dizhi.focus();
	    return false;
	}
	}
//-->
</SCRIPT>
 <form method="POST" name="comForm1" action="?">
 <table width="100%"  cellspacing="5" cellpadding="0">
   <tr><td height="26" width="15%" align="right">登陆帐号：</td>
 <td height="26" width="85%"><font style="font-size: 11pt">&nbsp;<%=rs("username")%></font></td></tr><tr><td height="26" width="15%" align="right">原密码：</td>
   <td height="26" width="85%">&nbsp;
     <input name="pass1" size="20" value="<%=rs("password")%>" type="password"> 不修改密码,保留不变</td></tr><tr><td height="26" width="15%" align="right">新密码：</td>
     <td height="26" width="85%">&nbsp;
       <input type="password" name="pass2" size="20"> 不修改密码,留空</td></tr><tr><td height="26" width="15%" align="right">确认新密码：</td>
       <td height="26" width="85%">&nbsp;
         <input type="password" name="pass3" size="20"> 不修改密码,留空</td></tr><tr><td height="26" width="15%" align="right">所属行业：</td>
         <td height="26" width="85%"><%
set rsc2=server.createobject("adodb.recordset")
sqlc2 = "select * from sjcla2 order by paixu desc"
rsc2.open sqlc2,conn,1,1
%><SCRIPT language = "JavaScript">
var onecount;
onecount=0;
subcat = new Array();
        <%
        count = 0
        do while not rsc2.eof 
        %>
        subcat[<%=count%>] = new Array("<%= trim(rsc2("sjcla2"))%>","<%= trim(rsc2("sjcla1"))%>","<%= trim(rsc2("id"))%>");
        <%
        count = count + 1
        rsc2.movenext
        loop
        rsc2.close
        %>
onecount=<%=count%>;

function changelocation(locationid)
    {
    document.comForm1.sjcla2.length = 0; 

    var locationid=locationid;
    var i;
    for (i=0;i < onecount; i++)
        {
            if (subcat[i][1] == locationid)
            { 
                document.comForm1.sjcla2.options[document.comForm1.sjcla2.length] = new Option(subcat[i][0], subcat[i][2]);
            }        
        }
        
    }    
</SCRIPT>&nbsp;
<%
sqlc2 = "select * from sjcla1 order by paixu desc"
rsc2.open sqlc2,conn,1,1
sjcla1=rs("sjcla1")
sjcla2=rs("sjcla2")
if rsc2.eof and rsc2.bof then
response.write "请先添加一级分类栏目。"
response.end
else
%><SELECT name="sjcla1" onChange="changelocation(document.comForm1.sjcla1.options[document.comForm1.sjcla1.selectedIndex].value)" size="1"><OPTION value="一级分类">一级分类</OPTION><%do while not rsc2.eof
%><OPTION  <%if trim(sjcla1)=cstr(rsc2("id")) then%>selected<%end if%>  value="<%=trim(rsc2("id"))%>"><%=trim(rsc2("sjcla1"))%></OPTION><%
rsc2.movenext
loop
end if
rsc2.close
%></SELECT> 
<SELECT name="sjcla2">
<%
sqlc2 = "select id,sjcla2 from sjcla2 where id="&cstr(sjcla2)
rsc2.open sqlc2,conn,1,1
%>
<OPTION  <%if trim("sjcla2")=cstr(rsc2("id")) then%>selected<%end if%>  value="<%=trim(rsc2("id"))%>"><%=trim(rsc2("sjcla2"))%></OPTION><%
rsc2.close
%>

</SELECT> 
 <font color="#FF0000">*</font></td>
</tr>
<tr>
<td height="26" width="15%" align="right">商家/店铺名称：</td>
<td height="26" width="85%">&nbsp;
  <input type="text" maxlength="12" name="com" size="50" value="<%=rs("com")%>"> <font color="#FF0000">*</font></td>
</tr>
<tr>
<td height="26" width="15%" align="right">商家/店铺简介：</td>
<td height="26" width="85%">&nbsp;
  <textarea rows="8" name="comabout" cols="42"><%=HTMLEncodex(rs("comabout"))%></textarea></td>
</tr>
<tr>
<td height="26" width="15%" align="right"><p>商家姓名：</td>
<td height="26" width="85%">&nbsp;
  <input type="text" maxlength="12" name="name" size="20" value="<%=rs("name")%>"><font color="#FF0000"> *</font></td>
</tr>
<tr>
<td height="26" width="15%" align="right"><p align="right">邮件地址：</td>
<td height="26" width="85%">&nbsp;
  <input type="text" maxlength="30" name="email" size="20" value="<%=rs("email")%>"><font color="#FF0000"> *</font>&nbsp;&nbsp; QQ：<input type="text" maxlength="10" name="qq" size="20" value="<%=rs("qq")%>" ></td>
</tr>
<tr>
<td height="26" width="15%"><p align="right">联系电话：</td>
<td height="26" width="85%">&nbsp;
  <input type="text" maxlength="24" name="dianhua" size="20" value="<%=rs("dianhua")%>" ><font color="#FF0000"> * </font>传真：<input type="text" maxlength="30" name="fax" size="20" value="<%=rs("fax")%>" ></td>
</tr>
<tr>
<td height="26" width="15%"><p align="right">商家/店铺地址：</td><td height="26" width="85%">&nbsp;
  <input type="text" maxlength="50" name="dizhi" size="52" value="<%=rs("dizhi")%>" ></td>
</tr>
<tr>
<td height="33" width="15%" align="right">交通指南：</td>
<td height="26" width="85%">&nbsp;
  <input type="text" maxlength="100" name="che" size="52" value="<%=rs("che")%>" ></td>
</tr>
<tr>
<td height="33" width="15%" align="right"><p style="margin-left: 60px">店标连接地址：</td>
<td height="26" width="85%">&nbsp;
  <input type="text" name="tupian" size="47" id="tupian" maxlength="200" value="<%=rs("logo")%>"><span id="followImg1" style="CURSOR: hand" title="选中上传店标图片" onClick="loadThreadFollow(1,5)">无现成图片,可<font color="#FF0000">上传图片</font>↓</span></td>
</tr>
<tr style="display:none" id="follow1">
<td height="33" width="15%" align="right">　</td>
<td height="26" width="85%">&nbsp;
  <iframe name="I1" src="upshoplogo.asp" scrolling="no" border="0" frameborder="0" width="354" height="26"></iframe>大小：150*150</td>
</tr>
<tr><td height="33" width="15%" align="right"><p style="margin-left: 60px"><font color="#FF0000">商户最新公告：</font></td>
<td height="26" width="85%">&nbsp;
  <input type="text" name="comgg" size="62" value="<%=rs("comgg")%>"> 滚动字幕</td>
</tr>
<tr><td height="33" width="15%" align="right"><p style="margin-left: 60px"><font color="#FF0000">商家地图：</font></td>
<td height="26" width="85%">&nbsp;
  <script language="javascript" src="http://api.51ditu.com/js/maps.js"></script>
<script language="javascript" src="http://api.51ditu.com/js/ezmarker.js"></script>
<input type="text" id="mapx" name="mapx" style="width:60px;"  value="<%=rs("mapx")%>"><input type="text" id="mapy" name="mapy"  style="width:60px;"  value="<%=rs("mapy")%>"><input type="text" id="mapz" name="mapz" style="width:60px;"  value="<%=rs("mapz")%>">
<script language="JavaScript">
<!--
    //setMap是ezmarker内部定义的接口，这里可以根据实际需要实现该接口 
    function setMap(point,zoom)
	{
		document.getElementById("mapx").value=point.getLongitude();
		document.getElementById("mapy").value=point.getLatitude();
        document.getElementById("mapz").value=zoom;
	}

    var ezmarker = new LTEZMarker("pos");
	
    LTEvent.addListener(ezmarker,"mark",setMap);//"mark"是标注事件
	
//-->
</script> </td>
</tr>
<tr>
<td height="50" colspan="2"><p align="center"><input type="submit" onClick="javascript:return CheckForm();" value="提交修改" name="edit"></td>
</tr></table></form><%else 
if pass2="" or pass3="" then
username=request.cookies("jle")("username")
name=HtmlEncode(trim(request("name")))
password=trim(request("password"))
email=HtmlEncode(trim(request("email")))
set rs=server.createobject("adodb.recordset")
sql="select * from [jle_shop] where username='"&username&"'"
rs.open sql,conn,1,3
rs("com")=HtmlEncode(trim(request("com")))
rs("sjcla1")=trim(request("sjcla1"))
rs("sjcla2")=trim(request("sjcla2"))
rs("comabout")=HtmlEncodes(trim(request("comabout")))
rs("name")=name
rs("email")=email
rs("dianhua")=HtmlEncode(trim(request("dianhua")))
rs("fax")=HtmlEncode(trim(request("fax")))
rs("qq")=HtmlEncode(trim(request("qq")))
rs("dizhi")=HtmlEncode(trim(request("dizhi")))
rs("che")=HtmlEncode(trim(request("che")))
rs("logo")=HtmlEncode(trim(request("tupian")))
rs("comgg")=HtmlEncode(trim(request("comgg")))
rs("mapx")=trim(request("mapx"))
rs("mapy")=trim(request("mapy"))
rs("mapz")=trim(request("mapz"))
rs.update
rs.close
set rs=nothing
closedb
response.write "<center>用户资料修改成功！！</center>"
response.write "<meta http-equiv=refresh content=""1;URL=shop_news.asp"">"
else%> <%
if pass2<>pass3 then
response.write "<script language=JavaScript>" & chr(13) & "alert('两次密码输入不同，返回重新输入！！');" & "window.location='shop_news.asp'" & "</script>"
response.end
end if
username=request.cookies("jle")("username")
%> <table border="0" cellpadding="0" style="border-collapse: collapse" bordercolor="#111111" width="582"><tr><td valign="top" align="center" bgcolor="#FFFFFF"><%
set rs=server.createobject("adodb.recordset")
sql="select password,username,email from [jle_shop] where username='"&username&"'"
rs.open sql,conn,1,3
username=trim(rs("username"))
email=trim(rs("email"))
rs("password")=md5(pass2)
rs.update
response.write "<li>修改密码成功，同时我们已经将您的新密码发送到|<b>"&email&"</b>|，请保管好您的新密码！"
call mail()
response.write "<meta http-equiv=refresh content=""1;URL=shop_news.asp"">"
Response.cookies("jle")=""
rs.close
set rs=nothing
closedb
%></td></tr></table><%
sub mail()
dim mailbody,Jmail
mailbody="您好,"&username&"!<br>您已成功修改了密码！现在资料为：登陆帐号：[<b>"&username&"</b>] 您的新密码是：[<b>"&pass2&"</b>]<br> 欢迎登陆<a target=_blank  href="&web&">"&title&""&web&"</a> 发布您的信息！<br>感谢您使用我们<a target=_blank  href="&web&">"&title&"</a>为您提供的真诚服务！<br>["&title&"]做最大、最专业的信息发布平台<br>"&about&""   '邮件内容
Set Jmail=server.createobject("Jmail.Message")
Jmail.Charset ="gb2312"
JMail.ContentType = "text/html"
Jmail.Silent =true
Jmail.Priority = 3
Jmail.MailServerUserName = mailname
Jmail.MailServerPassword = mailpass
Jmail.From = mailform
Jmail.FromName =""&title&""
Jmail.Subject ="密码修改成功！-"&title&""
Jmail.AddRecipient ""&email&""
Jmail.Body = mailbody
Jmail.Send(mailsmtp)
Set Jmail=nothing
end sub
%><%
end if
end if
end if%>
 </div></div></div>
<br style="clear:both;" />

</div>

<%
call bottom()
%>



</body>
</html>