first commit
This commit is contained in:
commit
ae91c7c53b
41 files changed
+3462
No files matched your search
@@ -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'));
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -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, '/');
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
?>
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
?>
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
?>
|
||||
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
@@ -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']);
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -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");
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
?>
|
||||
@@ -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
@@ -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();
|
||||
|
||||
|
||||
|
||||
?>
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
@@ -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>
|
||||
@@ -0,0 +1,5 @@
|
||||
/*! jQuery v1.11.3 | (c) 2005, 2015 jQuery Foundation, Inc. | jquery.org/license */
|
||||
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){var c=[],d=c.slice,e=c.concat,f=c.push,g=c.indexOf,h={},i=h.toString,j=h.hasOwnProperty,k={},l="1.11.3",m=function(a,b){return new m.fn.init(a,b)},n=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,o=/^-ms-/,p=/-([\da-z])/gi,q=function(a,b){return b.toUpperCase()};m.fn=m.prototype={jquery:l,constructor:m,selector:"",length:0,toArray:function(){return d.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:d.call(this)},pushStack:function(a){var b=m.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a,b){return m.each(this,a,b)},map:function(a){return this.pushStack(m.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(d.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(0>a?b:0);return this.pushStack(c>=0&&b>c?[this[c]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:f,sort:c.sort,splice:c.splice},m.extend=m.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for("boolean"==typeof g&&(j=g,g=arguments[h]||{},h++),"object"==typeof g||m.isFunction(g)||(g={}),h===i&&(g=this,h--);i>h;h++)if(null!=(e=arguments[h]))for(d in e)a=g[d],c=e[d],g!==c&&(j&&c&&(m.isPlainObject(c)||(b=m.isArray(c)))?(b?(b=!1,f=a&&m.isArray(a)?a:[]):f=a&&m.isPlainObject(a)?a:{},g[d]=m.extend(j,f,c)):void 0!==c&&(g[d]=c));return g},m.extend({expando:"jQuery"+(l+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return"function"===m.type(a)},isArray:Array.isArray||function(a){return"array"===m.type(a)},isWindow:function(a){return null!=a&&a==a.window},isNumeric:function(a){return!m.isArray(a)&&a-parseFloat(a)+1>=0},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},isPlainObject:function(a){var b;if(!a||"object"!==m.type(a)||a.nodeType||m.isWindow(a))return!1;try{if(a.constructor&&!j.call(a,"constructor")&&!j.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}if(k.ownLast)for(b in a)return j.call(a,b);for(b in a);return void 0===b||j.call(a,b)},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?h[i.call(a)]||"object":typeof a},globalEval:function(b){b&&m.trim(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(o,"ms-").replace(p,q)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,b,c){var d,e=0,f=a.length,g=r(a);if(c){if(g){for(;f>e;e++)if(d=b.apply(a[e],c),d===!1)break}else for(e in a)if(d=b.apply(a[e],c),d===!1)break}else if(g){for(;f>e;e++)if(d=b.call(a[e],e,a[e]),d===!1)break}else for(e in a)if(d=b.call(a[e],e,a[e]),d===!1)break;return a},trim:function(a){return null==a?"":(a+"").replace(n,"")},makeArray:function(a,b){var c=b||[];return null!=a&&(r(Object(a))?m.merge(c,"string"==typeof a?[a]:a):f.call(c,a)),c},inArray:function(a,b,c){var d;if(b){if(g)return g.call(b,a,c);for(d=b.length,c=c?0>c?Math.max(0,d+c):c:0;d>c;c++)if(c in b&&b[c]===a)return c}return-1},merge:function(a,b){var c=+b.length,d=0,e=a.length;while(c>d)a[e++]=b[d++];if(c!==c)while(void 0!==b[d])a[e++]=b[d++];return a.length=e,a},grep:function(a,b,c){for(var d,e=[],f=0,g=a.length,h=!c;g>f;f++)d=!b(a[f],f),d!==h&&e.push(a[f]);return e},map:function(a,b,c){var d,f=0,g=a.length,h=r(a),i=[];if(h)for(;g>f;f++)d=b(a[f],f,c),null!=d&&i.push(d);else for(f in a)d=b(a[f],f,c),null!=d&&i.push(d);return e.apply([],i)},guid:1,proxy:function(a,b){var c,e,f;return"string"==typeof b&&(f=a[b],b=a,a=f),m.isFunction(a)?(c=d.call(arguments,2),e=function(){return a.apply(b||this,c.concat(d.call(arguments)))},e.guid=a.guid=a.guid||m.guid++,e):void 0},now:function(){return+new Date},support:k}),m.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(a,b){h["[object "+b+"]"]=b.toLowerCase()});function r(a){var b="length"in a&&a.length,c=m.type(a);return"function"===c||m.isWindow(a)?!1:1===a.nodeType&&b?!0:"array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a}var s=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u="sizzle"+1*new Date,v=a.document,w=0,x=0,y=ha(),z=ha(),A=ha(),B=function(a,b){return a===b&&(l=!0),0},C=1<<31,D={}.hasOwnProperty,E=[],F=E.pop,G=E.push,H=E.push,I=E.slice,J=function(a,b){for(var c=0,d=a.length;d>c;c++)if(a[c]===b)return c;return-1},K="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",L="[\\x20\\t\\r\\n\\f]",M="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",N=M.replace("w","w#"),O="\\["+L+"*("+M+")(?:"+L+"*([*^$|!~]?=)"+L+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^Line truncated
|
||||
|
||||
return!0}function Q(a,b,d,e){if(m.acceptData(a)){var f,g,h=m.expando,i=a.nodeType,j=i?m.cache:a,k=i?a[h]:a[h]&&h;if(k&&j[k]&&(e||j[k].data)||void 0!==d||"string"!=typeof b)return k||(k=i?a[h]=c.pop()||m.guid++:h),j[k]||(j[k]=i?{}:{toJSON:m.noop}),("object"==typeof b||"function"==typeof b)&&(e?j[k]=m.extend(j[k],b):j[k].data=m.extend(j[k].data,b)),g=j[k],e||(g.data||(g.data={}),g=g.data),void 0!==d&&(g[m.camelCase(b)]=d),"string"==typeof b?(f=g[b],null==f&&(f=g[m.camelCase(b)])):f=g,f}}function R(a,b,c){if(m.acceptData(a)){var d,e,f=a.nodeType,g=f?m.cache:a,h=f?a[m.expando]:m.expando;if(g[h]){if(b&&(d=c?g[h]:g[h].data)){m.isArray(b)?b=b.concat(m.map(b,m.camelCase)):b in d?b=[b]:(b=m.camelCase(b),b=b in d?[b]:b.split(" ")),e=b.length;while(e--)delete d[b[e]];if(c?!P(d):!m.isEmptyObject(d))return}(c||(delete g[h].data,P(g[h])))&&(f?m.cleanData([a],!0):k.deleteExpando||g!=g.window?delete g[h]:g[h]=null)}}}m.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(a){return a=a.nodeType?m.cache[a[m.expando]]:a[m.expando],!!a&&!P(a)},data:function(a,b,c){return Q(a,b,c)},removeData:function(a,b){return R(a,b)},_data:function(a,b,c){return Q(a,b,c,!0)},_removeData:function(a,b){return R(a,b,!0)}}),m.fn.extend({data:function(a,b){var c,d,e,f=this[0],g=f&&f.attributes;if(void 0===a){if(this.length&&(e=m.data(f),1===f.nodeType&&!m._data(f,"parsedAttrs"))){c=g.length;while(c--)g[c]&&(d=g[c].name,0===d.indexOf("data-")&&(d=m.camelCase(d.slice(5)),O(f,d,e[d])));m._data(f,"parsedAttrs",!0)}return e}return"object"==typeof a?this.each(function(){m.data(this,a)}):arguments.length>1?this.each(function(){m.data(this,a,b)}):f?O(f,a,m.data(f,a)):void 0},removeData:function(a){return this.each(function(){m.removeData(this,a)})}}),m.extend({queue:function(a,b,c){var d;return a?(b=(b||"fx")+"queue",d=m._data(a,b),c&&(!d||m.isArray(c)?d=m._data(a,b,m.makeArray(c)):d.push(c)),d||[]):void 0},dequeue:function(a,b){b=b||"fx";var c=m.queue(a,b),d=c.length,e=c.shift(),f=m._queueHooks(a,b),g=function(){m.dequeue(a,b)};"inprogress"===e&&(e=c.shift(),d--),e&&("fx"===b&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return m._data(a,c)||m._data(a,c,{empty:m.Callbacks("once memory").add(function(){m._removeData(a,b+"queue"),m._removeData(a,c)})})}}),m.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.length<c?m.queue(this[0],a):void 0===b?this:this.each(function(){var c=m.queue(this,a,b);m._queueHooks(this,a),"fx"===a&&"inprogress"!==c[0]&&m.dequeue(this,a)})},dequeue:function(a){return this.each(function(){m.dequeue(this,a)})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,b){var c,d=1,e=m.Deferred(),f=this,g=this.length,h=function(){--d||e.resolveWith(f,[f])};"string"!=typeof a&&(b=a,a=void 0),a=a||"fx";while(g--)c=m._data(f[g],a+"queueHooks"),c&&c.empty&&(d++,c.empty.add(h));return h(),e.promise(b)}});var S=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,T=["Top","Right","Bottom","Left"],U=function(a,b){return a=b||a,"none"===m.css(a,"display")||!m.contains(a.ownerDocument,a)},V=m.access=function(a,b,c,d,e,f,g){var h=0,i=a.length,j=null==c;if("object"===m.type(c)){e=!0;for(h in c)m.access(a,b,h,c[h],!0,f,g)}else if(void 0!==d&&(e=!0,m.isFunction(d)||(g=!0),j&&(g?(b.call(a,d),b=null):(j=b,b=function(a,b,c){return j.call(m(a),c)})),b))for(;i>h;h++)b(a[h],c,g?d:d.call(a[h],h,b(a[h],c)));return e?a:j?b.call(a):i?b(a[0],c):f},W=/^(?:checkbox|radio)$/i;!function(){var a=y.createElement("input"),b=y.createElement("div"),c=y.createDocumentFragment();if(b.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",k.leadingWhitespace=3===b.firstChild.nodeType,k.tbody=!b.getElementsByTagName("tbody").length,k.htmlSerialize=!!b.getElementsByTagName("link").length,k.html5Clone="<:nav></:nav>"!==y.createElement("nav").cloneNode(!0).outerHTML,a.type="checkbox",a.checked=!0,c.appendChild(a),k.appendChecked=a.checked,b.innerHTML="<textarea>x</textarea>",k.noCloneChecked=!!b.cloneNode(!0).lastChild.defaultValue,c.appendChild(b),b.innerHTML="<input type='radio' checked='checked' name='t'/>",k.checkClone=b.cloneNode(!0).cloneNode(!0).lastChild.checked,k.noCloneEvent=!0,b.attachEvent&&(b.attachEvent("onclick",function(){k.noCloneEvent=!1}),b.cloneNode(!0).click()),null==k.deleteExpando){k.deleteExpando=!0;try{delete b.test}catch(d){k.deleteExpando=!1}}}(),function(){var b,c,d=y.createElement("div");for(b in{submit:!0,change:!0,focusin:!0})c="on"+b,(k[b+"Bubbles"]=c in a)||(d.setAttribute(c,"t"),k[b+"Bubbles"]=d.attributes[c].expando===!1);d=null}();var X=/^(?:input|select|textarea)$/i,Y=/^key/,Z=/^(?:mouse|pointer|contextmenu)|click/,$=/^(?:focusinfocus|focusoutblur)$/,_=/^([^.]*)(?:\.(.+)|)$/;function aa(){return!0}function ba(){return!1}function ca(){try{return y.activeElement}catch(a){}}m.event={global:{},add:function(a,b,c,d,e){var
Line truncated
|
||||
return new Za.prototype.init(a,b,c,d,e)}m.Tween=Za,Za.prototype={constructor:Za,init:function(a,b,c,d,e,f){this.elem=a,this.prop=c,this.easing=e||"swing",this.options=b,this.start=this.now=this.cur(),this.end=d,this.unit=f||(m.cssNumber[c]?"":"px")},cur:function(){var a=Za.propHooks[this.prop];return a&&a.get?a.get(this):Za.propHooks._default.get(this)},run:function(a){var b,c=Za.propHooks[this.prop];return this.options.duration?this.pos=b=m.easing[this.easing](a,this.options.duration*a,0,1,this.options.duration):this.pos=b=a,this.now=(this.end-this.start)*b+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),c&&c.set?c.set(this):Za.propHooks._default.set(this),this}},Za.prototype.init.prototype=Za.prototype,Za.propHooks={_default:{get:function(a){var b;return null==a.elem[a.prop]||a.elem.style&&null!=a.elem.style[a.prop]?(b=m.css(a.elem,a.prop,""),b&&"auto"!==b?b:0):a.elem[a.prop]},set:function(a){m.fx.step[a.prop]?m.fx.step[a.prop](a):a.elem.style&&(null!=a.elem.style[m.cssProps[a.prop]]||m.cssHooks[a.prop])?m.style(a.elem,a.prop,a.now+a.unit):a.elem[a.prop]=a.now}}},Za.propHooks.scrollTop=Za.propHooks.scrollLeft={set:function(a){a.elem.nodeType&&a.elem.parentNode&&(a.elem[a.prop]=a.now)}},m.easing={linear:function(a){return a},swing:function(a){return.5-Math.cos(a*Math.PI)/2}},m.fx=Za.prototype.init,m.fx.step={};var $a,_a,ab=/^(?:toggle|show|hide)$/,bb=new RegExp("^(?:([+-])=|)("+S+")([a-z%]*)$","i"),cb=/queueHooks$/,db=[ib],eb={"*":[function(a,b){var c=this.createTween(a,b),d=c.cur(),e=bb.exec(b),f=e&&e[3]||(m.cssNumber[a]?"":"px"),g=(m.cssNumber[a]||"px"!==f&&+d)&&bb.exec(m.css(c.elem,a)),h=1,i=20;if(g&&g[3]!==f){f=f||g[3],e=e||[],g=+d||1;do h=h||".5",g/=h,m.style(c.elem,a,g+f);while(h!==(h=c.cur()/d)&&1!==h&&--i)}return e&&(g=c.start=+g||+d||0,c.unit=f,c.end=e[1]?g+(e[1]+1)*e[2]:+e[2]),c}]};function fb(){return setTimeout(function(){$a=void 0}),$a=m.now()}function gb(a,b){var c,d={height:a},e=0;for(b=b?1:0;4>e;e+=2-b)c=T[e],d["margin"+c]=d["padding"+c]=a;return b&&(d.opacity=d.width=a),d}function hb(a,b,c){for(var d,e=(eb[b]||[]).concat(eb["*"]),f=0,g=e.length;g>f;f++)if(d=e[f].call(c,b,a))return d}function ib(a,b,c){var d,e,f,g,h,i,j,l,n=this,o={},p=a.style,q=a.nodeType&&U(a),r=m._data(a,"fxshow");c.queue||(h=m._queueHooks(a,"fx"),null==h.unqueued&&(h.unqueued=0,i=h.empty.fire,h.empty.fire=function(){h.unqueued||i()}),h.unqueued++,n.always(function(){n.always(function(){h.unqueued--,m.queue(a,"fx").length||h.empty.fire()})})),1===a.nodeType&&("height"in b||"width"in b)&&(c.overflow=[p.overflow,p.overflowX,p.overflowY],j=m.css(a,"display"),l="none"===j?m._data(a,"olddisplay")||Fa(a.nodeName):j,"inline"===l&&"none"===m.css(a,"float")&&(k.inlineBlockNeedsLayout&&"inline"!==Fa(a.nodeName)?p.zoom=1:p.display="inline-block")),c.overflow&&(p.overflow="hidden",k.shrinkWrapBlocks()||n.always(function(){p.overflow=c.overflow[0],p.overflowX=c.overflow[1],p.overflowY=c.overflow[2]}));for(d in b)if(e=b[d],ab.exec(e)){if(delete b[d],f=f||"toggle"===e,e===(q?"hide":"show")){if("show"!==e||!r||void 0===r[d])continue;q=!0}o[d]=r&&r[d]||m.style(a,d)}else j=void 0;if(m.isEmptyObject(o))"inline"===("none"===j?Fa(a.nodeName):j)&&(p.display=j);else{r?"hidden"in r&&(q=r.hidden):r=m._data(a,"fxshow",{}),f&&(r.hidden=!q),q?m(a).show():n.done(function(){m(a).hide()}),n.done(function(){var b;m._removeData(a,"fxshow");for(b in o)m.style(a,b,o[b])});for(d in o)g=hb(q?r[d]:0,d,n),d in r||(r[d]=g.start,q&&(g.end=g.start,g.start="width"===d||"height"===d?1:0))}}function jb(a,b){var c,d,e,f,g;for(c in a)if(d=m.camelCase(c),e=b[d],f=a[c],m.isArray(f)&&(e=f[1],f=a[c]=f[0]),c!==d&&(a[d]=f,delete a[c]),g=m.cssHooks[d],g&&"expand"in g){f=g.expand(f),delete a[d];for(c in f)c in a||(a[c]=f[c],b[c]=e)}else b[d]=e}function kb(a,b,c){var d,e,f=0,g=db.length,h=m.Deferred().always(function(){delete i.elem}),i=function(){if(e)return!1;for(var b=$a||fb(),c=Math.max(0,j.startTime+j.duration-b),d=c/j.duration||0,f=1-d,g=0,i=j.tweens.length;i>g;g++)j.tweens[g].run(f);return h.notifyWith(a,[j,f,c]),1>f&&i?c:(h.resolveWith(a,[j]),!1)},j=h.promise({elem:a,props:m.extend({},b),opts:m.extend(!0,{specialEasing:{}},c),originalProperties:b,originalOptions:c,startTime:$a||fb(),duration:c.duration,tweens:[],createTween:function(b,c){var d=m.Tween(a,j.opts,b,c,j.opts.specialEasing[b]||j.opts.easing);return j.tweens.push(d),d},stop:function(b){var c=0,d=b?j.tweens.length:0;if(e)return this;for(e=!0;d>c;c++)j.tweens[c].run(1);return b?h.resolveWith(a,[j,b]):h.rejectWith(a,[j,b]),this}}),k=j.props;for(jb(k,j.opts.specialEasing);g>f;f++)if(d=db[f].call(j,a,k,j.opts))return d;return m.map(k,hb,j),m.isFunction(j.opts.start)&&j.opts.start.call(a,j),m.fx.timer(m.extend(i,{elem:a,anim:j,queue:j.opts.queue})),j.progress(j.opts.progress).done(j.opts.done,j.opts.complete).fail(j.opts.fail).always(j.opts.always)}m.Animation=m.extend(kb,{tweener:function(a,b){m.isFunction(a)?(b=a,a=["*"]):a=a.split(" ");for(var c,d=0,e=a.length;e>d;d++)c=a[d],eb[cLine truncated
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
+289
@@ -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 }
|
||||
}
|
||||
?>
|
||||
+68
@@ -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 }
|
||||
}
|
||||
?>
|
||||
+68
@@ -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 }
|
||||
}
|
||||
?>
|
||||
+116
@@ -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 }
|
||||
}
|
||||
?>
|
||||
+286
@@ -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 }
|
||||
}
|
||||
?>
|
||||
+106
@@ -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 }
|
||||
}
|
||||
?>
|
||||
+113
@@ -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 }
|
||||
}
|
||||
?>
|
||||
+276
@@ -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