{include file="mobile/templates/index_top.tpl"}

<div class="pages navbar-through toolbar-through">
    <!-- Page, "data-page" contains page name -->
    <div data-page="reports" class="page">
        <!-- Scrollable page content -->
        <div class="page-content">

            <div class="content-block" style="margin: 0px; padding: 0px; height: 100%;">
                <input type="hidden" class="page_to_back" id="page_to_back" value="{$report.cat_id}"/>

                <script>
                    function set_back_temp() {
                        var loc_hash = window.location;
                        if (loc_hash.toString().indexOf('report.php') != -1) {
                            $('#back_custom').removeClass('back');
                            $('#back_custom').attr('href', 'm_menu.php?cat=' + $("#page_to_back").val());
                        }
                    }
                </script>

                {*
                                {if $a_style}<style>{$a_style}</style>{/if}

                                <form action="report.php" method="post" id="report_form">
                                    <input type="hidden" name="id" value="{$report.id}">
                                    <input type=hidden name=csrf value='{$csrf}'>
                                    {if $error}
                                    <div style="margin:30px"><i>{$error}</i></div>
                                    {elseif $report.form}
                                    {eval var=$report.form}
                                    {/if}
                                </form>
                *}
                <iframe onload="set_back_temp();"
                        src="report.php?id={$report.id}&mobile_view=1{if $report.request_params}{$report.request_params}{/if}"
                        frameborder="0" style="height: 100%; width: 100%;" seamless="seamless"></iframe>
            </div>
        </div>

        {include file="mobile/templates/footer.tpl" set_bt=0}
