账号通
    

账号  

密码  

5602

查看

8

回复
主题:[分享]v5.51限制某个模型只能发表文章篇数 [收藏主题] 转到:  
yelom 当前离线

609

主题

9

广播

3

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

用户积分:1126 分
登录次数:354 次
注册时间:2007/6/15
最后登录:2021/8/30
yelom 发表于:2016/11/3 0:34:32   | 显示全部帖子 查看该作者主题 楼主 
科汛在线网校系统
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

   '===============增加判断结束=============







还是不太好用。

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

609

主题

9

广播

3

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

用户积分:1126 分
登录次数:354 次
注册时间:2007/6/15
最后登录:2021/8/30
yelom 发表于:2020/8/19 16:33:09   | 显示全部帖子 查看该作者主题 沙发 
科汛在线网校系统

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

 
  支持(0) | 反对(0) 回到顶部顶端 回到底部底部
<上一主题 | 下一主题 >
Powered By KesionCMS Version X1
厦门科汛软件有限公司 © 2006-2016 页面执行0.07813秒 powered by KesionCMS 9.0