日期:2014-05-17  浏览次数:20909 次

100分,急!!在线等待
问题描述:在系统中添加一个认证的功能。
是否需要经过验证才能显示留言:
发表留言时是否需要管理员选择通过验证,未通过管理员申核的留言对游客及注册人员不显示

有意者:QQ:278359100
感激不尽

------解决方案--------------------
很简单啊,在留言程序的管理配置中增加一个属性a:留言是否需要验证(true/false)。
然后在留言表中增加一个boolean字段b:默认为false,通过管理员审核的就置为true

在取留言的时候判断
if a=true then '需要验证
sql= "select * from tableName where b=true "
else
sql= "select * from tableName ";
end if

------解决方案--------------------
楼上属性a直接也放在留言表中就更简单了,
这样查询设置都更方便了。
------解决方案--------------------
sql= "select * from tableName "
if needqualify then sql=sql& " where qualify=1 "
set rs=conn.execute(sql)
...


function needqualify()
set rs=conn.execute( "select value from systemconfig where code= 'needqualify ' ")
needqualify=rs(0)
end function


------解决方案--------------------
楼主是新手?
这应该不算难的。
------解决方案--------------------
路过,帮顶