<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>
<div class="modal-dialog">
    <div class="modal-content">
        <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-hidden="true"><i class="fa fa-2x">&times;</i>
            </button>
            <h4 class="modal-title" id="myModalLabel"><?php echo lang('import_categories'); ?></h4>
        </div>
        <?php
        $attrib = array('class' => 'form-horizontal', 'data-toggle' => 'validator', 'role' => 'form');
        echo form_open_multipart("panel/settings/import_categories", $attrib)
        ?>
        <div class="modal-body">
            <a href="<?php echo base_url(); ?>assets/csv/sample_categories.csv" class="btn btn-primary pull-right">
                <i class="fa fa-download"></i> <?= lang("download_sample_file") ?>
            </a>
            <p><?= lang('enter_info'); ?></p>
        <div class="clearfix"></div>

            <div class="well well-small">
                <span class="text-warning"><?= lang("csv1"); ?></span><br/>
                <?= lang("csv2"); ?> 
                <span class="text-info">
                    (<?= lang("code") . ', ' . lang("name") . ', ' . lang("image"). ', ' . lang("parent_category_code"); ?>)
                </span> <?= lang("csv3"); ?><br>
                <strong><?= lang("categories_import_tip"); ?></strong>
        <div class="clearfix"></div>
                
            </div>
            <p><?= lang('images_location_tip'); ?></p>

             <div class="col-md-12">
                <div class="form-group">
                    <label for="csv_file"><?= lang("upload_file"); ?></label>
                    <input type="file" data-browse-label="<?= lang('browse'); ?>" name="userfile" class="form-control file" data-show-upload="false"
                    data-show-preview="false" id="csv_file" required="required"/>
                </div>
            </div>
    
            <div class="clearfix"></div>
        </div>
        <div class="modal-footer">
            <?php echo form_submit('import', lang('import'), 'class="btn btn-primary"'); ?>
        </div>
    </div>
    <?php echo form_close(); ?>
</div>