User overview show address ID error fix

local jquery
This commit is contained in:
Ricsi
2017-01-13 22:36:57 +01:00
parent ca5b827bf2
commit 0fec3f0d7b
5 changed files with 22 additions and 3 deletions

3
.gitignore vendored Normal file
View File

@@ -0,0 +1,3 @@
/template/templates_c
php_errors.log
/_image

View File

@@ -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);

View File

@@ -13,7 +13,7 @@ setlocale(LC_ALL, 'hu_HU');
<style>
</style>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script src="/jquery-3.1.1.min.js"></script>
<script type="text/javascript">
$( document ).ready(function() {

4
jquery-3.1.1.min.js vendored Normal file

File diff suppressed because one or more lines are too long

View File

@@ -59,7 +59,7 @@
</label>
<div>
{if $user_login->get_uk_address_scc_id()}
{$user_login->get_uk_address_scc_id()}
{$user_login->get_uk_address()->get_scc_city()}
{else}
&nbsp;
{/if}