20161215
This commit is contained in:
@@ -3,6 +3,7 @@ Options +FollowSymLinks -MultiViews
|
||||
RewriteEngine On
|
||||
RewriteBase /
|
||||
|
||||
RewriteRule ^$ index.php?page=view [NC,L]
|
||||
|
||||
RewriteRule ^\/?(_css\/)([a-zA-Z0-9_]+)\.css$ _css/$2.css [NC]
|
||||
RewriteRule ^\/?(_ajax\/)([a-zA-Z0-9_]+)\.php$ _ajax/$2.php [NC,L]
|
||||
|
||||
@@ -1,13 +1,15 @@
|
||||
<?php
|
||||
ini_set('include_path', '../_class/');
|
||||
include('class_sql.php');
|
||||
if ($_SERVER['HTTP_HOST'] == 'badmintoncoach.hu ') $sql = new sql('localhost','root','','badminton_coach');
|
||||
else $sql = new sql('localhost','tollashodos','uprRscU8bGpJ','tollashodos');
|
||||
/*
|
||||
foreach ($_POST as $key => $value) {
|
||||
trigger_error($key . " : " . $value, E_USER_NOTICE);
|
||||
trigger_error($_SERVER['HTTP_HOST'], E_USER_NOTICE);
|
||||
}
|
||||
*/
|
||||
if ($_SERVER['HTTP_HOST'] == 'badmintoncoach.hu') $sql = new sql('localhost','root','','badminton_coach');
|
||||
else $sql = new sql('localhost','tollashodos','uprRscU8bGpJ','tollashodos');
|
||||
|
||||
|
||||
if ($_POST['checked'] == "true") {
|
||||
$sql->insert_into('presence', array('pr_user_kid_uk_id' => $_POST['user_id'], 'pr_training_tr_id' => $_POST['tr_id']));
|
||||
}
|
||||
|
||||
@@ -47,16 +47,51 @@ class login {
|
||||
|
||||
}
|
||||
|
||||
public function login_user($_user_id, $_user_type) {
|
||||
public function check_coach_login($_user_name, $_user_password) {
|
||||
global $sql;
|
||||
//ez a függvény ellenőrzi le a bevitt adatok
|
||||
//vissszadja a user_id-t, ha helyesek az adatok
|
||||
//null ha nem
|
||||
$check_query =
|
||||
"
|
||||
SELECT ua_id FROM user_coach WHERE
|
||||
(ua_name = '" . $_user_name . "' AND
|
||||
ua_password = '" . md5($_user_password ) . "')";
|
||||
|
||||
echo $check_query;
|
||||
|
||||
if ($sql->num_of_rows($check_query)) return $sql->single_variable($check_query);
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
public function check_kid_login($_user_name, $_user_password) {
|
||||
global $sql;
|
||||
//ez a függvény ellenőrzi le a bevitt adatok
|
||||
//vissszadja a user_id-t, ha helyesek az adatok
|
||||
//null ha nem
|
||||
$check_query =
|
||||
"
|
||||
SELECT uk_id FROM user_kid WHERE
|
||||
(uk_name = '" . $_user_name . "' AND
|
||||
uk_password = '" . $_user_password . "')";
|
||||
|
||||
if ($sql->num_of_rows($check_query)) return $sql->single_variable($check_query);
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
public function login_user($_user_id, $_cookie_name, $_user_type) {
|
||||
//beállítja a belépett user adatait cookieba (ha még nincs)
|
||||
global $sql;
|
||||
|
||||
if (!isset($_COOKIE['badminon_coach_user'])) {
|
||||
if (!isset($_COOKIE[$_cookie_name])) {
|
||||
//user objektumot nem lehet cookie-ban tárolni, ezért user_id-t rakunk bele
|
||||
$user_login = new user();
|
||||
if ($_user_type == 1) $user_login = new user();
|
||||
else $user_login = new user_kid();
|
||||
$user_login->set_user_data_by_id($_user_id);
|
||||
$user_login->update_login_time();
|
||||
setcookie('badminton_coach_user', $_user_id, time()+60*60*72, '/');
|
||||
setcookie($_cookie_name, $_user_id, time()+60*60*72, '/');
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -21,8 +21,20 @@ class page {
|
||||
}
|
||||
|
||||
public function get_page_nav() {
|
||||
global $smarty;
|
||||
//itt majd el lehet ágaztatni, ha nem admin oldalon vagyunk stb, de egyenlőre nem kell
|
||||
global $smarty, $sql;
|
||||
//nem kell if, hanem page alapján beillesztük az id-t
|
||||
if ($this->get_page() == 'admin') {
|
||||
$menus_query = "SELECT * FROM subpage WHERE spage_page_id = 1;";
|
||||
$menu_assoc_array = $sql->assoc_array($menus_query);
|
||||
$smarty->assign('menus', $menu_assoc_array);
|
||||
}
|
||||
elseif ($this->get_page() == 'view') {
|
||||
$menus_query = "SELECT * FROM subpage WHERE spage_page_id = 2;";
|
||||
$menu_assoc_array = $sql->assoc_array($menus_query);
|
||||
$smarty->assign('menus', $menu_assoc_array);
|
||||
}
|
||||
|
||||
$smarty->assign('page', $this->get_page());
|
||||
$smarty->display('nav.tpl');
|
||||
}
|
||||
|
||||
@@ -105,6 +117,14 @@ class page {
|
||||
# EDZÉS TÍPUSOK
|
||||
include('include_training_types.php');
|
||||
break;
|
||||
case 'regions':
|
||||
# DIÁKOLIMPIA KÖRZETEK
|
||||
include('include_regions.php');
|
||||
break;
|
||||
case 'lock_training':
|
||||
# EDZÉS ZÁROLÁS, FELOLDÁS
|
||||
include('include_lock_training.php');
|
||||
break;
|
||||
case 'delete_training_type':
|
||||
# EDZÉS TÍPUS TÖRLÉS
|
||||
include('include_delete_training_type.php');
|
||||
@@ -121,8 +141,13 @@ class page {
|
||||
# VÁROS TÖRLÉS
|
||||
include('include_delete_city.php');
|
||||
break;
|
||||
case 'delete_region':
|
||||
# KÖRZET TÖRLÉS
|
||||
include('include_delete_region.php');
|
||||
break;
|
||||
case 'logout':
|
||||
# kijelentkezés
|
||||
$from = "coach";
|
||||
include('include_logout.php');
|
||||
break;
|
||||
default:
|
||||
@@ -135,8 +160,22 @@ class page {
|
||||
include('ajax/'.$this->get_subpage());
|
||||
}
|
||||
break;
|
||||
case 'style':
|
||||
//var_dump('haha');
|
||||
case 'view':
|
||||
# SZÜLŐ FELÜLET
|
||||
switch ($this->get_subpage()) {
|
||||
case 'logout':
|
||||
# kijelentkezés
|
||||
$from = "parent";
|
||||
include('include_logout.php');
|
||||
break;
|
||||
case 'overview':
|
||||
# áttekintő oldal adatokkal és edzéslistával
|
||||
include('include_overview.php');
|
||||
break;
|
||||
default:
|
||||
include('include_overview.php');
|
||||
break;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
# code...
|
||||
@@ -164,27 +203,27 @@ class page {
|
||||
$this->id = $_id;
|
||||
}
|
||||
|
||||
private function get_page() {
|
||||
public function get_page() {
|
||||
return $this->page;
|
||||
}
|
||||
|
||||
private function get_subpage() {
|
||||
public function get_subpage() {
|
||||
return $this->subpage;
|
||||
}
|
||||
|
||||
private function get_id() {
|
||||
public function get_id() {
|
||||
return $this->id;
|
||||
}
|
||||
|
||||
private function is_page() {
|
||||
public function is_page() {
|
||||
return !empty($this->page);
|
||||
}
|
||||
|
||||
private function is_subpage() {
|
||||
public function is_subpage() {
|
||||
return !empty($this->subpage);
|
||||
}
|
||||
|
||||
private function is_id() {
|
||||
public function is_id() {
|
||||
return !empty($this->id);
|
||||
}
|
||||
|
||||
|
||||
@@ -17,6 +17,7 @@ class sql extends mysqli {
|
||||
|
||||
public function single_variable($_query) {
|
||||
$result = self::query($_query);
|
||||
//var_dump($_query);
|
||||
$assoc_array = $result->fetch_array(MYSQLI_NUM);
|
||||
return $assoc_array['0'];
|
||||
}
|
||||
@@ -49,7 +50,7 @@ class sql extends mysqli {
|
||||
$i++;
|
||||
}
|
||||
$this->_query = 'insert into ' . $table . ' (' . $fields . ') values (' . $values . ');';
|
||||
var_dump($this->_query);
|
||||
//var_dump($this->_query);
|
||||
self::query($this->_query);
|
||||
return $this->insert_id;
|
||||
}
|
||||
|
||||
@@ -14,6 +14,7 @@ class training {
|
||||
private $tr_training_type_trt_id;
|
||||
private $tr_user_coach_uc_id;
|
||||
private $tr_duration;
|
||||
private $tr_locked;
|
||||
|
||||
|
||||
public function set_tr_id($_tr_id) {
|
||||
@@ -32,6 +33,10 @@ class training {
|
||||
$this->tr_duration = $_tr_duration;
|
||||
}
|
||||
|
||||
public function set_tr_locked($_tr_locked) {
|
||||
$this->tr_locked = $_tr_locked;
|
||||
}
|
||||
|
||||
public function get_tr_id() {
|
||||
return $this->tr_id;
|
||||
}
|
||||
@@ -40,6 +45,18 @@ class training {
|
||||
return !$_formatted ? $this->tr_date : date("Y. F d. H:i", strtotime($this->tr_date));
|
||||
}
|
||||
|
||||
public function get_tr_date_day() {
|
||||
return date("d", strtotime($this->tr_date));
|
||||
}
|
||||
|
||||
public function get_tr_date_day_of_week() {
|
||||
return date("w", strtotime($this->tr_date));
|
||||
}
|
||||
|
||||
public function get_tr_date_time() {
|
||||
return date("H:i", strtotime($this->tr_date));
|
||||
}
|
||||
|
||||
public function get_tr_training_type_trt_id() {
|
||||
return $this->tr_training_type_trt_id;
|
||||
}
|
||||
@@ -48,6 +65,10 @@ class training {
|
||||
return $this->tr_duration;
|
||||
}
|
||||
|
||||
public function get_tr_locked() {
|
||||
return $this->tr_locked;
|
||||
}
|
||||
|
||||
public function get_tr_type_name_by_id() {
|
||||
global $sql;
|
||||
return $sql->single_variable("SELECT trt_name FROM training_type WHERE trt_id = " . $this->get_tr_training_type_trt_id());
|
||||
@@ -77,7 +98,7 @@ class training {
|
||||
for ($actual_day=date('d', strtotime($_training_value_array['tr_date'])); $actual_day <= $last_day; $actual_day=$actual_day+7) {
|
||||
$new_tr_id = $sql->insert_into('training',
|
||||
array(
|
||||
'tr_date' => date('Y-m') . '-' . $actual_day . ' ' . date('H:i', strtotime($_training_value_array['tr_date'])),
|
||||
'tr_date' => date('Y-m', strtotime($_training_value_array['tr_date'])) . '-' . $actual_day . ' ' . date('H:i', strtotime($_training_value_array['tr_date'])),
|
||||
'tr_training_type_trt_id' => $_training_value_array['tr_training_type_trt_id'],
|
||||
'tr_duration' => $_training_value_array['tr_duration']
|
||||
)
|
||||
@@ -89,6 +110,13 @@ class training {
|
||||
$sql->insert_into('training_coach', array('trc_training_tr_id' => $new_tr_id, 'trc_coach_uc_id' => $coach_id));
|
||||
}
|
||||
}
|
||||
//itt rakjuk be a segédedzőket
|
||||
if (isset($_training_value_array['helpets'])) {
|
||||
foreach ($_training_value_array['helpets'] as $coach_id) {
|
||||
# beilleszt minden edzőt ehhez az edzéshez
|
||||
$sql->insert_into('training_coach', array('trc_training_tr_id' => $new_tr_id, 'trc_coach_uc_id' => $coach_id, 'trc_helper' => 1));
|
||||
}
|
||||
}
|
||||
}
|
||||
//var_dump($day_array);
|
||||
}
|
||||
@@ -98,6 +126,11 @@ class training {
|
||||
$coaches = $_training_value_array['coaches'];
|
||||
unset($_training_value_array['coaches']);
|
||||
}
|
||||
//helpers
|
||||
if (isset($_training_value_array['helpers'])) {
|
||||
$helpers = $_training_value_array['helpers'];
|
||||
unset($_training_value_array['helpers']);
|
||||
}
|
||||
$new_tr_id = $sql->insert_into('training', $_training_value_array);
|
||||
if (isset($coaches)) {
|
||||
foreach ($coaches as $coach_id) {
|
||||
@@ -105,6 +138,12 @@ class training {
|
||||
$sql->insert_into('training_coach', array('trc_training_tr_id' => $new_tr_id, 'trc_coach_uc_id' => $coach_id));
|
||||
}
|
||||
}
|
||||
if (isset($helpers)) {
|
||||
foreach ($helpers as $coach_id) {
|
||||
# beilleszt minden edzőt ehhez az edzéshez
|
||||
$sql->insert_into('training_coach', array('trc_training_tr_id' => $new_tr_id, 'trc_coach_uc_id' => $coach_id, 'trc_helper' => 1));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -118,8 +157,17 @@ class training {
|
||||
foreach ($_training_value_array['coaches'] as $coach_id) {
|
||||
$sql->insert_into('training_coach', array('trc_training_tr_id' => $_tr_id, 'trc_coach_uc_id' => $coach_id));
|
||||
}
|
||||
|
||||
unset($_training_value_array['coaches']);
|
||||
}
|
||||
if (isset($_training_value_array['helpers'])) {
|
||||
//helper handler -> kitoroljuk mindet és újra insertaljuk
|
||||
foreach ($_training_value_array['helpers'] as $coach_id) {
|
||||
$sql->insert_into('training_coach', array('trc_training_tr_id' => $_tr_id, 'trc_coach_uc_id' => $coach_id, 'trc_helper' => 1));
|
||||
}
|
||||
|
||||
unset($_training_value_array['helpers']);
|
||||
}
|
||||
|
||||
$sql->update_table('training', $_training_value_array, array('tr_id' => $_tr_id));
|
||||
}
|
||||
|
||||
@@ -15,7 +15,6 @@ class user {
|
||||
private $user_last_name;
|
||||
private $user_first_name;
|
||||
private $user_password;
|
||||
private $user_helper;
|
||||
private $user_last_login;
|
||||
private $logged_in;
|
||||
private $user_type;
|
||||
@@ -41,10 +40,6 @@ class user {
|
||||
$this->user_password = $_u_pass;
|
||||
}
|
||||
|
||||
public function set_ua_helper($_u_helper) {
|
||||
$this->user_helper = $_u_helper;
|
||||
}
|
||||
|
||||
public function set_ua_last_login($_u_last_login) {
|
||||
$this->user_last_login = $_u_last_login;
|
||||
}
|
||||
@@ -73,10 +68,6 @@ class user {
|
||||
return $this->user_password;
|
||||
}
|
||||
|
||||
public function get_ua_helper() {
|
||||
return $this->user_helper;
|
||||
}
|
||||
|
||||
public function get_ua_deleted() {
|
||||
return $this->user_deleted;
|
||||
}
|
||||
@@ -109,7 +100,14 @@ class user {
|
||||
public function is_coach_at_training($_training_id) {
|
||||
global $sql;
|
||||
//kap egy training id-t, és megmondja, hogy az user be van-e jelölve edzőként azon az edzésen
|
||||
$query = "SELECT * FROM training_coach WHERE trc_coach_uc_id = '" . $this->get_ua_id() . "' AND trc_training_tr_id = '" . $_training_id ."';";
|
||||
$query = "SELECT * FROM training_coach WHERE trc_coach_uc_id = '" . $this->get_ua_id() . "' AND trc_training_tr_id = '" . $_training_id ."' AND trc_helper = 0;";
|
||||
return $sql->num_of_rows($query);
|
||||
}
|
||||
|
||||
public function is_helper_at_training($_training_id) {
|
||||
global $sql;
|
||||
//kap egy training id-t, és megmondja, hogy az user be van-e jelölve segédedzőként azon az edzésen
|
||||
$query = "SELECT * FROM training_coach WHERE trc_coach_uc_id = '" . $this->get_ua_id() . "' AND trc_training_tr_id = '" . $_training_id ."' AND trc_helper = 1;";
|
||||
return $sql->num_of_rows($query);
|
||||
}
|
||||
|
||||
@@ -123,23 +121,21 @@ class user {
|
||||
$this->user_type = $_type;
|
||||
}
|
||||
|
||||
public static function create_user($_name, $_helper, $_password) {
|
||||
public static function create_user($_name, $_password) {
|
||||
global $sql;
|
||||
return $sql->insert_into('user_coach', array(
|
||||
'ua_name' => $_name,
|
||||
'ua_helper' => $_helper,
|
||||
'ua_password' => $_password
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
public static function update_user($_name, $_helper, $_password, $_ua_id) {
|
||||
public static function update_user($_name, $_password, $_ua_id) {
|
||||
global $sql;
|
||||
if ($_password != "-1") {
|
||||
return $sql->update_table('user_coach',
|
||||
array(
|
||||
'ua_name' => $_name,
|
||||
'ua_helper' => $_helper,
|
||||
'ua_password' => $_password
|
||||
),
|
||||
array(
|
||||
@@ -151,7 +147,6 @@ class user {
|
||||
return $sql->update_table('user_coach',
|
||||
array(
|
||||
'ua_name' => $_name,
|
||||
'ua_helper' => $_helper
|
||||
),
|
||||
array(
|
||||
'ua_id' => $_ua_id
|
||||
|
||||
@@ -22,6 +22,7 @@ class user_kid extends user_parent {
|
||||
private $logged_in;
|
||||
private $user_type;
|
||||
private $user_shirt_size;
|
||||
private $user_shirt_note;
|
||||
private $user_school_sc_id;
|
||||
private $user_school_district;
|
||||
private $user_school_city_scc_id;
|
||||
@@ -29,6 +30,10 @@ class user_kid extends user_parent {
|
||||
private $user_parent_2;
|
||||
private $user_phone;
|
||||
private $user_facebook;
|
||||
private $user_region;
|
||||
private $user_contact;
|
||||
private $user_other;
|
||||
|
||||
public function set_uk_id($_uid) {
|
||||
$this->user_id = $_uid;
|
||||
}
|
||||
@@ -54,7 +59,10 @@ class user_kid extends user_parent {
|
||||
$this->user_last_login = $_u_last_login;
|
||||
}
|
||||
public function set_uk_shirt_size_ss_id($_shirt_size) {
|
||||
$this->shirt_size = $_shirt_size;
|
||||
$this->user_shirt_size = $_shirt_size;
|
||||
}
|
||||
public function set_uk_shirt_note($_shirt_note) {
|
||||
$this->user_shirt_note = $_shirt_note;
|
||||
}
|
||||
public function set_uk_school_sc_id($_school) {
|
||||
$this->user_school_sc_id = $_school;
|
||||
@@ -71,6 +79,16 @@ class user_kid extends user_parent {
|
||||
public function set_uk_parent_2($_uk_parent_2) {
|
||||
$this->user_parent_2 = $_uk_parent_2;
|
||||
}
|
||||
public function set_uk_region_reg_id($_uk_region) {
|
||||
$this->user_region = $_uk_region;
|
||||
}
|
||||
public function set_uk_contact($_uk_contact) {
|
||||
$this->user_contact = $_uk_contact;
|
||||
}
|
||||
public function set_uk_other($_uk_other) {
|
||||
$this->user_other = $_uk_other;
|
||||
}
|
||||
|
||||
public function get_uk_id() {
|
||||
return $this->user_id;
|
||||
}
|
||||
@@ -89,28 +107,78 @@ class user_kid extends user_parent {
|
||||
public function get_uk_email() {
|
||||
return $this->user_email;
|
||||
}
|
||||
public function get_uk_phone() {
|
||||
return $this->user_phone;
|
||||
}
|
||||
public function get_uk_facebook() {
|
||||
return $this->user_facebook;
|
||||
}
|
||||
public function get_uk_shirt_size() {
|
||||
return $this->user_shirt_size;
|
||||
}
|
||||
public function get_uk_shirt_size_name() {
|
||||
global $sql;
|
||||
if ($this->user_shirt_size) return $sql->single_variable("select shirt_name from shirt where shirt_id = " . $this->user_shirt_size);
|
||||
else return null;
|
||||
}
|
||||
|
||||
public function get_uk_shirt_note() {
|
||||
return $this->user_shirt_note;
|
||||
}
|
||||
public function get_uk_school_sc_id() {
|
||||
return $this->user_school_sc_id;
|
||||
}
|
||||
public function get_uk_school_name() {
|
||||
global $sql;
|
||||
if ($this->user_school_sc_id) return $sql->single_variable('select sc_name from school where sc_id = ' . $this->user_school_sc_id);
|
||||
else return null;
|
||||
}
|
||||
public function get_uk_school_district() {
|
||||
return $this->user_school_district;
|
||||
}
|
||||
public function get_uk_school_city_scc_id() {
|
||||
return $this->user_school_city_scc_id;
|
||||
}
|
||||
public function get_uk_school_city() {
|
||||
global $sql;
|
||||
if ($this->user_school_city_scc_id) return $sql->single_variable('select scc_city from school_city where scc_id = ' . $this->user_school_city_scc_id);
|
||||
else return null;
|
||||
}
|
||||
public function get_uk_parent_1() {
|
||||
return $this->user_parent_1;
|
||||
}
|
||||
public function get_uk_parent_2() {
|
||||
return $this->user_parent_2;
|
||||
}
|
||||
public function get_uk_region_reg_id() {
|
||||
return $this->user_region;
|
||||
}
|
||||
public function get_uk_region_name() {
|
||||
global $sql;
|
||||
if ($this->user_region) return $sql->single_variable('select reg_name from region where reg_id = ' . $this->user_region);
|
||||
else return null;
|
||||
}
|
||||
public function get_uk_contact() {
|
||||
return $this->user_contact;
|
||||
}
|
||||
public function get_uk_other() {
|
||||
return $this->user_other;
|
||||
}
|
||||
|
||||
|
||||
public function get_uk_presence($_training_id) {
|
||||
global $sql;
|
||||
return $sql->num_of_rows('select * from presence where pr_user_kid_uk_id = ' . $this->get_uk_id() . ' AND pr_training_tr_id = ' . $_training_id);
|
||||
}
|
||||
|
||||
public function get_uk_presence_on_previous_trainings($_trainigs) {
|
||||
//az előző edzések ID-ját kapja paraméterül
|
||||
//megadja, hogy hányszor volt a gyerek
|
||||
global $sql;
|
||||
|
||||
return $sql->single_variable("SELECT count(*) FROM presence WHERE pr_training_tr_id IN (" . implode(',', $_trainigs) . ") AND pr_user_kid_uk_id = " . $this->get_uk_id() . ";");
|
||||
}
|
||||
|
||||
public function set_uk_gender($_gender) {
|
||||
$this->user_gender = $_gender;
|
||||
}
|
||||
@@ -153,6 +221,22 @@ class user_kid extends user_parent {
|
||||
public function get_uk_address() {
|
||||
return $this->user_address;
|
||||
}
|
||||
public function is_logged_in() {
|
||||
//leellenőrzi cookie alapján h be vagyunk-e jelentkezve
|
||||
//JAVÍTVA: adja vissza az adattag igazságértékét
|
||||
return $this->logged_in;
|
||||
}
|
||||
public function set_login($_login) {
|
||||
//bool-t kap paraméterül
|
||||
$this->logged_in = $_login;
|
||||
}
|
||||
|
||||
public function update_login_time($_uk_id = null) {
|
||||
global $sql;
|
||||
//az adott user_id-n updateli a login_time-ot
|
||||
$sql->update_table('user_kid', array('uk_last_login' => date('Y-m-d')), array('uk_id' => (empty($_uk_id)?$this->get_uk_id():$_uk_id)));
|
||||
}
|
||||
|
||||
public function set_user_data_by_id($_uk_id) {
|
||||
global $sql, $user;
|
||||
$user_data_assoc_array = $sql->assoc_array("select * from user_kid where uk_id = " . $_uk_id);
|
||||
@@ -161,7 +245,7 @@ class user_kid extends user_parent {
|
||||
$function_name = "set_" . $field;
|
||||
$this->$function_name($value); //alapadatok beállítása
|
||||
//$this->set_ua_type(2); //kid típus beállítása
|
||||
//$this->set_login(true);
|
||||
$this->set_login(true);
|
||||
}
|
||||
}
|
||||
public static function add_new_parent($_parent_name, $_email, $_facebook, $_phone) {
|
||||
@@ -212,6 +296,22 @@ class user_kid extends user_parent {
|
||||
if (isset($_user_value_array['parent_2_email'])) unset($_user_value_array['parent_2_email']);
|
||||
if (isset($_user_value_array['parent_2_facebook'])) unset($_user_value_array['parent_2_facebook']);
|
||||
if (isset($_user_value_array['parent_2_phone'])) unset($_user_value_array['parent_2_phone']);
|
||||
|
||||
//date handler
|
||||
if (!isset($_user_value_array['uk_first_training']) || $_user_value_array['uk_first_training'] == "") {
|
||||
$_user_value_array['uk_first_training'] = 'null';
|
||||
}
|
||||
if (!isset($_user_value_array['uk_birth_date']) || $_user_value_array['uk_birth_date'] == "") {
|
||||
$_user_value_array['uk_birth_date'] = 'null';
|
||||
}
|
||||
if (!isset($_user_value_array['uk_birth_year']) || $_user_value_array['uk_birth_year'] == "") {
|
||||
$_user_value_array['uk_birth_year'] = 'null';
|
||||
}
|
||||
|
||||
foreach ($_user_value_array as $index => $value) {
|
||||
if ($value == "") $_user_value_array[$index] = 'null';
|
||||
}
|
||||
|
||||
return $sql->insert_into('user_kid', $_user_value_array);
|
||||
}
|
||||
public static function update_user($_user_value_array, $_user_id) {
|
||||
@@ -243,6 +343,29 @@ class user_kid extends user_parent {
|
||||
if (isset($_user_value_array['parent_2_email'])) unset($_user_value_array['parent_2_email']);
|
||||
if (isset($_user_value_array['parent_2_facebook'])) unset($_user_value_array['parent_2_facebook']);
|
||||
if (isset($_user_value_array['parent_2_phone'])) unset($_user_value_array['parent_2_phone']);
|
||||
|
||||
//SCHOOL HANDLER
|
||||
if (isset($_user_value_array['add_school']) && $_user_value_array['add_school'] != "") {
|
||||
$new_school_id = $sql->insert_into('school', array('sc_name' => $_user_value_array['add_school']));
|
||||
$_user_value_array['uk_school_sc_id'] = $new_school_id;
|
||||
}
|
||||
unset($_user_value_array['add_school']);
|
||||
|
||||
//date handler
|
||||
if (!isset($_user_value_array['uk_first_training']) || $_user_value_array['uk_first_training'] == "") {
|
||||
$_user_value_array['uk_first_training'] = 'null';
|
||||
}
|
||||
if (!isset($_user_value_array['uk_birth_date']) || $_user_value_array['uk_birth_date'] == "") {
|
||||
$_user_value_array['uk_birth_date'] = 'null';
|
||||
}
|
||||
if (!isset($_user_value_array['uk_birth_year']) || $_user_value_array['uk_birth_year'] == "") {
|
||||
$_user_value_array['uk_birth_year'] = 'null';
|
||||
}
|
||||
|
||||
foreach ($_user_value_array as $index => $value) {
|
||||
if ($value == "") $_user_value_array[$index] = 'null';
|
||||
}
|
||||
|
||||
//ha nincs bejelölve h aktív akkor nem kapja meg ezt az értéket, manuálisan kell beállítani
|
||||
if (!isset($_user_value_array['uk_is_active'])) $_user_value_array['uk_is_active'] = 0;
|
||||
$sql->update_table('user_kid', $_user_value_array, array('uk_id' => $_user_id));
|
||||
|
||||
@@ -17,6 +17,7 @@ class user_parent {
|
||||
private $up_email;
|
||||
private $up_phone;
|
||||
private $up_facebook;
|
||||
private $logged_in;
|
||||
|
||||
|
||||
public function set_up_id($_id) {
|
||||
@@ -75,6 +76,11 @@ class user_parent {
|
||||
return $this->up_facebook;
|
||||
}
|
||||
|
||||
public function set_login($_login) {
|
||||
//bool-t kap paraméterül
|
||||
$this->logged_in = $_login;
|
||||
}
|
||||
|
||||
public function set_user_data_by_id($_uk_id) {
|
||||
global $sql, $user;
|
||||
$user_data_assoc_array = $sql->assoc_array("select * from user_parent where up_id = " . $_uk_id);
|
||||
@@ -82,6 +88,7 @@ class user_parent {
|
||||
foreach ($user_data_array as $field => $value) {
|
||||
$function_name = "set_" . $field;
|
||||
$this->$function_name($value); //alapadatok beállítása
|
||||
$this->set_login(true);
|
||||
//$this->set_ua_type(3); //parent típus beállítása
|
||||
}
|
||||
|
||||
|
||||
@@ -40,6 +40,10 @@ main #main_content {
|
||||
|
||||
}
|
||||
|
||||
.italic {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
a:link {
|
||||
text-decoration: none;
|
||||
}
|
||||
@@ -57,7 +61,7 @@ td.create a {
|
||||
|
||||
text-align: left;
|
||||
padding: 10px 0px 10px 10px;
|
||||
margin: 5px;
|
||||
margin: 5px 5px 5px 0px;
|
||||
background-color: #e2edff;
|
||||
cursor: pointer;
|
||||
|
||||
@@ -73,7 +77,7 @@ td.create a {
|
||||
width: 100%;
|
||||
text-align: left;
|
||||
padding: 10px 0px 10px 10px;
|
||||
margin: 5px;
|
||||
margin: 5px 5px 5px 0px;
|
||||
background-color: #1eea0b;
|
||||
cursor: pointer;
|
||||
border-left: 2px solid #000;
|
||||
@@ -138,9 +142,14 @@ td.create a {
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
.list .width70 {
|
||||
width: 70%;
|
||||
}
|
||||
|
||||
@media (min-width: 680px) {
|
||||
|
||||
|
||||
|
||||
main #main_content {
|
||||
width: 80%;
|
||||
margin: 0px auto;
|
||||
@@ -160,4 +169,6 @@ main #main_content {
|
||||
width: 40%;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
20
_css/default_view.css
Normal file
20
_css/default_view.css
Normal file
@@ -0,0 +1,20 @@
|
||||
body {
|
||||
background-color: #002E4C;
|
||||
}
|
||||
|
||||
main {
|
||||
background-color: #002E4C;
|
||||
}
|
||||
|
||||
ul.topnav {
|
||||
background-color: #FD9500;
|
||||
}
|
||||
|
||||
ul.topnav li a {
|
||||
color: #002E4C;
|
||||
}
|
||||
|
||||
ul.topnav li a:hover {
|
||||
background-color: #f77604;
|
||||
opacity: 0.6;
|
||||
}
|
||||
@@ -17,6 +17,11 @@ legend {
|
||||
float: left;
|
||||
padding-right: 10px;
|
||||
}
|
||||
|
||||
.list_item label {
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
form > div > div,
|
||||
form > div > fieldset > div {
|
||||
width: 70%;
|
||||
@@ -53,11 +58,21 @@ select {
|
||||
-moz-border-radius: 5px;
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
textarea {
|
||||
width: 75%;
|
||||
border: 1px solid #121212;
|
||||
-webkit-border-radius: 5px;
|
||||
-moz-border-radius: 5px;
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
input[type=text]:focus,
|
||||
input[type=email]:focus,
|
||||
input[type=url]:focus,
|
||||
input[type=password]:focus,
|
||||
textarea:focus,
|
||||
textarea:hover,
|
||||
input[type=text]:hover,
|
||||
input[type=email]:hover {
|
||||
outline: 0;
|
||||
@@ -71,6 +86,21 @@ input[type=email]:hover {
|
||||
outline: 0 none;
|
||||
}
|
||||
|
||||
.coach {
|
||||
float: left;
|
||||
margin: 3px 10px 0px 0px;
|
||||
}
|
||||
|
||||
.coach_type {
|
||||
margin: 3px 0px 0px 0px;
|
||||
|
||||
}
|
||||
|
||||
.coach_type_text {
|
||||
position: relative;
|
||||
top: -3px;
|
||||
}
|
||||
|
||||
@media (max-width: 600px) {
|
||||
form > div {
|
||||
margin: 0 0 15px 0;
|
||||
|
||||
29
_css/nav.css
29
_css/nav.css
@@ -33,8 +33,27 @@ ul.topnav li a:hover {background-color: #555;}
|
||||
|
||||
ul.topnav li.icon {display: none;}
|
||||
|
||||
ul.topnav li.logout {float:right;}
|
||||
|
||||
ul.topnav li.logout img {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
|
||||
margin-left: 5px;
|
||||
}
|
||||
|
||||
li.logout span.name {
|
||||
float: left;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
li.logout_mobile {
|
||||
display: none;
|
||||
}
|
||||
|
||||
@media screen and (max-width:680px) {
|
||||
ul.topnav li {display: none;}
|
||||
ul.topnav li.login {display: inline-block;}
|
||||
ul.topnav li.icon {
|
||||
float: left;
|
||||
display: inline-block;
|
||||
@@ -55,4 +74,14 @@ ul.topnav.responsive li a {
|
||||
display: block;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
li.logout_mobile {
|
||||
display: block;
|
||||
}
|
||||
ul.topnav li.logout {
|
||||
display: none;
|
||||
}
|
||||
|
||||
|
||||
ul.topnav li.logout {float:none;}
|
||||
}
|
||||
@@ -16,7 +16,11 @@ switch ($this->get_id()) {
|
||||
//SCHOOL CITY ARRAY
|
||||
$school_city_query = "SELECT * FROM school_city;";
|
||||
$school_city_assoc_array = $sql->assoc_array($school_city_query);
|
||||
//REGION ARRAY
|
||||
$region_query = "SELECT * FROM region;";
|
||||
$region_assoc_array = $sql->assoc_array($region_query);
|
||||
|
||||
$smarty->assign('region_assoc_array', $region_assoc_array);
|
||||
$smarty->assign('shirt_size_assoc_array', $shirt_size_assoc_array);
|
||||
$smarty->assign('school_assoc_array', $school_assoc_array);
|
||||
$smarty->assign('school_city_assoc_array', $school_city_assoc_array);
|
||||
@@ -67,6 +71,10 @@ switch ($this->get_id()) {
|
||||
# CITY létrehozása
|
||||
$smarty->display('city_create.tpl');
|
||||
break;
|
||||
case 'region':
|
||||
# CITY létrehozása
|
||||
$smarty->display('region_create.tpl');
|
||||
break;
|
||||
default:
|
||||
# code...
|
||||
break;
|
||||
|
||||
10
_include/include_delete_region.php
Normal file
10
_include/include_delete_region.php
Normal file
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
if ($this->is_id()) {
|
||||
$delete_query = "DELETE FROM region WHERE reg_id = " . $this->get_id() . ";";
|
||||
$sql->execute_query($delete_query);
|
||||
header("Location: /admin/regions");
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
32
_include/include_lock_training.php
Normal file
32
_include/include_lock_training.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
|
||||
# EDZÉS ZÁROLÁS
|
||||
|
||||
if ($this->is_id()) {
|
||||
|
||||
# EDZÉS ZÁROLÁS/FELOLDÁS
|
||||
|
||||
$locked = $sql->single_variable('select tr_locked from training where tr_id =' . $this->get_id());
|
||||
$sql->update_table('training', array(
|
||||
'tr_locked' => ($locked?0:1)
|
||||
),
|
||||
array(
|
||||
'tr_id' => $this->get_id()
|
||||
)
|
||||
);
|
||||
header('Location: /admin/presence/' . $this->get_id());
|
||||
}
|
||||
|
||||
else {
|
||||
|
||||
# NEM LEHET
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
?>
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
setcookie('badminton_coach_user', 'null', time()-60*60*72, '/');
|
||||
unset($_COOKIE['badminton_coach_user']);
|
||||
setcookie('badminton_'.$from.'_user', 'null', time()-60*60*72, '/');
|
||||
unset($_COOKIE['badminton_'.$from.'_user']);
|
||||
header('Location: http://' . $_SERVER['HTTP_HOST']);
|
||||
|
||||
|
||||
|
||||
@@ -19,9 +19,13 @@ if ($this->is_id()) {
|
||||
//SCHOOL CITY ARRAY
|
||||
$school_city_query = "SELECT * FROM school_city;";
|
||||
$school_city_assoc_array = $sql->assoc_array($school_city_query);
|
||||
//REGION ARRAY
|
||||
$region_query = "SELECT * FROM region;";
|
||||
$region_assoc_array = $sql->assoc_array($region_query);
|
||||
//smarty thingz
|
||||
$smarty->assign('school_assoc_array', $school_assoc_array);
|
||||
$smarty->assign('school_city_assoc_array', $school_city_assoc_array);
|
||||
$smarty->assign('region_assoc_array', $region_assoc_array);
|
||||
$smarty->assign('user_data', $user_data_assoc_array[0]);
|
||||
$smarty->assign('shirt_size_assoc_array', $shirt_size_assoc_array);
|
||||
$smarty->assign('parent_assoc_array', $parent_assoc_array);
|
||||
|
||||
31
_include/include_overview.php
Normal file
31
_include/include_overview.php
Normal file
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
|
||||
if ($this->is_id()) {
|
||||
# EMPTY
|
||||
}
|
||||
else {
|
||||
# ADATOK + EDZÉS LISTA
|
||||
//user_loginból veszi az adatokat
|
||||
|
||||
//szülők átadása
|
||||
if ($user->get_uk_parent_1()) {
|
||||
$parent_1_query = "SELECT * FROM user_parent WHERE up_id = " . $user->get_uk_parent_1();
|
||||
$parent_1_assoc_array = $sql->assoc_array($parent_1_query);
|
||||
$smarty->assign('parent_1', $parent_1_assoc_array[0]);
|
||||
}
|
||||
|
||||
if ($user->get_uk_parent_2()) {
|
||||
$parent_2_query = "SELECT * FROM user_parent WHERE up_id = " . $user->get_uk_parent_2();
|
||||
$parent_2_assoc_array = $sql->assoc_array($parent_2_query);
|
||||
$smarty->assign('parent_2', $parent_2_assoc_array[0]);
|
||||
}
|
||||
|
||||
|
||||
//todo: object
|
||||
|
||||
$smarty->display('user_overview.tpl');
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -42,12 +42,14 @@ if ($this->is_id()) {
|
||||
$presence_query = "
|
||||
SELECT `pr_user_kid_uk_id` , count( `pr_id` ) AS 'presence'
|
||||
FROM `presence`
|
||||
JOIN user_kid ON uk_id = pr_user_kid_uk_id
|
||||
WHERE `pr_training_tr_id`
|
||||
IN ( " . implode(',', $tr_ids) . " )
|
||||
GROUP BY `pr_user_kid_uk_id`
|
||||
ORDER BY count( `pr_id` ) DESC;
|
||||
ORDER BY count( `pr_id` ) DESC, uk_name ASC;
|
||||
";
|
||||
//echo $presence_query;
|
||||
//echo $presence_query;
|
||||
if (!empty($tr_ids)) {
|
||||
$presence_assoc_array = $sql->assoc_array($presence_query);
|
||||
foreach ($presence_assoc_array as $presence) {
|
||||
@@ -76,7 +78,7 @@ if ($this->is_id()) {
|
||||
|
||||
|
||||
//TRAINING-COACH ARRAY
|
||||
$trc_query = "SELECT * FROM training_coach WHERE trc_training_tr_id = " . $this->get_id();
|
||||
$trc_query = "SELECT * FROM training_coach WHERE trc_helper = 0 AND trc_training_tr_id = " . $this->get_id();
|
||||
$trc_coaches = array();
|
||||
$trc_assoc_array = $sql->assoc_array($trc_query);
|
||||
foreach ($trc_assoc_array as $trc_data) {
|
||||
@@ -85,17 +87,50 @@ if ($this->is_id()) {
|
||||
$trc_coaches[] = $new_coach;
|
||||
}
|
||||
|
||||
//TRAINING-HELPER ARRAY
|
||||
$trc_query = "SELECT * FROM training_coach WHERE trc_helper = 1 AND trc_training_tr_id = " . $this->get_id();
|
||||
$trc_helpers = array();
|
||||
$trc_assoc_array = $sql->assoc_array($trc_query);
|
||||
foreach ($trc_assoc_array as $trc_data) {
|
||||
$new_coach = new user();
|
||||
$new_coach->set_user_data_by_id($trc_data['trc_coach_uc_id']);
|
||||
$trc_helpers[] = $new_coach;
|
||||
}
|
||||
|
||||
//var_dump($users);
|
||||
|
||||
//headcount
|
||||
$headcount_query = "SELECT * FROM presence WHERE pr_training_tr_id = " . $this->get_id() . ";";
|
||||
$headcount = $sql->num_of_rows($headcount_query);
|
||||
|
||||
|
||||
//csak lista
|
||||
$s_users = array();
|
||||
$presence_query = "
|
||||
SELECT `pr_user_kid_uk_id`
|
||||
FROM `presence`
|
||||
JOIN user_kid ON uk_id = pr_user_kid_uk_id
|
||||
WHERE `pr_training_tr_id` = ".$this->get_id()."
|
||||
ORDER BY uk_name ASC;
|
||||
";
|
||||
|
||||
$presence_assoc_array = $sql->assoc_array($presence_query);
|
||||
foreach ($presence_assoc_array as $presence) {
|
||||
$s_user = new user_kid();
|
||||
$s_user->set_user_data_by_id($presence['pr_user_kid_uk_id']);
|
||||
$s_users[] = $s_user;
|
||||
}
|
||||
|
||||
|
||||
|
||||
$smarty->assign('training', $training);
|
||||
$smarty->assign('trainings', $tr_ids);
|
||||
$smarty->assign('headcount', $headcount);
|
||||
$smarty->assign("trc_coaches", $trc_coaches);
|
||||
$smarty->assign("trc_helpers", $trc_helpers);
|
||||
$smarty->assign('presence_assoc_array', $presence_assoc_array);
|
||||
$smarty->assign('users', $users);
|
||||
$smarty->assign('sorted_users', $s_users);
|
||||
$smarty->assign('rest_users', $rest_users);
|
||||
$smarty->assign('tr_id', $this->get_id());
|
||||
|
||||
|
||||
30
_include/include_regions.php
Normal file
30
_include/include_regions.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
|
||||
# HA NINCS ID, AKKOR RÉGIÓLISTA
|
||||
|
||||
if ($this->is_id()) {
|
||||
|
||||
# RÉGIÓ SZERKESZTÉSE
|
||||
|
||||
|
||||
}
|
||||
|
||||
else {
|
||||
|
||||
# RÉGIÓ LISTA
|
||||
|
||||
$reg_query = "SELECT * FROM region ORDER BY reg_name ASC";
|
||||
$reg_assoc_array = $sql->assoc_array($reg_query);
|
||||
|
||||
$smarty->assign('reg_assoc_array',$reg_assoc_array);
|
||||
$smarty->display('region_list.tpl');
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
?>
|
||||
55
common.php
55
common.php
@@ -30,18 +30,28 @@ spl_autoload_register(function ($class_name) {
|
||||
});
|
||||
|
||||
$months = array(
|
||||
1 => 'január',
|
||||
2 => 'február',
|
||||
3 => 'március',
|
||||
4 => 'április',
|
||||
5 => 'május',
|
||||
6 => 'június',
|
||||
7 => 'július',
|
||||
8 => 'augusztus',
|
||||
9 => 'szeptember',
|
||||
10 => 'október',
|
||||
11 => 'november',
|
||||
12 => 'december',
|
||||
'01' => 'január',
|
||||
'02' => 'február',
|
||||
'03' => 'március',
|
||||
'04' => 'április',
|
||||
'05' => 'május',
|
||||
'06' => 'június',
|
||||
'07' => 'július',
|
||||
'08' => 'augusztus',
|
||||
'09' => 'szeptember',
|
||||
'10' => 'október',
|
||||
'11' => 'november',
|
||||
'12' => 'december',
|
||||
);
|
||||
|
||||
$days = array(
|
||||
'0' => 'v',
|
||||
'1' => 'h',
|
||||
'2' => 'k',
|
||||
'3' => 'sze',
|
||||
'4' => 'cs',
|
||||
'5' => 'p',
|
||||
'6' => 'szo',
|
||||
);
|
||||
|
||||
//SMARTY BEÁLLÍTÁSA
|
||||
@@ -57,23 +67,42 @@ $smarty->setCacheDir('template/cache');
|
||||
$smarty->setConfigDir('template/configs');
|
||||
|
||||
$smarty->assign('months', $months);
|
||||
$smarty->assign('days', $days);
|
||||
|
||||
//SQL KAPCSOLAT BEÁLLÍTÁSA
|
||||
if ($_SERVER['HTTP_HOST'] == 'badmintoncoach.hu') $sql = new sql('localhost','root','','badminton_coach');
|
||||
else $sql = new sql('localhost','tollashodos','uprRscU8bGpJ','tollashodos');
|
||||
|
||||
//var_dump($sql);
|
||||
$logout = false;
|
||||
|
||||
//echo $_GET['page'];
|
||||
|
||||
$logout = false; //meg kell-e jeleníteni a kijelentkezés gombot
|
||||
|
||||
if ($_GET['page'] == 'admin') {
|
||||
if (isset($_COOKIE['badminton_coach_user'])) {
|
||||
$user = new user();
|
||||
$user->set_user_data_by_id($_COOKIE['badminton_coach_user']);
|
||||
$logout = true;
|
||||
$smarty->assign('user_login', $user);
|
||||
//var_dump($user);
|
||||
}
|
||||
}
|
||||
elseif ($_GET['page'] == 'view') {
|
||||
if (isset($_COOKIE['badminton_parent_user'])) {
|
||||
$user = new user_kid();
|
||||
$user->set_user_data_by_id($_COOKIE['badminton_parent_user']);
|
||||
$logout = true;
|
||||
$smarty->assign('user_login', $user);
|
||||
//var_dump($user);
|
||||
}
|
||||
}
|
||||
|
||||
$smarty->assign('can_logout', $logout);
|
||||
|
||||
//$page = new page();
|
||||
|
||||
|
||||
|
||||
|
||||
?>
|
||||
@@ -11,30 +11,31 @@ if (isset($_POST['action'])) {
|
||||
USER TYPES: 1 - coach, 2 - kid, 3 - parent
|
||||
*/
|
||||
$login = new login();
|
||||
/*
|
||||
|
||||
$user_coach_id = $login->check_coach_login($_POST['user_name'], $_POST['user_password']);
|
||||
$user_kid_id = $login->check_kid_login($_POST['user_name'], $_POST['user_password']);
|
||||
if ($user_coach_id) {
|
||||
//sikeres bejelentkezés
|
||||
$login->login_user($user_coach_id, 'badminton_coach_user');
|
||||
$login->login_user($user_coach_id, 'badminton_coach_user', 1);
|
||||
header("Location: " . $actual_link);
|
||||
}
|
||||
elseif ($user_kid_id) {
|
||||
//sikeres bejelentkezés
|
||||
$login->login_user($user_kid_id, 'badminton_parent_user');
|
||||
$login->login_user($user_kid_id, 'badminton_parent_user', 2);
|
||||
header("Location: " . $actual_link);
|
||||
}
|
||||
else {
|
||||
die($user_coach_id);
|
||||
//die($user_coach_id);
|
||||
//sikertelen bejelentkezés
|
||||
}
|
||||
*/
|
||||
/*
|
||||
$user_id = $login->check_login($_POST['user_name'], $_POST['user_password']);
|
||||
if ($user_id) {
|
||||
//sikeres bejelentkezés
|
||||
$login->login_user($user_id, $_POST['user_type']);
|
||||
header("Location: " . $actual_link);
|
||||
}
|
||||
*/
|
||||
break;
|
||||
|
||||
case 'user_data_edit':
|
||||
@@ -116,7 +117,7 @@ if (isset($_POST['action'])) {
|
||||
|
||||
break;
|
||||
case 'training_type_update':
|
||||
# edzés típus lista updatelése AB-ba
|
||||
# edzés típus lista updatelése ABí-ba
|
||||
unset($_POST['action']);
|
||||
foreach ($_POST as $key => $value) {
|
||||
$key_parts = explode('_', $key);
|
||||
@@ -134,10 +135,7 @@ if (isset($_POST['action'])) {
|
||||
$psw = "null";
|
||||
}
|
||||
|
||||
if (!isset($_POST['ua_helper']) || empty($_POST['ua_helper'])) {
|
||||
$_POST['ua_helper'] = 0;
|
||||
}
|
||||
user::create_user($_POST['ua_name'], $_POST['ua_helper'], $psw);
|
||||
user::create_user($_POST['ua_name'], $psw);
|
||||
header("Location: /admin/coaches");
|
||||
break;
|
||||
case 'coach_data_edit':
|
||||
@@ -151,18 +149,14 @@ if (isset($_POST['action'])) {
|
||||
else {
|
||||
$psw = "null";
|
||||
}
|
||||
if (!isset($_POST['ua_helper']) || empty($_POST['ua_helper'])) {
|
||||
$_POST['ua_helper'] = 0;
|
||||
}
|
||||
user::update_user($_POST['ua_name'], $_POST['ua_helper'], $psw, $_POST['ua_id']);
|
||||
user::update_user($_POST['ua_name'], $psw, $_POST['ua_id']);
|
||||
header("Location: /admin/coaches");
|
||||
break;
|
||||
case 'shirt_create':
|
||||
# póló létrehozása
|
||||
//todo: shirt object
|
||||
$sql->insert_into('shirt', array(
|
||||
'shirt_name' => $_POST['shirt_name'],
|
||||
'shirt_year' => (!empty($_POST['shirt_year'])?$_POST['shirt_year']:'null')
|
||||
'shirt_name' => $_POST['shirt_name']
|
||||
)
|
||||
);
|
||||
header("Location: /admin/shirts");
|
||||
@@ -172,7 +166,6 @@ if (isset($_POST['action'])) {
|
||||
//todo: shirt object
|
||||
$sql->update_table('shirt', array(
|
||||
'shirt_name' => $_POST['shirt_name'],
|
||||
'shirt_year' => (!empty($_POST['shirt_year'])?$_POST['shirt_year']:'null')
|
||||
),
|
||||
array(
|
||||
'shirt_id' => $_POST['shirt_id']
|
||||
@@ -199,6 +192,25 @@ if (isset($_POST['action'])) {
|
||||
header("Location: /admin/cities");
|
||||
}
|
||||
break;
|
||||
case 'region_create':
|
||||
# körzet létrehozása
|
||||
//todo: körzet object
|
||||
$sql->insert_into('region', array(
|
||||
'reg_name' => $_POST['reg_name'],
|
||||
)
|
||||
);
|
||||
header("Location: /admin/regions");
|
||||
break;
|
||||
case 'region_update':
|
||||
# region lista updatelése AB-ba
|
||||
unset($_POST['action']);
|
||||
foreach ($_POST as $key => $value) {
|
||||
$key_parts = explode('_', $key);
|
||||
$reg_id = $key_parts[1];
|
||||
$sql->update_table('region', array('reg_name' => $value), array('reg_id' => $reg_id));
|
||||
header("Location: /admin/regions");
|
||||
}
|
||||
break;
|
||||
default:
|
||||
# code...
|
||||
break;
|
||||
|
||||
27
index.php
27
index.php
@@ -2,8 +2,10 @@
|
||||
|
||||
<?php
|
||||
|
||||
setlocale(LC_ALL, 'hu_HU.utf8');
|
||||
setlocale(LC_ALL, 'hu_HU');
|
||||
//setlocale(LC_ALL,'hungarian');
|
||||
|
||||
//echo date('w');
|
||||
|
||||
?>
|
||||
|
||||
@@ -21,19 +23,26 @@ setlocale(LC_ALL, 'hu_HU.utf8');
|
||||
<meta charset="utf-8">
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="/_css/default.css">
|
||||
<link rel="stylesheet" type="text/css" href="/_css/nav.css">
|
||||
<link rel="stylesheet" type="text/css" href="/_css/form.css">
|
||||
<link rel="stylesheet" type="text/css" href="/_css/button.css">
|
||||
<link rel="stylesheet" type="text/css" href="/_css/addbutton.css">
|
||||
|
||||
<title>Badminton Coach v 0.1</title>
|
||||
<?php
|
||||
require('common.php');
|
||||
require('event_handler.php');
|
||||
$page = new page();
|
||||
|
||||
echo '<link rel="stylesheet" type="text/css" href="/_css/default.css">';
|
||||
?>
|
||||
<link rel="stylesheet" type="text/css" href="/_css/nav.css">
|
||||
<link rel="stylesheet" type="text/css" href="/_css/form.css">
|
||||
<link rel="stylesheet" type="text/css" href="/_css/button.css">
|
||||
<link rel="stylesheet" type="text/css" href="/_css/addbutton.css">
|
||||
<?php
|
||||
if ($page->is_page() && $page->get_page() == "view") {
|
||||
echo '<link rel="stylesheet" type="text/css" href="/_css/default_view.css">';
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
|
||||
<title>Badminton Coach v 0.1</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
197
php_errors.log
197
php_errors.log
@@ -1,197 +0,0 @@
|
||||
[22-Nov-2016 18:51:00 Europe/Budapest] PHP Warning: require(../Smarty/Smarty.class.php): failed to open stream: No such file or directory in /home/tollashodos/public_html/common.php on line 33
|
||||
[22-Nov-2016 18:51:00 Europe/Budapest] PHP Fatal error: require(): Failed opening required '../Smarty/Smarty.class.php' (include_path='.:/usr/share/php:/usr/share/pear') in /home/tollashodos/public_html/common.php on line 33
|
||||
[22-Nov-2016 18:51:26 Europe/Budapest] PHP Warning: require(../Smarty/Smarty.class.php): failed to open stream: No such file or directory in /home/tollashodos/public_html/common.php on line 33
|
||||
[22-Nov-2016 18:51:26 Europe/Budapest] PHP Fatal error: require(): Failed opening required '../Smarty/Smarty.class.php' (include_path='.:/usr/share/php:/usr/share/pear') in /home/tollashodos/public_html/common.php on line 33
|
||||
[22-Nov-2016 18:51:47 Europe/Budapest] PHP Warning: require(../Smarty/Smarty.class.php): failed to open stream: No such file or directory in /home/tollashodos/public_html/common.php on line 33
|
||||
[22-Nov-2016 18:51:47 Europe/Budapest] PHP Fatal error: require(): Failed opening required '../Smarty/Smarty.class.php' (include_path='.:/usr/share/php:/usr/share/pear') in /home/tollashodos/public_html/common.php on line 33
|
||||
[22-Nov-2016 18:52:48 Europe/Budapest] PHP Warning: require(../Smarty/Smarty.class.php): failed to open stream: No such file or directory in /home/tollashodos/public_html/common.php on line 33
|
||||
[22-Nov-2016 18:52:48 Europe/Budapest] PHP Fatal error: require(): Failed opening required '../Smarty/Smarty.class.php' (include_path='.:/usr/share/php:/usr/share/pear') in /home/tollashodos/public_html/common.php on line 33
|
||||
[22-Nov-2016 18:54:45 Europe/Budapest] PHP Warning: require(../Smarty/Smarty.class.php): failed to open stream: No such file or directory in /home/tollashodos/public_html/common.php on line 33
|
||||
[22-Nov-2016 18:54:45 Europe/Budapest] PHP Fatal error: require(): Failed opening required '../Smarty/Smarty.class.php' (include_path='.:/usr/share/php:/usr/share/pear') in /home/tollashodos/public_html/common.php on line 33
|
||||
[22-Nov-2016 18:54:53 Europe/Budapest] PHP Warning: mysqli::mysqli(): (HY000/1045): Access denied for user 'root'@'localhost' (using password: NO) in /home/tollashodos/public_html/_class/class_sql.php on line 14
|
||||
[22-Nov-2016 18:54:53 Europe/Budapest] PHP Warning: mysqli::set_charset(): Couldn't fetch sql in /home/tollashodos/public_html/_class/class_sql.php on line 15
|
||||
[22-Nov-2016 18:54:57 Europe/Budapest] PHP Warning: mysqli::mysqli(): (HY000/1045): Access denied for user 'root'@'localhost' (using password: NO) in /home/tollashodos/public_html/_class/class_sql.php on line 14
|
||||
[22-Nov-2016 18:54:57 Europe/Budapest] PHP Warning: mysqli::set_charset(): Couldn't fetch sql in /home/tollashodos/public_html/_class/class_sql.php on line 15
|
||||
[22-Nov-2016 19:06:50 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 46
|
||||
[22-Nov-2016 19:06:50 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::add_new_parent() should not be called statically in /home/tollashodos/public_html/_class/class_user_kid.php on line 243
|
||||
[22-Nov-2016 19:06:50 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::add_new_parent() should not be called statically in /home/tollashodos/public_html/_class/class_user_kid.php on line 256
|
||||
[22-Nov-2016 19:10:54 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 46
|
||||
[22-Nov-2016 19:10:54 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::add_new_parent() should not be called statically in /home/tollashodos/public_html/_class/class_user_kid.php on line 243
|
||||
[22-Nov-2016 19:10:54 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::add_new_parent() should not be called statically in /home/tollashodos/public_html/_class/class_user_kid.php on line 256
|
||||
[22-Nov-2016 19:12:09 Europe/Budapest] PHP Fatal error: Call to undefined function php_info() in /home/tollashodos/public_html/php_info.php on line 2
|
||||
[22-Nov-2016 19:15:32 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 46
|
||||
[22-Nov-2016 19:18:27 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 46
|
||||
[22-Nov-2016 19:21:37 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 46
|
||||
[22-Nov-2016 19:21:37 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::add_new_parent() should not be called statically in /home/tollashodos/public_html/_class/class_user_kid.php on line 243
|
||||
[22-Nov-2016 19:21:37 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::add_new_parent() should not be called statically in /home/tollashodos/public_html/_class/class_user_kid.php on line 256
|
||||
[22-Nov-2016 19:22:04 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::update_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 33
|
||||
[22-Nov-2016 19:22:07 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::update_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 33
|
||||
[22-Nov-2016 19:24:29 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 46
|
||||
[22-Nov-2016 19:24:29 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::add_new_parent() should not be called statically in /home/tollashodos/public_html/_class/class_user_kid.php on line 243
|
||||
[22-Nov-2016 19:24:29 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::add_new_parent() should not be called statically in /home/tollashodos/public_html/_class/class_user_kid.php on line 256
|
||||
[22-Nov-2016 19:25:19 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 46
|
||||
[22-Nov-2016 19:25:19 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::add_new_parent() should not be called statically in /home/tollashodos/public_html/_class/class_user_kid.php on line 243
|
||||
[22-Nov-2016 19:25:19 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::add_new_parent() should not be called statically in /home/tollashodos/public_html/_class/class_user_kid.php on line 256
|
||||
[22-Nov-2016 19:27:56 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 46
|
||||
[22-Nov-2016 19:27:56 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::add_new_parent() should not be called statically in /home/tollashodos/public_html/_class/class_user_kid.php on line 243
|
||||
[22-Nov-2016 19:27:56 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::add_new_parent() should not be called statically in /home/tollashodos/public_html/_class/class_user_kid.php on line 256
|
||||
[22-Nov-2016 19:30:09 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 46
|
||||
[22-Nov-2016 19:30:09 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::add_new_parent() should not be called statically in /home/tollashodos/public_html/_class/class_user_kid.php on line 243
|
||||
[22-Nov-2016 19:30:09 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::add_new_parent() should not be called statically in /home/tollashodos/public_html/_class/class_user_kid.php on line 256
|
||||
[22-Nov-2016 19:33:59 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 46
|
||||
[22-Nov-2016 19:34:13 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 46
|
||||
[22-Nov-2016 19:34:56 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 46
|
||||
[22-Nov-2016 19:35:16 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 46
|
||||
[22-Nov-2016 19:38:04 Europe/Budapest] PHP Parse error: syntax error, unexpected '&&' (T_BOOLEAN_AND) in /home/tollashodos/public_html/_class/class_user_kid.php on line 254
|
||||
[22-Nov-2016 19:38:24 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 48
|
||||
[22-Nov-2016 19:38:53 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 48
|
||||
[22-Nov-2016 19:39:08 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 48
|
||||
[22-Nov-2016 19:40:00 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 48
|
||||
[22-Nov-2016 19:42:04 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 48
|
||||
[22-Nov-2016 19:42:23 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 48
|
||||
[22-Nov-2016 19:44:14 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 48
|
||||
[22-Nov-2016 19:45:21 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 48
|
||||
[22-Nov-2016 19:46:20 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::update_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 33
|
||||
[22-Nov-2016 19:46:25 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::update_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 33
|
||||
[22-Nov-2016 19:46:28 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::update_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 33
|
||||
[22-Nov-2016 19:46:32 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::update_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 33
|
||||
[22-Nov-2016 19:46:37 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::update_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 33
|
||||
[22-Nov-2016 19:47:09 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 48
|
||||
[23-Nov-2016 08:46:13 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 48
|
||||
[23-Nov-2016 08:59:00 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 48
|
||||
[23-Nov-2016 08:59:22 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 48
|
||||
[23-Nov-2016 08:59:22 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::add_new_parent() should not be called statically in /home/tollashodos/public_html/_class/class_user_kid.php on line 247
|
||||
[23-Nov-2016 08:59:31 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::update_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 33
|
||||
[23-Nov-2016 10:06:20 Europe/Budapest] PHP Strict Standards: Non-static method training::create_training() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 91
|
||||
[23-Nov-2016 10:10:43 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 48
|
||||
[29-Nov-2016 23:01:16 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 48
|
||||
[29-Nov-2016 23:02:26 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::update_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 33
|
||||
[29-Nov-2016 23:04:27 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 48
|
||||
[29-Nov-2016 23:04:27 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::add_new_parent() should not be called statically in /home/tollashodos/public_html/_class/class_user_kid.php on line 198
|
||||
[29-Nov-2016 23:04:27 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::add_new_parent() should not be called statically in /home/tollashodos/public_html/_class/class_user_kid.php on line 209
|
||||
[29-Nov-2016 23:06:03 Europe/Budapest] PHP Strict Standards: Non-static method training_type::create_training_type() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 99
|
||||
[29-Nov-2016 23:06:54 Europe/Budapest] PHP Strict Standards: Non-static method training::create_training() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 91
|
||||
[29-Nov-2016 23:07:19 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::update_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 33
|
||||
[30-Nov-2016 00:36:08 Europe/Budapest] PHP Notice: Undefined offset: 0 in /home/tollashodos/public_html/_class/class_user.php on line 98
|
||||
[30-Nov-2016 00:36:08 Europe/Budapest] PHP Warning: Invalid argument supplied for foreach() in /home/tollashodos/public_html/_class/class_user.php on line 99
|
||||
[30-Nov-2016 00:36:30 Europe/Budapest] PHP Notice: Undefined offset: 0 in /home/tollashodos/public_html/_class/class_user.php on line 98
|
||||
[30-Nov-2016 00:36:30 Europe/Budapest] PHP Warning: Invalid argument supplied for foreach() in /home/tollashodos/public_html/_class/class_user.php on line 99
|
||||
[30-Nov-2016 00:37:38 Europe/Budapest] PHP Notice: Undefined offset: 0 in /home/tollashodos/public_html/_class/class_user.php on line 98
|
||||
[30-Nov-2016 00:37:38 Europe/Budapest] PHP Warning: Invalid argument supplied for foreach() in /home/tollashodos/public_html/_class/class_user.php on line 99
|
||||
[30-Nov-2016 00:50:51 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::update_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 33
|
||||
[30-Nov-2016 00:50:58 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::update_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 33
|
||||
[30-Nov-2016 00:56:17 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::update_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 33
|
||||
[30-Nov-2016 00:56:21 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::update_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 33
|
||||
[30-Nov-2016 00:59:26 Europe/Budapest] PHP Notice: Undefined variable: _user_id in /home/tollashodos/public_html/_include/include_logout.php on line 3
|
||||
[30-Nov-2016 01:01:49 Europe/Budapest] PHP Notice: Undefined variable: _user_id in /home/tollashodos/public_html/_include/include_logout.php on line 3
|
||||
[30-Nov-2016 06:42:32 Europe/Budapest] PHP Notice: Undefined offset: 0 in /home/tollashodos/public_html/_class/class_user.php on line 98
|
||||
[30-Nov-2016 06:42:32 Europe/Budapest] PHP Warning: Invalid argument supplied for foreach() in /home/tollashodos/public_html/_class/class_user.php on line 99
|
||||
[30-Nov-2016 06:42:56 Europe/Budapest] PHP Notice: Undefined offset: 0 in /home/tollashodos/public_html/_class/class_user.php on line 98
|
||||
[30-Nov-2016 06:42:56 Europe/Budapest] PHP Warning: Invalid argument supplied for foreach() in /home/tollashodos/public_html/_class/class_user.php on line 99
|
||||
[30-Nov-2016 06:44:46 Europe/Budapest] PHP Notice: Undefined variable: _user_id in /home/tollashodos/public_html/_include/include_logout.php on line 3
|
||||
[30-Nov-2016 07:12:00 Europe/Budapest] PHP Notice: Undefined offset: 0 in /home/tollashodos/public_html/_class/class_user.php on line 98
|
||||
[30-Nov-2016 07:12:00 Europe/Budapest] PHP Warning: Invalid argument supplied for foreach() in /home/tollashodos/public_html/_class/class_user.php on line 99
|
||||
[30-Nov-2016 07:12:53 Europe/Budapest] PHP Notice: Undefined offset: 0 in /home/tollashodos/public_html/_class/class_user.php on line 98
|
||||
[30-Nov-2016 07:12:53 Europe/Budapest] PHP Warning: Invalid argument supplied for foreach() in /home/tollashodos/public_html/_class/class_user.php on line 99
|
||||
[30-Nov-2016 07:20:39 Europe/Budapest] PHP Notice: Undefined variable: _user_id in /home/tollashodos/public_html/_include/include_logout.php on line 3
|
||||
[30-Nov-2016 07:22:43 Europe/Budapest] PHP Notice: Undefined variable: _user_id in /home/tollashodos/public_html/_include/include_logout.php on line 3
|
||||
[30-Nov-2016 09:23:21 Europe/Budapest] PHP Notice: Undefined variable: _user_id in /home/tollashodos/public_html/_include/include_logout.php on line 3
|
||||
[01-Dec-2016 19:18:31 Europe/Budapest] PHP Notice: Undefined variable: _user_id in /home/tollashodos/public_html/_include/include_logout.php on line 3
|
||||
[01-Dec-2016 19:19:13 Europe/Budapest] PHP Notice: Undefined variable: _user_id in /home/tollashodos/public_html/_include/include_logout.php on line 3
|
||||
[01-Dec-2016 19:20:34 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 48
|
||||
[01-Dec-2016 19:20:45 Europe/Budapest] PHP Notice: Undefined offset: 0 in /home/tollashodos/public_html/_include/include_members.php on line 25
|
||||
[01-Dec-2016 19:21:01 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 48
|
||||
[01-Dec-2016 19:23:36 Europe/Budapest] PHP Strict Standards: Non-static method training_type::create_training_type() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 99
|
||||
[01-Dec-2016 19:23:50 Europe/Budapest] PHP Strict Standards: Non-static method training::update_training() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 80
|
||||
[01-Dec-2016 19:24:12 Europe/Budapest] PHP Strict Standards: Non-static method training_type::create_training_type() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 99
|
||||
[01-Dec-2016 19:24:31 Europe/Budapest] PHP Strict Standards: Non-static method training_type::create_training_type() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 99
|
||||
[01-Dec-2016 19:24:42 Europe/Budapest] PHP Strict Standards: Non-static method training_type::create_training_type() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 99
|
||||
[01-Dec-2016 19:24:52 Europe/Budapest] PHP Strict Standards: Non-static method training_type::create_training_type() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 99
|
||||
[01-Dec-2016 19:49:20 Europe/Budapest] PHP Notice: Undefined variable: _user_id in /home/tollashodos/public_html/_include/include_logout.php on line 3
|
||||
[01-Dec-2016 19:53:07 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 48
|
||||
[01-Dec-2016 19:53:47 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 48
|
||||
[01-Dec-2016 19:55:11 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 48
|
||||
[01-Dec-2016 19:57:46 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 48
|
||||
[01-Dec-2016 19:59:14 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 48
|
||||
[01-Dec-2016 19:59:52 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 48
|
||||
[01-Dec-2016 20:10:16 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 48
|
||||
[01-Dec-2016 20:20:56 Europe/Budapest] PHP Notice: Undefined variable: _user_id in /home/tollashodos/public_html/_include/include_logout.php on line 3
|
||||
[01-Dec-2016 21:23:17 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 48
|
||||
[01-Dec-2016 21:23:32 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 48
|
||||
[01-Dec-2016 21:23:45 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 48
|
||||
[01-Dec-2016 21:23:58 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 48
|
||||
[01-Dec-2016 21:24:11 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 48
|
||||
[01-Dec-2016 21:24:27 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 48
|
||||
[01-Dec-2016 21:24:49 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 48
|
||||
[01-Dec-2016 21:25:13 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 48
|
||||
[01-Dec-2016 21:32:23 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 48
|
||||
[01-Dec-2016 21:33:13 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 48
|
||||
[01-Dec-2016 21:33:42 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 48
|
||||
[01-Dec-2016 21:33:57 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 48
|
||||
[01-Dec-2016 21:34:09 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 48
|
||||
[01-Dec-2016 21:34:25 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 48
|
||||
[01-Dec-2016 21:34:46 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 48
|
||||
[01-Dec-2016 21:35:03 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 48
|
||||
[01-Dec-2016 21:35:19 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 48
|
||||
[01-Dec-2016 22:01:56 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 48
|
||||
[01-Dec-2016 22:02:43 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 48
|
||||
[01-Dec-2016 22:03:02 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 48
|
||||
[01-Dec-2016 22:03:49 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 48
|
||||
[01-Dec-2016 22:04:17 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 48
|
||||
[01-Dec-2016 22:05:10 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 48
|
||||
[01-Dec-2016 22:05:35 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 48
|
||||
[01-Dec-2016 22:05:59 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 48
|
||||
[01-Dec-2016 22:06:40 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 48
|
||||
[01-Dec-2016 22:07:36 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 48
|
||||
[01-Dec-2016 22:07:55 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 48
|
||||
[01-Dec-2016 22:08:13 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 48
|
||||
[01-Dec-2016 22:08:49 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 48
|
||||
[01-Dec-2016 22:09:30 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 48
|
||||
[01-Dec-2016 22:09:51 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 48
|
||||
[01-Dec-2016 22:10:04 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 48
|
||||
[02-Dec-2016 07:16:28 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::update_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 33
|
||||
[02-Dec-2016 10:13:39 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::update_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 33
|
||||
[02-Dec-2016 23:52:16 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 48
|
||||
[02-Dec-2016 23:52:37 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 48
|
||||
[02-Dec-2016 23:53:00 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 48
|
||||
[02-Dec-2016 23:53:26 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 48
|
||||
[02-Dec-2016 23:54:04 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 48
|
||||
[02-Dec-2016 23:55:49 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 48
|
||||
[02-Dec-2016 23:56:16 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 48
|
||||
[03-Dec-2016 00:09:18 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 48
|
||||
[03-Dec-2016 00:09:38 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 48
|
||||
[03-Dec-2016 00:10:21 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 48
|
||||
[03-Dec-2016 00:10:37 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 48
|
||||
[03-Dec-2016 00:11:13 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 48
|
||||
[03-Dec-2016 00:11:27 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 48
|
||||
[03-Dec-2016 00:11:45 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 48
|
||||
[03-Dec-2016 00:12:16 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 48
|
||||
[03-Dec-2016 00:12:44 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 48
|
||||
[03-Dec-2016 00:13:00 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 48
|
||||
[03-Dec-2016 00:13:25 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 48
|
||||
[03-Dec-2016 00:14:12 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 48
|
||||
[03-Dec-2016 00:14:35 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 48
|
||||
[03-Dec-2016 00:15:03 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 48
|
||||
[03-Dec-2016 00:15:20 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 48
|
||||
[03-Dec-2016 00:15:33 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 48
|
||||
[03-Dec-2016 00:15:44 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 48
|
||||
[03-Dec-2016 00:16:20 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 48
|
||||
[03-Dec-2016 00:16:32 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 48
|
||||
[03-Dec-2016 00:16:49 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 48
|
||||
[03-Dec-2016 00:17:02 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 48
|
||||
[03-Dec-2016 00:17:26 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 48
|
||||
[03-Dec-2016 00:17:39 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 48
|
||||
[03-Dec-2016 00:17:52 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 48
|
||||
[03-Dec-2016 00:18:05 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 48
|
||||
[03-Dec-2016 00:18:18 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 48
|
||||
[03-Dec-2016 00:18:40 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 48
|
||||
[03-Dec-2016 00:18:59 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 48
|
||||
[03-Dec-2016 00:19:15 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 48
|
||||
[03-Dec-2016 00:19:28 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 48
|
||||
[03-Dec-2016 00:19:41 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 48
|
||||
[03-Dec-2016 00:19:54 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 48
|
||||
[03-Dec-2016 00:20:07 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 48
|
||||
[03-Dec-2016 00:20:26 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 48
|
||||
[03-Dec-2016 00:20:40 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 48
|
||||
[03-Dec-2016 00:20:54 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 48
|
||||
[03-Dec-2016 00:21:20 Europe/Budapest] PHP Strict Standards: Non-static method user_kid::create_user() should not be called statically in /home/tollashodos/public_html/event_handler.php on line 48
|
||||
@@ -7,11 +7,6 @@
|
||||
<div><input type="text" name="ua_name" id="ua_name" required></div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label class="desc" id="title1" for="ua_helper">Segédedző:</label>
|
||||
<div><input type="checkbox" name="ua_helper" id="ua_helper" value="1"></div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label class="desc" id="title1" for="ua_can_login">Be tud lépni:</label>
|
||||
<div><input type="checkbox" name="ua_can_login" id="ua_can_login"></div>
|
||||
|
||||
@@ -11,10 +11,6 @@
|
||||
<div><input type="text" name="ua_name" id="ua_name" value="{$user_data.ua_name}" required></div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label class="desc" id="title1" for="ua_helper">Segédedző:</label>
|
||||
<div><input type="checkbox" name="ua_helper" id="ua_helper" value="1" {if $user_data.ua_helper == 1}checked{/if}></div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label class="desc" id="title1" for="ua_can_login">Be tud lépni:</label>
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
{foreach $user_array as $user}
|
||||
<a href="/admin/coaches/{$user->get_ua_id()}">
|
||||
<div class="list_item">
|
||||
<img src="/_image/coach.png" class="{if $user->get_ua_helper()}transp{/if}">
|
||||
<img src="/_image/coach.png">
|
||||
{$user->get_ua_name()}
|
||||
</div>
|
||||
</a>
|
||||
|
||||
@@ -1,19 +1,55 @@
|
||||
<ul class="topnav" id="myTopnav">
|
||||
{if $can_logout}
|
||||
<li class="icon">
|
||||
<a href="javascript:void(0);" style="font-size:15px;" onclick="myFunction()">Menü ☰</a>
|
||||
<a href="javascript:void(0);" style="font-size:15px;" onclick="myFunction()">
|
||||
{if $user_login}
|
||||
{if $page == 'admin'}
|
||||
{$user_login->get_ua_name()}
|
||||
{else}
|
||||
{$user_login->get_uk_name()}
|
||||
{/if}
|
||||
{else}
|
||||
Menü
|
||||
{/if}
|
||||
☰
|
||||
</a>
|
||||
</li>
|
||||
<li><a href="/admin/members">Tagok</a></li>
|
||||
<li><a href="/admin/trainings">Edzések</a></li>
|
||||
<li><a href="/admin/presence">Jelenlét</a></li>
|
||||
<li><a href="/admin/coaches">Edzők</a></li>
|
||||
{foreach $menus as $menu}
|
||||
<li><a href="/{$page}/{$menu.spage_url}">
|
||||
|
||||
{$menu.spage_title}
|
||||
|
||||
</a></li>
|
||||
{/foreach}
|
||||
|
||||
|
||||
{else}
|
||||
|
||||
<li><a href="#">Bejelentkezés</a></li>
|
||||
<li class="login"><a href="#">Bejelentkezés</a></li>
|
||||
{/if}
|
||||
|
||||
{if $can_logout}<li style="float: right;"><a href="/admin/logout">Kijelentkezés</a></li>{/if}
|
||||
|
||||
{if $can_logout}
|
||||
<li class="logout">
|
||||
<a href="/{$page}/logout">
|
||||
<span class="name">
|
||||
{if $page == 'admin'}
|
||||
{$user_login->get_ua_name()}
|
||||
{else}
|
||||
{$user_login->get_uk_name()}
|
||||
{/if}
|
||||
</span>
|
||||
<img src="/_image/logout{if $page == 'view'}_blue{/if}.png">
|
||||
</a>
|
||||
</li>
|
||||
<li class="logout_mobile">
|
||||
<a href="/{$page}/logout">
|
||||
<span class="name">
|
||||
Kijelentkezés
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
{/if}
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label class="desc" id="title1" for="up_email">Email cím:</label>
|
||||
<label class="desc" id="title1" for="up_email">E-mail cím:</label>
|
||||
<div><input type="text" name="up_email" id="up_email"></div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label class="desc" id="title1" for="up_email">Email cím:</label>
|
||||
<label class="desc" id="title1" for="up_email">E-mail cím:</label>
|
||||
<div><input type="text" name="up_email" id="up_email" value="{$parent->get_up_email()}"></div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -1,10 +1,26 @@
|
||||
<div class="buttons">
|
||||
<a href="/admin/lock_training/{$training->get_tr_id()}" class="addbutton {if !$training->get_tr_locked()}delete{else}add{/if}-big">
|
||||
{if !$training->get_tr_locked()}
|
||||
Lezárás
|
||||
{else}
|
||||
Feloldás
|
||||
{/if}
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="list">
|
||||
<div class="list_item">
|
||||
<label class="desc" id="title1" for="tr_date">
|
||||
<img src="/_image/training.png">
|
||||
Dátum:
|
||||
</label>
|
||||
<div>{$training->get_tr_date(true)}</div>
|
||||
<div>
|
||||
{$training->get_tr_date()|substr:0:4}.
|
||||
{$months[$training->get_tr_date()|substr:5:2]}
|
||||
{$training->get_tr_date_day()}.
|
||||
{$days[$training->get_tr_date_day_of_week()]}
|
||||
{$training->get_tr_date_time()}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="list_item">
|
||||
@@ -31,10 +47,13 @@
|
||||
<img src="/_image/coach.png">
|
||||
Edző(k):
|
||||
</label>
|
||||
<div>
|
||||
<div style="display: inline-block;">
|
||||
{foreach $trc_coaches as $coach}
|
||||
{$coach->get_ua_name()}<br>
|
||||
{/foreach}
|
||||
{foreach $trc_helpers as $coach}
|
||||
<span class="italic">{$coach->get_ua_name()}</span><br>
|
||||
{/foreach}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
@@ -55,10 +74,18 @@
|
||||
|
||||
<br><br><br>
|
||||
|
||||
{if !$training->get_tr_locked()}
|
||||
<div class="list">
|
||||
{foreach $users as $user}
|
||||
|
||||
<div class="{if $user->get_uk_presence($tr_id)}name_tag_checked{else}name_tag{/if}" id="{$user->get_uk_id()}">
|
||||
{if $user@first ||
|
||||
$users[$user@index]->get_uk_presence_on_previous_trainings($trainings) !=
|
||||
$users[$user@index-1]->get_uk_presence_on_previous_trainings($trainings)
|
||||
}
|
||||
<span class="date_separator">
|
||||
{$users[$user@index]->get_uk_presence_on_previous_trainings($trainings)}/4
|
||||
</span>
|
||||
{/if}
|
||||
<div class="{if $user->get_uk_presence($tr_id)}name_tag_checked{else}name_tag{/if} width70" id="{$user->get_uk_id()}">
|
||||
<img src="/_image/shuttlecock.png">
|
||||
<div>{$user->get_uk_name()}</div>
|
||||
</div>
|
||||
@@ -70,13 +97,24 @@
|
||||
|
||||
<div class="list">
|
||||
{foreach $rest_users as $rest_user}
|
||||
<div class="{if $rest_user->get_uk_presence($tr_id)}name_tag_checked{else}name_tag{/if}" id="{$rest_user->get_uk_id()}">
|
||||
<div class="{if $rest_user->get_uk_presence($tr_id)}name_tag_checked{else}name_tag{/if} width70" id="{$rest_user->get_uk_id()}">
|
||||
<img src="/_image/shuttlecock.png">
|
||||
<div>{$rest_user->get_uk_name()}</div>
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
|
||||
{else}
|
||||
<div class="list">
|
||||
{foreach $sorted_users as $user}
|
||||
<div class="list_item">
|
||||
<img src="/_image/shuttlecock.png">
|
||||
{$user->get_uk_name()}
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
|
||||
{/if}
|
||||
|
||||
<script>
|
||||
|
||||
|
||||
@@ -10,12 +10,18 @@
|
||||
)
|
||||
|
||||
}
|
||||
<span class="date_separator">{$training_array[$training@index]->get_tr_date()|substr:0:4}. {$months[$training_array[$training@index]->get_tr_date()|substr:5:2]}</span>
|
||||
<span class="date_separator">{$training_array[$training@index]->get_tr_date()|substr:0:4}.
|
||||
{$months[$training_array[$training@index]->get_tr_date()|substr:5:2]}
|
||||
</span>
|
||||
{/if}
|
||||
<a href="/admin/{if $edit=='edit'}edit_training{elseif $edit=='view'}trainings{else}presence{/if}/{$training->get_tr_id()}">
|
||||
<div class="list_item">
|
||||
<img src="/_image/training.png">
|
||||
{$training->get_tr_date(true)} ({$training->get_tr_type_name_by_id()})
|
||||
{$training->get_tr_date()|substr:0:4}.
|
||||
{$months[$training_array[$training@index]->get_tr_date()|substr:5:2]}
|
||||
{$training->get_tr_date_day()}.
|
||||
{$days[$training->get_tr_date_day_of_week()]}
|
||||
{$training->get_tr_date_time()}
|
||||
</div>
|
||||
</a>
|
||||
{/foreach}
|
||||
|
||||
18
template/templates/region_create.tpl
Normal file
18
template/templates/region_create.tpl
Normal file
@@ -0,0 +1,18 @@
|
||||
<div class="form_wrapper">
|
||||
<form method="post">
|
||||
<input type="hidden" name="action" value="region_create">
|
||||
|
||||
<div>
|
||||
<label class="desc" id="title1" for="reg_name">Új körzet neve:</label>
|
||||
<div><input type="text" name="reg_name" id="reg_name" required></div>
|
||||
</div>
|
||||
|
||||
|
||||
<div>
|
||||
<div>
|
||||
<input class="button black" type="submit" value="Létrehozás">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
23
template/templates/region_list.tpl
Normal file
23
template/templates/region_list.tpl
Normal file
@@ -0,0 +1,23 @@
|
||||
<div class="form_wrapper">
|
||||
<form method="post">
|
||||
<input type="hidden" name="action" value="region_update">
|
||||
<div class="buttons">
|
||||
<a href="/admin/create/region" class="addbutton add-big">Új körzet hozzáadása</a>
|
||||
</div>
|
||||
{foreach $reg_assoc_array as $region}
|
||||
<div>
|
||||
<div style="float: left;">
|
||||
<input type="text" name="region_{$region.reg_id}" id="region_{$region.reg_id}" value="{$region.reg_name}">
|
||||
<a href="/admin/delete_region/{$region.reg_id}" class="addbutton delete">Törlés</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
{/foreach}
|
||||
<div>
|
||||
<div style="float: left;">
|
||||
<input class="button black" type="submit" value="Mentés">
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
@@ -7,12 +7,6 @@
|
||||
<div><input type="text" name="shirt_name" id="shirt_name" required></div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label class="desc" id="title1" for="shirt_year">Év:</label>
|
||||
<div><input type="text" name="shirt_year" id="shirt_year"></div>
|
||||
</div>
|
||||
|
||||
|
||||
<div>
|
||||
<div>
|
||||
<input class="button black" type="submit" value="Létrehozás">
|
||||
|
||||
@@ -11,10 +11,6 @@
|
||||
<div><input type="text" name="shirt_name" id="shirt_name" value="{$shirt_array.shirt_name}" required></div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label class="desc" id="title1" for="shirt_year">Év:</label>
|
||||
<div><input type="text" name="shirt_year" id="shirt_year" value="{$shirt_array.shirt_year}"></div>
|
||||
</div>
|
||||
|
||||
|
||||
<div>
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<a href="/admin/shirts/{$shirt.shirt_id}">
|
||||
<div class="list_item">
|
||||
<img src="/_image/shirt.png">
|
||||
{$shirt.shirt_name} {if $shirt.shirt_year}({$shirt.shirt_year}){/if}
|
||||
{$shirt.shirt_name}
|
||||
</div>
|
||||
</a>
|
||||
{/foreach}
|
||||
|
||||
@@ -38,9 +38,18 @@
|
||||
<div>
|
||||
<label class="desc" id="title1" for="coaches">Edző(k):</label>
|
||||
{foreach $coach_array as $coach}
|
||||
|
||||
<div>
|
||||
<input type="checkbox" name="coaches[]" value="{$coach->get_ua_id()}">{$coach->get_ua_name()}
|
||||
<span class="coach">{$coach->get_ua_name()}</span>
|
||||
<div>
|
||||
<input type="checkbox" name="coaches[]" value="{$coach->get_ua_id()}" class="coach_type">
|
||||
<span class="coach_type_text">e.</span>
|
||||
<input type="checkbox" name="helpers[]" value="{$coach->get_ua_id()}" class="coach_type">
|
||||
<span class="coach_type_text">se.</span>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
{/foreach}
|
||||
</div>
|
||||
|
||||
|
||||
@@ -34,7 +34,14 @@
|
||||
<label class="desc" id="title1" for="coaches">Edző(k):</label>
|
||||
{foreach $coach_array as $coach}
|
||||
<div>
|
||||
<input type="checkbox" name="coaches[]" value="{$coach->get_ua_id()}"{if $coach->is_coach_at_training($tr_id)} checked{/if}>{$coach->get_ua_name()}
|
||||
<span class="coach">{$coach->get_ua_name()}</span>
|
||||
<div>
|
||||
<input type="checkbox" name="coaches[]" value="{$coach->get_ua_id()}" class="coach_type"{if $coach->is_coach_at_training($tr_id)} checked{/if}>
|
||||
<span class="coach_type_text">e.</span>
|
||||
<input type="checkbox" name="helpers[]" value="{$coach->get_ua_id()}" class="coach_type"{if $coach->is_helper_at_training($tr_id)} checked{/if}>
|
||||
<span class="coach_type_text">se.</span>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
|
||||
@@ -1,17 +0,0 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td colspan="2"><a href="/admin/edit_training/{$training_data.tr_id}">SZERKESZTÉS</a></td>
|
||||
</tr>
|
||||
|
||||
|
||||
<tr>
|
||||
<td>Dátum: </td>
|
||||
<td>{$training_data.tr_date}</td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</table>
|
||||
@@ -12,12 +12,18 @@
|
||||
)
|
||||
|
||||
}
|
||||
<span class="date_separator">{$training_array[$training@index]->get_tr_date()|substr:0:4}. {$months[$training_array[$training@index]->get_tr_date()|substr:5:2]}</span>
|
||||
<span class="date_separator">{$training_array[$training@index]->get_tr_date()|substr:0:4}.
|
||||
{$months[$training_array[$training@index]->get_tr_date()|substr:5:2]}
|
||||
</span>
|
||||
{/if}
|
||||
<a href="/admin/{if $edit=='edit'}edit_training{elseif $edit=='view'}trainings{else}presence{/if}/{$training->get_tr_id()}">
|
||||
<div class="list_item">
|
||||
<img src="/_image/training.png">
|
||||
{$training->get_tr_date(true)} ({$training->get_tr_type_name_by_id()})
|
||||
{$training->get_tr_date()|substr:0:4}.
|
||||
{$months[$training_array[$training@index]->get_tr_date()|substr:5:2]}
|
||||
{$training->get_tr_date_day()}.
|
||||
{$days[$training->get_tr_date_day_of_week()]}
|
||||
{$training->get_tr_date_time()}
|
||||
</div>
|
||||
</a>
|
||||
{/foreach}
|
||||
|
||||
@@ -45,7 +45,7 @@
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label class="desc" id="title1" for="uk_address">Lakcím:</label>
|
||||
<label class="desc" id="title1" for="uk_address">Lakhely (település):</label>
|
||||
<div><input type="text" name="uk_address" id="uk_address"></div>
|
||||
</div>
|
||||
|
||||
@@ -69,7 +69,7 @@
|
||||
|
||||
|
||||
<div>
|
||||
<label class="desc" id="title1" for="uk_email">Email cím:</label>
|
||||
<label class="desc" id="title1" for="uk_email">E-mail cím:</label>
|
||||
<div><input type="email" name="uk_email" id="uk_email"></div>
|
||||
</div>
|
||||
|
||||
@@ -87,7 +87,7 @@
|
||||
<label class="desc" id="title1" for="uk_school_sc_id">Iskola neve:</label>
|
||||
<div>
|
||||
<select name="uk_school_sc_id" id="uk_school_sc_id">
|
||||
<option value="null"> - </option>
|
||||
<option value="null"> - (állítsd erre új iskola felvételéhez)</option>
|
||||
{foreach $school_assoc_array as $school_array}
|
||||
<option value="{$school_array.sc_id}">
|
||||
{$school_array.sc_name}
|
||||
@@ -96,6 +96,10 @@
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="add_school">
|
||||
<label class="desc" id="title1" for="add_school">Új iskola felvétele:</label>
|
||||
<div><input type="text" name="add_school" id="add_school"></div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label class="desc" id="title1" for="uk_school_city_scc_id">Iskola települése:</label>
|
||||
@@ -114,11 +118,22 @@
|
||||
|
||||
<div>
|
||||
<label class="desc" id="title1" for="uk_school_district">Iskola kerülete:</label>
|
||||
<div><input type="text" name="uk_school_district" id="uk_school_district" value="0"></div>
|
||||
<div><input type="text" name="uk_school_district" id="uk_school_district"></div>
|
||||
</div>
|
||||
|
||||
|
||||
<div>
|
||||
<label class="desc" id="title1" for="add_school">Új iskola felvétele:</label>
|
||||
<div><input type="text" name="add_school" id="add_school"></div>
|
||||
<label class="desc" id="title1" for="uk_region_reg_id">Diákolimpia körzet:</label>
|
||||
<div>
|
||||
<select name="uk_region_reg_id" id="uk_region_reg_id">
|
||||
<option value="null"> - </option>
|
||||
{foreach $region_assoc_array as $region_array}
|
||||
<option value="{$region_array.reg_id}">
|
||||
{$region_array.reg_name}
|
||||
</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
@@ -136,10 +151,15 @@
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label class="desc" id="title1" for="uk_parent_1">Szülő1:</label>
|
||||
<label class="desc" id="title1" for="uk_shirt_note">Póló megjegyzés:</label>
|
||||
<div><input type="text" name="uk_shirt_note" id="uk_shirt_note"></div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label class="desc" id="title1" for="uk_parent_1">Szülő:</label>
|
||||
<div>
|
||||
<select name="uk_parent_1" id="uk_parent_1">
|
||||
<option value="null"> - </option>
|
||||
<option value="null"> - (állítsd erre új szülő felvételéhez)</option>
|
||||
{foreach $parent_assoc_array as $parent_array}
|
||||
<option value="{$parent_array.up_id}">
|
||||
{$parent_array.up_name}
|
||||
@@ -155,25 +175,24 @@
|
||||
</div>
|
||||
|
||||
<div class="add_parent_1_block">
|
||||
<label class="desc" id="title1" for="parent_1_email">Email címe:</label>
|
||||
<label class="desc" id="title1" for="parent_1_email">E-mail cím:</label>
|
||||
<div><input type="text" name="parent_1_email" id="parent_1_email"></div>
|
||||
</div>
|
||||
|
||||
<div class="add_parent_1_block">
|
||||
<label class="desc" id="title1" for="parent_1_phone">Telefonszám:</label>
|
||||
<div><input type="text" name="parent_1_phone" id="parent_1_phone"></div>
|
||||
</div>
|
||||
<div class="add_parent_1_block">
|
||||
<label class="desc" id="title1" for="parent_1_facebook">Facebook:</label>
|
||||
<div><input type="text" name="parent_1_facebook" id="parent_1_facebook"></div>
|
||||
</div>
|
||||
|
||||
<div class="add_parent_1_block">
|
||||
<label class="desc" id="title1" for="parent_1_phone">Telefonszám:</label>
|
||||
<div><input type="text" name="parent_1_phone" id="parent_1_phone"></div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label class="desc" id="title2" for="uk_parent_2">Szülő2:</label>
|
||||
<label class="desc" id="title2" for="uk_parent_2">Szülő:</label>
|
||||
<div>
|
||||
<select name="uk_parent_2" id="uk_parent_2">
|
||||
<option value="null"> - </option>
|
||||
<option value="null"> - (állítsd erre új szülő felvételéhez)</option>
|
||||
{foreach $parent_assoc_array as $parent_array}
|
||||
<option value="{$parent_array.up_id}">
|
||||
{$parent_array.up_name}
|
||||
@@ -189,21 +208,36 @@
|
||||
</div>
|
||||
|
||||
<div class="add_parent_2_block">
|
||||
<label class="desc" id="title2" for="parent_2_email">Email címe:</label>
|
||||
<label class="desc" id="title2" for="parent_2_email">E-mail cím:</label>
|
||||
<div><input type="text" name="parent_2_email" id="parent_2_email"></div>
|
||||
</div>
|
||||
|
||||
<div class="add_parent_2_block">
|
||||
<label class="desc" id="title2" for="parent_2_facebook">Facebook:</label>
|
||||
<div><input type="text" name="parent_2_facebook" id="parent_2_facebook"></div>
|
||||
</div>
|
||||
|
||||
<div class="add_parent_2_block">
|
||||
<label class="desc" id="title2" for="parent_2_phone">Telefonszám:</label>
|
||||
<div><input type="text" name="parent_2_phone" id="parent_2_phone"></div>
|
||||
</div>
|
||||
|
||||
<br><br>
|
||||
<div class="add_parent_2_block">
|
||||
<label class="desc" id="title2" for="parent_2_facebook">Facebook:</label>
|
||||
<div><input type="text" name="parent_2_facebook" id="parent_2_facebook"></div>
|
||||
</div>
|
||||
|
||||
|
||||
<br>
|
||||
|
||||
<div>
|
||||
<label class="desc" id="title2" for="uk_contact">Kapcsolat tartás:</label>
|
||||
<div><textarea rows="5" name="uk_contact" id="uk_contact"></textarea></div>
|
||||
</div>
|
||||
|
||||
<br>
|
||||
|
||||
<div>
|
||||
<label class="desc" id="title2" for="uk_other">Egyéb:</label>
|
||||
<div><textarea rows="5" name="uk_other" id="uk_other"></textarea></div>
|
||||
</div>
|
||||
|
||||
<br>
|
||||
|
||||
|
||||
<div>
|
||||
@@ -226,4 +260,8 @@ $('#uk_parent_2').change(function() {
|
||||
$(".add_parent_2_block").toggle(this.value == 'null');
|
||||
});
|
||||
|
||||
$('#uk_school_sc_id').change(function() {
|
||||
$(".add_school").toggle(this.value == 'null');
|
||||
});
|
||||
|
||||
</script>
|
||||
@@ -51,7 +51,7 @@
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label class="desc" id="title1" for="uk_address">Lakcím:</label>
|
||||
<label class="desc" id="title1" for="uk_address">Lakhely (település):</label>
|
||||
<div><input type="text" name="uk_address" id="uk_address" value="{$user_data.uk_address}"></div>
|
||||
</div>
|
||||
|
||||
@@ -75,7 +75,7 @@
|
||||
|
||||
|
||||
<div>
|
||||
<label class="desc" id="title1" for="uk_email">Email cím:</label>
|
||||
<label class="desc" id="title1" for="uk_email">E-mail cím:</label>
|
||||
<div><input type="email" name="uk_email" id="uk_email" value="{$user_data.uk_email}"></div>
|
||||
</div>
|
||||
|
||||
@@ -103,11 +103,17 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label class="desc" id="title1" for="uk_shirt_note">Póló megjegyzés:</label>
|
||||
<div><input type="text" name="uk_shirt_note" id="uk_shirt_note" value="{$user_data.uk_shirt_note}"></div>
|
||||
</div>
|
||||
|
||||
|
||||
<div>
|
||||
<label class="desc" id="title1" for="uk_school_sc_id">Iskola neve:</label>
|
||||
<div>
|
||||
<select name="uk_school_sc_id" id="uk_school_sc_id">
|
||||
<option value="null"> - </option>
|
||||
<option value="null"> - (állítsd erre új iskola felvételéhez)</option>
|
||||
{foreach $school_assoc_array as $school_array}
|
||||
<option value="{$school_array.sc_id}"{if $school_array.sc_id == $user_data.uk_school_sc_id} selected{/if}>
|
||||
{$school_array.sc_name}
|
||||
@@ -117,6 +123,11 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="add_school_block">
|
||||
<label class="desc" id="title1" for="add_school">Új iskola felvétele:</label>
|
||||
<div><input type="text" name="add_school" id="add_school"></div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label class="desc" id="title1" for="uk_school_city_scc_id">Iskola települése:</label>
|
||||
<div>
|
||||
@@ -137,10 +148,23 @@
|
||||
<div><input type="text" name="uk_school_district" id="uk_school_district" value="{$user_data.uk_school_district}"></div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label class="desc" id="title1" for="uk_region_reg_id">Diákolimpia körzet:</label>
|
||||
<div>
|
||||
<select name="uk_region_reg_id" id="uk_region_reg_id">
|
||||
<option value="null"> - </option>
|
||||
{foreach $region_assoc_array as $region_array}
|
||||
<option value="{$region_array.reg_id}"{if $region_array.reg_id == $user_data.uk_region_reg_id} selected{/if}>
|
||||
{$region_array.reg_name}
|
||||
</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div>
|
||||
<label class="desc" id="title1" for="uk_parent_1">Szülő1:</label>
|
||||
<label class="desc" id="title1" for="uk_parent_1">Szülő:</label>
|
||||
<div>
|
||||
<select name="uk_parent_1" id="uk_parent_1">
|
||||
<option value="null"> - (állítsd erre új szülő felvételéhez)</option>
|
||||
@@ -159,7 +183,7 @@
|
||||
</div>
|
||||
|
||||
<div class="add_parent_1_block">
|
||||
<label class="desc" id="title1" for="parent_1_email">Email címe:</label>
|
||||
<label class="desc" id="title1" for="parent_1_email">E-mail cím:</label>
|
||||
<div><input type="text" name="parent_1_email" id="parent_1_email"></div>
|
||||
</div>
|
||||
|
||||
@@ -176,7 +200,7 @@
|
||||
|
||||
|
||||
<div>
|
||||
<label class="desc" id="title2" for="uk_parent_2">Szülő2:</label>
|
||||
<label class="desc" id="title2" for="uk_parent_2">Szülő:</label>
|
||||
<div>
|
||||
<select name="uk_parent_2" id="uk_parent_2">
|
||||
<option value="null"> - (állítsd erre új szülő felvételéhez)</option>
|
||||
@@ -195,7 +219,7 @@
|
||||
</div>
|
||||
|
||||
<div class="add_parent_2_block">
|
||||
<label class="desc" id="title2" for="parent_2_email">Email címe:</label>
|
||||
<label class="desc" id="title2" for="parent_2_email">E-mail cím:</label>
|
||||
<div><input type="text" name="parent_2_email" id="parent_2_email"></div>
|
||||
</div>
|
||||
|
||||
@@ -211,7 +235,21 @@
|
||||
|
||||
|
||||
|
||||
<br><br>
|
||||
<br>
|
||||
|
||||
<div>
|
||||
<label class="desc" id="title2" for="uk_contact">Kapcsolat tartás:</label>
|
||||
<div><textarea rows="5" name="uk_contact" id="uk_contact">{$user_data.uk_contact}</textarea></div>
|
||||
</div>
|
||||
|
||||
<br>
|
||||
|
||||
<div>
|
||||
<label class="desc" id="title2" for="uk_other">Egyéb:</label>
|
||||
<div><textarea rows="5" name="uk_other" id="uk_other">{$user_data.uk_other}</textarea></div>
|
||||
</div>
|
||||
|
||||
<br>
|
||||
|
||||
|
||||
<div>
|
||||
@@ -230,6 +268,8 @@
|
||||
else $(".add_parent_1_block").hide();
|
||||
if ($("#uk_parent_2").val() == 'null') $(".add_parent_2_block").show();
|
||||
else $(".add_parent_2_block").hide();
|
||||
if ($("#uk_school_sc_id").val() == 'null') $(".add_school_block").show();
|
||||
else $(".add_school_block").hide();
|
||||
});
|
||||
|
||||
$('#uk_parent_1').change(function() {
|
||||
@@ -240,4 +280,8 @@
|
||||
$(".add_parent_2_block").toggle(this.value == 'null');
|
||||
});
|
||||
|
||||
$('#uk_school_sc_id').change(function() {
|
||||
$(".add_school_block").toggle(this.value == 'null');
|
||||
});
|
||||
|
||||
</script>
|
||||
@@ -4,6 +4,7 @@
|
||||
<a href="/admin/parents" class="addbutton add-big">Szülők</a>
|
||||
<a href="/admin/shirts" class="addbutton add-big">Pólók</a>
|
||||
<a href="/admin/cities" class="addbutton add-big">Települések</a>
|
||||
<a href="/admin/regions" class="addbutton add-big">Diákolimpia körzetek</a>
|
||||
<!-- a href="/admin/school" class="addbutton add-big">Iskolák</a -->
|
||||
|
||||
</div>
|
||||
|
||||
218
template/templates/user_overview.tpl
Normal file
218
template/templates/user_overview.tpl
Normal file
@@ -0,0 +1,218 @@
|
||||
<div class="list">
|
||||
<div class="list_item">
|
||||
<label class="desc">
|
||||
<img src="/_image/person.png">
|
||||
Név:
|
||||
</label>
|
||||
<div>{$user_login->get_uk_name()}</div>
|
||||
</div>
|
||||
<div class="list_item">
|
||||
<label class="desc">
|
||||
<img src="/_image/calendar.png">
|
||||
Adatmódosítás dátuma:
|
||||
</label>
|
||||
<div>{$user_login->get_uk_last_modified()}</div>
|
||||
</div>
|
||||
<div class="list_item">
|
||||
<label class="desc">
|
||||
<img src="/_image/calendar.png">
|
||||
Születési év:
|
||||
</label>
|
||||
<div>
|
||||
{if $user_login->get_uk_birth_year()}
|
||||
{$user_login->get_uk_birth_year()}.
|
||||
{else}
|
||||
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
<div class="list_item">
|
||||
<label class="desc">
|
||||
<img src="/_image/calendar.png">
|
||||
Első edzés dátuma:
|
||||
</label>
|
||||
<div>
|
||||
{if $user_login->get_uk_first_training()}
|
||||
{$user_login->get_uk_first_training()}
|
||||
{else}
|
||||
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
<div class="list_item">
|
||||
<label class="desc">
|
||||
<img src="/_image/house.png">
|
||||
Lakhely (település):
|
||||
</label>
|
||||
<div>
|
||||
{if $user_login->get_uk_address()}
|
||||
{$user_login->get_uk_address()}
|
||||
{else}
|
||||
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
<div class="list_item">
|
||||
<label class="desc">
|
||||
<img src="/_image/email.png">
|
||||
E-mail cím:
|
||||
</label>
|
||||
<div>
|
||||
{if $user_login->get_uk_email()}
|
||||
{$user_login->get_uk_email()}
|
||||
{else}
|
||||
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
<div class="list_item">
|
||||
<label class="desc">
|
||||
<img src="/_image/phone.png">
|
||||
Telefonszám:
|
||||
</label>
|
||||
<div>
|
||||
{if $user_login->get_uk_phone()}
|
||||
{$user_login->get_uk_phone()}
|
||||
{else}
|
||||
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
<div class="list_item">
|
||||
<label class="desc">
|
||||
<img src="/_image/facebook.png">
|
||||
Facebook:
|
||||
</label>
|
||||
<div>
|
||||
{if $user_login->get_uk_facebook()}
|
||||
{$user_login->get_uk_facebook()}
|
||||
{else}
|
||||
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
<div class="list_item">
|
||||
<label class="desc">
|
||||
<img src="/_image/shirt.png">
|
||||
Pólóméret:
|
||||
</label>
|
||||
<div>
|
||||
{if $user_login->get_uk_shirt_size_name()}
|
||||
{$user_login->get_uk_shirt_size_name()}
|
||||
{else}
|
||||
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
<div class="list_item">
|
||||
<label class="desc">
|
||||
<img src="/_image/shirt.png">
|
||||
Póló megjegyzés:
|
||||
</label>
|
||||
<div>
|
||||
{if $user_login->get_uk_shirt_note()}
|
||||
{$user_login->get_uk_shirt_note()}
|
||||
{else}
|
||||
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
<div class="list_item">
|
||||
<label class="desc">
|
||||
<img src="/_image/school.png">
|
||||
Iskola neve:
|
||||
</label>
|
||||
<div>
|
||||
{if $user_login->get_uk_school_name()}
|
||||
{$user_login->get_uk_school_name()}
|
||||
{else}
|
||||
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
<div class="list_item">
|
||||
<label class="desc">
|
||||
<img src="/_image/school.png">
|
||||
Iskola település:
|
||||
</label>
|
||||
<div>
|
||||
{if $user_login->get_uk_school_city()}
|
||||
{$user_login->get_uk_school_city()}
|
||||
{else}
|
||||
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
<div class="list_item">
|
||||
<label class="desc">
|
||||
<img src="/_image/school.png">
|
||||
Iskola kerület:
|
||||
</label>
|
||||
<div>
|
||||
{if $user_login->get_uk_school_district()}
|
||||
{$user_login->get_uk_school_district()}
|
||||
{else}
|
||||
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
<div class="list_item">
|
||||
<label class="desc">
|
||||
<img src="/_image/school.png">
|
||||
Diákolimpia körzet:
|
||||
</label>
|
||||
<div>
|
||||
{if $user_login->get_uk_region_name()}
|
||||
{$user_login->get_uk_region_name()}
|
||||
{else}
|
||||
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
<div class="list_item">
|
||||
<label class="desc">
|
||||
<img src="/_image/person.png">
|
||||
Szülő:
|
||||
</label>
|
||||
<div>
|
||||
{if isset($parent_1)}
|
||||
{if $parent_1.up_name}{$parent_1.up_name}<br>{/if}
|
||||
{if $parent_1.up_email}{$parent_1.up_email}<br>{/if}
|
||||
{if $parent_1.up_phone}{$parent_1.up_phone}<br>{/if}
|
||||
{if $parent_1.up_facebook}{$parent_1.up_facebook}<br>{/if}
|
||||
{else}
|
||||
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
<div class="list_item">
|
||||
<label class="desc">
|
||||
<img src="/_image/person.png">
|
||||
Szülő:
|
||||
</label>
|
||||
<div>
|
||||
{if isset($parent_2)}
|
||||
{if $parent_2.up_name}{$parent_2.up_name}<br>{/if}
|
||||
{if $parent_2.up_email}{$parent_2.up_email}<br>{/if}
|
||||
{if $parent_2.up_phone}{$parent_2.up_phone}<br>{/if}
|
||||
{if $parent_2.up_facebook}{$parent_2.up_facebook}<br>{/if}
|
||||
{else}
|
||||
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
<div class="list_item">
|
||||
<label class="desc">
|
||||
<img src="/_image/contact.png">
|
||||
Kapcsolat tartás:
|
||||
</label>
|
||||
<div>
|
||||
{if $user_login->get_uk_contact()}
|
||||
<br>{nl2br($user_login->get_uk_contact())}
|
||||
{else}
|
||||
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
Reference in New Issue
Block a user