如何判断是否是同个客户?
我想搞个查询,比如一个注册用户A,另一个注册用户B,A用户发布了一条信息,A自己可以查看这跳信息的详细情况,但是B只能查看到部分信息,比如下面的代码,我只实现了,注册和非注册用户的区别Sub BWS_gdshow(g)
If Not post_chk() Then
Response.write "不许外部提交数据!"
else
response.write "<div align=center>"
Set rs = Server.CreateObject("ADODB.Recordset")
sql="select * from baoxiu where bxid='"&g&"'"
set rs=conn.execute(sql)
if rs.eof and rs.bof then
Response.Write("没有此工单,请检查!")
else
response.write "<table width=90% border=1 align=center cellpadding=0 cellspacing=0 bordercolor=#A6D2FF>"
response.write "<tr>"
response.write "<td height=20 colspan=6 bgcolor=#0099FF><div align=center>工单为<font color=#000000>"&g&"</font>的服务信息</div></td>"
response.write "</tr>"
response.write "<tr>"
response.write "<td width='15%' bordercolor=#A6D2FF bgcolor=#A6D2FF><div align=center>服务内容</div></td>"
response.write "<td width='17%'><div align=center>"&unHtml(rs("wupin"))&"</div></td>"
response.write "<td width=15% bordercolor=#A6D2FF bgcolor=#A6D2FF><div align=center>服务种类</div></td>"
response.write "<td width='17%'><div align=center>"&rs("wxlb")&"</div></td>"
response.write "<td width='15%' bordercolor=#A6D2FF bgcolor=#A6D2FF><div align=center>登记时间</div></td>"
response.write "<td width='21%'><div align=center>"&rs("time")&"</div></td>"
response.write "</tr>"
response.write "<tr>"
response.write "<td bordercolor=#A6D2FF bgcolor=#A6D2FF><div align=center>客户单位</div></td>"
if shenfen>"0" then
response.write "<td><div align=center>"&unHtml(rs("danwei"))&"</div></td>"
else
response.write "<td><div align=center>*******</div></td>"
end if
response.write "<td bordercolor=#A6D2FF bgcolor=#A6D2FF><div align=center>客 户 名</div></td>"
if shenfen>"0" then
response.write "<td><div align=center>"&rs("bxry")&"</div></td>"
else
response.write "<td><div align=center>*******</div></td>"
end if
response.write "<td bordercolor=#A6D2FF bgcolor=#A6D2FF><div align=center>联系电话</div></td>"
if shenfen>"0" then
response.write "<td><div align=center>"&unHtml(rs("phone"))&"</div></td>"
else
response.write "<td><div align=center>*******</div></td>"
end if
response.write "</tr>" response.write "<tr>"
response.write "<td bordercolor=#A6D2FF bgcolor=#A6D2FF><div align=center>服务地址</div></td>"
if shenfen>"0" then
response.write "<td colspan=5>"&unHtml(rs("dizhi"))&"</td>"
else
response.write "<td><div align=center>**************</div></td>"
end if
response.write "</tr>"
其中shenfen1,2,3 分别为管理员,普通客户,服务人员 我想实现的是普通客户之间无法查询所发出的信息,只有管理员,和服务人员可以查询,还有本人只能查询自己发的信息,还有表baoxiu和表user相同的字段是bxry和realname,但他们都是中文,两个中文如何对比???是否相等或者不等?
[ 本帖最后由 wu1234a 于 2009-10-24 12:38 编辑 ]