Exemplo n.º 1
0
<?php

require_once './classes/Survey.php';
$s = new Survey();
$list = $s->get_queue_status();
echo $list;
Exemplo n.º 2
0
                            </div>    
                            <button type="submit" class="btn btn-default">Submit</button>
                        </form>
                    </div>
                </div>
            </div>
            <div id="menu1" class="tab-pane fade" style="width:640px;padding-left: 45px;padding-top: 25px; ">
                <?php 
$settings = $survey->get_settings_page();
echo $settings;
?>
            </div>
            <div id="menu2" class="tab-pane fade" style="width:640px;padding-left: 45px;padding-top: 25px; ">
                <?php 
$resultObj = $survey->get_poll_results();
$queue = $survey->get_queue_status();
?>
                <script type="text/javascript">

                    // Load the Visualization API and the corechart package.
                    google.charts.load('current', {'packages': ['corechart']});

                    // Set a callback to run when the Google Visualization API is loaded.
                    google.charts.setOnLoadCallback(drawChart);

                    // Callback that creates and populates a data table,
                    // instantiates the pie chart, passes in the data and
                    // draws it.
                    function drawChart() {

                        // Create the data table.