⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 user_editinfo.asp

📁 SK信息采集2.0功能介绍: 1.可针对任何静态网页,动态网页进行采集。包括htm,html,shtml,ASP,ASPX,JSP,PHP等。 2.增加自定文件采集.用户可采集网页中的所有文件.
💻 ASP
📖 第 1 页 / 共 2 页
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<%option explicit%>
<!--#include file="../Conn.asp"-->
<!--#include file="../SysCls/KS_UserCommonCls.asp"-->
<%
'===================================================================================================================
'软件名称:科汛网站管理系统
'当前版本:科汛网站管理系统 V2.2 SP2 Free
'Copyright (C) 2005-2006 Kesion.Com  All rights reserved.
'产品咨询QQ:9537636,41904294
'技术支持QQ:111394,54004407 
'程序版权:科汛网络
'程序开发:科汛网络开发组(总策划:林文仲)
'E-Mail  :kesioncms@hotmail.com webmaster@kesion.com
'官方网站:http://www.kesion.com  
'演示站点:http://test.kesion.com 
'郑重声明:
'    ①、免费版本请在程序首页保留版权信息,并做上本站LOGO友情连接,商业版本无此要求;
'    ②、任何个人或组织不得在授权允许的情况下删除、修改、拷贝本软件及其他副本上一切关于版权的信息;
'    ③、科汛网络保留此软件的法律追究权利
'===================================================================================================================
Dim KSCls
Set KSCls = New Admin_Index
KSCls.Execute()
Set KSCls = Nothing

Class Admin_Index
        Private KSCMS,KSUser
		Private Sub Class_Initialize()
		  Set KSCMS=New CommonCls
		  Set KSUser = New UserCls
		End Sub
        Private Sub Class_Terminate()
		 Set KSCMS=Nothing
		 Set KSUser=Nothing
		End Sub
		Public Sub Execute()
		
		IF Cbool(KSUser.UserLoginChecked)=false Then
		  Response.Write "<script>location.href='Login.asp';</script>"
		  Exit Sub
		End If
		KSUser.LoadHead()
		%>

		<TABLE class="tableborder" height="380" cellSpacing=0 width=770 align=center border=0>
		<TR>
		<TD vAlign=top bgColor=#FFFFFF><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td height="32">&nbsp;当前位置 >> <a href="<%=KSCMS.GetConfig("WebUrl")%>"><%=KSCMS.GetConfig("WebName")%></a> >> <a href="index.asp">会员中心</a> &gt;&gt; 修改会员资料 </td>
          </tr>
          <tr>
            <td>
			<%
			KSUser.LoadMenu()
			%>
			</td>
          </tr>
        </table>
		  <table width="770" height="380" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td>

          <%IF KSCMS.G("Action")="Save" Then
		     Dim RS
				
				 Dim Question:Question=KSCMS.G("Question")
				 Dim Answer:Answer=KSCMS.G("Answer")
				 
				 If Question = "" Then
					 Response.Write("<script>alert('密码提示问题不能为空!');history.back();</script>")
					 Exit Sub
				 ElseIF Answer="" Then
					 Response.Write("<script>alert('密码答案不能为空');history.back();</script>")
					 Exit Sub
				 End If
				 
				 Dim Email:Email=KSCMS.G("Email")
				 if KSCMS.IsValidEmail(Email)=false then
					 Response.Write("<script>alert('请输入正确的电子邮箱!');history.back();</script>")
					 Exit Sub
				 end if
				 
				 Dim RealName:RealName=KSCMS.G("RealName")
				 Dim Sex:Sex=KSCMS.G("Sex")
				 Dim Birthday:Birthday=KSCMS.G("Birthday")
				 Dim IDCard:IDCard=KSCMS.G("IDCard")
				 Dim OfficeTel:OfficeTel=KSCMS.G("OfficeTel")
				 Dim HomeTel:HomeTel=KSCMS.G("HomeTel")
				 Dim Mobile:Mobile=KSCMS.G("Mobile")
				 Dim Fax:Fax=KSCMS.G("Fax")
				 Dim province:province=KSCMS.G("prov")
				 Dim city:city=KSCMS.G("city")
				 Dim Address:Address=KSCMS.G("Address")
				 Dim ZIP:ZIP=KSCMS.G("ZIP")
				 Dim HomePage:HomePage=KSCMS.G("HomePage")
				 Dim UserFace:UserFace=KSCMS.G("UserFace")		 
				 Dim FaceWidth:FaceWidth=KSCMS.G("FaceWidth")		 
				 Dim FaceHeight:FaceHeight=KSCMS.G("FaceHeight")		 
				 Dim QQ:QQ=KSCMS.G("QQ")		 
				 Dim ICQ:ICQ=KSCMS.G("ICQ")		 
				 Dim MSN:MSN=KSCMS.G("MSN")		 
				 Dim UC:UC=KSCMS.G("UC")		 
				 Dim Sign:Sign=KSCMS.G("Sign")	
				 Dim Privacy:Privacy=KSCMS.G("Privacy")

			 
             Set RS=Server.CreateObject("Adodb.RecordSet")
			  RS.Open "Select * From KS_User Where UserName='" & KSUser.Get_UserName & "'",Conn,1,3
			  IF RS.Eof And RS.Bof Then
				 Response.End
			  Else
			     RS("UserFace")=UserFace
				 RS("Question")=Question
				 RS("Answer")=Answer
				 RS("Email")=Email
				 RS("RealName")=RealName
				 RS("Sex")=Sex
				 RS("Birthday")=Birthday
				 RS("IDCard")=IDCard
				 RS("OfficeTel")=OfficeTel
				 RS("HomeTel")=HomeTel
				 RS("Mobile")=Mobile
				 RS("Fax")=Fax
				 RS("Province")=Province
				 RS("City")=City
				 RS("Address")=Address
				 RS("Zip")=Zip
				 RS("HomePage")=HomePage
				 RS("QQ")=QQ
				 RS("ICQ")=ICQ
				 RS("MSN")=MSN
				 RS("UC")=UC
				' RS("UserFace")=UserFace
				' RS("FaceWidth")=FaceWidth
				' RS("FaceHeight")=FaceHeight
				 RS("Sign")=Sign
				 RS("Privacy")=Privacy
		 		 RS.Update
				 Response.Write "<script>alert('会员资料修改成功!');location.href='index.asp';</script>"
				 Response.End()
			  End if

           Else
		   %>
          <br />
          <table width="745" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td height="8" valign="bottom" bgcolor="#EAEAEA"><table width="742" border="0" align="center" cellpadding="0" cellspacing="0">
                  <tr>
                    <td height="4" bgcolor="#FFFFFF"></td>
                  </tr>
              </table></td>
            </tr>
          </table>
		        <script>
	
       	 <!----检查用户名,电子邮箱结束-->
      function CheckForm() 
		{ 
			if (document.myform.Question.value =="")
			{
			alert("请填写您的密码问题!");
			document.myform.Question.focus();
			return false;
			}
			if (document.myform.Answer.value =="")
			{
			alert("请填写您的问题答案!");
			document.myform.Answer.focus();
			return false;
			}
			if (document.myform.RealName.value =="")
			{
			alert("请填写您的真实姓名!");
			document.myform.RealName.focus();
			return false;
			}
		  if (document.myform.RealName.value =="")
			{
			alert("请填写您的真实姓名!");
			document.myform.RealName.focus();
			return false;
			}

			if (document.myform.IDCard.value =="")
			{
			alert("请输入您的身份证号码!");
			document.myform.IDCard.focus();
			return false;
			}
				if((document.myform.Email.value.indexOf("@")==-1)||(document.myform.Email.value.indexOf(".")==-1))
				{
				alert("您输入的电子邮件地址有误!");
				document.myform.Email.focus();
				return false;
				}
				return true;
		}
    </script>

          <table width="745" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td bgcolor="#EAEAEA"><table width="742" border="0" align="center" cellpadding="0" cellspacing="0">
                  <tr>
                    <td valign="top" bgcolor="#FFFFFF"><table width="96%"  border="0" align="center" cellpadding="0" cellspacing="0">
                        <tr>
                          <td width="40%" height="30" align="right"><img src="images/dsd.gif" width="29" height="28" /></td>
                          <td width="47%" valign="middle"><table cellspacing="1" cellpadding="1">
                              <tr>
                                <td height="24" valign="bottom"><span class="style5">会员资料修改</span></td>
                              </tr>
                          </table></td>
                        </tr>
                      </table>
                        <table width="96%"  border="0" align="center" cellpadding="0" cellspacing="0">
                          <tr>
                            <td height="24"><span class="style7" style="color: #FF0000"> 会员资料内容请详细填写(带 * 号为必填项) </span></td>
                          </tr>
                        </table>
					<form action="User_EditInfo.asp?Action=Save" method="post" name="myform" id="myform" onsubmit="return CheckForm();">

                        <table bordercolor="#dddddd" cellspacing="1" cellpadding="0" width="96%" align="center" border="1">
    <tbody>
                              <tr>
                                <td width="20%" height="22" align="right" bordercolor="#eeeeee" bgcolor="#EAEAEA" class="gb style6"> 会 员 名: </td>
                                <td width="80%" bordercolor="#eeeeee" bgcolor="#f5f5f5">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                    <input type="text" name="username" size="20" value="<%=KSUser.Get_username%>" disabled="disabled" /></td>
                              </tr>
                          </tbody>
                      </table>
					   <table bordercolor="#dddddd" cellspacing="1" cellpadding="0" width="96%" align="center" border="1">
                          <tbody>
                            <tr>
                              <td width="20%" height="22" align="right" bordercolor="#eeeeee" bgcolor="#EAEAEA" class="style6"><span class="style7"> * </span>用户头像:</td>
                              <td width="80%" bordercolor="#eeeeee" bgcolor="#f5f5f5">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                  <input name="UserFace" type="UserFace" id="UserFace" value="<%=KSUser.Get_UserFace%>" size="20" maxlength="50" />
                                  大小:60*60</td>
                            </tr>
                          </tbody>
                        </table>
                        <table bordercolor="#dddddd" cellspacing="1" cellpadding="0" width="96%" align="center" border="1">
                          <tbody>
                            <tr>
                              <td width="20%" height="22" align="right" bordercolor="#eeeeee" bgcolor="#EAEAEA" class="style6"><span class="style7"> * </span>密码问题:</td>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -