<!-- Main Content -->

<div class="page-wrapper">

<div class="container-fluid pt-25">

   <div class="row">

      <div class="alert alert-success alert-dismissible" role="alert" <?php if($this->session->flashdata('message')==''){ ?> style="display:none" <?php } ?> >

         <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>

         <?php echo $this->session->flashdata('message'); ?>

      </div>

      <div class="alert alert-warning alert-dismissible" role="alert" <?php if($this->session->flashdata('emessage')==''){ ?> style="display:none" <?php } ?> >

         <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>

         <?php echo $this->session->flashdata('emessage'); ?>

      </div>

   </div>

   <!-- Row -->

   <div class="row">

      <div class="col-sm-12">

         <div class="panel panel-default card-view">

            <div class="panel-heading">

               <div class="pull-left">

                  <h6 class="panel-title txt-dark">Edit Team</h6>

               </div>

               <div class="clearfix"></div>

            </div>

            <div class="panel-wrapper collapse in">

               <div class="panel-body">

                  <div class="form-wrap">

                     <form id="addTestimonialFrom" class="form-horizontal" action="<?php echo base_url(A."/editTeam"); ?>" enctype="multipart/form-data" method='post'>

                        <input type="hidden" name="id" value="<?php echo $post['id']; ?>" />

                        <div class="row">

                           <div class="col-md-6">
                              <div class="form-group">
                                 <label class="col-sm-12">Name:</label>
                                 <div class="col-sm-12">
                                    <input type="text" name="name" class="form-control" value="<?php echo $post['name']; ?>" required>
                                 </div>
                              </div>
                           </div>
                           <div class="col-md-6">
                              <div class="form-group">
                                 <label class="col-sm-12">Designation:</label>
                                 <div class="col-sm-12">
                                    <input type="text" name="position" class="form-control" value="<?php echo $post['position']; ?>" required>
                                 </div>
                              </div>
                           </div>
                           <div class="col-md-6">
                              <div class="form-group">
                                 <label class="col-sm-12">Image (Size : 435x453 px)</label>
                                 <div class="col-sm-12">
                                    <input type="file" name="image" class="form-control">
                                 </div>
                              </div>
                           </div>
                           <div class="col-md-6">
                              <?php if($post['image']!=''){ ?>
                              <div class="form-group">
                                 <div class="col-sm-12">
                                    <img src="<?php echo base_url($post['image']); ?>" alt="image" style="width:100px;">
                                 </div>
                              </div>
                              <?php } ?>
                           </div>
                           <div class="col-md-6">
                              <div class="form-group">
                                 <label class="col-sm-12">Achievements:</label>
                                 <div class="col-sm-12">
                                    <textarea name="achievements" class="form-control tinymce" placeholder="Enter Achievements"><?php echo $post['achievements']; ?></textarea>
                                 </div>
                              </div>
                           </div>
                           <div class="col-md-6">
                              <div class="form-group">
                                 <label class="col-sm-12">Description:</label>
                                 <div class="col-sm-12">
                                    <textarea name="description" class="form-control tinymce" placeholder="Enter Description"><?php echo $post['description']; ?></textarea>
                                 </div>
                              </div>
                           </div>
                           <div class="col-md-12">
                              <div class="form-group mb-0">
                                 <div class="col-sm-12">
                                    <button type="submit" class="btn btn-success btn-anim pull-right"><i class="icon-rocket"></i><span class="btn-text">Update</span></button>
                                 </div>
                              </div>
                           </div>
                        </div>

                     </form>

                  </div>

               </div>

            </div>

         </div>

      </div>

   </div>

   <!-- /Row -->

</div>

<script src="<?php echo base_url("assets/admin/vendors/ckeditor/ckeditor.js"); ?>"></script>

<script src="<?php echo base_url("assets/admin/vendors/ckeditor/adapters/jquery.js"); ?>"></script>

<style type="text/css">

   #cke_1_contents{height:300px !important;}

   label{color:#000;}

   .fileUpload {

   position: relative;

   overflow: hidden;

   margin: 10px;

   }

   .fileUpload input.upload {

   position: absolute;

   top: 0;

   right: 0;

   margin: 0;

   padding: 0;

   font-size: 20px;

   cursor: pointer;

   opacity: 0;

   filter: alpha(opacity=0);

   }

</style>

<script type="text/javascript">

   $(function() {

        $('textarea.ckeditor_full' ).ckeditor({

            toolbarGroups: [

              /*{ name: "document",    groups: [ "mode", "document" ] },            // Displays document group with its two subgroups.

              { name: "basicstyles", groups: [ "basicstyles", "cleanup" ] },

              { name: 'insert', groups: [ 'insert' ] },

              { name: "links" },*/



               { name: 'clipboard',   groups: [ 'clipboard', 'undo' ] },



              { name: 'editing',     groups: [ 'find', 'selection', 'spellchecker' ] },



              { name: 'links' },



              { name: 'insert' },



              { name: 'forms' },



              { name: 'tools' },



              { name: 'document',       groups: [ 'mode', 'document', 'doctools' ] },



              { name: 'others' },



              '/',



              { name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] },



              { name: 'paragraph',   groups: [ 'list', 'indent', 'blocks', 'align', 'bidi' ] },



              { name: 'styles' },



              { name: 'colors' },



              { name: 'about' }

            ]

        });

    });

</script>