.demo6{margin:25px 0;} .layinput{height: 22px;line-height: 22px;width: 150px;margin: 0;border:1px #000 solid;font-size:15px;} </style> </head> <body> <?php session_start(); $username = $_SESSION["username"]; $total = 0; $deep = 0; $shallow = 0; $clear = 0; $rate = 0; require '../model/healthService.class.php'; $res = HealthService::findSleep($username); if ($item = $res->fetchArray(SQLITE3_ASSOC)) { $total = $item['TOTAL']; $deep = $item['DEEP']; $shallow = $item['SHALLOW']; $clear = $item['CLEAR']; } if (is_array($_GET) && count($_GET) > 0) { if (isset($_GET["date"])) { if ($_GET['date'] != "") { $res = HealthService::findSleepByDate($username, $_GET['date']); if ($item = $res->fetchArray(SQLITE3_ASSOC)) { $total = $item['TOTAL']; $deep = $item['DEEP']; $shallow = $item['SHALLOW']; $clear = $item['CLEAR'];