money basics: create, update deposits
deposit icon to user list css modified, tablet view available
This commit is contained in:
96
_class/class_money_deposit.php
Normal file
96
_class/class_money_deposit.php
Normal file
@@ -0,0 +1,96 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
/*
|
||||||
|
MONEY_DEPOSIT CLASS
|
||||||
|
*/
|
||||||
|
|
||||||
|
class money_deposit {
|
||||||
|
private $mod_id;
|
||||||
|
private $mod_user_kid_uk_id; //ID
|
||||||
|
private $mod_user_kid; //OBJECT
|
||||||
|
private $mod_date;
|
||||||
|
private $mod_sum;
|
||||||
|
|
||||||
|
public function set_mod_id($_id) {
|
||||||
|
$this->mod_id = $_id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function set_mod_user_kid_uk_id($_user_kid_uk_id) {
|
||||||
|
$this->mod_user_kid_uk_id = $_user_kid_uk_id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function set_mod_user_kid($_user_kid) {
|
||||||
|
$this->mod_user_kid = $_user_kid;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function set_mod_date($_date) {
|
||||||
|
$this->mod_date = $_date;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function set_mod_sum($_sum) {
|
||||||
|
$this->mod_sum = $_sum;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function get_mod_id() {
|
||||||
|
return $this->mod_id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function get_mod_user_kid_uk_id() {
|
||||||
|
return $this->mod_user_kid_uk_id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function get_mod_user_kid() {
|
||||||
|
return $this->mod_user_kid;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function get_mod_date() {
|
||||||
|
return $this->mod_date;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function get_mod_sum() {
|
||||||
|
return $this->mod_sum;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function set_mod_data_by_id($_id) {
|
||||||
|
global $sql;
|
||||||
|
$mod_query = "SELECT * FROM money_deposit WHERE mod_id = " . $_id . ";";
|
||||||
|
$mod_assoc_array = $sql->assoc_array($mod_query);
|
||||||
|
//var_dump($mod_assoc_array);
|
||||||
|
foreach ($mod_assoc_array[0] as $field => $value) {
|
||||||
|
$function_name = "set_" . $field;
|
||||||
|
$this->$function_name($value); //alapadatok beállítása
|
||||||
|
if ($field == "mod_user_kid_uk_id") {
|
||||||
|
$new_user = new user_kid();
|
||||||
|
$new_user->set_user_data_by_id($value);
|
||||||
|
$this->set_mod_user_kid($new_user);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public function create_money_deposit($_user_id, $_date, $_sum) {
|
||||||
|
global $sql;
|
||||||
|
return $sql->insert_into('money_deposit', array(
|
||||||
|
'mod_user_kid_uk_id' => $_user_id,
|
||||||
|
'mod_date' => $_date,
|
||||||
|
'mod_sum' => $_sum
|
||||||
|
)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function update_money_deposit($_user_id, $_date, $_sum, $_mod_id) {
|
||||||
|
global $sql;
|
||||||
|
$sql->update_table('money_deposit', array(
|
||||||
|
'mod_user_kid_uk_id' => $_user_id,
|
||||||
|
'mod_date' => $_date,
|
||||||
|
'mod_sum' => $_sum
|
||||||
|
), array(
|
||||||
|
'mod_id' => $_mod_id
|
||||||
|
));
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
@@ -129,6 +129,10 @@ class page {
|
|||||||
# NAPLÓ
|
# NAPLÓ
|
||||||
include('include_log.php');
|
include('include_log.php');
|
||||||
break;
|
break;
|
||||||
|
case 'money_deposit':
|
||||||
|
# BEFIZETÉSEK
|
||||||
|
include('include_money_deposit.php');
|
||||||
|
break;
|
||||||
case 'lock_training':
|
case 'lock_training':
|
||||||
# EDZÉS ZÁROLÁS, FELOLDÁS
|
# EDZÉS ZÁROLÁS, FELOLDÁS
|
||||||
include('include_lock_training.php');
|
include('include_lock_training.php');
|
||||||
|
|||||||
131
_css/default.css
131
_css/default.css
@@ -131,6 +131,29 @@ td.create a {
|
|||||||
line-height: 18px;
|
line-height: 18px;
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.list_item table.money {
|
||||||
|
width: 100%;
|
||||||
|
padding: 0px;
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
.list_item table.money td.icon {
|
||||||
|
width: 25px;
|
||||||
|
padding: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.list_item table.money td.sum {
|
||||||
|
width: 1%;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
.list_item table.money td.date {
|
||||||
|
text-align: right;
|
||||||
|
padding-right: 25px;
|
||||||
|
}
|
||||||
|
|
||||||
.list .name_tag {
|
.list .name_tag {
|
||||||
|
|
||||||
text-align: left;
|
text-align: left;
|
||||||
@@ -158,6 +181,11 @@ td.create a {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.user_mod_form {
|
||||||
|
width: 20px;
|
||||||
|
float: right;
|
||||||
|
}
|
||||||
|
|
||||||
.list {
|
.list {
|
||||||
clear: both;
|
clear: both;
|
||||||
}
|
}
|
||||||
@@ -178,13 +206,27 @@ td.create a {
|
|||||||
border-left: 2px solid #000;
|
border-left: 2px solid #000;
|
||||||
}
|
}
|
||||||
|
|
||||||
.list .list_item img, .list .name_tag img, .list .name_tag_checked img {
|
.list .list_item img, .list .name_tag img, .list .name_tag_checked img{
|
||||||
width: 20px;
|
width: 20px;
|
||||||
height: 20px;
|
height: 20px;
|
||||||
float: left;
|
float: left;
|
||||||
margin-right: 5px;
|
margin-right: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.list .add_deposit {
|
||||||
|
position: relative;
|
||||||
|
top: -30px;
|
||||||
|
right: 10px;
|
||||||
|
cursor: pointer;
|
||||||
|
padding: 0px !important;
|
||||||
|
margin: 0px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.list .add_deposit img {
|
||||||
|
width: 20px;
|
||||||
|
height: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.list a {
|
.list a {
|
||||||
@@ -291,49 +333,21 @@ table.log tr.delete:hover {
|
|||||||
|
|
||||||
@media (min-width: 680px) {
|
@media (min-width: 680px) {
|
||||||
|
|
||||||
|
/* */
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
main #main_content, main #loading {
|
|
||||||
width: 80%;
|
|
||||||
margin: 0px auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
.user_filter {
|
|
||||||
width: 90%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.user_filter select {
|
|
||||||
width: 40%;
|
|
||||||
max-width: 200px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.user_filter input {
|
|
||||||
width: 40%;
|
|
||||||
float: left;
|
|
||||||
margin: 0px 10px 0px 0px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.danger {
|
|
||||||
width: 90%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.list {
|
|
||||||
width: 40%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.wide {
|
|
||||||
width: 80% !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.list .list_item, .list .name_tag, .list .name_tag_checked {
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.list_item label {
|
|
||||||
float: left;
|
|
||||||
padding-right: 5px;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
.list .date_separator {
|
.list .date_separator {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
@@ -341,4 +355,55 @@ main #main_content, main #loading {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (min-width: 1000px) {
|
||||||
|
.half_width {
|
||||||
|
width: 50% !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.list_item label {
|
||||||
|
float: left;
|
||||||
|
padding-right: 5px;
|
||||||
|
text-align: right;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.danger {
|
||||||
|
width: 90%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wide {
|
||||||
|
width: 80% !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.user_filter {
|
||||||
|
width: 90%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.user_filter select {
|
||||||
|
width: 40%;
|
||||||
|
max-width: 200px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.user_filter input {
|
||||||
|
width: 40%;
|
||||||
|
float: left;
|
||||||
|
margin: 0px 10px 0px 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
main #main_content, main #loading {
|
||||||
|
width: 80%;
|
||||||
|
margin: 0px auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.list {
|
||||||
|
width: 40%;
|
||||||
|
min-width: 400px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.list .list_item, .list .name_tag, .list .name_tag_checked {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -126,7 +126,7 @@ input[type=email]:hover {
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@media (min-width: 1200px) {
|
@media (min-width: 1000px) {
|
||||||
form > div > label,
|
form > div > label,
|
||||||
legend {
|
legend {
|
||||||
text-align: right;
|
text-align: right;
|
||||||
@@ -137,3 +137,12 @@ input[type=email]:hover {
|
|||||||
width: 70%;
|
width: 70%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (min-width: 601px) {
|
||||||
|
form > div > label,
|
||||||
|
legend {
|
||||||
|
text-align: right;
|
||||||
|
padding-top: 5px;
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
}
|
||||||
52
_css/nav.css
52
_css/nav.css
@@ -55,43 +55,41 @@ ul.topnav span.mobile_logout {
|
|||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (max-width:680px) {
|
@media screen and (max-width:1000px) {
|
||||||
ul.topnav li {display: none;}
|
ul.topnav li {display: none;}
|
||||||
ul.topnav li.login {display: inline-block;}
|
ul.topnav li.login {display: inline-block;}
|
||||||
ul.topnav li.icon {
|
ul.topnav li.icon {
|
||||||
float: left;
|
float: left;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
@media screen and (max-width:680px) {
|
nav {
|
||||||
nav {
|
width: 100%;
|
||||||
width: 100%;
|
}
|
||||||
}
|
ul.topnav.responsive {position: relative;}
|
||||||
ul.topnav.responsive {position: relative;}
|
|
||||||
|
|
||||||
ul.topnav.responsive li {
|
ul.topnav.responsive li {
|
||||||
float: none;
|
float: none;
|
||||||
display: inline;
|
display: inline;
|
||||||
}
|
}
|
||||||
ul.topnav.responsive li a {
|
ul.topnav.responsive li a {
|
||||||
display: block;
|
display: block;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
li.logout_mobile {
|
li.logout_mobile {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
ul.topnav li.logout {
|
ul.topnav li.logout {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
ul.topnav span.mobile_logout {
|
ul.topnav span.mobile_logout {
|
||||||
display: block;
|
display: block;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 15px;
|
top: 15px;
|
||||||
right: 15px;
|
right: 15px;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -100,6 +100,25 @@ switch ($this->get_id()) {
|
|||||||
}
|
}
|
||||||
$smarty->assign('school_cities',$school_cities);
|
$smarty->assign('school_cities',$school_cities);
|
||||||
$smarty->display('school_create.tpl');
|
$smarty->display('school_create.tpl');
|
||||||
|
break;
|
||||||
|
case 'money_deposit':
|
||||||
|
# ÚJ BEFIZETÉS
|
||||||
|
$user_kid_query = "SELECT * FROM user_kid WHERE uk_is_active = 1 AND uk_deleted = 0 order by uk_name ASC;";
|
||||||
|
$user_kid_assoc_array = $sql->assoc_array($user_kid_query);
|
||||||
|
$user_kids = array();
|
||||||
|
foreach ($user_kid_assoc_array as $key => $value) {
|
||||||
|
$new_kid = new user_kid();
|
||||||
|
$new_kid->set_user_data_by_id($value['uk_id']);
|
||||||
|
$user_kids[] = $new_kid;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (isset($_POST['mod_user_kid_uk_id'])) {
|
||||||
|
$smarty->assign('user_kid_id', $_POST['mod_user_kid_uk_id']);
|
||||||
|
}
|
||||||
|
|
||||||
|
$smarty->assign('user_kids', $user_kids);
|
||||||
|
$smarty->display('money_deposit_create.tpl');
|
||||||
|
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
# code...
|
# code...
|
||||||
|
|||||||
47
_include/include_money_deposit.php
Normal file
47
_include/include_money_deposit.php
Normal file
@@ -0,0 +1,47 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
# HA NINCS ID, AKKOR BEFIZETÉS LISTA
|
||||||
|
# HA VAN ID, AKKOR BEFIZETÉS ADATINAK MEGTEKINTÉSE/MÓDOSÍTÁSA
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
if ($this->is_id()) {
|
||||||
|
# ADOTT BEFIZETÉS ADATINAK MEGTEKINTÉSE/MÓDOSÍTÁSA
|
||||||
|
$mod = new money_deposit();
|
||||||
|
$mod->set_mod_data_by_id($this->get_id());
|
||||||
|
|
||||||
|
$user_kid_query = "SELECT * FROM user_kid WHERE uk_is_active = 1 AND uk_deleted = 0 order by uk_name ASC;";
|
||||||
|
$user_kid_assoc_array = $sql->assoc_array($user_kid_query);
|
||||||
|
$user_kids = array();
|
||||||
|
foreach ($user_kid_assoc_array as $key => $value) {
|
||||||
|
$new_kid = new user_kid();
|
||||||
|
$new_kid->set_user_data_by_id($value['uk_id']);
|
||||||
|
$user_kids[] = $new_kid;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
$smarty->assign('user_kids', $user_kids);
|
||||||
|
$smarty->assign("mod", $mod);
|
||||||
|
$smarty->display("money_deposit_update.tpl");
|
||||||
|
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
# BEFIZETÉS LISTA
|
||||||
|
$mod_query = "SELECT * FROM money_deposit ORDER BY mod_date DESC LIMIT 50;";
|
||||||
|
$mod_array = array();
|
||||||
|
$mod_assoc_array = $sql->assoc_array($mod_query);
|
||||||
|
|
||||||
|
foreach ($mod_assoc_array as $mod) {
|
||||||
|
$new_mod = new money_deposit();
|
||||||
|
$new_mod->set_mod_data_by_id($mod['mod_id']);
|
||||||
|
$mod_array[] = $new_mod;
|
||||||
|
}
|
||||||
|
|
||||||
|
$smarty->assign("mod_array", $mod_array);
|
||||||
|
$smarty->display("money_deposit.tpl");
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
@@ -68,6 +68,7 @@ $smarty->setConfigDir('template/configs');
|
|||||||
|
|
||||||
$smarty->assign('months', $months);
|
$smarty->assign('months', $months);
|
||||||
$smarty->assign('days', $days);
|
$smarty->assign('days', $days);
|
||||||
|
$smarty->assign('today', date('Y-m-d'));
|
||||||
|
|
||||||
//SQL KAPCSOLAT BEÁLLÍTÁSA
|
//SQL KAPCSOLAT BEÁLLÍTÁSA
|
||||||
if ($_SERVER['HTTP_HOST'] == 'badmintoncoach.hu') $sql = new sql('localhost','root','','badminton_coach');
|
if ($_SERVER['HTTP_HOST'] == 'badmintoncoach.hu') $sql = new sql('localhost','root','','badminton_coach');
|
||||||
|
|||||||
@@ -242,6 +242,22 @@ if (isset($_POST['action'])) {
|
|||||||
log::register('update_school', $_POST['sc_id']);
|
log::register('update_school', $_POST['sc_id']);
|
||||||
header("Location: /admin/schools");
|
header("Location: /admin/schools");
|
||||||
break;
|
break;
|
||||||
|
case 'money_deposit_create':
|
||||||
|
# új befizetés létrehozása
|
||||||
|
$new_mod_id = money_deposit::create_money_deposit($_POST['mod_user_kid_uk_id'], $_POST['mod_date'], $_POST['mod_sum']);
|
||||||
|
$tmp_user = new user_kid();
|
||||||
|
$tmp_user->set_user_data_by_id($_POST['mod_user_kid_uk_id']);
|
||||||
|
log::register('create_money_deposit', $tmp_user->get_uk_name() . ': ' . $_POST['mod_sum']. ' Ft (' . $_POST['mod_date'] . ')');
|
||||||
|
header("Location: /admin/money_deposit");
|
||||||
|
break;
|
||||||
|
case 'money_deposit_update':
|
||||||
|
# befizetés módosítás
|
||||||
|
money_deposit::update_money_deposit($_POST['mod_user_kid_uk_id'], $_POST['mod_date'], $_POST['mod_sum'], $_POST['mod_id']);
|
||||||
|
$tmp_user = new user_kid();
|
||||||
|
$tmp_user->set_user_data_by_id($_POST['mod_user_kid_uk_id']);
|
||||||
|
log::register('update_money_deposit', $tmp_user->get_uk_name() . ': ' . $_POST['mod_sum']. ' Ft (' . $_POST['mod_date'] . ')');
|
||||||
|
header("Location: /admin/money_deposit");
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
# code...
|
# code...
|
||||||
break;
|
break;
|
||||||
|
|||||||
33
template/templates/money_deposit.tpl
Normal file
33
template/templates/money_deposit.tpl
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
<div class="buttons">
|
||||||
|
|
||||||
|
<a href="/admin/create/money_deposit" class="addbutton add-big">Új befizetés</a>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="list half_width">
|
||||||
|
{foreach $mod_array as $mod}
|
||||||
|
<a href="/admin/money_deposit/{$mod->get_mod_id()}">
|
||||||
|
<div class="list_item">
|
||||||
|
<table class="money">
|
||||||
|
<tr>
|
||||||
|
<td class="icon">
|
||||||
|
<img src="/_image/deposit.png">
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
{$mod->get_mod_user_kid()->get_uk_name()}
|
||||||
|
</td>
|
||||||
|
<td class="date">
|
||||||
|
{$mod->get_mod_date()}
|
||||||
|
</td>
|
||||||
|
<td class="sum">
|
||||||
|
{$mod->get_mod_sum()} Ft
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
{/foreach}
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
34
template/templates/money_deposit_create.tpl
Normal file
34
template/templates/money_deposit_create.tpl
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
<div class="form_wrapper">
|
||||||
|
<form method="post">
|
||||||
|
<input type="hidden" name="action" value="money_deposit_create">
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<label class="desc" id="title1" for="mod_user_kid_uk_id">Befizető:</label>
|
||||||
|
<div>
|
||||||
|
<select name="mod_user_kid_uk_id" id="mod_user_kid_uk_id">
|
||||||
|
{foreach $user_kids as $user_kid}
|
||||||
|
<option value="{$user_kid->get_uk_id()}"{if isset($user_kid_id) && $user_kid_id == $user_kid->get_uk_id()} selected{/if}>{$user_kid->get_uk_name()}</option>>
|
||||||
|
{/foreach}
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<label class="desc" id="title1" for="mod_date">Dátum:</label>
|
||||||
|
<div><input type="text" name="mod_date" id="mod_date" value="{$today}" required></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<label class="desc" id="title1" for="mod_sum">Összeg:</label>
|
||||||
|
<div><input type="text" name="mod_sum" id="mod_sum" value="8000" required></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<div>
|
||||||
|
<input class="button black" type="submit" value="Mentés">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
35
template/templates/money_deposit_update.tpl
Normal file
35
template/templates/money_deposit_update.tpl
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
<div class="form_wrapper">
|
||||||
|
<form method="post">
|
||||||
|
<input type="hidden" name="action" value="money_deposit_update">
|
||||||
|
<input type="hidden" name="mod_id" value="{$mod->get_mod_id()}">
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<label class="desc" id="title1" for="mod_user_kid_uk_id">Befizető:</label>
|
||||||
|
<div>
|
||||||
|
<select name="mod_user_kid_uk_id" id="mod_user_kid_uk_id">
|
||||||
|
{foreach $user_kids as $user_kid}
|
||||||
|
<option value="{$user_kid->get_uk_id()}"{if $user_kid->get_uk_id() == $mod->get_mod_user_kid_uk_id()} selected{/if}>{$user_kid->get_uk_name()}</option>>
|
||||||
|
{/foreach}
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<label class="desc" id="title1" for="mod_date">Dátum:</label>
|
||||||
|
<div><input type="text" name="mod_date" id="mod_date" value="{$mod->get_mod_date()}" required></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<label class="desc" id="title1" for="mod_sum">Összeg:</label>
|
||||||
|
<div><input type="text" name="mod_sum" id="mod_sum" value="{$mod->get_mod_sum()}" required></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<div>
|
||||||
|
<input class="button black" type="submit" value="Mentés">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
@@ -43,6 +43,10 @@ $("#uk_filter_name").keyup(function() {
|
|||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
function open_deposit(user_id) {
|
||||||
|
$("#"+user_id).submit();
|
||||||
|
}
|
||||||
|
|
||||||
function search() {
|
function search() {
|
||||||
document.getElementById('user_list').innerHTML = 'Betöltés...';
|
document.getElementById('user_list').innerHTML = 'Betöltés...';
|
||||||
$("#is_active").prop("disabled",true);
|
$("#is_active").prop("disabled",true);
|
||||||
@@ -64,7 +68,12 @@ function search() {
|
|||||||
<img src="/_image/shuttlecock.png">\
|
<img src="/_image/shuttlecock.png">\
|
||||||
'+pdata[i]['uk_name']+'\
|
'+pdata[i]['uk_name']+'\
|
||||||
</div>\
|
</div>\
|
||||||
</a>';
|
</a>\
|
||||||
|
<form id="'+pdata[i]['uk_id']+'" class="user_mod_form" method="post" action="/admin/create/money_deposit">\
|
||||||
|
<div class="add_deposit"><img src="/_image/deposit.png" onclick="open_deposit('+pdata[i]['uk_id']+')"></div>\
|
||||||
|
<input type="hidden" name="mod_user_kid_uk_id" value="'+pdata[i]['uk_id']+'">\
|
||||||
|
</form>\
|
||||||
|
'
|
||||||
}
|
}
|
||||||
document.getElementById('user_list').innerHTML = content;
|
document.getElementById('user_list').innerHTML = content;
|
||||||
$("#is_active").prop("disabled",false);
|
$("#is_active").prop("disabled",false);
|
||||||
|
|||||||
Reference in New Issue
Block a user