/* $validator = new captcha(); if (!$validator->check_word($_POST['captcha'])) { echo "<script>alert('captcha error!');history.back();</script>"; exit; }*/ // $bRet = User::checkLogin($_POST['userId'], $_POST['pwd']); $rank = User::getByName($_POST['userId']); if ($bRet == true) { if ($rank['F_RANK'] == 1 || $rank['F_RANK'] == 3) { $arrayList = array(date('Y-m-d H:i:s', time()), date('Y-m-d H:i:s', time()), $_SERVER['REMOTE_ADDR'], $_POST['userId']); $bRet = User::updataStatus($arrayList); if ($bRet == true) { //获取待处理的箱门 $waitDeal = DataDetails::getNeedData(); //获取处理完成的箱门 $dealed = DataDetails::getDealed(); //获取处理的历时记录 $hisDeal = DataDetails::getHistoryDeal(); $_SESSION['userId'] = $_POST['userId']; $smarty->assign("waitDeal", $waitDeal); $smarty->assign("dealed", $dealed); $smarty->assign("hisDeal", array_slice($hisDeal, 0, 25)); $smarty->display('monitor.html'); } } else { if ($rank['F_RANK'] == 2) { $record = Box::getBoxbyName($rank['F_FULLNAME']); // print_r($record); $smarty->assign("boxBean", $record);