function __construct($report_id = "") { if ($report_id != "") { $dt = rp_reports::select("report_id=" . $report_id); if (count($dt) != 0) { $this->report_id = $dt[0]["report_id"]; $this->report_title = $dt[0]["report_title"]; $this->query = $dt[0]["query"]; $this->conditions = $dt[0]["conditions"]; $this->refer_page = $dt[0]["refer_page"]; } } else { $this->report_id = ""; $this->report_title = ""; $this->query = ""; $this->conditions = ""; $this->refer_page = ""; } }
function selectReports() { $temp = rp_reports::select(); echo dataReader::getJsonData($temp, count($temp), $_GET["callback"]); die; }