search in user list
loading gif lists can be closed and opened number of trainings at diary
This commit is contained in:
@@ -252,6 +252,21 @@ class user_kid extends user_parent {
|
||||
$this->logged_in = $_login;
|
||||
}
|
||||
|
||||
public function get_training_number_in_month($_year, $_month) {
|
||||
//évet és hónapot kap paraméterül, az edzések számát adja vissza
|
||||
global $sql;
|
||||
//var_dump($_date);
|
||||
return $sql->single_variable(
|
||||
"SELECT count( DISTINCT pr_id )
|
||||
FROM `presence`
|
||||
JOIN `training` ON `tr_id` = `pr_training_tr_id`
|
||||
WHERE `pr_user_kid_uk_id` = ". $this->get_uk_id()."
|
||||
AND `tr_date` LIKE '".$_year."-".$_month."%'
|
||||
AND tr_deleted = 0
|
||||
;"
|
||||
);
|
||||
}
|
||||
|
||||
public function update_login_time($_uk_id = null) {
|
||||
global $sql;
|
||||
//az adott user_id-n updateli a login_time-ot
|
||||
|
||||
Reference in New Issue
Block a user