</div><!-- end wrapper-->
    <?php if(isset($modal) && !empty($modal) && is_array($modal)) foreach($modal as $print_modal) { echo $print_modal; } ?>
        
    <?php //if(isset($footer)) e($footer); ?>
    
    <div id="debug"><!-- Stores the Profiler Results --></div>
    	
    <script> var base_url = "<?php echo base_url(); ?>"; </script>
    <script> var sessId  = "<?php echo sessId(); ?>"; </script>
    <script> var $id_cadastro = "<?php echo $this->session->id_cadastro??0; ?>"; </script>
    <!--<script> console.log("<?php echo $get_http_referer; ?>"); </script>-->
    <?php echo Assets::js(); ?>
    
    </body>
</html>