Exemple #1
0
<?php

$this->a('reports.php');
$back_names[] = "cl_call";
$back_names[] = "cl_call2";
$back_names[] = "cl_call3";
$back_names[] = "cl_call4";
$back_names[] = "cl_call5";
$back_names[] = "cl_call6";
$reports = new reports();
$reports->mysqli = $this->mysqli;
$reports->user = $this->user;
$reports->request = $this->request;
$js_functions[] = $reports->show_js();
$string_out .= $reports->div_selectors();
// detect calling
if ($this->request['type'] == 2) {
    $string_out .= "<div id='post_form' class='post_form'></div>\n<div class='bigblock' id='bigblock'>\n<div id='main_div' class='content'>\n" . $reports->seller_report($this->user['id'], null, null) . "\n<div id ='report_data'></div>\n</div>\n</div>";
} elseif ($this->request['type'] == 3) {
    $string_out .= "<div id='post_form' class='post_form'></div>\n<div class='bigblock' id='bigblock'>\n<div id='main_div' class='content'>\n" . $reports->supplier_report($this->request['supplier'], null, null) . "\n<div id ='report_data'></div>\n</div>\n</div>";
} elseif ($this->request['type'] == 4) {
    $string_out .= "<div id='post_form' class='post_form'></div>\n<div class='bigblock' id='bigblock'>\n<div id='main_div' class='content'>\n" . $reports->brands_report($this->request['supplier'], null, null) . "\n<div id ='report_data'></div>\n</div>\n</div>";
} else {
    if (isset($this->request['product']) and $this->request['product'] != '') {
        $string_out .= "<div id='post_form' class='post_form'></div>\n<div class='bigblock' id='bigblock'>\n<div id='main_div' class='content'>\n" . $reports->prod_report($this->request['product']) . "\n<div id ='report_data'></div>\n</div>\n</div>";
    } else {
        $string_out .= "<div id='post_form' class='post_form'></div>\n<div class='bigblock' id='bigblock'>\n<div id='main_div' class='content'>\n" . $reports->sellings() . "\n<div id ='report_data'></div>\n</div>\n</div>";
    }
}
$string_out .= "<div id='action_buttons' class='divactionbuttons'>" . $reports->reports_buttons() . "</div>";
?>