function AddTraffic() { $obj = new ATN_traffic(); $obj->TrafficDate = PDONOW; $obj->TrafficTime = DateModules::NowTime(); $obj->IsSystemic = "YES"; $obj->PersonID = $_SESSION["USER"]["PersonID"]; $result = $obj->Add(); //print_r(ExceptionHandler::PopAllExceptions()); echo Response::createObjectiveResponse($result, ExceptionHandler::GetExceptionsToString()); die; }
<?php //------------------------- // programmer: Jafarkhani // Create Date: 95.01 //------------------------- include '../header.inc.php'; include_once inc_dataGrid; require_once 'traffic.class.php'; $dt = ATN_traffic::Get(" AND t.PersonID=? AND TrafficDate=?", array($_SESSION["USER"]["PersonID"], DateModules::Now())); $even = $dt->rowCount() == 0 ? true : $dt->rowCount() % 2 == 0; $StartPageFormat = isset($_REQUEST["StartPage"]) ? true : false; ?> <style> .start { background-image: url('/HumanResources/icons/start.png'); background-position: center center !important; background-size: 70px 70px; height: 80px !important; width: 80px !important; } .stop { background-image: url('/HumanResources/icons/stop.png'); background-position: center center !important; background-size: 70px 70px; height: 80px !important; width: 80px !important; } </style> <script>