主题:  我是这样子玩投票系统的

CFZone

职务:普通成员
等级:1
金币:0.0
发贴:31
#12003/10/26 1:30:47
www.howrave.com/howrave/articles.cfm?id=12&cate=2
如果要注册的话,就随便注册吧!
呵呵!
有空来看看呀!


这是后台,明天再贴前台,要睡觉了,呵呵 1点半了!
想想算了,反正应该没有人会期待,就乱贴吧,搞完再睡!



我会接着把前台的源代码贴上来!

编辑历史:[此帖被CFZone编辑过(编辑时间2003-10-26 01:41:36)]
[此帖被CFZone编辑过(编辑时间2003-10-26 01:42:15)]
[此帖被CFZone编辑过(编辑时间2003-10-26 01:43:33)]


CFZone

职务:普通成员
等级:1
金币:0.0
发贴:31
#22003/10/26 1:44:15
        
        
        ...:::....CFZone.org ..::...
        
        
        
        
        
            
    
        
            SELECT A.caption_votecaption, A.start_votecaption,A.end_votecaption ,A.enable_votecaption,
             A.id_votecaption, B.id_voteoption, B.captionid_voteoption, B.option_voteoption,
             B.count_voteoption FROM dbo.tbl_votecaption as A, dbo.tbl_voteoption as B WHERE
             B.captionid_voteoption=A.id_votecaption                
            and a.id_votecaption =#url.id#    
            order by id_votecaption desc
        

        

    检查是否有cookie.polls --->            
        
        
        

        统计所有票数         --->
        
            SELECT sum(count_voteoption) as sumtotal FROM dbo.tbl_voteoption
             where captionid_voteoption =#polls.id_votecaption#
        

        统计结束 --->    
    
            
                    
        

            
                UPDATE dbo.tbl_voteoption
                SET count_voteoption =count_voteoption+1
                where captionid_voteoption =#url.id# and id_voteoption =#url.vote#
            


        
        

        
                    
        
    
                
                    
                        
                    
                    
                        
                    
                    
                        
                    
                    
                        
                    
                    
                        
                    
                
            

                          投票主题:
                             
#polls.caption_votecaption#
                             

                            


                         

                             
                                                                        
                                    
                                         

                                            
                                        
                                    
                                    
                                         

                                            
                                        
                                    
                                    
                                        
                                        
                                        
                                    
                                    
                                         

                                            
                                            
                                            
                                        
                                    
                                    
                                        
                                    
                                
                            

                                             
                                                该投票主题有效时间还有#expiredtime#
                                                

                                             
    该投票主题已过期!
                                             
    选项
                                         
    得票数
                                         
    图例
                                         

                                                 
  •                                                      
                                                     
                                                    
                                                    #polls.option_voteoption#
                                                     
                                                    #polls.option_voteoption#
                                                    

                                                     

                                                    

  •                                              
    (#polls.count_voteoption#)
                                                 

                                                 

                                             

                             

                             
                             
                                 
                                 
                                 

                                

                             

                                  
                                    #sum.sumtotal#voters since #LSDateFormat(polls.start_votecaption,'DDDD,MMMM DD, YYYY')#
                             

                             

                            View all polls
                            
                            
                             

            

            
                显示所有投票项         --->
            
                
                    
                        
                            
                        
                    
                

                                
                                    
                                        
                                    
                                    
                                        

                                            
                                        
                                    
                                
    投票主题:
                                        

                                                

  •                                             #polls.caption_votecaption#
                                                

  •                                         


                                View all polls
                                
                            

            

                        
            
            
            

            --->     
            --->
        
            
            

    Created By Ayu.C.F.Zone


            
            
            
            
                
                    
            

                    You've already voted for this poll你已经投过票了
                    
                    

                

            

            
            
    看得懂的!
    来找我,我有好处哦!



    namelysweet

    职务:普通成员
    等级:3
    金币:1.0
    发贴:681
    #32003/10/26 23:20:40
    你做的东西相当不错啊我发现!!!!


    ::和讯网 www.homeway.com.cn ::


    namelysweet

    职务:普通成员
    等级:3
    金币:1.0
    发贴:681
    #42003/10/26 23:23:11
    我想知道你的图是怎么生成的!!!


    ::和讯网 www.homeway.com.cn ::


    吃鱼专家

    职务:普通成员
    等级:6
    金币:11.0
    发贴:5312
    #52003/10/27 14:43:07
    namelysweet在上个帖子中说
    引用:
    我想知道你的图是怎么生成的!!!


    www.5d.cn/bbs/newsdetail.asp?id=957351&page=2

    看看我的例子,就明白了



    CFZone

    职务:普通成员
    等级:1
    金币:0.0
    发贴:31
    #62003/10/27 18:42:11







    namelysweet

    职务:普通成员
    等级:3
    金币:1.0
    发贴:681
    #72003/10/27 22:01:05
    如果不用这个TAG,比如我用ASP,那么如何搞呢?谢谢!


    ::和讯网 www.homeway.com.cn ::


    s22

    职务:版主
    等级:4
    金币:10.0
    发贴:1634
    #82003/10/27 23:36:41
    asp里可以嘛可以去GOOGLE查 chart com component嘛



    namelysweet

    职务:普通成员
    等级:3
    金币:1.0
    发贴:681
    #92003/10/28 8:30:23
    OK,多谢


    ::和讯网 www.homeway.com.cn ::


    江湖草芥

    职务:普通成员
    等级:1
    金币:0.0
    发贴:22
    #102003/10/28 15:32:10
    很好啊!竞业精神值得赞赏