add template files and compose file, fix syntax errors in template

This commit is contained in:
boris
2024-11-21 12:33:19 +00:00
parent f9d57038bf
commit b64c6d835e
55 changed files with 16384 additions and 7288 deletions

25
Models/UserData.php Normal file
View File

@@ -0,0 +1,25 @@
<?php
class UserData {
protected $_id, $_username, $_name, $_password, $_usertype;
public function __construct($dbRow) {
$this->_id = $dbRow['_id'];
$this->_username = $dbRow['username'];
$this->_name = $dbRow['name'];
$this->_password = $dbRow['password'];
$this->_usertype = $dbRow['usertype'];
}
public function getId() {
return $this->_id;
}
public function getUsername() {
return $this->_username;
}
public function getName() {
return $this->_name;
}
}