money deposit list
This commit is contained in:
@@ -6,6 +6,19 @@
|
||||
|
||||
<div class="list half_width">
|
||||
{foreach $mod_array as $mod}
|
||||
|
||||
{if !$mod@first && $mod_array[$mod@index]->get_mod_date()|substr:5:2 != $mod_array[$mod@index-1]->get_mod_date()|substr:5:2}
|
||||
</div>
|
||||
{/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 class="date_separator">{$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" onclick="block_action('block_{$mod->get_mod_date()|substr:0:4}{$mod->get_mod_date()|substr:5:2}');">
|
||||
</span>
|
||||
<div id="block_{$mod->get_mod_date()|substr:0:4}{$mod->get_mod_date()|substr:5:2}" class="month_block">
|
||||
|
||||
{/if}
|
||||
<a href="/admin/money_deposit/{$mod->get_mod_id()}">
|
||||
<div class="list_item">
|
||||
<table class="money">
|
||||
@@ -27,7 +40,44 @@
|
||||
</table>
|
||||
</div>
|
||||
</a>
|
||||
|
||||
{if $mod@last}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{/foreach}
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<script>
|
||||
|
||||
function open_block(block_id) {
|
||||
$("#"+block_id).slideDown("slow");
|
||||
}
|
||||
|
||||
function close_block(block_id) {
|
||||
$("#"+block_id).slideUp("slow");
|
||||
}
|
||||
|
||||
function block_action(block_id) {
|
||||
if ($("#"+block_id).is(':hidden')) {
|
||||
open_block(block_id);
|
||||
}
|
||||
else {
|
||||
close_block(block_id);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$( document ).ready(function() {
|
||||
var divs = $( "div[class=month_block]" );
|
||||
$( ".list" ).find( divs ).hide();
|
||||
var div_list = $( ".list" ).find( divs );
|
||||
|
||||
open_block(div_list[0].id);
|
||||
|
||||
});
|
||||
|
||||
|
||||
</script>
|
||||
Reference in New Issue
Block a user