示例#1
0
 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 = "";
     }
 }
示例#2
0
function deleteReport()
{
    $return = rp_reports::remove($_POST["Q0"]);
    echo $return ? "true" : "false";
    die;
}