$temp = explode('-', $val); return $temp[0]; } function addNull($val){ $tmp = $val; if (is_numeric($val)){ $num = $val + 0; if ($num <10) $tmp = "0". $num; } return $tmp; } if ($userid){ include_once("config_sistem.php"); include_once("class/mssql.inc.php"); include_once("class/class.grid.php"); include_once("class/class.handler.php"); $handler = new handler(true); $id = isset($_GET['id'])?$_GET['id']:0; if ($id){ $id = explode(".",$id); $report = $handler->getReport($id[1]); if ($report) if (file_exists("app/report/$report")){ include_once 'app/config/config.db.php'; include_once("app/report/$report"); } } } ?>