• 预览
  • 代码

扩展功能 - 投票管理

投票管理功能用于投票活动信息的收集,投票类型包括:图文、文本;选项类型包括:单选、多选,自由度相对比较高。
测试Demo

测试数据
Array
(
    [0] => Array
        (
            [id] => 1
            [type] => 2
            [option_type] => 1
            [name] => 你选择你最喜欢的编程语言?
            [width] => 200
            [height] => 150
            [thumb] => Array
                (
                    [0] => Array
                        (
                            [name] => demo_tp5.png
                            [sort] => 1
                            [thumb] => /uploads/uploadfile/images/20181210/thumb/thumb_20181210212502_5c0e692e2ffeb.png
                            [photo] => /uploads/uploadfile/images/20181210/20181210212502_5c0e692e2ffeb.png
                            [type] => images
                            [oringinal_type] => images
                            [location] => upload
                        )

                )

            [date_type] => 2
            [cycle] => 1
            [number] => 2
            [content] => <p>PHP是世界上最好的语言,这句话在编程界引起了其他语言coder的不符,那今天就来个投票,看看网友最喜欢哪个编程语言,那就请你选择你最喜欢的编程语言吧?</p>
            [range_time] => 2019-01-01 00:00:00 - 2020-10-30 00:00:00
            [guest] => 0
            [weigh] => 1
            [status] => 1
            [create_time] => 2018-12-10 21:25:36
            [update_time] => 2019-01-16 16:24:11
        )

    [1] => Array
        (
            [id] => 2
            [type] => 1
            [option_type] => 2
            [name] => 请投票选出你最喜欢的明星?
            [width] => 200
            [height] => 150
            [thumb] => Array
                (
                    [0] => Array
                        (
                            [name] => demo4.jpg
                            [sort] => 1
                            [thumb] => /uploads/uploadfile/images/20181210/thumb/thumb_20181210212625_5c0e69814eec3.jpg
                            [photo] => /uploads/uploadfile/images/20181210/20181210212625_5c0e69814eec3.jpg
                            [type] => images
                            [oringinal_type] => images
                            [location] => upload
                        )

                )

            [date_type] => 1
            [cycle] => 3600
            [number] => 2
            [content] => <p>日常生活中大家都有自己喜爱的明星idol,请为你喜欢的明星打call,请投票选出你最喜欢的明星?</p>
            [range_time] => 2018-12-10 00:00:00 - 2019-04-12 00:00:00
            [guest] => 0
            [weigh] => 2
            [status] => 1
            [create_time] => 2018-12-10 21:26:57
            [update_time] => 2019-01-16 16:25:11
        )

)