diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..5b78ccb
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,3 @@
+/template/templates_c
+php_errors.log
+/_image
diff --git a/_class/class_user_kid.php b/_class/class_user_kid.php
index be3153a..5f54183 100644
--- a/_class/class_user_kid.php
+++ b/_class/class_user_kid.php
@@ -13,7 +13,8 @@ class user_kid extends user_parent {
private $user_email;
private $user_last_login;
private $user_gender;
- private $user_address_scc_id;
+ private $user_address_scc_id; //SCC ID
+ private $user_address; //SCC OBJ
private $user_birth_date;
private $user_birth_year;
private $user_first_training;
@@ -217,6 +218,12 @@ class user_kid extends user_parent {
public function get_uk_address_scc_id() {
return $this->user_address_scc_id;
}
+ public function set_uk_address($_address) {
+ $this->user_address = $_address;
+ }
+ public function get_uk_address() {
+ return $this->user_address;
+ }
public function set_uk_beforehand($_beforehand) {
$this->user_beforehand = $_beforehand;
}
@@ -263,6 +270,11 @@ class user_kid extends user_parent {
$school->set_school_data_by_id($value);
$this->set_uk_school($school);
}
+ if ($field == 'uk_address_scc_id' && !empty($value)) {
+ $city = new school_city();
+ $city->set_school_city_data_by_id($value);
+ $this->set_uk_address($city);
+ }
//$this->set_ua_type(2); //kid típus beállítása
}
$this->set_login(true);
diff --git a/index.php b/index.php
index 4416118..0f903e1 100644
--- a/index.php
+++ b/index.php
@@ -13,7 +13,7 @@ setlocale(LC_ALL, 'hu_HU');
-
+