KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.4.41 (Ubuntu)
System : Linux vmi1525618.contaboserver.net 5.4.0-105-generic #119-Ubuntu SMP Mon Mar 7 18:49:24 UTC 2022 x86_64
User : www-data ( 33)
PHP Version : 8.2.12
Disable Function : NONE
Directory :  /var/www/parasoffline.edukrypt.in/application/modules/admin/views/user/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //var/www/parasoffline.edukrypt.in/application/modules/admin/views/user/csv_update_view.php
<?php
if (isset($message)) {
    echo '<div class="alert alert-success" role="alert">' . $message . '</div>';
}
?>
<div class="row">
    <div class="col-md-12">
        <?php
        if ($this->session->flashdata('e_message')) {
            echo '<br />';
            echo $this->session->flashdata('e_message');
        }
        ?>
        <div class="box box-primary">
            <div class="box-header">
                <a href="<?php echo base_url(); ?>assets/users_csv.csv">Download Sample CSV</a>
            </div>
            <div class="box-body">
                <form id="upload_form" action="<?php echo base_url('admin/user/csvupdate'); ?>" method="post" enctype="multipart/form-data">

                    <div class="form-group">
                        <label for="chapter">Upload CSV file</label>
                        <input class="form-control" type="file" name="csv" accept=".csv" required />
                    </div>

                    <button type="submit" class="btn btn-primary">Submit</button>
                    <button type="reset" class="btn btn-danger">Reset</button>
                </form>
            </div>




        </div>
    </div>

</div>

<?php
if ($this->session->flashdata('err_csv')) { ?>
    <div class="row">
        <div class="col-md-12">
            <?php
            if ($this->session->flashdata('e_message1')) {
                echo '<br />';
                echo $this->session->flashdata('e_message1');
            }
            ?>
            <div class="box box-primary">
                <div class="box-header">
                    <h4>Blank value found in list</h4>
                </div>
                <div class="box-body">
                    <table class="table table-bordered table-responsive">
                        <tr>
                            <td>USER ID</td>
                            <td>USERNAME</td>
                            <td>EMAIL</td>
                            <td>PHONE</td>
                        </tr>
                        <?php
                        $err_csv = $this->session->flashdata('err_csv');
                        foreach ($err_csv as $arrerr) {
                        ?>
                            <tr>
                                <td><?php echo $arrerr['col1']; ?></td>
                                <td><?php echo $arrerr['col2']; ?></td>
                                <td><?php echo $arrerr['col3']; ?></td>
                                <td><?php echo $arrerr['col4']; ?></td>
                            </tr>
                        <?php
                        }
                        ?>
                    </table>
                </div>
            </div>
        </div>
    </div>
<?php }
?>
<!-- <script type="text/javascript">
    $(document).ready(function() {

        $('#upload_form').submit(function(e) {
            e.preventDefault();
            var myData = $('#upload_form').serialize();
            $.ajax({
                type: 'POST',
                url: '',
                data: myData,
                beforeSend: function() {
                    $('#response').fadeIn(100);
                },
                complete: function() {
                    $('#response').fadeOut(1000);
                },
                success: function(data) {
                    if (data) {
                        alert('Well done! You successfully Uploaded Files.');
                    } else {
                        alert('Try Again Plz!!!');
                    }
                },
                error: function(XHR, exception) {
                    console.log(XHR.responseText);
                }
            });

        });

    });
</script> -->

Anon7 - 2021