first commit
This commit is contained in:
11
_ajax/update_presence.php
Normal file
11
_ajax/update_presence.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
include('../_class/class_sql.php');
|
||||
trigger_error('lefut', E_USER_ERROR);
|
||||
|
||||
if ($_GET['checked']) {
|
||||
$sql = new sql('localhost','root','','badminton_coach');
|
||||
$sql->insert_into('presence', array('pr_user_kid_uk_id' => $_GET['userid'], 'pr_training_tr_id' => '9'));
|
||||
}
|
||||
|
||||
?>
|
||||
71
_class/class_login.php
Normal file
71
_class/class_login.php
Normal file
@@ -0,0 +1,71 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
LOGIN CLASS
|
||||
belépés végrehajtása
|
||||
|
||||
*/
|
||||
|
||||
|
||||
class login {
|
||||
|
||||
public function check_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 ) . "')";
|
||||
|
||||
if ($sql->num_of_rows($check_query)) return $sql->single_variable($check_query);
|
||||
|
||||
|
||||
$check_query =
|
||||
"
|
||||
SELECT uk_id FROM user_kid WHERE
|
||||
(uk_name = '" . $_user_name . "' AND
|
||||
uk_password = '" . md5($_user_password ) . "')";
|
||||
|
||||
if ($sql->num_of_rows($check_query)) return $sql->single_variable($check_query);
|
||||
|
||||
$check_query =
|
||||
"
|
||||
SELECT up_id FROM user_parent WHERE
|
||||
(up_name = '" . $_user_name . "' AND
|
||||
up_password = '" . md5($_user_password ) . "')";
|
||||
|
||||
if ($sql->num_of_rows($check_query)) return $sql->single_variable($check_query);
|
||||
|
||||
return null;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
public function login_user($_user_id, $_user_type) {
|
||||
//beállítja a belépett user adatait cookieba (ha még nincs)
|
||||
global $sql;
|
||||
|
||||
if (!isset($_COOKIE['badminon_coach_user'])) {
|
||||
//user objektumot nem lehet cookie-ban tárolni, ezért user_id-t rakunk bele
|
||||
$user_login = new user();
|
||||
$user_login->set_user_data_by_id($_user_id);
|
||||
$user_login->update_login_time();
|
||||
setcookie('badminton_coach_user', $_user_id, time()+60*60*72, '/');
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
?>
|
||||
141
_class/class_page.php
Normal file
141
_class/class_page.php
Normal file
@@ -0,0 +1,141 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
PAGE CLASS
|
||||
url alapjan lekeri a template-et
|
||||
http://badmintoncoach.hu/PAGE/SUBPAGE/ID
|
||||
|
||||
*/
|
||||
|
||||
|
||||
class page {
|
||||
|
||||
private $page = null;
|
||||
private $subpage = null;
|
||||
private $id = null;
|
||||
|
||||
function __construct() {
|
||||
if (isset($_GET['page'])) $this->set_page($_GET['page']);
|
||||
if (isset($_GET['subpage'])) $this->set_subpage($_GET['subpage']);
|
||||
if (isset($_GET['id'])) $this->set_id($_GET['id']);
|
||||
}
|
||||
|
||||
public function get_page_nav() {
|
||||
global $smarty;
|
||||
//itt majd el lehet ágaztatni, ha nem admin oldalon vagyunk stb, de egyenlőre nem kell
|
||||
$smarty->display('nav.tpl');
|
||||
}
|
||||
|
||||
public function get_page_content() {
|
||||
global $sql, $user, $smarty;
|
||||
//var_dump($user);
|
||||
ini_set('include_path', '/opt/lampp/htdocs/badminton_coach/_include');
|
||||
if (!empty($user) && $user->is_logged_in()) {
|
||||
if ($this->is_page()) {
|
||||
//TODO: mi van ha nincs page? átirányítás v 404?
|
||||
//page alapján betölti a tpl-t
|
||||
//die($_GET['page']);
|
||||
switch ($this->get_page()) {
|
||||
case 'admin':
|
||||
# ADMIN OLDALAK
|
||||
switch ($this->get_subpage()) {
|
||||
case 'members':
|
||||
# TAGOK KEZELÉSE
|
||||
$tpl = "view";
|
||||
include('include_members.php');
|
||||
break;
|
||||
|
||||
case 'edit_member':
|
||||
# TAG SZERKESZTÉSE
|
||||
$tpl = "edit";
|
||||
include('include_members.php');
|
||||
break;
|
||||
case 'trainings':
|
||||
# EDZÉSEK
|
||||
# itt az edzések listája jelenik meg az aktuális hónapban
|
||||
$tpl = "view";
|
||||
include('include_trainings.php');
|
||||
break;
|
||||
case 'edit_training':
|
||||
# TAG SZERKESZTÉSE
|
||||
$tpl = "edit";
|
||||
include('include_trainings.php');
|
||||
break;
|
||||
case 'create':
|
||||
# LÉTREHOZÓS OLDALAK
|
||||
include('include_create.php');
|
||||
break;
|
||||
case 'presence':
|
||||
# JELENLÉT
|
||||
$tpl = "presence";
|
||||
include('include_presence.php');
|
||||
break;
|
||||
default:
|
||||
# code...
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case 'ajax':
|
||||
if ($this->is_subpage()) {
|
||||
include('ajax/'.$this->get_subpage());
|
||||
}
|
||||
break;
|
||||
case 'style':
|
||||
var_dump('haha');
|
||||
break;
|
||||
default:
|
||||
# code...
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
//nincs bejelentkezve
|
||||
$smarty->display("login.tpl");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
private function set_page($_page) {
|
||||
$this->page = $_page;
|
||||
}
|
||||
|
||||
private function set_subpage($_subpage) {
|
||||
$this->subpage = $_subpage;
|
||||
}
|
||||
|
||||
private function set_id($_id) {
|
||||
$this->id = $_id;
|
||||
}
|
||||
|
||||
private function get_page() {
|
||||
return $this->page;
|
||||
}
|
||||
|
||||
private function get_subpage() {
|
||||
return $this->subpage;
|
||||
}
|
||||
|
||||
private function get_id() {
|
||||
return $this->id;
|
||||
}
|
||||
|
||||
private function is_page() {
|
||||
return !empty($this->page);
|
||||
}
|
||||
|
||||
private function is_subpage() {
|
||||
return !empty($this->subpage);
|
||||
}
|
||||
|
||||
private function is_id() {
|
||||
return !empty($this->id);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
?>
|
||||
91
_class/class_sql.php
Normal file
91
_class/class_sql.php
Normal file
@@ -0,0 +1,91 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
SQL osztály
|
||||
adatbázis műveletek
|
||||
SQLI osztályból származtatva
|
||||
*/
|
||||
|
||||
|
||||
class sql extends mysqli {
|
||||
private $_query;
|
||||
|
||||
function __construct($_host, $_username, $_password, $_dbname) {
|
||||
parent::__construct($_host, $_username, $_password, $_dbname);
|
||||
self::set_charset("utf8");
|
||||
}
|
||||
|
||||
public function single_variable($_query) {
|
||||
$result = self::query($_query);
|
||||
$assoc_array = $result->fetch_array(MYSQLI_NUM);
|
||||
return $assoc_array['0'];
|
||||
}
|
||||
|
||||
public function assoc_array($_query) {
|
||||
//var_dump($_query);
|
||||
$result = self::query($_query);
|
||||
$ret_array = array();
|
||||
while ($item = $result->fetch_assoc()) {
|
||||
$ret_array[] = $item;
|
||||
}
|
||||
return $ret_array;
|
||||
}
|
||||
|
||||
|
||||
public function insert_into($table, $value_array, $need_apostrophs = true) {
|
||||
//a beszúrt rekord id-ját adja vissza
|
||||
$fields = '';
|
||||
$values = '';
|
||||
$i = 0;
|
||||
$n = count($value_array);
|
||||
foreach ($value_array as $key => $value) {
|
||||
$fields .= $key;
|
||||
$need_apostrophs = $value!='null';
|
||||
$values .= ($need_apostrophs ? "'" : "") . $value . ($need_apostrophs ? "'" : "");
|
||||
if ($i!=($n-1)) {
|
||||
$fields .= ', ';
|
||||
$values .= ', ';
|
||||
}
|
||||
$i++;
|
||||
}
|
||||
$this->_query = 'insert into ' . $table . ' (' . $fields . ') values (' . $values . ');';
|
||||
var_dump($this->_query);
|
||||
self::query($this->_query);
|
||||
return $this->insert_id;
|
||||
}
|
||||
|
||||
public function update_table($table, $value_array, $conditions, $need_apostrophs = true) {
|
||||
$this->_query = "update " . $table . " set ";
|
||||
$n = count($value_array);
|
||||
$i=0;
|
||||
foreach ($value_array as $key => $val) {
|
||||
$need_apostrophs = $val!='null';
|
||||
$this->_query .= $key . "=" . ($need_apostrophs ? "'" : "") . $val . ($need_apostrophs ? "'" : "") . ($i!=$n-1 ? ", " : "");
|
||||
$i++;
|
||||
}
|
||||
$this->_query .= " where ";
|
||||
$n = count($conditions);
|
||||
$i=0;
|
||||
foreach ($conditions as $key_ => $val_) {
|
||||
$this->_query .= $key_ . "='" . $val_ . "'" . ($i!=$n-1 ? " and " : ";");
|
||||
$i++;
|
||||
}
|
||||
//var_dump($this->_query);
|
||||
self::query($this->_query);
|
||||
}
|
||||
|
||||
|
||||
public function num_of_rows($_query) {
|
||||
$result = self::query($_query);
|
||||
return is_object($result)?$result->num_rows:0;
|
||||
}
|
||||
|
||||
public function execute_query($_query) {
|
||||
return self::query($_query);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
?>
|
||||
100
_class/class_training.php
Normal file
100
_class/class_training.php
Normal file
@@ -0,0 +1,100 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
TRAINING osztály
|
||||
Edzések
|
||||
|
||||
|
||||
|
||||
*/
|
||||
|
||||
class training {
|
||||
private $tr_id;
|
||||
private $tr_date;
|
||||
private $tr_training_type_trt_id;
|
||||
private $tr_user_coach_uc_id;
|
||||
|
||||
|
||||
public function set_tr_id($_tr_id) {
|
||||
$this->tr_id = $_tr_id;
|
||||
}
|
||||
|
||||
public function set_tr_date($_tr_date) {
|
||||
$this->tr_date = $_tr_date;
|
||||
}
|
||||
|
||||
public function set_tr_training_type_trt_id($_tr_training_type_trt_id) {
|
||||
$this->tr_training_type_trt_id = $_tr_training_type_trt_id;
|
||||
}
|
||||
|
||||
public function set_tr_user_coach_uc_id($_tr_user_coach_uc_id) {
|
||||
$this->tr_user_coach_uc_id = $_tr_user_coach_uc_id;
|
||||
}
|
||||
|
||||
public function get_tr_id() {
|
||||
return $this->tr_id;
|
||||
}
|
||||
|
||||
public function get_tr_date() {
|
||||
return $this->tr_date;
|
||||
}
|
||||
|
||||
public function get_tr_training_type_trt_id() {
|
||||
return $this->tr_training_type_trt_id;
|
||||
}
|
||||
|
||||
public function get_tr_user_coach_uc_id() {
|
||||
return $this->tr_user_coach_uc_id;
|
||||
}
|
||||
|
||||
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());
|
||||
}
|
||||
|
||||
public function set_training_data_by_id($_tr_id) {
|
||||
global $sql;
|
||||
$training_data_assoc_array = $sql->assoc_array("select * from training where tr_id = " . $_tr_id);
|
||||
$training_data_array = $training_data_assoc_array[0];
|
||||
foreach ($training_data_array as $field => $value) {
|
||||
$function_name = "set_" . $field;
|
||||
$this->$function_name($value);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public function create_training($_training_value_array, $_every_week) {
|
||||
global $sql;
|
||||
//megnézzük, hogy minden hétre be kell-e rakni
|
||||
//ha igen, akkor az adott hónapban, a hét minden azonos napjára létrehozza
|
||||
if ($_every_week) {
|
||||
//megnézzük milyen nap van a megadott dátumon
|
||||
$day_of_week = date('N', strtotime($_training_value_array['tr_date']));
|
||||
//kigyűjtük a hónap további ilyen napjait
|
||||
$last_day = date("t", strtotime($_training_value_array['tr_date']));
|
||||
|
||||
for ($actual_day=date('d', strtotime($_training_value_array['tr_date'])); $actual_day <= $last_day; $actual_day=$actual_day+7) {
|
||||
$sql->insert_into('training',
|
||||
array(
|
||||
'tr_date' => date('Y-m') . '-' . $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_user_coach_uc_id' => $_training_value_array['tr_user_coach_uc_id']
|
||||
)
|
||||
);
|
||||
}
|
||||
//var_dump($day_array);
|
||||
}
|
||||
else {
|
||||
$sql->insert_into('training', $_training_value_array);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public function update_training($_training_value_array, $_tr_id) {
|
||||
global $sql;
|
||||
$sql->update_table('training', $_training_value_array, array('tr_id' => $_tr_id));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
112
_class/class_user.php
Normal file
112
_class/class_user.php
Normal file
@@ -0,0 +1,112 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
USER CLASS
|
||||
ősosztály
|
||||
USER COACH adatszerkezet
|
||||
az öszes user rendelkezik ezekkel a tulajdonságokkal
|
||||
|
||||
*/
|
||||
|
||||
|
||||
class user {
|
||||
private $user_id;
|
||||
private $user_name;
|
||||
private $user_last_name;
|
||||
private $user_first_name;
|
||||
private $user_password;
|
||||
private $user_email;
|
||||
private $user_last_login;
|
||||
private $logged_in;
|
||||
private $user_type;
|
||||
|
||||
public function set_ua_id($_uid) {
|
||||
$this->user_id = $_uid;
|
||||
}
|
||||
|
||||
public function set_ua_name($_uname) {
|
||||
$this->user_name = $_uname;
|
||||
}
|
||||
|
||||
public function set_ua_last_name($_u_last_name) {
|
||||
$this->user_last_name = $_u_last_name;
|
||||
}
|
||||
|
||||
public function set_ua_first_name($_u_first_name) {
|
||||
$this->user_first_name = $_u_first_name;
|
||||
}
|
||||
|
||||
public function set_ua_password($_u_pass) {
|
||||
$this->user_password = $_u_pass;
|
||||
}
|
||||
|
||||
public function set_ua_email($_u_email) {
|
||||
$this->user_email = $_u_email;
|
||||
}
|
||||
|
||||
public function set_ua_last_login($_u_last_login) {
|
||||
$this->user_last_login = $_u_last_login;
|
||||
}
|
||||
|
||||
public function get_ua_id() {
|
||||
return $this->user_id;
|
||||
}
|
||||
|
||||
public function get_ua_name() {
|
||||
return $this->user_name;
|
||||
}
|
||||
|
||||
public function get_ua_last_name() {
|
||||
return $this->user_last_name;
|
||||
}
|
||||
|
||||
public function get_ua_first_name() {
|
||||
return $this->user_first_name;
|
||||
}
|
||||
|
||||
public function get_ua_password() {
|
||||
return $this->user_password;
|
||||
}
|
||||
|
||||
public function get_ua_email() {
|
||||
return $this->user_email;
|
||||
}
|
||||
|
||||
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 set_user_data_by_id($_ua_id) {
|
||||
global $sql, $user;
|
||||
$user_data_assoc_array = $sql->assoc_array("select * from user_coach where ua_id = " . $_ua_id);
|
||||
$user_data_array = $user_data_assoc_array[0];
|
||||
foreach ($user_data_array as $field => $value) {
|
||||
$function_name = "set_" . $field;
|
||||
$this->$function_name($value); //alapadatok beállítása
|
||||
$this->set_ua_type(1); //coach típus beállítása
|
||||
$this->set_login(true);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public function update_login_time($_ua_id = null) {
|
||||
global $sql;
|
||||
//az adott user_id-n updateli a login_time-ot
|
||||
$sql->update_table('user_coach', array('ua_last_login' => date('Y-m-d')), array('ua_id' => (empty($_ua_id)?$this->get_ua_id():$_ua_id)));
|
||||
}
|
||||
|
||||
public function set_ua_type($_type) {
|
||||
$this->user_type = $_type;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
270
_class/class_user_kid.php
Normal file
270
_class/class_user_kid.php
Normal file
@@ -0,0 +1,270 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
USER_KID osztály
|
||||
GYEREKEK osztálya, a USER_PARENT osztályból öröklődik
|
||||
|
||||
|
||||
|
||||
*/
|
||||
|
||||
class user_kid extends user_parent {
|
||||
private $user_id;
|
||||
private $user_name;
|
||||
private $user_last_name;
|
||||
private $user_first_name;
|
||||
private $user_password;
|
||||
private $user_email;
|
||||
private $user_last_login;
|
||||
private $user_gender;
|
||||
private $user_address;
|
||||
private $user_birth_date;
|
||||
private $user_first_training;
|
||||
private $user_hand;
|
||||
private $user_last_modified;
|
||||
private $logged_in;
|
||||
private $user_type;
|
||||
private $user_shirt_size;
|
||||
private $user_school_sc_id;
|
||||
private $user_school_district;
|
||||
private $user_school_city_scc_id;
|
||||
private $user_parent_1;
|
||||
private $user_parent_2;
|
||||
private $user_phone;
|
||||
private $user_facebook;
|
||||
|
||||
public function set_uk_id($_uid) {
|
||||
$this->user_id = $_uid;
|
||||
}
|
||||
|
||||
public function set_uk_name($_uname) {
|
||||
$this->user_name = $_uname;
|
||||
}
|
||||
|
||||
public function set_uk_last_name($_u_last_name) {
|
||||
$this->user_last_name = $_u_last_name;
|
||||
}
|
||||
|
||||
public function set_uk_first_name($_u_first_name) {
|
||||
$this->user_first_name = $_u_first_name;
|
||||
}
|
||||
|
||||
public function set_uk_password($_u_pass) {
|
||||
$this->user_password = $_u_pass;
|
||||
}
|
||||
|
||||
public function set_uk_email($_u_email) {
|
||||
$this->user_email = $_u_email;
|
||||
}
|
||||
|
||||
public function set_uk_phone($_u_phone) {
|
||||
$this->user_phone = $_u_phone;
|
||||
}
|
||||
|
||||
public function set_uk_facebook($_facebook) {
|
||||
$this->user_facebook = $_facebook;
|
||||
}
|
||||
|
||||
public function set_uk_last_login($_u_last_login) {
|
||||
$this->user_last_login = $_u_last_login;
|
||||
}
|
||||
|
||||
public function set_uk_shirt_size_ss_id($_shirt_size) {
|
||||
$this->shirt_size = $_shirt_size;
|
||||
}
|
||||
|
||||
public function set_uk_school_sc_id($_school) {
|
||||
$this->user_school_sc_id = $_school;
|
||||
}
|
||||
|
||||
public function set_uk_school_district($_district) {
|
||||
$this->user_school_district = $_district;
|
||||
}
|
||||
|
||||
|
||||
public function set_uk_school_city_scc_id($_city_id) {
|
||||
$this->user_school_city_scc_id = $_city_id;
|
||||
}
|
||||
|
||||
public function set_uk_parent_1($_uk_parent_1) {
|
||||
$this->user_parent_1 = $_uk_parent_1;
|
||||
}
|
||||
|
||||
public function set_uk_parent_2($_uk_parent_2) {
|
||||
$this->user_parent_2 = $_uk_parent_2;
|
||||
}
|
||||
|
||||
public function get_uk_id() {
|
||||
return $this->user_id;
|
||||
}
|
||||
|
||||
public function get_uk_name() {
|
||||
return $this->user_name;
|
||||
}
|
||||
|
||||
public function get_uk_last_name() {
|
||||
return $this->user_last_name;
|
||||
}
|
||||
|
||||
public function get_uk_first_name() {
|
||||
return $this->user_first_name;
|
||||
}
|
||||
|
||||
public function get_uk_password() {
|
||||
return $this->user_password;
|
||||
}
|
||||
|
||||
public function get_uk_email() {
|
||||
return $this->user_email;
|
||||
}
|
||||
|
||||
public function get_uk_shirt_size() {
|
||||
return $this->user_shirt_size;
|
||||
}
|
||||
|
||||
public function get_uk_school_sc_id() {
|
||||
return $this->user_school_sc_id;
|
||||
}
|
||||
|
||||
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_parent_1() {
|
||||
return $this->user_parent_1;
|
||||
}
|
||||
|
||||
public function get_uk_parent_2() {
|
||||
return $this->user_parent_2;
|
||||
}
|
||||
|
||||
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 set_uk_gender($_gender) {
|
||||
$this->user_gender = $_gender;
|
||||
}
|
||||
public function get_uk_gender() {
|
||||
return $this->user_gender;
|
||||
}
|
||||
|
||||
public function set_uk_birth_date($_birth_date) {
|
||||
$this->user_birth_date = $_birth_date;
|
||||
}
|
||||
public function get_uk_birth_date() {
|
||||
return $this->user_birth_date;
|
||||
}
|
||||
|
||||
public function set_uk_first_training($_first_training) {
|
||||
$this->user_first_training = $_first_training;
|
||||
}
|
||||
public function get_uk_first_training() {
|
||||
return $this->user_first_training;
|
||||
}
|
||||
|
||||
public function set_uk_hand($_hand) {
|
||||
$this->user_hand = $_hand;
|
||||
}
|
||||
public function get_uk_hand() {
|
||||
return $this->user_hand;
|
||||
}
|
||||
|
||||
public function set_uk_last_modified($_last_modified) {
|
||||
$this->user_last_modified = $_last_modified;
|
||||
}
|
||||
public function get_uk_last_modified() {
|
||||
return $this->user_last_modified;
|
||||
}
|
||||
|
||||
public function set_uk_address($_address) {
|
||||
$this->user_address = $_address;
|
||||
}
|
||||
public function get_uk_address() {
|
||||
return $this->user_address;
|
||||
}
|
||||
|
||||
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);
|
||||
$user_data_array = $user_data_assoc_array[0];
|
||||
foreach ($user_data_array as $field => $value) {
|
||||
$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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public function add_new_parent($_parent_name, $_email, $_facebook, $_phone) {
|
||||
global $sql;
|
||||
//beilleszti AB-ba
|
||||
//visszaadja az ID-t
|
||||
|
||||
return $sql->insert_into('user_parent',
|
||||
array(
|
||||
'up_name' => $_parent_name,
|
||||
'up_email' => $_email,
|
||||
'up_facebook' => $_facebook,
|
||||
'up_phone' => $_phone
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
public function create_user($_user_value_array) {
|
||||
global $sql;
|
||||
|
||||
//SCHOOL_HANDLER
|
||||
if (isset($_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']);
|
||||
}
|
||||
|
||||
//PARENT_1 HANDLER
|
||||
if (isset($_user_value_array['add_parent_1'])) {
|
||||
//lehet, hogy csak a neve van megadva, ezért meg kell vizsgálni, hogy a többi létezik-e; ha nem => null
|
||||
|
||||
$_user_value_array['uk_parent_1'] = self::add_new_parent(
|
||||
$_user_value_array['add_parent_1'],
|
||||
$_user_value_array['parent_1_email'],
|
||||
$_user_value_array['parent_1_facebook'], $_user_value_array['parent_1_phone']);
|
||||
unset($_user_value_array['add_parent_1']);
|
||||
|
||||
if (isset($_user_value_array['parent_1_email'])) unset($_user_value_array['parent_1_email']);
|
||||
if (isset($_user_value_array['parent_1_facebook'])) unset($_user_value_array['parent_1_facebook']);
|
||||
if (isset($_user_value_array['parent_1_phone'])) unset($_user_value_array['parent_1_phone']);
|
||||
}
|
||||
|
||||
//PARENT_2 HANDLER
|
||||
if (isset($_user_value_array['add_parent_2'])) {
|
||||
$_user_value_array['uk_parent_2'] = self::add_new_parent(
|
||||
$_user_value_array['add_parent_2'],
|
||||
$_user_value_array['parent_2_email'], $_user_value_array['parent_2_facebook'],
|
||||
$_user_value_array['parent_2_phone']);
|
||||
unset($_user_value_array['add_parent_2']);
|
||||
|
||||
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']);
|
||||
}
|
||||
return $sql->insert_into('user_kid', $_user_value_array);
|
||||
}
|
||||
|
||||
public function update_user($_user_value_array, $_user_id) {
|
||||
global $sql;
|
||||
//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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
32
_class/class_user_parent.php
Normal file
32
_class/class_user_parent.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
USER_PARENT osztály
|
||||
SZÜLŐK osztálya, a USER osztályból öröklődik
|
||||
|
||||
|
||||
|
||||
*/
|
||||
|
||||
class user_parent extends user {
|
||||
|
||||
|
||||
protected function set_user_phone($_phone) {
|
||||
$this->$user_phone = $_phone;
|
||||
}
|
||||
|
||||
protected function set_user_facebook($_facebook) {
|
||||
$this->$user_facebook = $_facebook;
|
||||
}
|
||||
|
||||
protected function get_user_phone() {
|
||||
return $this->user_phone;
|
||||
}
|
||||
|
||||
protected function get_user_facebook() {
|
||||
return $this->user_facebook;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
16
_include/ajax/update_presence.php
Normal file
16
_include/ajax/update_presence.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
//ini_set('include_path', '/opt/lampp/htdocs/badminton_coach/_class');
|
||||
//include('class_sql.php');
|
||||
echo "juhuuu";
|
||||
foreach ($_POST as $key => $value) {
|
||||
trigger_error($key, E_USER_NOTICE);
|
||||
}
|
||||
if ($_POST['checked'] == true) {
|
||||
//$sql = new sql('localhost','root','','badminton_coach');
|
||||
$sql->insert_into('presence', array('pr_user_kid_uk_id' => $_POST['user_id'], 'pr_training_tr_id' => $_POST['tr_id']));
|
||||
}
|
||||
else {
|
||||
$sql->execute_query('delete from presence where pr_user_kid_uk_id = ' . $_POST['user_id'] . ' AND pr_training_tr_id = ' . $_POST['tr_id']);
|
||||
}
|
||||
|
||||
?>
|
||||
48
_include/include_create.php
Normal file
48
_include/include_create.php
Normal file
@@ -0,0 +1,48 @@
|
||||
<?php
|
||||
|
||||
|
||||
switch ($this->get_id()) {
|
||||
case 'member':
|
||||
#ÚJ TAG LÉTREHOZÁSA
|
||||
//pólóméret array
|
||||
$shirt_size_query = "SELECT * FROM shirt;";
|
||||
$shirt_size_assoc_array = $sql->assoc_array($shirt_size_query);
|
||||
//szülő array
|
||||
$parent_query = "SELECT * FROM user_parent;";
|
||||
$parent_assoc_array = $sql->assoc_array($parent_query);
|
||||
//SCHOOL ARRAY
|
||||
$school_query = "SELECT * FROM school;";
|
||||
$school_assoc_array = $sql->assoc_array($school_query);
|
||||
//SCHOOL CITY ARRAY
|
||||
$school_city_query = "SELECT * FROM school_city;";
|
||||
$school_city_assoc_array = $sql->assoc_array($school_city_query);
|
||||
|
||||
$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);
|
||||
$smarty->assign('parent_assoc_array', $parent_assoc_array);
|
||||
$smarty->assign('today', date("Y-m-d"));
|
||||
|
||||
$smarty->display('user_data_create.tpl');
|
||||
break;
|
||||
|
||||
case 'training':
|
||||
# code...
|
||||
//TRAINING TYPE ARRAY
|
||||
$training_type_query = "SELECT * FROM training_type ORDER BY trt_name ASC;";
|
||||
$training_type_assoc_array = $sql->assoc_array($training_type_query);
|
||||
$smarty->assign("training_type_assoc_array", $training_type_assoc_array);
|
||||
//COACH ARRAY
|
||||
$coach_data_query = "SELECT * FROM user_coach;";
|
||||
$coach_data_assoc_array = $sql->assoc_array($coach_data_query);
|
||||
$smarty->assign("coach_data_assoc_array", $coach_data_assoc_array);
|
||||
$smarty->display('training_data_create.tpl');
|
||||
break;
|
||||
|
||||
default:
|
||||
# code...
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
48
_include/include_members.php
Normal file
48
_include/include_members.php
Normal file
@@ -0,0 +1,48 @@
|
||||
<?php
|
||||
|
||||
# HA NINCS ID, AKKOR TAGLISTA
|
||||
# HA VAN ID, AKKOR TAG ADATAINAK MEGJELENÍTÉSE/SZERKESZTÉSE
|
||||
if ($this->is_id()) {
|
||||
# ADOTT TAG ADATAINAK MEGJELENÍTÉSE
|
||||
//user adatok
|
||||
$user_data_query = "SELECT * FROM user_kid WHERE uk_id = " . $this->get_id();
|
||||
$user_data_assoc_array = $sql->assoc_array($user_data_query);
|
||||
//pólóméret array
|
||||
$shirt_size_query = "SELECT * FROM shirt;";
|
||||
$shirt_size_assoc_array = $sql->assoc_array($shirt_size_query);
|
||||
//szülő array
|
||||
$parent_query = "SELECT * FROM user_parent;";
|
||||
$parent_assoc_array = $sql->assoc_array($parent_query);
|
||||
//SCHOOL ARRAY
|
||||
$school_query = "SELECT * FROM school;";
|
||||
$school_assoc_array = $sql->assoc_array($school_query);
|
||||
//SCHOOL CITY ARRAY
|
||||
$school_city_query = "SELECT * FROM school_city;";
|
||||
$school_city_assoc_array = $sql->assoc_array($school_city_query);
|
||||
//smarty thingz
|
||||
$smarty->assign('school_assoc_array', $school_assoc_array);
|
||||
$smarty->assign('school_city_assoc_array', $school_city_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);
|
||||
$smarty->display('user_data_'.$tpl.'.tpl');
|
||||
}
|
||||
else {
|
||||
# TAG LISTA
|
||||
|
||||
$user_list_query = "SELECT * FROM user_kid ORDER BY uk_name ASC;";
|
||||
$user_list_assoc_array = $sql->assoc_array($user_list_query);
|
||||
//végigmegyünk a tömbbön, objektumot csinálunk belőlük, és átadjuk egy array-ben a template-nek
|
||||
$user_array = array();
|
||||
foreach ($user_list_assoc_array as $user_list_array) {
|
||||
$current_user = new user_kid();
|
||||
$current_user->set_user_data_by_id($user_list_array['uk_id']);
|
||||
$user_array[] = $current_user;
|
||||
}
|
||||
$smarty->assign('edit', $tpl == "edit");
|
||||
$smarty->assign('user_array', $user_array);
|
||||
$smarty->display('user_list.tpl');
|
||||
//var_dump($user_array);
|
||||
}
|
||||
|
||||
?>
|
||||
57
_include/include_presence.php
Normal file
57
_include/include_presence.php
Normal file
@@ -0,0 +1,57 @@
|
||||
<?php
|
||||
|
||||
# HA VAN ID, AKKOR AZ ADOTT EDZÉSRE LEHET GYEREKEKET BEJELEÖLNI
|
||||
# HA NINCS ID, AKKOR EDZÉSLITA
|
||||
|
||||
if ($this->is_id()) {
|
||||
|
||||
# GYEREKEK BEJELÖLÉSE
|
||||
# lekérjük, hogy az elmúlt 4 héten kik voltak ilyen típusú edzésen [egyeznie kell a dayofweeknek és a type-nak]
|
||||
|
||||
$presence_query = "SELECT * FROM user_kid ORDER BY uk_last_name, uk_first_name;";
|
||||
$presence_assoc_array = $sql->assoc_array($presence_query);
|
||||
//végig kell menni rajta h legeneráljuk az usereket
|
||||
|
||||
$users = array();
|
||||
//var_dump($presence_assoc_array);
|
||||
foreach ($presence_assoc_array as $presence) {
|
||||
$user = new user_kid();
|
||||
$user->set_user_data_by_id($presence['uk_id']);
|
||||
$users[] = $user;
|
||||
}
|
||||
|
||||
//var_dump($users);
|
||||
|
||||
$smarty->assign('presence_assoc_array', $presence_assoc_array);
|
||||
$smarty->assign('users', $users);
|
||||
$smarty->assign('tr_id', $this->get_id());
|
||||
|
||||
$smarty->display("presence.tpl");
|
||||
|
||||
}
|
||||
|
||||
else {
|
||||
$actual_month = date('m');
|
||||
$actual_month = 10;
|
||||
$traning_list_query = "SELECT * FROM training WHERE MONTH(tr_date) = " . $actual_month . ";";
|
||||
$training_list_assoc_array = $sql->assoc_array($traning_list_query);
|
||||
|
||||
$training_array = array();
|
||||
foreach ($training_list_assoc_array as $training_list_array) {
|
||||
$training = new training();
|
||||
$training->set_training_data_by_id($training_list_array['tr_id']);
|
||||
$training_array[] = $training;
|
||||
}
|
||||
//var_dump($training_array);
|
||||
$smarty->assign('edit', $tpl);
|
||||
$smarty->assign("training_array", $training_array);
|
||||
$smarty->display("training_list.tpl");
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
?>
|
||||
51
_include/include_trainings.php
Normal file
51
_include/include_trainings.php
Normal file
@@ -0,0 +1,51 @@
|
||||
<?php
|
||||
|
||||
# HA NINCS ID, AKKOR EDZÉSLISTA
|
||||
# HA VAN ID, AKKOR EDZÉS ADATAINAK SZERKESZTÉSE/MEGTEKINTÉSE
|
||||
|
||||
if ($this->is_id()) {
|
||||
|
||||
# ADOTT EDZÉS ADATAINAK MEGJELENÍTÉSE
|
||||
//training adatok
|
||||
$training_data_query = "SELECT * FROM training WHERE tr_id = " . $this->get_id();
|
||||
$training_data_assoc_array = $sql->assoc_array($training_data_query);
|
||||
$smarty->assign('training_data', $training_data_assoc_array[0]);
|
||||
//TRAINING TYPE ARRAY
|
||||
$training_type_query = "SELECT * FROM training_type ORDER BY trt_name ASC;";
|
||||
$training_type_assoc_array = $sql->assoc_array($training_type_query);
|
||||
$smarty->assign("training_type_assoc_array", $training_type_assoc_array);
|
||||
//COACH ARRAY
|
||||
$coach_data_query = "SELECT * FROM user_coach;";
|
||||
$coach_data_assoc_array = $sql->assoc_array($coach_data_query);
|
||||
$smarty->assign("coach_data_assoc_array", $coach_data_assoc_array);
|
||||
|
||||
$smarty->display('training_data_'.$tpl.'.tpl');
|
||||
|
||||
}
|
||||
|
||||
else {
|
||||
|
||||
//$actual_month = date('m');
|
||||
$actual_month = 10;
|
||||
$traning_list_query = "SELECT * FROM training WHERE MONTH(tr_date) = " . $actual_month . ";";
|
||||
$training_list_assoc_array = $sql->assoc_array($traning_list_query);
|
||||
|
||||
$training_array = array();
|
||||
foreach ($training_list_assoc_array as $training_list_array) {
|
||||
$training = new training();
|
||||
$training->set_training_data_by_id($training_list_array['tr_id']);
|
||||
$training_array[] = $training;
|
||||
}
|
||||
//var_dump($traning_array);
|
||||
$smarty->assign('edit', $tpl);
|
||||
$smarty->assign("training_array", $training_array);
|
||||
$smarty->display("training_list.tpl");
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
?>
|
||||
51
common.php
Normal file
51
common.php
Normal file
@@ -0,0 +1,51 @@
|
||||
<?php
|
||||
|
||||
|
||||
//AUTOLOAD BEÁLLÍTÁSA
|
||||
spl_autoload_register(function ($class_name) {
|
||||
$exception = array(
|
||||
'Smarty',
|
||||
'Smarty_Internal_Data',
|
||||
'SmartyException',
|
||||
'Smarty_Internal_TemplateCompilerBase',
|
||||
'Smarty_Internal_Templatelexer',
|
||||
'Smarty_Internal_Templateparser',
|
||||
'Smarty_Internal_ParseTree_Template',
|
||||
'Smarty_Internal_ParseTree',
|
||||
'Smarty_Internal_ParseTree_Tag',
|
||||
'Smarty_Internal_ParseTree_Text',
|
||||
'Smarty_Internal_Extension_CodeFrame',
|
||||
'Smarty_Internal_Write_File',
|
||||
'Smarty_Internal_Extension_CodeFrame',
|
||||
'Smarty_Internal_Extension_CodeFrame',
|
||||
'Smarty_Internal_Extension_CodeFrame',
|
||||
'Smarty_Internal_CompileBase',
|
||||
'Smarty_Undefined_Variable',
|
||||
);
|
||||
if (!in_array($class_name, $exception)) include '_class/class_' . $class_name . '.php';
|
||||
});
|
||||
|
||||
//SMARTY BEÁLLÍTÁSA
|
||||
require('../Smarty/Smarty.class.php');
|
||||
|
||||
$smarty = new Smarty();
|
||||
|
||||
$smarty->setTemplateDir('template/templates');
|
||||
$smarty->setCompileDir('template/templates_c');
|
||||
$smarty->setCacheDir('template/cache');
|
||||
$smarty->setConfigDir('template/configs');
|
||||
|
||||
//SQL KAPCSOLAT BEÁLLÍTÁSA
|
||||
$sql = new sql('localhost','root','','badminton_coach');
|
||||
|
||||
if (isset($_COOKIE['badminton_coach_user'])) {
|
||||
$user = new user();
|
||||
$user->set_user_data_by_id($_COOKIE['badminton_coach_user']);
|
||||
//var_dump($user);
|
||||
}
|
||||
|
||||
//$page = new page();
|
||||
|
||||
|
||||
|
||||
?>
|
||||
78
event_handler.php
Normal file
78
event_handler.php
Normal file
@@ -0,0 +1,78 @@
|
||||
<?php
|
||||
|
||||
|
||||
if (isset($_POST['action'])) {
|
||||
|
||||
$actual_link = "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
|
||||
switch ($_POST['action']) {
|
||||
case 'login':
|
||||
# login
|
||||
/*
|
||||
USER TYPES: 1 - coach, 2 - kid, 3 - parent
|
||||
*/
|
||||
$login = new login();
|
||||
$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);
|
||||
}
|
||||
else {
|
||||
//sikertelen bejelentkezés
|
||||
}
|
||||
break;
|
||||
|
||||
case 'user_data_edit':
|
||||
switch ($_POST['user_type']) {
|
||||
case '1':
|
||||
# KID
|
||||
unset($_POST['user_type']);
|
||||
unset($_POST['action']);
|
||||
$uid = $_POST['uk_id'];
|
||||
unset($_POST['uk_id']);
|
||||
user_kid::update_user($_POST, $uid);
|
||||
header("Location: " . $actual_link);
|
||||
break;
|
||||
|
||||
default:
|
||||
# code...
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case 'user_data_create':
|
||||
# user létrehozása
|
||||
# nincs elágazás user_type szerint
|
||||
unset($_POST['action']);
|
||||
$new_user_id = user_kid::create_user($_POST);
|
||||
header("Location: /admin/edit_member/" . $new_user_id);
|
||||
break;
|
||||
|
||||
case 'training_data_edit':
|
||||
#training edit
|
||||
$tr_id = $_POST['tr_id'];
|
||||
unset($_POST['tr_id']);
|
||||
unset($_POST['action']);
|
||||
//var_dump($_POST);
|
||||
training::update_training($_POST, $tr_id);
|
||||
header("Location: " . $actual_link);
|
||||
break;
|
||||
|
||||
case 'training_data_create':
|
||||
#training create
|
||||
#a training_list-re ugrik vissza, mert lehet h többet is létrehoz
|
||||
unset($_POST['action']);
|
||||
$every_week = isset($_POST['every_week']);
|
||||
if ($every_week) unset($_POST['every_week']);
|
||||
$new_training_id = training::create_training($_POST, $every_week);
|
||||
|
||||
break;
|
||||
|
||||
default:
|
||||
# code...
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
63
index.php
Normal file
63
index.php
Normal file
@@ -0,0 +1,63 @@
|
||||
<!DOCTYPE html>
|
||||
|
||||
<head>
|
||||
<style>
|
||||
a:link {
|
||||
text-decoration: none;
|
||||
}
|
||||
a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
nav {
|
||||
width: 100%;
|
||||
background-color: #000;
|
||||
padding: 10px 0px;
|
||||
}
|
||||
nav a {
|
||||
color: #fff;
|
||||
margin: 10px;
|
||||
text-decoration: none;
|
||||
}
|
||||
nav a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
td.create {
|
||||
padding: 15px 0px;
|
||||
}
|
||||
td.create a {
|
||||
line-height: 18px;
|
||||
font-size: 18px;
|
||||
}
|
||||
</style>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
$( document ).ready(function() {
|
||||
console.log( "ready!" );
|
||||
});
|
||||
|
||||
|
||||
</script>
|
||||
<meta charset="utf-8">
|
||||
<title>Badminton Coach v 0.1</title>
|
||||
<?php
|
||||
|
||||
require('common.php');
|
||||
require('event_handler.php');
|
||||
$page = new page();
|
||||
|
||||
?>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<nav>
|
||||
<?= $page->get_page_nav();?>
|
||||
</nav>
|
||||
<main>
|
||||
<?= $page->get_page_content();?>
|
||||
</main>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
17
template/templates/login.tpl
Normal file
17
template/templates/login.tpl
Normal file
@@ -0,0 +1,17 @@
|
||||
<form method="post">
|
||||
<input type="hidden" name="action" id="action" value="login">
|
||||
<input type="hidden" name="user_type" id="user_type" value="1">
|
||||
<table>
|
||||
<tr>
|
||||
<td>Felhasználónév:</td>
|
||||
<td><input type="text" name="user_name" id="user_name"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Jelszó:</td>
|
||||
<td><input type="password" name="user_password" id="user_password"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"><input type="submit" value="Belépés"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
7
template/templates/nav.tpl
Normal file
7
template/templates/nav.tpl
Normal file
@@ -0,0 +1,7 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td><a href="/admin/members">Tagok</a></td>
|
||||
<td><a href="/admin/trainings">Edzések</a></td>
|
||||
<td><a href="/admin/presence">Jelenlét</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
28
template/templates/presence.tpl
Normal file
28
template/templates/presence.tpl
Normal file
@@ -0,0 +1,28 @@
|
||||
<table>
|
||||
<input type="hidden" id="tr_id" value="{$tr_id}">
|
||||
|
||||
{foreach $users as $user}
|
||||
<tr>
|
||||
<td>{$user->get_uk_last_name()} {$user->get_uk_first_name()}</td>
|
||||
<td><input name="chk" type="checkbox" id="chk" value="{$user->get_uk_id()}" class="chk" {if $user->get_uk_presence($tr_id)}checked{/if}> </td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
<script>
|
||||
$('.chk').click(function() {
|
||||
var checked = $(this).is(':checked');
|
||||
var user_id = $(this).val();
|
||||
var tr_id = $("#tr_id").val();
|
||||
alert(checked);
|
||||
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: '/ajax/update_presence.php',
|
||||
data: { checked : checked, user_id : user_id, tr_id : tr_id },
|
||||
success: function(data) {
|
||||
//alert('it worked');
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
</script>
|
||||
47
template/templates/training_data_create.tpl
Normal file
47
template/templates/training_data_create.tpl
Normal file
@@ -0,0 +1,47 @@
|
||||
<form method="post">
|
||||
<input type="hidden" name="action" id="action" value="training_data_create">
|
||||
<table>
|
||||
|
||||
|
||||
|
||||
<tr>
|
||||
<td>Dátum: </td>
|
||||
<td>
|
||||
<input type="text" id="tr_date" name="tr_date">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Típus: </td>
|
||||
<td>
|
||||
<select name="tr_training_type_trt_id" id="tr_training_type_trt_id">
|
||||
<option value="null"> - </option>
|
||||
{foreach $training_type_assoc_array as $training_type_array}
|
||||
<option value="{$training_type_array.trt_id}">
|
||||
{$training_type_array.trt_name}
|
||||
</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Edző: </td>
|
||||
<td>
|
||||
<select name="tr_user_coach_uc_id" id="tr_user_coach_uc_id">
|
||||
<option value="null"> - </option>
|
||||
{foreach $coach_data_assoc_array as $coach_data_array}
|
||||
<option value="{$coach_data_array.ua_id}">
|
||||
{$coach_data_array.ua_last_name} {$coach_data_array.ua_first_name}
|
||||
</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Minden héten ebben az időpontban</td>
|
||||
<td><input type="checkbox" name="every_week"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"><input type="submit" value="Létrehozás"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
46
template/templates/training_data_edit.tpl
Normal file
46
template/templates/training_data_edit.tpl
Normal file
@@ -0,0 +1,46 @@
|
||||
<form method="post">
|
||||
<input type="hidden" name="action" id="action" value="training_data_edit">
|
||||
<input type="hidden" name="tr_id" id="tr_id" value="{$training_data.tr_id}">
|
||||
<table>
|
||||
<tr>
|
||||
<td colspan="2"><a href="/admin/trainings/{$training_data.tr_id}">MEGTEKINTÉS</a></td>
|
||||
</tr>
|
||||
|
||||
|
||||
<tr>
|
||||
<td>Dátum: </td>
|
||||
<td>
|
||||
<input type="text" id="tr_date" name="tr_date" value="{$training_data.tr_date}">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Típus: </td>
|
||||
<td>
|
||||
<select name="tr_training_type_trt_id" id="tr_training_type_trt_id">
|
||||
<option value="null"> - </option>
|
||||
{foreach $training_type_assoc_array as $training_type_array}
|
||||
<option value="{$training_type_array.trt_id}"{if $training_type_array.trt_id == $training_data.tr_training_type_trt_id} selected{/if}>
|
||||
{$training_type_array.trt_name}
|
||||
</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Edző: </td>
|
||||
<td>
|
||||
<select name="tr_user_coach_uc_id" id="tr_user_coach_uc_id">
|
||||
<option value="null"> - </option>
|
||||
{foreach $coach_data_assoc_array as $coach_data_array}
|
||||
<option value="{$coach_data_array.ua_id}"{if $coach_data_array.ua_id == $training_data.tr_user_coach_uc_id} selected{/if}>
|
||||
{$coach_data_array.ua_last_name} {$coach_data_array.ua_first_name}
|
||||
</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"><input type="submit" value="Mentés"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
37
template/templates/training_data_view.tpl
Normal file
37
template/templates/training_data_view.tpl
Normal file
@@ -0,0 +1,37 @@
|
||||
<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>
|
||||
<tr>
|
||||
<td>Típus: </td>
|
||||
<td>
|
||||
<select name="tr_training_type_trt_id" id="tr_training_type_trt_id" disabled>
|
||||
<option value="null"> - </option>
|
||||
{foreach $training_type_assoc_array as $training_type_array}
|
||||
<option value="{$training_type_array.trt_id}"{if $training_type_array.trt_id == $training_data.tr_training_type_trt_id} selected{/if}>
|
||||
{$training_type_array.trt_name}
|
||||
</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Edző: </td>
|
||||
<td>
|
||||
<select name="tr_user_coach_uc_id" id="tr_user_coach_uc_id" disabled>
|
||||
<option value="null"> - </option>
|
||||
{foreach $coach_data_assoc_array as $coach_data_array}
|
||||
<option value="{$coach_data_array.trt_id}"{if $coach_data_array.ua_id == $training_data.tr_user_coach_uc_id} selected{/if}>
|
||||
{$coach_data_array.ua_last_name} {$coach_data_array.ua_first_name}
|
||||
</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
17
template/templates/training_date_view.tpl
Normal file
17
template/templates/training_date_view.tpl
Normal file
@@ -0,0 +1,17 @@
|
||||
<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>
|
||||
18
template/templates/training_list.tpl
Normal file
18
template/templates/training_list.tpl
Normal file
@@ -0,0 +1,18 @@
|
||||
<table>
|
||||
|
||||
<tr>
|
||||
<td colspan="2" class="create"><a href="/admin/create/training">+ Új edzés hozzáadása</a></td>
|
||||
</tr>
|
||||
|
||||
{foreach $training_array as $training}
|
||||
<tr>
|
||||
<td>
|
||||
<a href="/admin/{if $edit=='edit'}edit_training{elseif $edit=='view'}trainings{else}presence{/if}/{$training->get_tr_id()}">
|
||||
{$training->get_tr_date()|substr:0:-3} ({$training->get_tr_type_name_by_id()})
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
{/foreach}
|
||||
|
||||
</table>
|
||||
187
template/templates/user_data_create.tpl
Normal file
187
template/templates/user_data_create.tpl
Normal file
@@ -0,0 +1,187 @@
|
||||
<form method="post">
|
||||
<input type="hidden" name="action" id="action" value="user_data_create">
|
||||
<table>
|
||||
|
||||
|
||||
<tr>
|
||||
<td>Név: </td>
|
||||
<td><input type="text" name="uk_name" id="uk_name"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Aktív: </td>
|
||||
<td><input type="checkbox" name="uk_is_active" id="uk_is_active" value="1" checked></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Utolsó módosítás dátuma: </td>
|
||||
<td><input type="text" name="uk_last_modified" id="uk_last_modified" value="{$today}"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Jelszó: </td>
|
||||
<td><input type="text" name="uk_password" id="uk_password"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Nem: </td>
|
||||
<td>
|
||||
<input type="radio" name="uk_gender" value="1" checked>Fiú
|
||||
|
||||
<input type="radio" name="uk_gender" value="2">Lány
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Születési dátum: </td>
|
||||
<td><input type="text" name="uk_birth_date" id="uk_birth_date"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Lakcím: </td>
|
||||
<td><input type="text" name="uk_address" id="uk_address"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Első edzés dátuma: </td>
|
||||
<td><input type="text" name="uk_first_training" id="uk_first_training"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Kéz: </td>
|
||||
<td>
|
||||
<input type="radio" name="uk_hand" value="1" checked>Balkezes
|
||||
|
||||
<input type="radio" name="uk_hand" value="2">Jobbkezes
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Email cím: </td>
|
||||
<td><input type="text" name="uk_email" id="uk_email"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Telefonszám: </td>
|
||||
<td><input type="text" name="uk_phone" id="uk_phone"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Facebook: </td>
|
||||
<td><input type="text" name="uk_facebook" id="uk_facebook"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Iskola neve: </td>
|
||||
<td>
|
||||
<select name="uk_school_sc_id" id="uk_school_sc_id">
|
||||
<option value="null"> - </option>
|
||||
{foreach $school_assoc_array as $school_array}
|
||||
<option value="{$school_array.sc_id}">
|
||||
{$school_array.sc_name}
|
||||
</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
<input type="text" name="add_school" id="add_school">
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Iskola települése: </td>
|
||||
<td>
|
||||
<select name="uk_school_city_scc_id" id="uk_school_city_scc_id">
|
||||
<option value="null"> - </option>
|
||||
{foreach $school_city_assoc_array as $school_city_array}
|
||||
<option value="{$school_city_array.scc_id}">
|
||||
{$school_city_array.scc_city}
|
||||
</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Iskola kerülete: </td>
|
||||
<td><input type="text" name="uk_school_district" id="uk_school_district" value="0"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Pólóméret: </td>
|
||||
<td>
|
||||
<select name="uk_shirt_size_ss_id" id="uk_shirt_size_ss_id">
|
||||
<option value="null"> - </option>
|
||||
{foreach $shirt_size_assoc_array as $shirt_size_array}
|
||||
<option value="{$shirt_size_array.shirt_id}">
|
||||
{$shirt_size_array.shirt_name}
|
||||
</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Szülő1: </td>
|
||||
<td>
|
||||
<select name="uk_parent_1" id="uk_parent_1">
|
||||
<option value="null"> - </option>
|
||||
{foreach $parent_assoc_array as $parent_array}
|
||||
<option value="{$parent_array.up_id}">
|
||||
{$parent_array.up_name}
|
||||
</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
<input type="text" name="add_parent_1" id="add_parent_1">
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Szülő1 email cím: </td>
|
||||
<td><input type="text" name="parent_1_email" id="parent_1_email"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Szülő1 facebook: </td>
|
||||
<td><input type="text" name="parent_1_facebook" id="parent_1_facebook"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Szülő1 telefonszám: </td>
|
||||
<td><input type="text" name="parent_1_phone" id="parent_1_phone"></td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
<tr>
|
||||
<td>Szülő2: </td>
|
||||
<td>
|
||||
<select name="uk_parent_2" id="uk_parent_2">
|
||||
<option value="null"> - </option>
|
||||
{foreach $parent_assoc_array as $parent_array}
|
||||
<option value="{$parent_array.up_id}">
|
||||
{$parent_array.up_name}
|
||||
</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
<input type="text" name="add_parent_2" id="add_parent_2">
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Szülő2 email cím: </td>
|
||||
<td><input type="text" name="parent_2_email" id="parent_2_email"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Szülő2 facebook: </td>
|
||||
<td><input type="text" name="parent_2_facebook" id="parent_2_facebook"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Szülő2 telefonszám: </td>
|
||||
<td><input type="text" name="parent_2_phone" id="parent_2_phone"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="2"><input type="submit" value="Létrehozás"></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</form>
|
||||
161
template/templates/user_data_edit.tpl
Normal file
161
template/templates/user_data_edit.tpl
Normal file
@@ -0,0 +1,161 @@
|
||||
<form method="post">
|
||||
<input type="hidden" name="action" id="action" value="user_data_edit">
|
||||
<input type="hidden" name="user_type" id="user_type" value="1">
|
||||
<input type="hidden" name="uk_id" id="uk_id" value="{$user_data.uk_id}">
|
||||
<table>
|
||||
<tr>
|
||||
<td><a href="/admin/members/{$user_data.uk_id}">MEGTEKINTÉS</a></td>
|
||||
<td><a href="/admin/delete_member/{$user_data.uk_id}">TÖRLÉS</a></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Név: </td>
|
||||
<td><input type="text" name="uk_name" id="uk_name" value="{$user_data.uk_name}"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Aktív: </td>
|
||||
<td><input type="checkbox" name="uk_is_active" id="uk_is_active" value="1" {if 1==$user_data.uk_is_active}checked{/if}></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Utolsó módosítás dátuma: </td>
|
||||
<td><input type="text" name="uk_last_modified" id="uk_last_modified" value="{$user_data.uk_last_modified}"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Jelszó: </td>
|
||||
<td><input type="text" name="uk_password" id="uk_password" value="{$user_data.uk_password}"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Nem: </td>
|
||||
<td>
|
||||
<input type="radio" name="uk_gender" value="1" {if 1==$user_data.uk_gender}checked{/if}>Fiú
|
||||
|
||||
<input type="radio" name="uk_gender" value="2" {if 2==$user_data.uk_gender}checked{/if}>Lány
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Születési dátum: </td>
|
||||
<td><input type="text" name="uk_birth_date" id="uk_birth_date" value="{$user_data.uk_birth_date}"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Lakcím: </td>
|
||||
<td><input type="text" name="uk_address" id="uk_address" value="{$user_data.uk_address}"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Első edzés dátuma: </td>
|
||||
<td><input type="text" name="uk_first_training" id="uk_first_training" value="{$user_data.uk_first_training}"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Kéz: </td>
|
||||
<td>
|
||||
<input type="radio" name="uk_hand" value="1" {if 1==$user_data.uk_hand}checked{/if}>Balkezes
|
||||
|
||||
<input type="radio" name="uk_hand" value="2" {if 2==$user_data.uk_hand}checked{/if}>Jobbkezes
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Email cím: </td>
|
||||
<td><input type="text" name="uk_email" id="uk_email" value="{$user_data.uk_email}"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Telefonszám: </td>
|
||||
<td><input type="text" name="uk_phone" id="uk_phone" value="{$user_data.uk_phone}"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Facebook: </td>
|
||||
<td><input type="text" name="uk_facebook" id="uk_facebook" value="{$user_data.uk_facebook}"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Pólóméret: </td>
|
||||
<td>
|
||||
<select name="uk_shirt_size_ss_id" id="uk_shirt_size_ss_id">
|
||||
<option value="null"> - </option>
|
||||
{foreach $shirt_size_assoc_array as $shirt_size_array}
|
||||
<option value="{$shirt_size_array.shirt_id}"{if $shirt_size_array.shirt_id == $user_data.uk_shirt_size_ss_id} selected{/if}>
|
||||
{$shirt_size_array.shirt_name}
|
||||
</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Iskola neve: </td>
|
||||
<td>
|
||||
<select name="uk_school_sc_id" id="uk_school_sc_id">
|
||||
<option value="null"> - </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}
|
||||
</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Iskola települése: </td>
|
||||
<td>
|
||||
<select name="uk_school_city_scc_id" id="uk_school_city_scc_id">
|
||||
<option value="null"> - </option>
|
||||
{foreach $school_city_assoc_array as $school_city_array}
|
||||
<option value="{$school_city_array.scc_id}" {if $school_city_array.scc_id == $user_data.uk_school_city_scc_id} selected{/if}>
|
||||
{$school_city_array.scc_city}
|
||||
</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Iskola kerülete: </td>
|
||||
<td><input type="text" name="uk_school_district" id="uk_school_district" value="{$user_data.uk_school_district}"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Szülő1: </td>
|
||||
<td>
|
||||
<select name="uk_parent_1" id="uk_parent_1">
|
||||
<option value="null"> - </option>
|
||||
{foreach $parent_assoc_array as $parent_array}
|
||||
<option value="{$parent_array.up_id}"{if $parent_array.up_id == $user_data.uk_parent_1} selected{/if}>
|
||||
{$parent_array.up_name}
|
||||
</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Szülő2: </td>
|
||||
<td>
|
||||
<select name="uk_parent_2" id="uk_parent_2">
|
||||
<option value="null"> - </option>
|
||||
{foreach $parent_assoc_array as $parent_array}
|
||||
<option value="{$parent_array.up_id}"{if $parent_array.up_id == $user_data.uk_parent_2} selected{/if}>
|
||||
{$parent_array.up_name}
|
||||
</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="2"><input type="submit" value="Mentés"></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</form>
|
||||
150
template/templates/user_data_view.tpl
Normal file
150
template/templates/user_data_view.tpl
Normal file
@@ -0,0 +1,150 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td colspan="2"><a href="/admin/edit_member/{$user_data.uk_id}">SZERKESZTÉS</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">{$user_data.uk_name}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Aktív: </td>
|
||||
<td><input type="checkbox" name="uk_is_active" id="uk_is_active" value="1" {if 1==$user_data.uk_is_active}checked{/if} disabled></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Utolsó módosítás dátuma: </td>
|
||||
<td><input type="text" name="uk_last_modified" id="uk_last_modified" value="{$user_data.uk_last_modified}"disabled></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Jelszó: </td>
|
||||
<td><input type="text" name="uk_password" id="uk_password" value="{$user_data.uk_password}"disabled></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Nem: </td>
|
||||
<td>
|
||||
<input type="radio" name="uk_gender" value="1" {if 1==$user_data.uk_gender}checked{/if} disabled>Fiú
|
||||
|
||||
<input type="radio" name="uk_gender" value="2" {if 2==$user_data.uk_gender}checked{/if} disabled>Lány
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Születési dátum: </td>
|
||||
<td><input type="text" name="uk_birth_date" id="uk_birth_date" value="{$user_data.uk_birth_date}"disabled></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Lakcím: </td>
|
||||
<td><input type="text" name="uk_address" id="uk_address" value="{$user_data.uk_address}"disabled></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Első edzés dátuma: </td>
|
||||
<td><input type="text" name="uk_first_training" id="uk_first_training" value="{$user_data.uk_first_training}"disabled></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Kéz: </td>
|
||||
<td>
|
||||
<input type="radio" name="uk_hand" value="1" {if 1==$user_data.uk_hand}checked{/if} disabled>Balkezes
|
||||
|
||||
<input type="radio" name="uk_hand" value="2" {if 2==$user_data.uk_hand}checked{/if} disabled>Jobbkezes
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Email cím: </td>
|
||||
<td>{$user_data.uk_email}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Telefonszám: </td>
|
||||
<td>{$user_data.uk_phone}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Facebbok: </td>
|
||||
<td>{$user_data.uk_facebook}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Pólóméret: </td>
|
||||
<td>
|
||||
<select name="shirt_size" id="shirt_size" disabled>
|
||||
<option value="null"> - </option>
|
||||
{foreach $shirt_size_assoc_array as $shirt_size_array}
|
||||
<option value="{$shirt_size_array.shirt_id}"{if $shirt_size_array.shirt_id == $user_data.uk_shirt_size_ss_id} selected{/if}>
|
||||
{$shirt_size_array.shirt_name}
|
||||
</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Iskola neve: </td>
|
||||
<td>
|
||||
<select name="uk_school_sc_id" id="uk_school_sc_id" disabled>
|
||||
<option value="null"> - </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}
|
||||
</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Iskola települése: </td>
|
||||
<td>
|
||||
<select name="uk_school_city_scc_id" id="uk_school_city_scc_id" disabled>
|
||||
<option value="null"> - </option>
|
||||
{foreach $school_city_assoc_array as $school_city_array}
|
||||
<option value="{$school_city_array.scc_id}" {if $school_city_array.scc_id == $user_data.uk_school_city_scc_id} selected{/if}>
|
||||
{$school_city_array.scc_city}
|
||||
</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Iskola kerülete: </td>
|
||||
<td><input type="text" name="uk_school_district" id="uk_school_district" value="{$user_data.uk_school_district}" disabled></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Szülő1: </td>
|
||||
<td>
|
||||
<select name="parent1" id="parent1" disabled>
|
||||
<option value="null"> - </option>
|
||||
{foreach $parent_assoc_array as $parent_array}
|
||||
<option value="{$parent_array.up_id}"{if $parent_array.up_id == $user_data.uk_parent_1} selected{/if}>
|
||||
{$parent_array.up_name}
|
||||
</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Szülő2: </td>
|
||||
<td>
|
||||
<select name="parent1" id="parent1" disabled>
|
||||
<option value="null"> - </option>
|
||||
{foreach $parent_assoc_array as $parent_array}
|
||||
<option value="{$parent_array.up_id}"{if $parent_array.up_id == $user_data.uk_parent_2} selected{/if}>
|
||||
{$parent_array.up_name}
|
||||
</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
</table>
|
||||
19
template/templates/user_list.tpl
Normal file
19
template/templates/user_list.tpl
Normal file
@@ -0,0 +1,19 @@
|
||||
|
||||
|
||||
<table>
|
||||
|
||||
<tr>
|
||||
<td colspan="2" class="create"><a href="/admin/create/member">+ Új tag hozzáadása</a></td>
|
||||
</tr>
|
||||
|
||||
{foreach $user_array as $user}
|
||||
<tr>
|
||||
<td>
|
||||
<a href="/admin/{if !$edit}members{else}edit_member{/if}/{$user->get_uk_id()}">
|
||||
{$user->get_uk_name()}
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
|
||||
</table>
|
||||
@@ -0,0 +1,289 @@
|
||||
<?php /* Smarty version 3.1.27, created on 2016-11-06 22:40:58
|
||||
compiled from "template/templates/user_data_edit.tpl" */ ?>
|
||||
<?php
|
||||
/*%%SmartyHeaderCode:1371035005581fa36af07935_63127217%%*/
|
||||
if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
||||
$_valid = $_smarty_tpl->decodeProperties(array (
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'0daa726415612b42547a6b66a59aa1f658e617c7' =>
|
||||
array (
|
||||
0 => 'template/templates/user_data_edit.tpl',
|
||||
1 => 1478468413,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'nocache_hash' => '1371035005581fa36af07935_63127217',
|
||||
'variables' =>
|
||||
array (
|
||||
'user_data' => 0,
|
||||
'shirt_size_assoc_array' => 0,
|
||||
'shirt_size_array' => 0,
|
||||
'school_assoc_array' => 0,
|
||||
'school_array' => 0,
|
||||
'school_city_assoc_array' => 0,
|
||||
'school_city_array' => 0,
|
||||
'parent_assoc_array' => 0,
|
||||
'parent_array' => 0,
|
||||
),
|
||||
'has_nocache_code' => false,
|
||||
'version' => '3.1.27',
|
||||
'unifunc' => 'content_581fa36b0bd6f3_92404884',
|
||||
),false);
|
||||
/*/%%SmartyHeaderCode%%*/
|
||||
if ($_valid && !is_callable('content_581fa36b0bd6f3_92404884')) {
|
||||
function content_581fa36b0bd6f3_92404884 ($_smarty_tpl) {
|
||||
|
||||
$_smarty_tpl->properties['nocache_hash'] = '1371035005581fa36af07935_63127217';
|
||||
?>
|
||||
<form method="post">
|
||||
<input type="hidden" name="action" id="action" value="user_data_edit">
|
||||
<input type="hidden" name="user_type" id="user_type" value="1">
|
||||
<input type="hidden" name="uk_id" id="uk_id" value="<?php echo $_smarty_tpl->tpl_vars['user_data']->value['uk_id'];?>
|
||||
">
|
||||
<table>
|
||||
<tr>
|
||||
<td><a href="/admin/members/<?php echo $_smarty_tpl->tpl_vars['user_data']->value['uk_id'];?>
|
||||
">MEGTEKINTÉS</a></td>
|
||||
<td><a href="/admin/delete_member/<?php echo $_smarty_tpl->tpl_vars['user_data']->value['uk_id'];?>
|
||||
">TÖRLÉS</a></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Név: </td>
|
||||
<td><input type="text" name="uk_name" id="uk_name" value="<?php echo $_smarty_tpl->tpl_vars['user_data']->value['uk_name'];?>
|
||||
"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Aktív: </td>
|
||||
<td><input type="checkbox" name="uk_is_active" id="uk_is_active" value="1" <?php if (1 == $_smarty_tpl->tpl_vars['user_data']->value['uk_is_active']) {?>checked<?php }?>></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Utolsó módosítás dátuma: </td>
|
||||
<td><input type="text" name="uk_last_modified" id="uk_last_modified" value="<?php echo $_smarty_tpl->tpl_vars['user_data']->value['uk_last_modified'];?>
|
||||
"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Jelszó: </td>
|
||||
<td><input type="text" name="uk_password" id="uk_password" value="<?php echo $_smarty_tpl->tpl_vars['user_data']->value['uk_password'];?>
|
||||
"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Nem: </td>
|
||||
<td>
|
||||
<input type="radio" name="uk_gender" value="1" <?php if (1 == $_smarty_tpl->tpl_vars['user_data']->value['uk_gender']) {?>checked<?php }?>>Fiú
|
||||
|
||||
<input type="radio" name="uk_gender" value="2" <?php if (2 == $_smarty_tpl->tpl_vars['user_data']->value['uk_gender']) {?>checked<?php }?>>Lány
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Születési dátum: </td>
|
||||
<td><input type="text" name="uk_birth_date" id="uk_birth_date" value="<?php echo $_smarty_tpl->tpl_vars['user_data']->value['uk_birth_date'];?>
|
||||
"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Lakcím: </td>
|
||||
<td><input type="text" name="uk_address" id="uk_address" value="<?php echo $_smarty_tpl->tpl_vars['user_data']->value['uk_address'];?>
|
||||
"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Első edzés dátuma: </td>
|
||||
<td><input type="text" name="uk_first_training" id="uk_first_training" value="<?php echo $_smarty_tpl->tpl_vars['user_data']->value['uk_first_training'];?>
|
||||
"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Kéz: </td>
|
||||
<td>
|
||||
<input type="radio" name="uk_hand" value="1" <?php if (1 == $_smarty_tpl->tpl_vars['user_data']->value['uk_hand']) {?>checked<?php }?>>Balkezes
|
||||
|
||||
<input type="radio" name="uk_hand" value="2" <?php if (2 == $_smarty_tpl->tpl_vars['user_data']->value['uk_hand']) {?>checked<?php }?>>Jobbkezes
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Email cím: </td>
|
||||
<td><input type="text" name="uk_email" id="uk_email" value="<?php echo $_smarty_tpl->tpl_vars['user_data']->value['uk_email'];?>
|
||||
"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Telefonszám: </td>
|
||||
<td><input type="text" name="uk_phone" id="uk_phone" value="<?php echo $_smarty_tpl->tpl_vars['user_data']->value['uk_phone'];?>
|
||||
"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Facebook: </td>
|
||||
<td><input type="text" name="uk_facebook" id="uk_facebook" value="<?php echo $_smarty_tpl->tpl_vars['user_data']->value['uk_facebook'];?>
|
||||
"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Pólóméret: </td>
|
||||
<td>
|
||||
<select name="uk_shirt_size_ss_id" id="uk_shirt_size_ss_id">
|
||||
<option value="null"> - </option>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->tpl_vars['shirt_size_assoc_array']->value;
|
||||
if (!is_array($_from) && !is_object($_from)) {
|
||||
settype($_from, 'array');
|
||||
}
|
||||
$_smarty_tpl->tpl_vars['shirt_size_array'] = new Smarty_Variable;
|
||||
$_smarty_tpl->tpl_vars['shirt_size_array']->_loop = false;
|
||||
foreach ($_from as $_smarty_tpl->tpl_vars['shirt_size_array']->value) {
|
||||
$_smarty_tpl->tpl_vars['shirt_size_array']->_loop = true;
|
||||
$foreach_shirt_size_array_Sav = $_smarty_tpl->tpl_vars['shirt_size_array'];
|
||||
?>
|
||||
<option value="<?php echo $_smarty_tpl->tpl_vars['shirt_size_array']->value['shirt_id'];?>
|
||||
"<?php if ($_smarty_tpl->tpl_vars['shirt_size_array']->value['shirt_id'] == $_smarty_tpl->tpl_vars['user_data']->value['uk_shirt_size_ss_id']) {?> selected<?php }?>>
|
||||
<?php echo $_smarty_tpl->tpl_vars['shirt_size_array']->value['shirt_name'];?>
|
||||
|
||||
</option>
|
||||
<?php
|
||||
$_smarty_tpl->tpl_vars['shirt_size_array'] = $foreach_shirt_size_array_Sav;
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Iskola neve: </td>
|
||||
<td>
|
||||
<select name="uk_school_sc_id" id="uk_school_sc_id">
|
||||
<option value="null"> - </option>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->tpl_vars['school_assoc_array']->value;
|
||||
if (!is_array($_from) && !is_object($_from)) {
|
||||
settype($_from, 'array');
|
||||
}
|
||||
$_smarty_tpl->tpl_vars['school_array'] = new Smarty_Variable;
|
||||
$_smarty_tpl->tpl_vars['school_array']->_loop = false;
|
||||
foreach ($_from as $_smarty_tpl->tpl_vars['school_array']->value) {
|
||||
$_smarty_tpl->tpl_vars['school_array']->_loop = true;
|
||||
$foreach_school_array_Sav = $_smarty_tpl->tpl_vars['school_array'];
|
||||
?>
|
||||
<option value="<?php echo $_smarty_tpl->tpl_vars['school_array']->value['sc_id'];?>
|
||||
" <?php if ($_smarty_tpl->tpl_vars['school_array']->value['sc_id'] == $_smarty_tpl->tpl_vars['user_data']->value['uk_school_sc_id']) {?> selected<?php }?>>
|
||||
<?php echo $_smarty_tpl->tpl_vars['school_array']->value['sc_name'];?>
|
||||
|
||||
</option>
|
||||
<?php
|
||||
$_smarty_tpl->tpl_vars['school_array'] = $foreach_school_array_Sav;
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Iskola települése: </td>
|
||||
<td>
|
||||
<select name="uk_school_city_scc_id" id="uk_school_city_scc_id">
|
||||
<option value="null"> - </option>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->tpl_vars['school_city_assoc_array']->value;
|
||||
if (!is_array($_from) && !is_object($_from)) {
|
||||
settype($_from, 'array');
|
||||
}
|
||||
$_smarty_tpl->tpl_vars['school_city_array'] = new Smarty_Variable;
|
||||
$_smarty_tpl->tpl_vars['school_city_array']->_loop = false;
|
||||
foreach ($_from as $_smarty_tpl->tpl_vars['school_city_array']->value) {
|
||||
$_smarty_tpl->tpl_vars['school_city_array']->_loop = true;
|
||||
$foreach_school_city_array_Sav = $_smarty_tpl->tpl_vars['school_city_array'];
|
||||
?>
|
||||
<option value="<?php echo $_smarty_tpl->tpl_vars['school_city_array']->value['scc_id'];?>
|
||||
" <?php if ($_smarty_tpl->tpl_vars['school_city_array']->value['scc_id'] == $_smarty_tpl->tpl_vars['user_data']->value['uk_school_city_scc_id']) {?> selected<?php }?>>
|
||||
<?php echo $_smarty_tpl->tpl_vars['school_city_array']->value['scc_city'];?>
|
||||
|
||||
</option>
|
||||
<?php
|
||||
$_smarty_tpl->tpl_vars['school_city_array'] = $foreach_school_city_array_Sav;
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Iskola kerülete: </td>
|
||||
<td><input type="text" name="uk_school_district" id="uk_school_district" value="<?php echo $_smarty_tpl->tpl_vars['user_data']->value['uk_school_district'];?>
|
||||
"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Szülő1: </td>
|
||||
<td>
|
||||
<select name="uk_parent_1" id="uk_parent_1">
|
||||
<option value="null"> - </option>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->tpl_vars['parent_assoc_array']->value;
|
||||
if (!is_array($_from) && !is_object($_from)) {
|
||||
settype($_from, 'array');
|
||||
}
|
||||
$_smarty_tpl->tpl_vars['parent_array'] = new Smarty_Variable;
|
||||
$_smarty_tpl->tpl_vars['parent_array']->_loop = false;
|
||||
foreach ($_from as $_smarty_tpl->tpl_vars['parent_array']->value) {
|
||||
$_smarty_tpl->tpl_vars['parent_array']->_loop = true;
|
||||
$foreach_parent_array_Sav = $_smarty_tpl->tpl_vars['parent_array'];
|
||||
?>
|
||||
<option value="<?php echo $_smarty_tpl->tpl_vars['parent_array']->value['up_id'];?>
|
||||
"<?php if ($_smarty_tpl->tpl_vars['parent_array']->value['up_id'] == $_smarty_tpl->tpl_vars['user_data']->value['uk_parent_1']) {?> selected<?php }?>>
|
||||
<?php echo $_smarty_tpl->tpl_vars['parent_array']->value['up_name'];?>
|
||||
|
||||
</option>
|
||||
<?php
|
||||
$_smarty_tpl->tpl_vars['parent_array'] = $foreach_parent_array_Sav;
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Szülő2: </td>
|
||||
<td>
|
||||
<select name="uk_parent_2" id="uk_parent_2">
|
||||
<option value="null"> - </option>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->tpl_vars['parent_assoc_array']->value;
|
||||
if (!is_array($_from) && !is_object($_from)) {
|
||||
settype($_from, 'array');
|
||||
}
|
||||
$_smarty_tpl->tpl_vars['parent_array'] = new Smarty_Variable;
|
||||
$_smarty_tpl->tpl_vars['parent_array']->_loop = false;
|
||||
foreach ($_from as $_smarty_tpl->tpl_vars['parent_array']->value) {
|
||||
$_smarty_tpl->tpl_vars['parent_array']->_loop = true;
|
||||
$foreach_parent_array_Sav = $_smarty_tpl->tpl_vars['parent_array'];
|
||||
?>
|
||||
<option value="<?php echo $_smarty_tpl->tpl_vars['parent_array']->value['up_id'];?>
|
||||
"<?php if ($_smarty_tpl->tpl_vars['parent_array']->value['up_id'] == $_smarty_tpl->tpl_vars['user_data']->value['uk_parent_2']) {?> selected<?php }?>>
|
||||
<?php echo $_smarty_tpl->tpl_vars['parent_array']->value['up_name'];?>
|
||||
|
||||
</option>
|
||||
<?php
|
||||
$_smarty_tpl->tpl_vars['parent_array'] = $foreach_parent_array_Sav;
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="2"><input type="submit" value="Mentés"></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</form><?php }
|
||||
}
|
||||
?>
|
||||
@@ -0,0 +1,68 @@
|
||||
<?php /* Smarty version 3.1.27, created on 2016-11-01 11:09:59
|
||||
compiled from "template/templates/training_list.tpl" */ ?>
|
||||
<?php
|
||||
/*%%SmartyHeaderCode:1507137256581869f7605c74_55456203%%*/
|
||||
if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
||||
$_valid = $_smarty_tpl->decodeProperties(array (
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'13018198cb1e222ff806c89075f6697c0a9d8f02' =>
|
||||
array (
|
||||
0 => 'template/templates/training_list.tpl',
|
||||
1 => 1477994997,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'nocache_hash' => '1507137256581869f7605c74_55456203',
|
||||
'variables' =>
|
||||
array (
|
||||
'training_array' => 0,
|
||||
'edit' => 0,
|
||||
'training' => 0,
|
||||
),
|
||||
'has_nocache_code' => false,
|
||||
'version' => '3.1.27',
|
||||
'unifunc' => 'content_581869f766ae75_24014916',
|
||||
),false);
|
||||
/*/%%SmartyHeaderCode%%*/
|
||||
if ($_valid && !is_callable('content_581869f766ae75_24014916')) {
|
||||
function content_581869f766ae75_24014916 ($_smarty_tpl) {
|
||||
|
||||
$_smarty_tpl->properties['nocache_hash'] = '1507137256581869f7605c74_55456203';
|
||||
?>
|
||||
<table>
|
||||
|
||||
<tr>
|
||||
<td colspan="2" class="create"><a href="/admin/create/training">+ Új edzés hozzáadása</a></td>
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
$_from = $_smarty_tpl->tpl_vars['training_array']->value;
|
||||
if (!is_array($_from) && !is_object($_from)) {
|
||||
settype($_from, 'array');
|
||||
}
|
||||
$_smarty_tpl->tpl_vars['training'] = new Smarty_Variable;
|
||||
$_smarty_tpl->tpl_vars['training']->_loop = false;
|
||||
foreach ($_from as $_smarty_tpl->tpl_vars['training']->value) {
|
||||
$_smarty_tpl->tpl_vars['training']->_loop = true;
|
||||
$foreach_training_Sav = $_smarty_tpl->tpl_vars['training'];
|
||||
?>
|
||||
<tr>
|
||||
<td>
|
||||
<a href="/admin/<?php if ($_smarty_tpl->tpl_vars['edit']->value == 'edit') {?>edit_training<?php } elseif ($_smarty_tpl->tpl_vars['edit']->value == 'view') {?>trainings<?php } else { ?>presence<?php }?>/<?php echo $_smarty_tpl->tpl_vars['training']->value->get_tr_id();?>
|
||||
">
|
||||
<?php echo substr($_smarty_tpl->tpl_vars['training']->value->get_tr_date(),0,-3);?>
|
||||
(<?php echo $_smarty_tpl->tpl_vars['training']->value->get_tr_type_name_by_id();?>
|
||||
)
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
$_smarty_tpl->tpl_vars['training'] = $foreach_training_Sav;
|
||||
}
|
||||
?>
|
||||
|
||||
</table><?php }
|
||||
}
|
||||
?>
|
||||
@@ -0,0 +1,68 @@
|
||||
<?php /* Smarty version 3.1.27, created on 2016-11-06 21:01:39
|
||||
compiled from "template/templates/user_list.tpl" */ ?>
|
||||
<?php
|
||||
/*%%SmartyHeaderCode:1715121101581f8c233b5f71_60016562%%*/
|
||||
if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
||||
$_valid = $_smarty_tpl->decodeProperties(array (
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'37574c53ee2a5eee86b2066bc3b283517b22d802' =>
|
||||
array (
|
||||
0 => 'template/templates/user_list.tpl',
|
||||
1 => 1478462496,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'nocache_hash' => '1715121101581f8c233b5f71_60016562',
|
||||
'variables' =>
|
||||
array (
|
||||
'user_array' => 0,
|
||||
'edit' => 0,
|
||||
'user' => 0,
|
||||
),
|
||||
'has_nocache_code' => false,
|
||||
'version' => '3.1.27',
|
||||
'unifunc' => 'content_581f8c23400087_16155929',
|
||||
),false);
|
||||
/*/%%SmartyHeaderCode%%*/
|
||||
if ($_valid && !is_callable('content_581f8c23400087_16155929')) {
|
||||
function content_581f8c23400087_16155929 ($_smarty_tpl) {
|
||||
|
||||
$_smarty_tpl->properties['nocache_hash'] = '1715121101581f8c233b5f71_60016562';
|
||||
?>
|
||||
|
||||
|
||||
<table>
|
||||
|
||||
<tr>
|
||||
<td colspan="2" class="create"><a href="/admin/create/member">+ Új tag hozzáadása</a></td>
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
$_from = $_smarty_tpl->tpl_vars['user_array']->value;
|
||||
if (!is_array($_from) && !is_object($_from)) {
|
||||
settype($_from, 'array');
|
||||
}
|
||||
$_smarty_tpl->tpl_vars['user'] = new Smarty_Variable;
|
||||
$_smarty_tpl->tpl_vars['user']->_loop = false;
|
||||
foreach ($_from as $_smarty_tpl->tpl_vars['user']->value) {
|
||||
$_smarty_tpl->tpl_vars['user']->_loop = true;
|
||||
$foreach_user_Sav = $_smarty_tpl->tpl_vars['user'];
|
||||
?>
|
||||
<tr>
|
||||
<td>
|
||||
<a href="/admin/<?php if (!$_smarty_tpl->tpl_vars['edit']->value) {?>members<?php } else { ?>edit_member<?php }?>/<?php echo $_smarty_tpl->tpl_vars['user']->value->get_uk_id();?>
|
||||
">
|
||||
<?php echo $_smarty_tpl->tpl_vars['user']->value->get_uk_name();?>
|
||||
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
$_smarty_tpl->tpl_vars['user'] = $foreach_user_Sav;
|
||||
}
|
||||
?>
|
||||
|
||||
</table><?php }
|
||||
}
|
||||
?>
|
||||
@@ -0,0 +1,116 @@
|
||||
<?php /* Smarty version 3.1.27, created on 2016-11-01 13:58:46
|
||||
compiled from "template/templates/training_data_edit.tpl" */ ?>
|
||||
<?php
|
||||
/*%%SmartyHeaderCode:743223821581891866eb9d8_80375404%%*/
|
||||
if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
||||
$_valid = $_smarty_tpl->decodeProperties(array (
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'40bbe654196f43be67b196e07aa8f00618314caa' =>
|
||||
array (
|
||||
0 => 'template/templates/training_data_edit.tpl',
|
||||
1 => 1478004507,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'nocache_hash' => '743223821581891866eb9d8_80375404',
|
||||
'variables' =>
|
||||
array (
|
||||
'training_data' => 0,
|
||||
'training_type_assoc_array' => 0,
|
||||
'training_type_array' => 0,
|
||||
'coach_data_assoc_array' => 0,
|
||||
'coach_data_array' => 0,
|
||||
),
|
||||
'has_nocache_code' => false,
|
||||
'version' => '3.1.27',
|
||||
'unifunc' => 'content_581891867590e8_13812852',
|
||||
),false);
|
||||
/*/%%SmartyHeaderCode%%*/
|
||||
if ($_valid && !is_callable('content_581891867590e8_13812852')) {
|
||||
function content_581891867590e8_13812852 ($_smarty_tpl) {
|
||||
|
||||
$_smarty_tpl->properties['nocache_hash'] = '743223821581891866eb9d8_80375404';
|
||||
?>
|
||||
<form method="post">
|
||||
<input type="hidden" name="action" id="action" value="training_data_edit">
|
||||
<input type="hidden" name="tr_id" id="tr_id" value="<?php echo $_smarty_tpl->tpl_vars['training_data']->value['tr_id'];?>
|
||||
">
|
||||
<table>
|
||||
<tr>
|
||||
<td colspan="2"><a href="/admin/trainings/<?php echo $_smarty_tpl->tpl_vars['training_data']->value['tr_id'];?>
|
||||
">MEGTEKINTÉS</a></td>
|
||||
</tr>
|
||||
|
||||
|
||||
<tr>
|
||||
<td>Dátum: </td>
|
||||
<td>
|
||||
<input type="text" id="tr_date" name="tr_date" value="<?php echo $_smarty_tpl->tpl_vars['training_data']->value['tr_date'];?>
|
||||
">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Típus: </td>
|
||||
<td>
|
||||
<select name="tr_training_type_trt_id" id="tr_training_type_trt_id">
|
||||
<option value="null"> - </option>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->tpl_vars['training_type_assoc_array']->value;
|
||||
if (!is_array($_from) && !is_object($_from)) {
|
||||
settype($_from, 'array');
|
||||
}
|
||||
$_smarty_tpl->tpl_vars['training_type_array'] = new Smarty_Variable;
|
||||
$_smarty_tpl->tpl_vars['training_type_array']->_loop = false;
|
||||
foreach ($_from as $_smarty_tpl->tpl_vars['training_type_array']->value) {
|
||||
$_smarty_tpl->tpl_vars['training_type_array']->_loop = true;
|
||||
$foreach_training_type_array_Sav = $_smarty_tpl->tpl_vars['training_type_array'];
|
||||
?>
|
||||
<option value="<?php echo $_smarty_tpl->tpl_vars['training_type_array']->value['trt_id'];?>
|
||||
"<?php if ($_smarty_tpl->tpl_vars['training_type_array']->value['trt_id'] == $_smarty_tpl->tpl_vars['training_data']->value['tr_training_type_trt_id']) {?> selected<?php }?>>
|
||||
<?php echo $_smarty_tpl->tpl_vars['training_type_array']->value['trt_name'];?>
|
||||
|
||||
</option>
|
||||
<?php
|
||||
$_smarty_tpl->tpl_vars['training_type_array'] = $foreach_training_type_array_Sav;
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Edző: </td>
|
||||
<td>
|
||||
<select name="tr_user_coach_uc_id" id="tr_user_coach_uc_id">
|
||||
<option value="null"> - </option>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->tpl_vars['coach_data_assoc_array']->value;
|
||||
if (!is_array($_from) && !is_object($_from)) {
|
||||
settype($_from, 'array');
|
||||
}
|
||||
$_smarty_tpl->tpl_vars['coach_data_array'] = new Smarty_Variable;
|
||||
$_smarty_tpl->tpl_vars['coach_data_array']->_loop = false;
|
||||
foreach ($_from as $_smarty_tpl->tpl_vars['coach_data_array']->value) {
|
||||
$_smarty_tpl->tpl_vars['coach_data_array']->_loop = true;
|
||||
$foreach_coach_data_array_Sav = $_smarty_tpl->tpl_vars['coach_data_array'];
|
||||
?>
|
||||
<option value="<?php echo $_smarty_tpl->tpl_vars['coach_data_array']->value['ua_id'];?>
|
||||
"<?php if ($_smarty_tpl->tpl_vars['coach_data_array']->value['ua_id'] == $_smarty_tpl->tpl_vars['training_data']->value['tr_user_coach_uc_id']) {?> selected<?php }?>>
|
||||
<?php echo $_smarty_tpl->tpl_vars['coach_data_array']->value['ua_last_name'];?>
|
||||
<?php echo $_smarty_tpl->tpl_vars['coach_data_array']->value['ua_first_name'];?>
|
||||
|
||||
</option>
|
||||
<?php
|
||||
$_smarty_tpl->tpl_vars['coach_data_array'] = $foreach_coach_data_array_Sav;
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"><input type="submit" value="Mentés"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form><?php }
|
||||
}
|
||||
?>
|
||||
@@ -0,0 +1,35 @@
|
||||
<?php /* Smarty version 3.1.27, created on 2016-10-31 09:56:18
|
||||
compiled from "template/templates/nav.tpl" */ ?>
|
||||
<?php
|
||||
/*%%SmartyHeaderCode:2020821675817073276bf49_45644399%%*/
|
||||
if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
||||
$_valid = $_smarty_tpl->decodeProperties(array (
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'4ae63c880d135ada53c4849c2ee93f46d9279e0a' =>
|
||||
array (
|
||||
0 => 'template/templates/nav.tpl',
|
||||
1 => 1477904175,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'nocache_hash' => '2020821675817073276bf49_45644399',
|
||||
'has_nocache_code' => false,
|
||||
'version' => '3.1.27',
|
||||
'unifunc' => 'content_581707327bdfb2_34022150',
|
||||
),false);
|
||||
/*/%%SmartyHeaderCode%%*/
|
||||
if ($_valid && !is_callable('content_581707327bdfb2_34022150')) {
|
||||
function content_581707327bdfb2_34022150 ($_smarty_tpl) {
|
||||
|
||||
$_smarty_tpl->properties['nocache_hash'] = '2020821675817073276bf49_45644399';
|
||||
?>
|
||||
<table>
|
||||
<tr>
|
||||
<td><a href="/admin/members">Tagok</a></td>
|
||||
<td><a href="/admin/trainings">Edzések</a></td>
|
||||
<td><a href="/admin/presence">Jelenlét</a></td>
|
||||
</tr>
|
||||
</table><?php }
|
||||
}
|
||||
?>
|
||||
@@ -0,0 +1,81 @@
|
||||
<?php /* Smarty version 3.1.27, created on 2016-11-01 12:10:11
|
||||
compiled from "template/templates/presence.tpl" */ ?>
|
||||
<?php
|
||||
/*%%SmartyHeaderCode:16005617145818781378ff46_21030545%%*/
|
||||
if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
||||
$_valid = $_smarty_tpl->decodeProperties(array (
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'61c8e0d372142135e64030ddc559e26a938e95b0' =>
|
||||
array (
|
||||
0 => 'template/templates/presence.tpl',
|
||||
1 => 1477998607,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'nocache_hash' => '16005617145818781378ff46_21030545',
|
||||
'variables' =>
|
||||
array (
|
||||
'tr_id' => 0,
|
||||
'users' => 0,
|
||||
'user' => 0,
|
||||
),
|
||||
'has_nocache_code' => false,
|
||||
'version' => '3.1.27',
|
||||
'unifunc' => 'content_581878137e5895_92635142',
|
||||
),false);
|
||||
/*/%%SmartyHeaderCode%%*/
|
||||
if ($_valid && !is_callable('content_581878137e5895_92635142')) {
|
||||
function content_581878137e5895_92635142 ($_smarty_tpl) {
|
||||
|
||||
$_smarty_tpl->properties['nocache_hash'] = '16005617145818781378ff46_21030545';
|
||||
?>
|
||||
<table>
|
||||
<input type="hidden" id="tr_id" value="<?php echo $_smarty_tpl->tpl_vars['tr_id']->value;?>
|
||||
">
|
||||
|
||||
<?php
|
||||
$_from = $_smarty_tpl->tpl_vars['users']->value;
|
||||
if (!is_array($_from) && !is_object($_from)) {
|
||||
settype($_from, 'array');
|
||||
}
|
||||
$_smarty_tpl->tpl_vars['user'] = new Smarty_Variable;
|
||||
$_smarty_tpl->tpl_vars['user']->_loop = false;
|
||||
foreach ($_from as $_smarty_tpl->tpl_vars['user']->value) {
|
||||
$_smarty_tpl->tpl_vars['user']->_loop = true;
|
||||
$foreach_user_Sav = $_smarty_tpl->tpl_vars['user'];
|
||||
?>
|
||||
<tr>
|
||||
<td><?php echo $_smarty_tpl->tpl_vars['user']->value->get_uk_last_name();?>
|
||||
<?php echo $_smarty_tpl->tpl_vars['user']->value->get_uk_first_name();?>
|
||||
</td>
|
||||
<td><input name="chk" type="checkbox" id="chk" value="<?php echo $_smarty_tpl->tpl_vars['user']->value->get_uk_id();?>
|
||||
" class="chk" <?php if ($_smarty_tpl->tpl_vars['user']->value->get_uk_presence($_smarty_tpl->tpl_vars['tr_id']->value)) {?>checked<?php }?>> </td>
|
||||
</tr>
|
||||
<?php
|
||||
$_smarty_tpl->tpl_vars['user'] = $foreach_user_Sav;
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
<?php echo '<script'; ?>
|
||||
>
|
||||
$('.chk').click(function() {
|
||||
var checked = $(this).is(':checked');
|
||||
var user_id = $(this).val();
|
||||
var tr_id = $("#tr_id").val();
|
||||
alert(checked);
|
||||
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: '/ajax/update_presence.php',
|
||||
data: { checked : checked, user_id : user_id, tr_id : tr_id },
|
||||
success: function(data) {
|
||||
//alert('it worked');
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
<?php echo '</script'; ?>
|
||||
><?php }
|
||||
}
|
||||
?>
|
||||
@@ -0,0 +1,45 @@
|
||||
<?php /* Smarty version 3.1.27, created on 2016-10-02 12:01:25
|
||||
compiled from "template/templates/login.tpl" */ ?>
|
||||
<?php
|
||||
/*%%SmartyHeaderCode:35901086457f0daf55d57a5_65875821%%*/
|
||||
if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
||||
$_valid = $_smarty_tpl->decodeProperties(array (
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'6ac17b1be319bf40fa4468753e2ae33bef15a1ff' =>
|
||||
array (
|
||||
0 => 'template/templates/login.tpl',
|
||||
1 => 1475401057,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'nocache_hash' => '35901086457f0daf55d57a5_65875821',
|
||||
'has_nocache_code' => false,
|
||||
'version' => '3.1.27',
|
||||
'unifunc' => 'content_57f0daf55fb5a7_03083285',
|
||||
),false);
|
||||
/*/%%SmartyHeaderCode%%*/
|
||||
if ($_valid && !is_callable('content_57f0daf55fb5a7_03083285')) {
|
||||
function content_57f0daf55fb5a7_03083285 ($_smarty_tpl) {
|
||||
|
||||
$_smarty_tpl->properties['nocache_hash'] = '35901086457f0daf55d57a5_65875821';
|
||||
?>
|
||||
<form method="post">
|
||||
<input type="hidden" name="action" id="action" value="login">
|
||||
<input type="hidden" name="user_type" id="user_type" value="1">
|
||||
<table>
|
||||
<tr>
|
||||
<td>Felhasználónév:</td>
|
||||
<td><input type="text" name="user_name" id="user_name"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Jelszó:</td>
|
||||
<td><input type="password" name="user_password" id="user_password"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"><input type="submit" value="Belépés"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form><?php }
|
||||
}
|
||||
?>
|
||||
@@ -0,0 +1,286 @@
|
||||
<?php /* Smarty version 3.1.27, created on 2016-11-04 09:14:58
|
||||
compiled from "template/templates/user_data_create.tpl" */ ?>
|
||||
<?php
|
||||
/*%%SmartyHeaderCode:783135917581c438256aab2_59237290%%*/
|
||||
if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
||||
$_valid = $_smarty_tpl->decodeProperties(array (
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'70cdad834f07a58eb566592c6047fdf605717fa1' =>
|
||||
array (
|
||||
0 => 'template/templates/user_data_create.tpl',
|
||||
1 => 1478247297,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'nocache_hash' => '783135917581c438256aab2_59237290',
|
||||
'variables' =>
|
||||
array (
|
||||
'school_assoc_array' => 0,
|
||||
'school_array' => 0,
|
||||
'school_city_assoc_array' => 0,
|
||||
'school_city_array' => 0,
|
||||
'shirt_size_assoc_array' => 0,
|
||||
'shirt_size_array' => 0,
|
||||
'parent_assoc_array' => 0,
|
||||
'parent_array' => 0,
|
||||
),
|
||||
'has_nocache_code' => false,
|
||||
'version' => '3.1.27',
|
||||
'unifunc' => 'content_581c43825bea77_11262406',
|
||||
),false);
|
||||
/*/%%SmartyHeaderCode%%*/
|
||||
if ($_valid && !is_callable('content_581c43825bea77_11262406')) {
|
||||
function content_581c43825bea77_11262406 ($_smarty_tpl) {
|
||||
|
||||
$_smarty_tpl->properties['nocache_hash'] = '783135917581c438256aab2_59237290';
|
||||
?>
|
||||
<form method="post">
|
||||
<input type="hidden" name="action" id="action" value="user_data_create">
|
||||
<table>
|
||||
|
||||
|
||||
<tr>
|
||||
<td>Név: </td>
|
||||
<td><input type="text" name="uk_name" id="uk_name"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Nem: </td>
|
||||
<td>
|
||||
<input type="radio" name="uk_gender" value="1" checked>Fiú
|
||||
|
||||
<input type="radio" name="uk_gender" value="2">Lány
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Születési dátum: </td>
|
||||
<td><input type="text" name="uk_birth_date" id="uk_birth_date"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Lakcím: </td>
|
||||
<td><input type="text" name="uk_address" id="uk_address"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Első edzés dátuma: </td>
|
||||
<td><input type="text" name="uk_first_training" id="uk_first_training"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Kéz: </td>
|
||||
<td>
|
||||
<input type="radio" name="uk_hand" value="1" checked>Balkezes
|
||||
|
||||
<input type="radio" name="uk_hand" value="2">Jobbkezes
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Email cím: </td>
|
||||
<td><input type="text" name="uk_email" id="uk_email"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Telefonszám: </td>
|
||||
<td><input type="text" name="uk_phone" id="uk_phone"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Facebbok: </td>
|
||||
<td><input type="text" name="uk_facebook" id="uk_facebook"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Iskola neve: </td>
|
||||
<td>
|
||||
<select name="uk_school_sc_id" id="uk_school_sc_id">
|
||||
<option value="null"> - </option>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->tpl_vars['school_assoc_array']->value;
|
||||
if (!is_array($_from) && !is_object($_from)) {
|
||||
settype($_from, 'array');
|
||||
}
|
||||
$_smarty_tpl->tpl_vars['school_array'] = new Smarty_Variable;
|
||||
$_smarty_tpl->tpl_vars['school_array']->_loop = false;
|
||||
foreach ($_from as $_smarty_tpl->tpl_vars['school_array']->value) {
|
||||
$_smarty_tpl->tpl_vars['school_array']->_loop = true;
|
||||
$foreach_school_array_Sav = $_smarty_tpl->tpl_vars['school_array'];
|
||||
?>
|
||||
<option value="<?php echo $_smarty_tpl->tpl_vars['school_array']->value['sc_id'];?>
|
||||
">
|
||||
<?php echo $_smarty_tpl->tpl_vars['school_array']->value['sc_name'];?>
|
||||
|
||||
</option>
|
||||
<?php
|
||||
$_smarty_tpl->tpl_vars['school_array'] = $foreach_school_array_Sav;
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
<input type="text" name="add_school" id="add_school">
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Iskola települése: </td>
|
||||
<td>
|
||||
<select name="uk_school_city_scc_id" id="uk_school_city_scc_id">
|
||||
<option value="null"> - </option>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->tpl_vars['school_city_assoc_array']->value;
|
||||
if (!is_array($_from) && !is_object($_from)) {
|
||||
settype($_from, 'array');
|
||||
}
|
||||
$_smarty_tpl->tpl_vars['school_city_array'] = new Smarty_Variable;
|
||||
$_smarty_tpl->tpl_vars['school_city_array']->_loop = false;
|
||||
foreach ($_from as $_smarty_tpl->tpl_vars['school_city_array']->value) {
|
||||
$_smarty_tpl->tpl_vars['school_city_array']->_loop = true;
|
||||
$foreach_school_city_array_Sav = $_smarty_tpl->tpl_vars['school_city_array'];
|
||||
?>
|
||||
<option value="<?php echo $_smarty_tpl->tpl_vars['school_city_array']->value['scc_id'];?>
|
||||
">
|
||||
<?php echo $_smarty_tpl->tpl_vars['school_city_array']->value['scc_city'];?>
|
||||
|
||||
</option>
|
||||
<?php
|
||||
$_smarty_tpl->tpl_vars['school_city_array'] = $foreach_school_city_array_Sav;
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Iskola kerülete: </td>
|
||||
<td><input type="text" name="uk_school_district" id="uk_school_district" value="0"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Pólóméret: </td>
|
||||
<td>
|
||||
<select name="uk_shirt_size_ss_id" id="uk_shirt_size_ss_id">
|
||||
<option value="null"> - </option>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->tpl_vars['shirt_size_assoc_array']->value;
|
||||
if (!is_array($_from) && !is_object($_from)) {
|
||||
settype($_from, 'array');
|
||||
}
|
||||
$_smarty_tpl->tpl_vars['shirt_size_array'] = new Smarty_Variable;
|
||||
$_smarty_tpl->tpl_vars['shirt_size_array']->_loop = false;
|
||||
foreach ($_from as $_smarty_tpl->tpl_vars['shirt_size_array']->value) {
|
||||
$_smarty_tpl->tpl_vars['shirt_size_array']->_loop = true;
|
||||
$foreach_shirt_size_array_Sav = $_smarty_tpl->tpl_vars['shirt_size_array'];
|
||||
?>
|
||||
<option value="<?php echo $_smarty_tpl->tpl_vars['shirt_size_array']->value['shirt_id'];?>
|
||||
">
|
||||
<?php echo $_smarty_tpl->tpl_vars['shirt_size_array']->value['shirt_name'];?>
|
||||
|
||||
</option>
|
||||
<?php
|
||||
$_smarty_tpl->tpl_vars['shirt_size_array'] = $foreach_shirt_size_array_Sav;
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Szülő1: </td>
|
||||
<td>
|
||||
<select name="uk_parent_1" id="uk_parent_1">
|
||||
<option value="null"> - </option>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->tpl_vars['parent_assoc_array']->value;
|
||||
if (!is_array($_from) && !is_object($_from)) {
|
||||
settype($_from, 'array');
|
||||
}
|
||||
$_smarty_tpl->tpl_vars['parent_array'] = new Smarty_Variable;
|
||||
$_smarty_tpl->tpl_vars['parent_array']->_loop = false;
|
||||
foreach ($_from as $_smarty_tpl->tpl_vars['parent_array']->value) {
|
||||
$_smarty_tpl->tpl_vars['parent_array']->_loop = true;
|
||||
$foreach_parent_array_Sav = $_smarty_tpl->tpl_vars['parent_array'];
|
||||
?>
|
||||
<option value="<?php echo $_smarty_tpl->tpl_vars['parent_array']->value['up_id'];?>
|
||||
">
|
||||
<?php echo $_smarty_tpl->tpl_vars['parent_array']->value['up_name'];?>
|
||||
|
||||
</option>
|
||||
<?php
|
||||
$_smarty_tpl->tpl_vars['parent_array'] = $foreach_parent_array_Sav;
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
<input type="text" name="add_parent_1" id="add_parent_1">
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Szülő1 email cím: </td>
|
||||
<td><input type="text" name="parent_1_email" id="parent_1_email"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Szülő1 facebook: </td>
|
||||
<td><input type="text" name="parent_1_facebook" id="parent_1_facebook"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Szülő1 telefonszám: </td>
|
||||
<td><input type="text" name="parent_1_phone" id="parent_1_phone"></td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
<tr>
|
||||
<td>Szülő2: </td>
|
||||
<td>
|
||||
<select name="uk_parent_2" id="uk_parent_2">
|
||||
<option value="null"> - </option>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->tpl_vars['parent_assoc_array']->value;
|
||||
if (!is_array($_from) && !is_object($_from)) {
|
||||
settype($_from, 'array');
|
||||
}
|
||||
$_smarty_tpl->tpl_vars['parent_array'] = new Smarty_Variable;
|
||||
$_smarty_tpl->tpl_vars['parent_array']->_loop = false;
|
||||
foreach ($_from as $_smarty_tpl->tpl_vars['parent_array']->value) {
|
||||
$_smarty_tpl->tpl_vars['parent_array']->_loop = true;
|
||||
$foreach_parent_array_Sav = $_smarty_tpl->tpl_vars['parent_array'];
|
||||
?>
|
||||
<option value="<?php echo $_smarty_tpl->tpl_vars['parent_array']->value['up_id'];?>
|
||||
">
|
||||
<?php echo $_smarty_tpl->tpl_vars['parent_array']->value['up_name'];?>
|
||||
|
||||
</option>
|
||||
<?php
|
||||
$_smarty_tpl->tpl_vars['parent_array'] = $foreach_parent_array_Sav;
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
<input type="text" name="add_parent_2" id="add_parent_2">
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Szülő2 email cím: </td>
|
||||
<td><input type="text" name="parent_2_email" id="parent_2_email"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Szülő2 facebook: </td>
|
||||
<td><input type="text" name="parent_2_facebook" id="parent_2_facebook"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Szülő2 telefonszám: </td>
|
||||
<td><input type="text" name="parent_2_phone" id="parent_2_phone"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="2"><input type="submit" value="Létrehozás"></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</form><?php }
|
||||
}
|
||||
?>
|
||||
@@ -0,0 +1,106 @@
|
||||
<?php /* Smarty version 3.1.27, created on 2016-10-21 08:55:47
|
||||
compiled from "template/templates/training_data_view.tpl" */ ?>
|
||||
<?php
|
||||
/*%%SmartyHeaderCode:4160927195809bbf3ec32c5_19841586%%*/
|
||||
if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
||||
$_valid = $_smarty_tpl->decodeProperties(array (
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'e551c336c657b65c6d3b8bf31bcaee1b52da3391' =>
|
||||
array (
|
||||
0 => 'template/templates/training_data_view.tpl',
|
||||
1 => 1477032946,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'nocache_hash' => '4160927195809bbf3ec32c5_19841586',
|
||||
'variables' =>
|
||||
array (
|
||||
'training_data' => 0,
|
||||
'training_type_assoc_array' => 0,
|
||||
'training_type_array' => 0,
|
||||
'coach_data_assoc_array' => 0,
|
||||
'coach_data_array' => 0,
|
||||
),
|
||||
'has_nocache_code' => false,
|
||||
'version' => '3.1.27',
|
||||
'unifunc' => 'content_5809bbf3f35869_90639789',
|
||||
),false);
|
||||
/*/%%SmartyHeaderCode%%*/
|
||||
if ($_valid && !is_callable('content_5809bbf3f35869_90639789')) {
|
||||
function content_5809bbf3f35869_90639789 ($_smarty_tpl) {
|
||||
|
||||
$_smarty_tpl->properties['nocache_hash'] = '4160927195809bbf3ec32c5_19841586';
|
||||
?>
|
||||
<table>
|
||||
<tr>
|
||||
<td colspan="2"><a href="/admin/edit_training/<?php echo $_smarty_tpl->tpl_vars['training_data']->value['tr_id'];?>
|
||||
">SZERKESZTÉS</a></td>
|
||||
</tr>
|
||||
|
||||
|
||||
<tr>
|
||||
<td>Dátum: </td>
|
||||
<td><?php echo $_smarty_tpl->tpl_vars['training_data']->value['tr_date'];?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Típus: </td>
|
||||
<td>
|
||||
<select name="tr_training_type_trt_id" id="tr_training_type_trt_id" disabled>
|
||||
<option value="null"> - </option>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->tpl_vars['training_type_assoc_array']->value;
|
||||
if (!is_array($_from) && !is_object($_from)) {
|
||||
settype($_from, 'array');
|
||||
}
|
||||
$_smarty_tpl->tpl_vars['training_type_array'] = new Smarty_Variable;
|
||||
$_smarty_tpl->tpl_vars['training_type_array']->_loop = false;
|
||||
foreach ($_from as $_smarty_tpl->tpl_vars['training_type_array']->value) {
|
||||
$_smarty_tpl->tpl_vars['training_type_array']->_loop = true;
|
||||
$foreach_training_type_array_Sav = $_smarty_tpl->tpl_vars['training_type_array'];
|
||||
?>
|
||||
<option value="<?php echo $_smarty_tpl->tpl_vars['training_type_array']->value['trt_id'];?>
|
||||
"<?php if ($_smarty_tpl->tpl_vars['training_type_array']->value['trt_id'] == $_smarty_tpl->tpl_vars['training_data']->value['tr_training_type_trt_id']) {?> selected<?php }?>>
|
||||
<?php echo $_smarty_tpl->tpl_vars['training_type_array']->value['trt_name'];?>
|
||||
|
||||
</option>
|
||||
<?php
|
||||
$_smarty_tpl->tpl_vars['training_type_array'] = $foreach_training_type_array_Sav;
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Edző: </td>
|
||||
<td>
|
||||
<select name="tr_user_coach_uc_id" id="tr_user_coach_uc_id" disabled>
|
||||
<option value="null"> - </option>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->tpl_vars['coach_data_assoc_array']->value;
|
||||
if (!is_array($_from) && !is_object($_from)) {
|
||||
settype($_from, 'array');
|
||||
}
|
||||
$_smarty_tpl->tpl_vars['coach_data_array'] = new Smarty_Variable;
|
||||
$_smarty_tpl->tpl_vars['coach_data_array']->_loop = false;
|
||||
foreach ($_from as $_smarty_tpl->tpl_vars['coach_data_array']->value) {
|
||||
$_smarty_tpl->tpl_vars['coach_data_array']->_loop = true;
|
||||
$foreach_coach_data_array_Sav = $_smarty_tpl->tpl_vars['coach_data_array'];
|
||||
?>
|
||||
<option value="<?php echo $_smarty_tpl->tpl_vars['coach_data_array']->value['trt_id'];?>
|
||||
"<?php if ($_smarty_tpl->tpl_vars['coach_data_array']->value['ua_id'] == $_smarty_tpl->tpl_vars['training_data']->value['tr_user_coach_uc_id']) {?> selected<?php }?>>
|
||||
<?php echo $_smarty_tpl->tpl_vars['coach_data_array']->value['ua_last_name'];?>
|
||||
<?php echo $_smarty_tpl->tpl_vars['coach_data_array']->value['ua_first_name'];?>
|
||||
|
||||
</option>
|
||||
<?php
|
||||
$_smarty_tpl->tpl_vars['coach_data_array'] = $foreach_coach_data_array_Sav;
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
</table><?php }
|
||||
}
|
||||
?>
|
||||
@@ -0,0 +1,113 @@
|
||||
<?php /* Smarty version 3.1.27, created on 2016-10-30 20:09:02
|
||||
compiled from "template/templates/training_data_create.tpl" */ ?>
|
||||
<?php
|
||||
/*%%SmartyHeaderCode:5454241965816454e0692c1_53277471%%*/
|
||||
if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
||||
$_valid = $_smarty_tpl->decodeProperties(array (
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'f09a8f49095e058d92a0f3b80c517ebb26cc92d3' =>
|
||||
array (
|
||||
0 => 'template/templates/training_data_create.tpl',
|
||||
1 => 1477847913,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'nocache_hash' => '5454241965816454e0692c1_53277471',
|
||||
'variables' =>
|
||||
array (
|
||||
'training_type_assoc_array' => 0,
|
||||
'training_type_array' => 0,
|
||||
'coach_data_assoc_array' => 0,
|
||||
'coach_data_array' => 0,
|
||||
),
|
||||
'has_nocache_code' => false,
|
||||
'version' => '3.1.27',
|
||||
'unifunc' => 'content_5816454e0fc5a2_92888657',
|
||||
),false);
|
||||
/*/%%SmartyHeaderCode%%*/
|
||||
if ($_valid && !is_callable('content_5816454e0fc5a2_92888657')) {
|
||||
function content_5816454e0fc5a2_92888657 ($_smarty_tpl) {
|
||||
|
||||
$_smarty_tpl->properties['nocache_hash'] = '5454241965816454e0692c1_53277471';
|
||||
?>
|
||||
<form method="post">
|
||||
<input type="hidden" name="action" id="action" value="training_data_create">
|
||||
<table>
|
||||
|
||||
|
||||
|
||||
<tr>
|
||||
<td>Dátum: </td>
|
||||
<td>
|
||||
<input type="text" id="tr_date" name="tr_date">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Típus: </td>
|
||||
<td>
|
||||
<select name="tr_training_type_trt_id" id="tr_training_type_trt_id">
|
||||
<option value="null"> - </option>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->tpl_vars['training_type_assoc_array']->value;
|
||||
if (!is_array($_from) && !is_object($_from)) {
|
||||
settype($_from, 'array');
|
||||
}
|
||||
$_smarty_tpl->tpl_vars['training_type_array'] = new Smarty_Variable;
|
||||
$_smarty_tpl->tpl_vars['training_type_array']->_loop = false;
|
||||
foreach ($_from as $_smarty_tpl->tpl_vars['training_type_array']->value) {
|
||||
$_smarty_tpl->tpl_vars['training_type_array']->_loop = true;
|
||||
$foreach_training_type_array_Sav = $_smarty_tpl->tpl_vars['training_type_array'];
|
||||
?>
|
||||
<option value="<?php echo $_smarty_tpl->tpl_vars['training_type_array']->value['trt_id'];?>
|
||||
">
|
||||
<?php echo $_smarty_tpl->tpl_vars['training_type_array']->value['trt_name'];?>
|
||||
|
||||
</option>
|
||||
<?php
|
||||
$_smarty_tpl->tpl_vars['training_type_array'] = $foreach_training_type_array_Sav;
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Edző: </td>
|
||||
<td>
|
||||
<select name="tr_user_coach_uc_id" id="tr_user_coach_uc_id">
|
||||
<option value="null"> - </option>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->tpl_vars['coach_data_assoc_array']->value;
|
||||
if (!is_array($_from) && !is_object($_from)) {
|
||||
settype($_from, 'array');
|
||||
}
|
||||
$_smarty_tpl->tpl_vars['coach_data_array'] = new Smarty_Variable;
|
||||
$_smarty_tpl->tpl_vars['coach_data_array']->_loop = false;
|
||||
foreach ($_from as $_smarty_tpl->tpl_vars['coach_data_array']->value) {
|
||||
$_smarty_tpl->tpl_vars['coach_data_array']->_loop = true;
|
||||
$foreach_coach_data_array_Sav = $_smarty_tpl->tpl_vars['coach_data_array'];
|
||||
?>
|
||||
<option value="<?php echo $_smarty_tpl->tpl_vars['coach_data_array']->value['ua_id'];?>
|
||||
">
|
||||
<?php echo $_smarty_tpl->tpl_vars['coach_data_array']->value['ua_last_name'];?>
|
||||
<?php echo $_smarty_tpl->tpl_vars['coach_data_array']->value['ua_first_name'];?>
|
||||
|
||||
</option>
|
||||
<?php
|
||||
$_smarty_tpl->tpl_vars['coach_data_array'] = $foreach_coach_data_array_Sav;
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Minden héten ebben az időpontban</td>
|
||||
<td><input type="checkbox" name="every_week"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"><input type="submit" value="Létrehozás"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form><?php }
|
||||
}
|
||||
?>
|
||||
@@ -0,0 +1,276 @@
|
||||
<?php /* Smarty version 3.1.27, created on 2016-11-06 22:44:01
|
||||
compiled from "template/templates/user_data_view.tpl" */ ?>
|
||||
<?php
|
||||
/*%%SmartyHeaderCode:238806482581fa421e0b266_15047814%%*/
|
||||
if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
||||
$_valid = $_smarty_tpl->decodeProperties(array (
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'f630f58b79cccf8510dd4d524c0401091c5b6621' =>
|
||||
array (
|
||||
0 => 'template/templates/user_data_view.tpl',
|
||||
1 => 1478468640,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'nocache_hash' => '238806482581fa421e0b266_15047814',
|
||||
'variables' =>
|
||||
array (
|
||||
'user_data' => 0,
|
||||
'shirt_size_assoc_array' => 0,
|
||||
'shirt_size_array' => 0,
|
||||
'school_assoc_array' => 0,
|
||||
'school_array' => 0,
|
||||
'school_city_assoc_array' => 0,
|
||||
'school_city_array' => 0,
|
||||
'parent_assoc_array' => 0,
|
||||
'parent_array' => 0,
|
||||
),
|
||||
'has_nocache_code' => false,
|
||||
'version' => '3.1.27',
|
||||
'unifunc' => 'content_581fa421e91aa6_95907828',
|
||||
),false);
|
||||
/*/%%SmartyHeaderCode%%*/
|
||||
if ($_valid && !is_callable('content_581fa421e91aa6_95907828')) {
|
||||
function content_581fa421e91aa6_95907828 ($_smarty_tpl) {
|
||||
|
||||
$_smarty_tpl->properties['nocache_hash'] = '238806482581fa421e0b266_15047814';
|
||||
?>
|
||||
<table>
|
||||
<tr>
|
||||
<td colspan="2"><a href="/admin/edit_member/<?php echo $_smarty_tpl->tpl_vars['user_data']->value['uk_id'];?>
|
||||
">SZERKESZTÉS</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"><?php echo $_smarty_tpl->tpl_vars['user_data']->value['uk_name'];?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Aktív: </td>
|
||||
<td><input type="checkbox" name="uk_is_active" id="uk_is_active" value="1" <?php if (1 == $_smarty_tpl->tpl_vars['user_data']->value['uk_is_active']) {?>checked<?php }?> disabled></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Utolsó módosítás dátuma: </td>
|
||||
<td><input type="text" name="uk_last_modified" id="uk_last_modified" value="<?php echo $_smarty_tpl->tpl_vars['user_data']->value['uk_last_modified'];?>
|
||||
"disabled></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Jelszó: </td>
|
||||
<td><input type="text" name="uk_password" id="uk_password" value="<?php echo $_smarty_tpl->tpl_vars['user_data']->value['uk_password'];?>
|
||||
"disabled></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Nem: </td>
|
||||
<td>
|
||||
<input type="radio" name="uk_gender" value="1" <?php if (1 == $_smarty_tpl->tpl_vars['user_data']->value['uk_gender']) {?>checked<?php }?> disabled>Fiú
|
||||
|
||||
<input type="radio" name="uk_gender" value="2" <?php if (2 == $_smarty_tpl->tpl_vars['user_data']->value['uk_gender']) {?>checked<?php }?> disabled>Lány
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Születési dátum: </td>
|
||||
<td><input type="text" name="uk_birth_date" id="uk_birth_date" value="<?php echo $_smarty_tpl->tpl_vars['user_data']->value['uk_birth_date'];?>
|
||||
"disabled></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Lakcím: </td>
|
||||
<td><input type="text" name="uk_address" id="uk_address" value="<?php echo $_smarty_tpl->tpl_vars['user_data']->value['uk_address'];?>
|
||||
"disabled></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Első edzés dátuma: </td>
|
||||
<td><input type="text" name="uk_first_training" id="uk_first_training" value="<?php echo $_smarty_tpl->tpl_vars['user_data']->value['uk_first_training'];?>
|
||||
"disabled></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Kéz: </td>
|
||||
<td>
|
||||
<input type="radio" name="uk_hand" value="1" <?php if (1 == $_smarty_tpl->tpl_vars['user_data']->value['uk_hand']) {?>checked<?php }?> disabled>Balkezes
|
||||
|
||||
<input type="radio" name="uk_hand" value="2" <?php if (2 == $_smarty_tpl->tpl_vars['user_data']->value['uk_hand']) {?>checked<?php }?> disabled>Jobbkezes
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Email cím: </td>
|
||||
<td><?php echo $_smarty_tpl->tpl_vars['user_data']->value['uk_email'];?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Telefonszám: </td>
|
||||
<td><?php echo $_smarty_tpl->tpl_vars['user_data']->value['uk_phone'];?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Facebbok: </td>
|
||||
<td><?php echo $_smarty_tpl->tpl_vars['user_data']->value['uk_facebook'];?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Pólóméret: </td>
|
||||
<td>
|
||||
<select name="shirt_size" id="shirt_size" disabled>
|
||||
<option value="null"> - </option>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->tpl_vars['shirt_size_assoc_array']->value;
|
||||
if (!is_array($_from) && !is_object($_from)) {
|
||||
settype($_from, 'array');
|
||||
}
|
||||
$_smarty_tpl->tpl_vars['shirt_size_array'] = new Smarty_Variable;
|
||||
$_smarty_tpl->tpl_vars['shirt_size_array']->_loop = false;
|
||||
foreach ($_from as $_smarty_tpl->tpl_vars['shirt_size_array']->value) {
|
||||
$_smarty_tpl->tpl_vars['shirt_size_array']->_loop = true;
|
||||
$foreach_shirt_size_array_Sav = $_smarty_tpl->tpl_vars['shirt_size_array'];
|
||||
?>
|
||||
<option value="<?php echo $_smarty_tpl->tpl_vars['shirt_size_array']->value['shirt_id'];?>
|
||||
"<?php if ($_smarty_tpl->tpl_vars['shirt_size_array']->value['shirt_id'] == $_smarty_tpl->tpl_vars['user_data']->value['uk_shirt_size_ss_id']) {?> selected<?php }?>>
|
||||
<?php echo $_smarty_tpl->tpl_vars['shirt_size_array']->value['shirt_name'];?>
|
||||
|
||||
</option>
|
||||
<?php
|
||||
$_smarty_tpl->tpl_vars['shirt_size_array'] = $foreach_shirt_size_array_Sav;
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Iskola neve: </td>
|
||||
<td>
|
||||
<select name="uk_school_sc_id" id="uk_school_sc_id" disabled>
|
||||
<option value="null"> - </option>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->tpl_vars['school_assoc_array']->value;
|
||||
if (!is_array($_from) && !is_object($_from)) {
|
||||
settype($_from, 'array');
|
||||
}
|
||||
$_smarty_tpl->tpl_vars['school_array'] = new Smarty_Variable;
|
||||
$_smarty_tpl->tpl_vars['school_array']->_loop = false;
|
||||
foreach ($_from as $_smarty_tpl->tpl_vars['school_array']->value) {
|
||||
$_smarty_tpl->tpl_vars['school_array']->_loop = true;
|
||||
$foreach_school_array_Sav = $_smarty_tpl->tpl_vars['school_array'];
|
||||
?>
|
||||
<option value="<?php echo $_smarty_tpl->tpl_vars['school_array']->value['sc_id'];?>
|
||||
" <?php if ($_smarty_tpl->tpl_vars['school_array']->value['sc_id'] == $_smarty_tpl->tpl_vars['user_data']->value['uk_school_sc_id']) {?> selected<?php }?>>
|
||||
<?php echo $_smarty_tpl->tpl_vars['school_array']->value['sc_name'];?>
|
||||
|
||||
</option>
|
||||
<?php
|
||||
$_smarty_tpl->tpl_vars['school_array'] = $foreach_school_array_Sav;
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Iskola települése: </td>
|
||||
<td>
|
||||
<select name="uk_school_city_scc_id" id="uk_school_city_scc_id" disabled>
|
||||
<option value="null"> - </option>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->tpl_vars['school_city_assoc_array']->value;
|
||||
if (!is_array($_from) && !is_object($_from)) {
|
||||
settype($_from, 'array');
|
||||
}
|
||||
$_smarty_tpl->tpl_vars['school_city_array'] = new Smarty_Variable;
|
||||
$_smarty_tpl->tpl_vars['school_city_array']->_loop = false;
|
||||
foreach ($_from as $_smarty_tpl->tpl_vars['school_city_array']->value) {
|
||||
$_smarty_tpl->tpl_vars['school_city_array']->_loop = true;
|
||||
$foreach_school_city_array_Sav = $_smarty_tpl->tpl_vars['school_city_array'];
|
||||
?>
|
||||
<option value="<?php echo $_smarty_tpl->tpl_vars['school_city_array']->value['scc_id'];?>
|
||||
" <?php if ($_smarty_tpl->tpl_vars['school_city_array']->value['scc_id'] == $_smarty_tpl->tpl_vars['user_data']->value['uk_school_city_scc_id']) {?> selected<?php }?>>
|
||||
<?php echo $_smarty_tpl->tpl_vars['school_city_array']->value['scc_city'];?>
|
||||
|
||||
</option>
|
||||
<?php
|
||||
$_smarty_tpl->tpl_vars['school_city_array'] = $foreach_school_city_array_Sav;
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Iskola kerülete: </td>
|
||||
<td><input type="text" name="uk_school_district" id="uk_school_district" value="<?php echo $_smarty_tpl->tpl_vars['user_data']->value['uk_school_district'];?>
|
||||
" disabled></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Szülő1: </td>
|
||||
<td>
|
||||
<select name="parent1" id="parent1" disabled>
|
||||
<option value="null"> - </option>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->tpl_vars['parent_assoc_array']->value;
|
||||
if (!is_array($_from) && !is_object($_from)) {
|
||||
settype($_from, 'array');
|
||||
}
|
||||
$_smarty_tpl->tpl_vars['parent_array'] = new Smarty_Variable;
|
||||
$_smarty_tpl->tpl_vars['parent_array']->_loop = false;
|
||||
foreach ($_from as $_smarty_tpl->tpl_vars['parent_array']->value) {
|
||||
$_smarty_tpl->tpl_vars['parent_array']->_loop = true;
|
||||
$foreach_parent_array_Sav = $_smarty_tpl->tpl_vars['parent_array'];
|
||||
?>
|
||||
<option value="<?php echo $_smarty_tpl->tpl_vars['parent_array']->value['up_id'];?>
|
||||
"<?php if ($_smarty_tpl->tpl_vars['parent_array']->value['up_id'] == $_smarty_tpl->tpl_vars['user_data']->value['uk_parent_1']) {?> selected<?php }?>>
|
||||
<?php echo $_smarty_tpl->tpl_vars['parent_array']->value['up_name'];?>
|
||||
|
||||
</option>
|
||||
<?php
|
||||
$_smarty_tpl->tpl_vars['parent_array'] = $foreach_parent_array_Sav;
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Szülő2: </td>
|
||||
<td>
|
||||
<select name="parent1" id="parent1" disabled>
|
||||
<option value="null"> - </option>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->tpl_vars['parent_assoc_array']->value;
|
||||
if (!is_array($_from) && !is_object($_from)) {
|
||||
settype($_from, 'array');
|
||||
}
|
||||
$_smarty_tpl->tpl_vars['parent_array'] = new Smarty_Variable;
|
||||
$_smarty_tpl->tpl_vars['parent_array']->_loop = false;
|
||||
foreach ($_from as $_smarty_tpl->tpl_vars['parent_array']->value) {
|
||||
$_smarty_tpl->tpl_vars['parent_array']->_loop = true;
|
||||
$foreach_parent_array_Sav = $_smarty_tpl->tpl_vars['parent_array'];
|
||||
?>
|
||||
<option value="<?php echo $_smarty_tpl->tpl_vars['parent_array']->value['up_id'];?>
|
||||
"<?php if ($_smarty_tpl->tpl_vars['parent_array']->value['up_id'] == $_smarty_tpl->tpl_vars['user_data']->value['uk_parent_2']) {?> selected<?php }?>>
|
||||
<?php echo $_smarty_tpl->tpl_vars['parent_array']->value['up_name'];?>
|
||||
|
||||
</option>
|
||||
<?php
|
||||
$_smarty_tpl->tpl_vars['parent_array'] = $foreach_parent_array_Sav;
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
</table><?php }
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user