|
主题:[分享]v5.51限制某个模型只能发表文章篇数 [收藏主题] | 转到: |
![]() x1.5版用在user/user_post.asp中是这样:
'============增加判断============= if channelid=114 then '只对114的模型有效 dim articlenum:articlenum=conn.execute("select count(*) from " & KS.C_S(ChannelID,2) &" Where Inputer='" & KSUser.UserName &"'")(0) if articlenum>1 then response.write "<script>alert('对不起,本频道限制每个考生只能投递1篇简历!');history.back();</script>" response.end end if end if '===============增加判断结束============= 还是不太好用。 |
|
![]() ![]() ![]() ![]() |
![]() User_Post.asp 67行 '添加文章 Sub InitialArticle() '============增加判断============= if channelid=114 then '只对114的模型有效 dim jianlinum:jianlinum=conn.execute("select count(*) from " & KS.C_S(ChannelID,2) &" Where Inputer='" & KSUser.UserName &"'")(0) if jianlinum>=1 then response.write "<script>alert('对不起,您只能投递1份简历!');history.back();</script>" response.end end if end if |
|
![]() ![]() ![]() ![]() |
<上一主题 | 下一主题 > |