<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
    <head>
        <title>支付分析</title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <?php include "includelibs.php"; ?>
        <script >
            window.myDateTypeStr = 'FirstPayDayLevel';

            $(function () {  // onload
                var dateType = $("#dateType");
                dateType.selectmenu({
                    change: function (event, data) {
                        window.myDateTypeStr = data.item.value;
                        GetData(5);// 付费分析
                    }
                });
            });
            // 图表标题
            function getTitleText() {
                var titlestr = "";
                if (window.myDateTypeStr == 'FirstPayLevel') {
                    titlestr = '首次付费玩家的等级情况统计';
                } else if (window.myDateTypeStr == 'FirstPayDay') {
                    titlestr = '首次付费玩家的游戏时长统计(单位:天)';
                } else if (window.myDateTypeStr == 'FirstYuanbaoPayAt') {
                    titlestr = '玩家第一次使用元宝消费的用途统计';
                }
                return titlestr;
            }
        </script>
    </head>
    <body style='max-width:1000px;margin:auto;'>  
        <form action="#" style="margin: auto;">  
            <fieldset>
                <label for="dateType">选择统计内容</label>
                <select name="dateType" id="dateType">      
                    <option selected="selected">FirstPayLevel</option>
                    <option>FirstPayDay</option>
                    <option>FirstYuanbaoPayAt</option>
                </select>
            </fieldset> 
        </form>
        <div id="chartContainer" style="max-width:800px;max-height:500px">
            <canvas id="myChart"  style="width:100%;height:100%;border: 1px solid red;"></canvas>
        </div>
        <p>    说明:</p>
        <ul>
            <li>FirstPayLevel: 首次付费玩家的等级情况统计 </li>
            <li>FirstPayDay: 首次付费玩家的游戏时长统计(单位:天)</li>
            <li>FirstYuanbaoPayAt: 玩家第一次使用元宝消费的用途统计.</li>
        </ul>
    </body>
</html>
