示例#1
0
 public static function login($data = ["uname" => "", "password" => "", "authorized_users" => []])
 {
     $data["authorized_users"] = [];
     $result = UsersDB::getSalesmansName();
     foreach ($result as $value) {
         array_push($data["authorized_users"], $value["ime"]);
     }
     echo ViewHelper::render("view/salesman-login.php", $data);
 }