账号通
    

账号  

密码  

3376

查看

3

回复
主题:后台管理会员的ID号做成像QQ号 [收藏主题] 转到:  
hbc823 当前离线

219

主题

0

广播

0

粉丝
添加关注
级别:二年级

用户积分:294 分
登录次数:168 次
注册时间:2010/11/6
最后登录:2015/11/7
hbc823 发表于:2010/12/16 0:42:51   | 只看该作者 查看该作者主题 楼主 
科汛在线商城系统(NET)

后台管理会员的ID号做成像QQ号,会员可以用ID号登陆网站。

KS.User.asp注册用户管理UserID做成像QQ号。

*****************************

'判断目前系统是否开启为只UserID号登陆,当初没有设想好,这里需要再弄一次,

Set rs=Server.CreateObject("adodb.recordSet")

rs.open "select * from [PPst_UserConfig] where ID=1",conn,1,1

IsUserName=rs("UserName")

rs.close

'取出用户表中最大的UserID号

Set rs=Server.CreateObject("adodb.recordSet")

rs.open "select UserID from [PPst_User] where UserID= (Select Max(UserID) from [PPst_User])",conn,1,1

UserID=rs("UserID")+1

rs.Close



'准备写入数据库

Set rs=Server.CreateObject("adodb.recordSet")

rs.open "select * from [PPst_User] ",conn,1,3

rs.AddNew

rs("UserID")=UserID



If IsUserName=0 then

  rs("UserName")=UserID

Else

  rs("UserName")=UserName

End IF



* PPst_1="<li>"&UserInfo&"<li>你的UserID号为:"&UserID&" 请牢记该号码"

Call ShowInfo(PPst_1,1)

If UserCheck=0 then

  response.cookies("PPst_UserName")=UserName

  response.cookies("PPst_Level")=Level

  Session("PPst_UserName")=UserName

  Session("PPst_Level")=Level

End If

response.End()

rs.Close

end if

*<%

If IsUserName=0 then

  response.Write "UserID号"

Else

  response.Write "用户名"

End If%>

</td>

    <td width="428" class="xiabianlan">

<%

If IsUserName=0 then

  response.Write "系统将为你自动分配..."

Else%>

*UserID=rs("UserID")

用户 [ <b><%

  if IsUserName =0 then response.Write UserID

  if IsUserName =1 or IsUserName =2 then response.Write User_Name

  %></b> ] <%if IsUserName =2 then response.Write "[ UserID号:"&UserID&" ]"%>

*<%If IsUserName<>1 then%>

    <td align="center" class="xiabianlan"><a href=PPst_View.asp?ID=<%=rs("ID")%> target="_blank"><%=rs("UserID")%></a></td>

    <%End If

   If IsUserName<>0 then%>

   <td align="center" class="xiabianlan"><a href=PPst_View.asp?ID=<%=rs("ID")%> target="_blank"><%=rs("UserName")%></a></td>

   <%End If%>

*****************************

Set rs=Server.CreateObject("adodb.recordSet")

rs.open "select * from [PPst_UserConfig] where ID=1",conn,1,3

IsUserName=rs("UserName")

rs.Close

Conn.Close

%>

<tr>

    <td width="116" height="20" align="center" bgcolor="#EBFAEE" class="xiabianlan">启用</td>

    <td width="428" class="xiabianlan">

<input type="radio" name="UserName" Value="1" <%if IsUserName=1 then response.write "Checked"%>/>用户名

<input type="radio" name="UserName" Value="0" <%if IsUserName=0 then response.write "Checked"%>/>UserID号

<input type="radio" name="UserName" Value="2" <%if IsUserName=2 then response.write "Checked"%>/>二者都显示</td>

  </tr>

 
  支持(0) | 反对(0) 回到顶部顶端 回到底部底部
hbc823 当前离线

219

主题

0

广播

0

粉丝
添加关注
级别:二年级

用户积分:294 分
登录次数:168 次
注册时间:2010/11/6
最后登录:2015/11/7
hbc823 发表于:2010/12/16 0:43:56   | 只看该作者 查看该作者主题 沙发 
 
  支持(0) | 反对(0) 回到顶部顶端 回到底部底部
feitian123 当前离线

255

主题

0

广播

0

粉丝
添加关注
级别:一年级

用户积分:236 分
登录次数:9 次
注册时间:2010/11/30
最后登录:2010/12/21
feitian123 发表于:2010/12/21 10:12:53   | 只看该作者 查看该作者主题 藤椅 
 
  支持(0) | 反对(0) 回到顶部顶端 回到底部底部
天光水影 当前离线

734

主题

0

广播

3

粉丝
添加关注
级别:六年级

用户积分:1174 分
登录次数:314 次
注册时间:2011/3/25
最后登录:2017/9/18
天光水影 发表于:2011/4/6 9:20:06   | 只看该作者 查看该作者主题 板凳 
科汛在线考试系统(NET)
代码不错。这个有什么用呢?
 
天光水影
  支持(0) | 反对(0) 回到顶部顶端 回到底部底部
<上一主题 | 下一主题 >
Powered By KesionCMS Version X1
厦门科汛软件有限公司 © 2006-2016 页面执行0.22559秒 powered by KesionCMS 9.0