HEX
Server: Apache/2.2.15 (CentOS)
System: Linux ip-10-0-2-146.eu-west-1.compute.internal 2.6.32-754.35.1.el6.centos.plus.x86_64 #1 SMP Sat Nov 7 11:33:42 UTC 2020 x86_64
User: root (0)
PHP: 5.6.40
Disabled: NONE
Upload Files
File: /www/exchange0old/exchange/admin/cache/%%9E^9E1^9E115FA3%%trading_figures.html.php
<?php /* Smarty version 2.6.19, created on 2024-07-16 15:09:25
         compiled from trading_figures.html */ ?>
 <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "header.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
 <script>
    $('document').ready(function(){
        $('.input-group.date').datepicker({
            orientation: "top auto",
            format: "yyyy-mm-dd",
            todayHighlight: true,
            endDate:'<?php echo $this->_tpl_vars['max_date']; ?>
'
        });
    })
</script>
<div id="body_portion">
  <div id="admin_menu">
     <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "left.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

    <div id="left_menu1" class="folded" style="display:none;"> <a href="javascript:void(0)" class="panel_open" onclick="showLeftPanel('left_menu','left_menu1','body_portion');"></a>
      <div class="top_menu"> <a href="#" class="dashboard">&nbsp;</a> </div>
      <div class="center_menu"> <a href="javascript:void(0)" class="settings" onmouseover="showLeft_DD_Mnu('left_dd_Mnu','aele_id1');" id="aele_id1" onmouseout="HideLeft_DD_Mnu('left_dd_Mnu');">&nbsp;</a> </div>
      <div class="center_menu"> <a href="#" class="cms">&nbsp;</a> </div>
      <div class="center_menu"> <a href="#" class="user">&nbsp;</a> </div>
      <div class="center_menu"> <a href="#" class="prayer">&nbsp;</a> </div>
      <div class="center_menu"> <a href="#" class="group">&nbsp;</a> </div>
      <div class="center_menu"> <a href="#" class="event">&nbsp;</a> </div>
      <div class="center_menu"> <a href="#" class="message">&nbsp;</a> </div>
      <div class="center_menu"> <a href="#" class="news">&nbsp;</a> </div>
      <div class="bottom_menu"> <a href="#" class="logs">&nbsp;</a> </div>
    </div>
    <div id="right_content">
      <table cellpadding="0" cellspacing="0" border="0" width="100%" class="margin_table">
        <tr>
          <td valign="top" align="left" width="2%" class="hdr_tl">&nbsp;</td>
          <td valign="top" align="left" width="50%" class="hdr_tc">Trading Figures</td>
          <td valign="top" align="right" width="46%" class="hdr_tc"></td>
          <td valign="top" align="left" width="2%" class="hdr_tr">&nbsp;</td>
        </tr>
        <tr>
          <td valign="top" align="left" colspan="4" class="hdr_center">
                <form action="adminindex.php?do=getreport" method="post" id="report_form">
                    <input type="hidden" name="report_type" value="31">
                    <div class="form-group col-lg-2">
                        <label class="control-label" for="start_date">Start Date</label>
                        <div class="input-group date">
                            <input type="text" class="form-control" name="start_date" value="<?php if ($_GET['start_date']): ?><?php echo $_GET['start_date']; ?>
<?php else: ?><?php echo $this->_tpl_vars['month_start']; ?>
<?php endif; ?>">
                                <span class="input-group-addon"><i class="glyphicon glyphicon-th"></i></span>
                        </div>
                    </div>
                    <div class="form-group col-lg-2">
                        <label class="control-label" for="end_date">End Date</label>
                        <div class="input-group date">
                            <input type="text" class="form-control" name="end_date" value="<?php if ($_GET['end_date']): ?><?php echo $_GET['end_date']; ?>
<?php else: ?><?php echo $this->_tpl_vars['max_date']; ?>
<?php endif; ?>" id="end_date">
                                <span class="input-group-addon"><i class="glyphicon glyphicon-th"></i></span>
                        </div>
                    </div>
                    <div class="form-group col-lg-3" style="padding-top: 18px;width: 170px;">
                        <button type="button" id="get_report" class="btn btn-primary">Generate Report</button>
                    </div>
                    <div class="form-group col-lg-3" style="padding-top: 18px;">
                        <button type="button" class="download_report btn btn-info">Download Report</button>
                    </div>
                    <div class="clearfix"></div>
                </form>
                <form action="adminindex.php?do=downloadreport" method="post" id="download_report"></form>
                <div id="report_data" class="col-lg-12"></div>
          </td>
        </tr>
        <tr>
          <td valign="top" align="left" width="2%" class="hdr_bl">&nbsp;</td>
          <td valign="top" align="left" width="50%" class="hdr_bc">&nbsp;</td>
          <td valign="top" align="left" width="46%" class="hdr_bc">&nbsp;</td>
          <td valign="top" align="left" width="2%" class="hdr_br">&nbsp;</td>
        </tr>
      </table>
      </div>
    </div>
  <div class="clear"></div>
</div>
<script>
    $('document').ready(function(){
        $('#get_report').click(function(){
            $('#report_data').html('<img  src="../images/ui-anim_basic_16x16.gif" />');
            
            $.ajax({
                type: "POST",
                url: '?do=getreport',
                data: $.param($('#report_form').serializeArray()),
                success: function (data) {
                    $("#report_data").html(data);
                }
            });
        });
        
        $('body').on('click', '.download_report', function(){
            var formData = $('#report_form').serializeArray();
            formData.push({name: 'download_report', value:'yes'});
            
            formData.forEach(function(element){
                $('#download_report').append('<input type="hidden" name="'+element.name+'" value="'+element.value+'" />');
            });
            
            $('#download_report').submit();
        })
    })
</script>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "footer.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>