免费会员发布信息限制为5条的实现
2011-07-20 17:08
197 查看
1,会员数据表需要有字段:
会员等级 限制条数
gradeid limit
默认值 3(普通会员) 5
类型 int int
2,关键实现:
判断当天发布信息记录的条数统计数和limit的比较
备注:
具体实现代码:
<%
if p_z_Z_Type="卖" then
set gssql1=conn.execute("select gradeid,limit from Websen_corporation where id="&gsid&"")
'set gssql1=conn.execute("select gradeid from Websen_corporation where id="&gsid&"")
gsgradeid1 =gssql1(0)
limit1 =gssql1(1)
'limit1=5
if gsgradeid1 =3 then
set totil1=conn.execute("select count(info_id) from Websen_Info where ( YEAR(limitDate) = YEAR(getdate()) AND MONTH(limitDate) = MONTH(getdate()) AND DAY(limitDate) = DAY(getdate()) ) and gsid="&gsid&" and type='卖' ")
'set totil1=conn.execute("select count(info_id) from Websen_Info where ( YEAR(dateandtime) = YEAR(getdate()) AND MONTH(dateandtime) = MONTH(getdate()) AND DAY(dateandtime) = DAY(getdate()) ) and gsid="&gsid&" and type='卖' ")
totil1=totil1(0)
totil2=limit1-totil1
if totil2=0 then
response.write"您今天已经发布了<font color=#FF0000>"&limit1&"</font>条供应信息。不能在发布供应信息了!想发布更多信息<a href=/hy.html target=_blank><font color=#FF0000>立即升级为VIP会员!</font></a>"
else
response.write"你今天还能发布<font color=#FF0000>"&totil2&"</font>条供应信息!想发布更多信息<a href=/hy.html target=_blank><font color=#FF0000>立即升级为VIP会员!</font></a>"
end if
end if
end if
%>
会员等级 限制条数
gradeid limit
默认值 3(普通会员) 5
类型 int int
2,关键实现:
判断当天发布信息记录的条数统计数和limit的比较
备注:
具体实现代码:
<%
if p_z_Z_Type="卖" then
set gssql1=conn.execute("select gradeid,limit from Websen_corporation where id="&gsid&"")
'set gssql1=conn.execute("select gradeid from Websen_corporation where id="&gsid&"")
gsgradeid1 =gssql1(0)
limit1 =gssql1(1)
'limit1=5
if gsgradeid1 =3 then
set totil1=conn.execute("select count(info_id) from Websen_Info where ( YEAR(limitDate) = YEAR(getdate()) AND MONTH(limitDate) = MONTH(getdate()) AND DAY(limitDate) = DAY(getdate()) ) and gsid="&gsid&" and type='卖' ")
'set totil1=conn.execute("select count(info_id) from Websen_Info where ( YEAR(dateandtime) = YEAR(getdate()) AND MONTH(dateandtime) = MONTH(getdate()) AND DAY(dateandtime) = DAY(getdate()) ) and gsid="&gsid&" and type='卖' ")
totil1=totil1(0)
totil2=limit1-totil1
if totil2=0 then
response.write"您今天已经发布了<font color=#FF0000>"&limit1&"</font>条供应信息。不能在发布供应信息了!想发布更多信息<a href=/hy.html target=_blank><font color=#FF0000>立即升级为VIP会员!</font></a>"
else
response.write"你今天还能发布<font color=#FF0000>"&totil2&"</font>条供应信息!想发布更多信息<a href=/hy.html target=_blank><font color=#FF0000>立即升级为VIP会员!</font></a>"
end if
end if
end if
%>
相关文章推荐
- 利用MOSS的CMS实现信息发布站点
- 们只是「电脑玩物」 首页 实用技巧 免费资源 超好玩的游戏 软件推荐 IT技术 资讯 编程 其它 MVVM设计模式和WPF中的实现(四) 事件绑定 07net01.com 发布于 2015-10-08
- 99信息发布网,添加收藏,设置为首页功能,ie上可以实现的;
- 免费HTTP上传文件控件WebUploadFile.ocx发布,让实现Word在线编辑器变得容易
- Destoon后台修改公司会员资料信息的必填项限制修改
- 国内免费发布信息平台哪个好?
- iptables实战系列:通过NAT转发实现私网对外发布信息
- 点某个链接进网站,会发这个链接的会员加积分,实现方法(有时间限制)
- Android正在使用Handler实现信息发布机制(一)
- java-第三章-升级我行我素购物管理系统,实现会员信息录入的功能
- dedecms实现任意页面调用当前会员信息的方法
- 建材行业免费发布信息平台大全!
- DEDE利用Ajax实现调用当前登录会员的信息简要说明
- 织梦实现列表调用会员任意信息字段
- 免费发布信息平台排行大全!
- DEDE利用Ajax实现调用当前登录会员的信息简要说明
- iptables实战系列:通过NAT转发实现私网对外发布信息
- DEDE利用Ajax实现调用当前登录会员的信息简要说明
- 继承 TPaintBox 实现信息发布滚屏显示控件