PHP Classes

File: application/views/importing.php

Recommend this page to a friend!
  Classes of Kishor Mali   PHP User Feedback System   application/views/importing.php   Download  
File: application/views/importing.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP User Feedback System
Application to record feedback from customers
Author: By
Last change:
Date: 4 years ago
Size: 3,627 bytes
 

Contents

Class file image Download
<div class="content-wrapper">
    <section class="content-header">
      <h1>
        Import Raw Data
        <small>Upload excel and import data</small>
      </h1>
    </section>
    <section class="content">
        <div class="row">
            <div class="col-md-8">
                <div class="box box-primary">
                    <div class="box-header">
                        <h3 class="box-title">Select Excel File
                            <small class="help-block">Allowed extensions (xls, xlxs)</small>
                        </h3>
                    </div>

                     <form role="form" id="importExcel" name="importExcel" enctype="multipart/form-data" action="<?php echo base_url();?>uploadRawData" method="post" role="form">
                        <div class="box-body">
                            <div class="row">
                                <div class="col-md-6">
                                    <div class="form-group">
                                        <!-- <label for="impfile">Select File</label> -->
                                        <input type="file" class="required" id="impfile" name="impfile">
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="box-footer">
                            <input type="submit" class="btn btn-primary" value="Submit" />
                            <input type="reset" class="btn btn-default" value="Reset" />
                        </div>
                    </form>
                </div>
            </div>
            <div class="col-md-4">
                <?php
                    $this
->load->helper('form');
                   
$error = $this->session->flashdata('error');
                    if(
$error)
                    {
               
?>
<div class="alert alert-danger alert-dismissable">
                    <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
                    <?php echo $this->session->flashdata('error'); ?>
                </div>
                <?php } ?>
<?php
                    $success
= $this->session->flashdata('success');
                    if(
$success)
                    {
               
?>
<div class="alert alert-success alert-dismissable">
                    <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
                    <?php echo $this->session->flashdata('success'); ?>
</div>
                <?php } ?>

                <?php
                    $success
= $this->session->flashdata('file_path');
                    if(
$success)
                    {
               
?>
<div class="alert alert-warning alert-dismissable">
                    <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
                    <a href="<?php echo $this->session->flashdata('file_path'); ?>">Failed Records Here</a>
                </div>
                <?php } ?>

                <div class="row">
                    <div class="col-md-12">
                        <?php echo validation_errors('<div class="alert alert-danger alert-dismissable">', ' <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button></div>'); ?>
</div>
                </div>
            </div>
        </div>
    </section>
</div>