<script>
    $(document).ready(function() {
        $('.summernote').summernote({
            height: 350,                 // set editor height
            minHeight: 350,             // set minimum height of editor
            maxHeight: 350,             // set maximum height of editor

            focus: true                 // set focus to editable area after initializing summernote
        });
    });
</script>
<div class="container">
    <div class="row">
        <div class="form-group col-md-12" style="margin-top:20px;">
            <ol class="breadcrumb">
                <li><a href="<?php echo base_url()?>administrator/home"><i class="glyphicon glyphicon-home"></i> Home</a></li>
                <li class="active">About Us</li>
            </ol>
        </div>
        <div class="form-group col-md-12">
            <h3>About Us</h3>
        </div>
        <div class="col-md-12 form-group">
            <?php
            if(!empty($error)){
                 echo "<div class='alert alert-danger'><i class='glyphicon glyphicon-exclamation-sign'></i> ".$error."</div>"; 
            }
            elseif(!empty($success)){
                 echo "<div class='alert alert-success'><i class='glyphicon glyphicon-ok-circle'></i> ".$success."</div>"; 
            }
            ?>
        </div>
        <form name="uploadform" enctype="multipart/form-data" method="POST">
            <div class="form-group col-md-12">
                <div class="col-md-3 control-label">Current</div>
                <div class="col-md-9">
                    <textarea id="current" name="current" class="summernote"><?php echo $result->current;?></textarea>
                </div>
            </div>
            <div class="form-group col-md-12">
                <div class="col-md-3 control-label">Aim</div>
                <div class="col-md-9">
                    <textarea id="aim" name="aim" class="summernote"><?php echo $result->aim;?></textarea>
                </div>
            </div>
            <div class="form-group col-md-12">
                <div class="col-md-3 control-label">Continuous Satisfaction</div>
                <div class="col-md-9">
                    <textarea id="continuous_satisfaction" name="continuous_satisfaction" class="summernote"><?php echo $result->continuous_satisfaction;?></textarea>
                </div>
            </div>
            <div class="form-group col-md-12">
                <div class="col-md-3 control-label">History</div>
                <div class="col-md-9">
                    <textarea id="history" name="history" class="summernote"><?php echo $result->history;?></textarea>
                </div>
            </div>
            <div class="form-group col-md-12">
                <div class="col-md-3 control-label">Vision</div>
                <div class="col-md-9">
                    <textarea id="vision" name="vision" class="summernote"><?php echo $result->vision;?></textarea>
                </div>
            </div>
            <div class="form-group col-md-12">
                <div class="col-md-3 control-label">Mission</div>
                <div class="col-md-9">
                    <textarea id="mission" name="mission" class="summernote"><?php echo $result->mission;?></textarea>
                </div>
            </div>
            <div class="form-group col-md-12">
                <div class="col-md-12" align="center">
                    <input type="submit" id="submit" name="submit" class="btn btn-success" value="Submit">
                    &nbsp;
                    <input type="reset" id="reset" name="reset" class="btn btn-warning" value="Reset">
                    &nbsp;
                    <a href="<?php echo base_url().'administrator/home'?>" class="btn btn-default">Cancel</a>
                </div>
            </div>
        </form>
    </div>
</div>