bug fixes. added payment type to deposits

This commit is contained in:
Tóth Richárd
2018-03-18 17:37:52 +01:00
parent 1e4aff020f
commit 392b484666
14 changed files with 139 additions and 44 deletions

View File

@@ -13,7 +13,7 @@
{/if}
{if $mod@first || $mod_array[$mod@index]->get_mod_date()|substr:5:2 != $mod_array[$mod@index-1]->get_mod_date()|substr:5:2}
<span onclick="block_action('block_{$mod->get_mod_date()|substr:0:4}{$mod->get_mod_date()|substr:5:2}');" class="date_separator clickable">{$mod_array[$mod@index]->get_mod_date()|substr:0:4}.
<span onclick="block_action('block_{$mod->get_mod_date()|substr:0:4}{$mod->get_mod_date()|substr:5:2}');" class="date_separator clickable">{$mod_array[$mod@index]->get_mod_date()|substr:0:4}.
{$months[$mod_array[$mod@index]->get_mod_date()|substr:5:2]}
<img src="/_image/open_folder.png">
</span>
@@ -25,7 +25,11 @@
<table class="money">
<tr>
<td class="icon">
<img src="/_image/deposit.png">
{if $mod->get_mod_payment_type_pt_id() == 1}
<img src="/_image/deposit.png">
{else}
<img src="/_image/transaction.png">
{/if}
</td>
<td>
{$mod->get_mod_user_kid()->get_uk_name()}
@@ -37,7 +41,7 @@
{$mod->get_mod_sum()|number_format:0:'':' '} Ft
</td>
</tr>
</table>
</div>
</a>
@@ -77,8 +81,8 @@ $( document ).ready(function() {
var div_list = $( ".list" ).find( divs );
open_block(div_list[0].id);
});
</script>
</script>

View File

@@ -13,6 +13,19 @@
</div>
</div>
<div>
<label class="desc" for="mod_payment_type">Befizetés típusa:</label>
<div>
<select name="mod_payment_type" id="mod_payment_type">
{foreach $pt_assoc_array as $pt_array}
<option value="{$pt_array.pt_id}">
{$pt_array.pt_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>
@@ -23,7 +36,7 @@
<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">
@@ -31,4 +44,4 @@
</div>
</form>
</div>
</div>

View File

@@ -17,6 +17,19 @@
</div>
</div>
<div>
<label class="desc" for="mod_payment_type">Típus:</label>
<div>
<select name="mod_payment_type" id="mod_payment_type">
{foreach $pt_assoc_array as $pt_array}
<option value="{$pt_array.pt_id}"{if $pt_array.pt_id == $mod->get_mod_payment_type_pt_id()} selected{/if}>
{$pt_array.pt_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>
@@ -27,7 +40,7 @@
<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">
@@ -35,4 +48,4 @@
</div>
</form>
</div>
</div>

View File

@@ -1,7 +1,7 @@
<div class="form_wrapper">
<form method="post">
<input type="hidden" name="action" value="parent_create">
<div>
<label class="desc" id="title1" for="up_name">Név:</label>
<div><input type="text" name="up_name" id="up_name" required></div>
@@ -18,8 +18,8 @@
</div>
<div>
<label class="desc" id="title1" for="up_phone">Facebook:</label>
<div><input type="text" name="up_phone" id="up_phone"></div>
<label class="desc" id="title1" for="up_facebook">Facebook:</label>
<div><input type="text" name="up_facebook" id="up_facebook"></div>
</div>
<div>
@@ -29,4 +29,4 @@
</div>
</form>
</div>
</div>

View File

@@ -1,6 +1,6 @@
{if $setting->get_setv_setting()->get_set_setting_type_st_id() == 1}
<div class="full_width">
<form method="post">
@@ -14,7 +14,7 @@
</div>
</div>
<div>
<div class="right">
<input class="button black" type="submit" value="Mentés">
@@ -37,19 +37,19 @@
<div class="list">
{foreach $backups as $backup}
{if
{if
$backup@first ||
(
$backups[$backup@index]->get_bu_date()|substr:5:2 != $backups[$backup@index-1]->get_bu_date()|substr:5:2
$backups[$backup@index]->get_bu_date()|substr:5:2 != $backups[$backup@index-1]->get_bu_date()|substr:5:2
)
}
{if !$backup@first &&
{if !$backup@first &&
$backups[$backup@index]->get_bu_date()|substr:5:2 != $backups[$backup@index-1]->get_bu_date()|substr:5:2
}
</div>
{/if}
<span onclick="block_action('block_{$backup->get_bu_date()|substr:0:4}{$backup->get_bu_date()|substr:5:2}');" class="date_separator clickable">{$backups[$backup@index]->get_bu_date()|substr:0:4}.
<span onclick="block_action('block_{$backup->get_bu_date()|substr:0:4}{$backup->get_bu_date()|substr:5:2}');" class="date_separator clickable">{$backups[$backup@index]->get_bu_date()|substr:0:4}.
{$months[$backups[$backup@index]->get_bu_date()|substr:5:2]}
<img src="/_image/open_folder.png">
</span>
@@ -57,7 +57,7 @@
{/if}
<div class="list_item clickable" id="kid_{$backup->get_bu_id()}" onclick="open_kid_menu({$backup->get_bu_id()})">
<img src="/_image/backup.png">
<span class="bold">{$backup->get_bu_date()|date_format:"%Y.%m.%d %H:%M"}</span> #{$backup->get_bu_id()}
<span class="bold">{$backup->get_bu_date()|date_format:"%Y.%m.%d %H:%M"}</span> #{$backup->get_bu_id()}
</div>
<div class="kid_menu" id="kid_menu_{$backup->get_bu_id()}">
<div class="kid_submenu" onclick="download_backup('{$backup->get_bu_name()}')">
@@ -114,8 +114,10 @@ $( document ).ready(function() {
$( ".list" ).find( divs ).hide();
var div_list = $( ".list" ).find( divs );
open_block(div_list[0].id);
if (div_list[0] !== undefined) {
open_block(div_list[0].id);
}
});
@@ -133,4 +135,4 @@ function open_kid_menu(uk_id) {
}
</script>
</script>