Esempio n. 1
0
function dokan_admin_dash_metabox_report()
{
    dokan_admin_report();
    ?>
    <div class="chart-container">
        <div class="chart-placeholder main" style="width: 100%; height: 350px;"></div>
    </div>
    <?php 
}
Esempio n. 2
0
        ?>
" />
            </form>
        <?php 
    } else {
        do_action('dokan_report_sub_' . $type, $tab, $start_date, $end_date, $selected_year, $current_year);
    }
    ?>

        <div class="admin-report-container">
            <?php 
    $order_total = $earning_total = $total_orders = 0;
    if ($type == 'month') {
        $report_data = dokan_admin_report('month', $selected_year);
    } else {
        $report_data = dokan_admin_report();
    }
    if ($report_data) {
        foreach ($report_data as $row) {
            $order_total += $row->order_total;
            $earning_total += $row->earning;
            $total_orders += $row->total_orders;
        }
    }
    ?>

            <div class="dokan-reports-sidebar">
                <ul class="chart-legend">
                    <li>
                        <strong><?php 
    echo wc_price(dokan_site_total_earning());
Esempio n. 3
0
                <input type="submit" name="dokan_report_filter_year" class="button button-primary" value="<?php 
        _e('Show', 'dokan');
        ?>
" />
            </form>
        <?php 
    }
    ?>

        <div class="admin-report-container">
            <?php 
    $order_total = $earning_total = $total_orders = 0;
    if ($type == 'day') {
        $report_data = dokan_admin_report();
    } elseif ($type == 'month') {
        $report_data = dokan_admin_report('month', $selected_year);
    }
    if ($report_data) {
        foreach ($report_data as $row) {
            $order_total += $row->order_total;
            $earning_total += $row->earning;
            $total_orders += $row->total_orders;
        }
    }
    ?>

            <div class="dokan-reports-sidebar">
                <ul class="chart-legend">
                    <li>
                        <strong><?php 
    echo wc_price(dokan_site_total_earning());