<div class="col-sm-10">
 <div class="row ">
        <div class="col-sm-12 ">
            <div class="col-sm-12 gray ">
                <div class="col-sm-12">
                    <h3 class="text-left" style="margin: 0px;">Update Group Type </h3>  
                    <hr>
                </div>
                <div class="col-sm-12"><br></div>
                <div class="col-sm-12">

                <?php
                 $url = 'edit-backend-group-type';
                 echo form_open_multipart($url, 'class="cmxform" id="formID3" name="edit_group_type" onsubmit="return submitGrouptype()"');
                  ?>

                    <div class="col-sm-10 ">
                        <!--<form action="#"  method="post"  enctype="multipart/form-data">-->
                            <div class="form-group col-sm-12">
                             
                                <div class="input-group">
                                    <input type="hidden" name="group_type_id" value="<?php echo $group_type_info->group_type_id;?>">
                                    <input name="group_type_name" 
                                           type="text" 
                                           class="form-control validate[required]" 
                                           id="group_name"  
                                           value="<?php 
                                           if(set_value('group_type_name')){
                                              echo set_value('group_type_name');
                                           }else{
                                               echo $group_type_info->group_type_name;
                                           }
                                           
                                           ?>" 
                                           placeholder="Please Type Group Type Name.."   >
                                    <span class="input-group-addon"  title="Please Type Group Type Name"><i class="fa fa-group"></i></span>
                                </div>
                                <div class="col-sm-12" id="video_course_title_error" style="color: red"><?php echo form_error('group_type_name'); ?></div>
                                <div class="col-sm-12" id="video_course_title_error" style="color: red">
                                                 <span style="color: green;">
                    <?php
                    
                    $exc=$this->session->userdata('save_group');
                    
                 if ($exc) {
                             echo $exc;
                            $this->session->unset_userdata('save_group');
                               
                           }
                          ?>
                </span>
                                </div>
                            </div>   

                            <div class="form-group col-sm-12"></div>

                            <div class="form-group col-sm-12" >
                                <div class="input-group text-left" id="screen1280" >
                                    <label>Group Type Description</label>
                                    <textarea name="group_type_description[]"  class="form-control  resoulation1280 " rows="4"  placeholder="Video Training Objective"  >
                                        <?php if(set_value('group_type_description'))
                                        {
                                            echo set_value('group_type_description'); } 
                                       else {
                                          echo $group_type_info->group_type_description;
                                            
                                        } 
                                        ?></textarea>
                                </div>

                                <div class="input-group" id="screen1024" >
                                    <label>Group Type Description</label>
                                    <textarea name="group_type_description[]"  class="form-control  resoulation1024 " rows="4"   placeholder="Video Training Objective" ><?php 
                                  if(set_value('group_type_description'))
                                       {
                                            echo set_value('group_type_description'); 
                                            
                                       } 
                                        else {
                                        echo $group_type_info->group_type_description;
                                            
                                       } 
                                        ?></textarea>
                                </div>
                                <div class="input-group" id="screenMobile" >
                                    <label>Group Type Description</label>
                                    <textarea name="group_type_description[]"    class="form-control  resoulationMobile " rows="4"   placeholder="Video Training Objective"   >
                                        <?php if(set_value('group_type_description'))
                                       {
                                            echo set_value('group_type_description');
                                        } 
                                       else {
                                       echo $group_type_info->group_type_description;
                                            
                                        } 
                                        ?></textarea>
                                </div>

                                <div class="input-group " id="screenMobile_max499" >
                                    <label>Group Type Description</label>
                                    <textarea name="group_type_description[]"   class="form-control  resoulationMobile_max499 " rows="4"   placeholder="Video Training Objective"  >
                                        <?php if(set_value('group_type_description'))
                                        {
                                            echo set_value('group_type_description'); 
                                            
                                        } 
                                       else {
                                           echo $group_type_info->group_type_description;
                                            
                                       } 
                                        ?></textarea>
                                </div>
                            </div>
                            <div class="col-sm-12" id="video_course_title_error" style="color: red"><?php echo form_error('group_type_description'); ?></div>
                            <div class="form-group col-sm-12"></div>
                            
                            <!--<div class="form-group col-sm-12"></div>-->
                            <div class="form-group col-sm-12" style="margin-top: 4px;">

                                <label class="col-sm-2 text-left padding-zero" for="person_status"> Status : &nbsp;</label>
                                <div class="radio radio-success col-sm-10 margin-zero" >
                                
                                    
                                    <input type="radio" name="group_type_status" class="validate[required]" id="unpublished" value="0">
                                    <label for="Unpublishded">Unpublishded</label>
                                    <span style="margin-right: 30px"></span>
                                    <input type="radio" class="validate[required]" name="group_type_status" id="published"  value="1" onclick="">
                                    <label for="Published">Published</label>
                                    <span style="margin-right: 30px"></span>
                                    <input type="radio" name="group_type_status" class="validate[required]"id="pending" value="3">
                                    <label for="Unpublishded">Pending</label>
                                    <span style="margin-right: 30px"></span>
                                    <input type="radio" name="group_type_status" class="validate[required]" id="approved" value="4">
                                    <label for="Unpublishded">Approved</label>

                                </div>

                            </div>
                             <div class="col-sm-12" id="video_course_title_error" style="color: red"><?php echo form_error('group_type_status'); ?></div>
                            <input type="hidden" id="group_type_status1" name="group_type_status1" value=" <?php echo $group_type_info->group_type_status;?>">
                            <div class="col-sm-12"><br><br></div>

                            <div class="form-group col-sm-4 col-sm-offset-4">

                                <input type="submit" class="green-btn btn btn-default" value="Update Group Type !"><br/><br/>
                            </div>
                            <div class="col-sm-4"></div>

                   <?php echo form_close(); ?>     <!--</form>-->


                    </div>

                </div>

            </div>
        </div>

    </div>
    <br>
    <div class="row gray">

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

            <div class="col-sm-12 text-left">
                <label><a href="<?php echo base_url() ?>super_admin()">Dashboard </a>->><a href="<?php echo base_url() ?>super_admin()"> Manage Group </a>->>Update Group Type</label>
            </div>    
        </div>
    </div>

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


</div>
 
<script>
    var group_type_info= document.getElementById("group_type_status1").value;
    //alert(group_type_info);
    if(group_type_info==0){
    document.getElementById("unpublished").checked=true;
    }
   else if(group_type_info==1){
    document.getElementById("published").checked=true;
    }
    else if(group_type_info==2){
    document.getElementById("archived").checked=true;
    }
   else if(group_type_info==3){
   document.getElementById("pending").checked=true;  
    }
     else if(group_type_info==4){
    document.getElementById("approved").checked=true;
    }
</script>
<script>
     document.forms['edit_group_type'].elements['group_type_status'].value = '<?php echo set_value('group_type_status'); ?>';
</script>















