

<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;">Create Group Type </h3>  
                    <hr>
                </div>
                <div class="col-sm-12"><br></div>
                <div class="col-sm-12">

                  <?php
                 $url = 'add-backend-group-type';
                 echo form_open_multipart($url, 'class="cmxform" id="formID3" name="add_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 value="<?php echo set_value('group_type_name'); ?>" name="group_type_name" type="text" class="form-control validate[required]" placeholder="Please Type Group Type Name.." oninput="clear_error_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="group_type_name_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 echo set_value('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 echo set_value('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 echo set_value('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 echo set_value('group_type_description'); ?></textarea>
                                </div>
                            </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  class="validate[required]"  type="radio" name="group_type_status" id="published" value="1" onclick="clear_erorr();">
                                    <label for="Published">Published</label>

                                    <span style="margin-right: 30px"></span>
                                    <input  class="validate[required]"  type="radio" name="group_type_status" id="unpublished" value="0"onclick="clear_erorr();">
                                    <label for="Unpublishded">Unpublishded</label>
                                    
                                     <span style="margin-right: 30px"></span>
                                    <input  class="validate[required]"  type="radio" name="group_type_status" id="archived" value="3"onclick="clear_erorr();">
                                    <label for="archived">Pending</label>
                                     <span style="margin-right: 30px"></span>
                                    <input  class="validate[required]"  type="radio" name="group_type_status" id="archived" value="4"onclick="clear_erorr();">
                                    <label for="archived">Approved</label>

                                </div>
                                 <div class="col-sm-12" id="group_type_status_error" style="color: red"><?php echo form_error('group_type_status'); ?></div>

                            </div>






                            <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="Add 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>->>Create Group Type</label>
            </div>    
        </div>
    </div>

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

   
</div>
<script>
     document.forms['add_group_type'].elements['group_type_status'].value = '<?php echo set_value('group_type_status'); ?>';

  function clear_erorr(){
      document.getElementById('group_type_status_error').innerHTML="";
  }
   function clear_error_name(){
            document.getElementById('group_type_name_error').innerHTML="";
   }
</script>
