<div class="col-sm-8 ">
    <div class="row gray_ttc">
        <div class="col-sm-12 row"><br>
            <nav class="text-justify">
                <center>
                    <div class="col-sm-12 add_admin_video_course_div_padding">
                        <span class="clo-sm-4 add_admin_video_course_div_padding" title="Video Course Information">
                            <span class="text-left label add_video_course_information_title">Add Video Course Information</span>
                        </span>
                    </div>
                </center>
            </nav>
        </div>
        <div class="col-sm-12"><hr></div>
        <input type="hidden" id="baseUrl" value="<?php echo base_url();?>">
        <div class="col-sm-12"><br><br></div>
        <div class="col-sm-12">
            <div class="col-sm-12">
                <?php
                $url = 'save-admin-video-course';
                echo form_open_multipart($url, 'class="" id="addVideoCourseForm" name="addVideoCourseForm"');
                ?>
                
        <!-- ----------------Video Title Start---------------- -->
                <div class="form-group col-sm-12">
                    <div class="input-group">
                        <input type="text" 
                               class="form-control" 
                               name="video_course_title" 
                               id="video_course_title"
                               oninput="add_edit_admin_video_course_validation(this.value, 'video_course_title')"
                               value="<?php echo set_value('video_course_title');?>"
                               placeholder="Please Type Video Course Title..">
                        <span class="input-group-addon"  title="Please Type Video Title"><i class="fa fa-video-camera"></i></span>
                    </div>
                    <span class="add_admin_video_course_error_display" id="video_course_title_error"><?php echo form_error('video_course_title');?></span>
                </div>
                <div class="col-sm-12"><br></div>
        <!-- ------------------------Video Title End---------------------- -->

        <!-- ------------------------Video Course Url Start---------------- -->
                <div class="form-group col-sm-6">
                    <div class="input-group">
                        <input type="text" 
                               class="form-control"
                               id="video_course_url" 
                               name="video_course_url"
                               value="<?php echo set_value('video_course_url');?>"
                               placeholder="Please Type Video Course URL..">
                         <span class="input-group-addon" title="Please Type Video Course URL"><i class="fa fa-link"></i></span>
                    </div>
                    
                    <span class="add_admin_video_course_error_display" id="url_error"><?php echo form_error('video_course_url');?></span>
                </div>
        <!-- --------------------Video Course Url End-------------------- -->
        
        
        <!-- --------------------Video Course Upload Video Type Start-------------------- -->
                <div class="form-group col-sm-6">
                    <select class="form-control" 
                            name="video_course_upload_video_type"
                            id="video_course_upload_video_type"
                            onchange="add_edit_admin_video_course_validation(this.value, 'video_course_upload_video_type')"
                            value="<?php echo set_value('video_course_upload_video_type');?>">
                        <option value="">Select Video Course Upload Video Type</option>
                        <option value="1"<?php echo (set_value('video_course_upload_video_type')== 1)?" selected=' selected'":""?>>TT</option>
                        <option value="2"<?php echo (set_value('video_course_upload_video_type')== 2)?" selected=' selected'":""?>>Youtube</option>                        
                        <option value="3"<?php echo (set_value('video_course_upload_video_type')== 3)?" selected=' selected'":""?>>Vimeo</option> 
                    </select>
                    <span class="add_admin_video_course_error_display" id="video_course_upload_video_type_error"><?php echo form_error('video_course_upload_video_type');?></span>
                </div>
                <div class="col-sm-12"><br></div>
        <!-- --------------------Video Course Upload Video Type End-------------------- -->
                
        
        <!-- --------------------Video Course Parent Topic Start-------------------- -->
                <div class="form-group col-sm-6">
                    <select class="form-control" 
                            name="parent_topic_id"
                            id="parent_topic_id"
                            onchange="getChildTopic(this.value, '<?php echo base_url().'view-child-topic'?>','parent_topic_id')">
                        <option value="">Select Parent Topic</option>
                        <?php
                            foreach($parent_topic as $topic_value){
                        ?>
                            <option value="<?php echo $topic_value->topic_id;?>"<?php echo (set_value('parent_topic_id')!= '')?" selected=' selected'":""?>><?php echo $topic_value->topic_name;?></option>
                        <?php
                            }
                        ?>
                    </select>
                    <span class="add_admin_video_course_error_display" id="parent_topic_id_error"><?php echo form_error('parent_topic_id');?></span>
                </div>
        <!-- --------------------Video Course Parent Topic End-------------------- -->
                
        
        <!-- --------------------Video Course Topic Start-------------------- -->
                <div class="form-group col-sm-6 select_topic add_admin_video_course_div_display" id="video_course_child_topic">
                    
                </div>
                <div class="col-sm-12"><br></div>
        <!-- --------------------Video Course Topic End-------------------- -->
                
        
        <!-- --------------------Video Course Other Topic Start-------------------- -->
                <div class="form-group col-sm-12 other_topic add_admin_video_course_div_display">
                    <input type="text" 
                           class="form-control" 
                           id="other_topic_id" 
                           name="other_topic_id"
                           oninput="add_edit_admin_video_course_validation(this.value, 'other_topic_id')"
                           placeholder="Please Enter Topic Name"  
                           value="<?php echo set_value('other_topic_id');?>">
                </div>
                
        <span class="add_admin_video_course_error_display" id="other_topic_id_error"><?php echo form_error('other_topic_id');?></span>
                <div class="col-sm-12"><br></div>
        <!-- --------------------Video Course Other Topic End-------------------- -->  



        <!-- --------------------Video Course Resource person Start-------------------- -->
                    <div class="form-group col-sm-6">
                        <select class="form-control" 
                                name="resource_person_id" 
                                id="resource_person_id"
                                onchange="add_edit_admin_video_course_validation(this.value, 'resource_person_id')">
                            <option value="">Select Resource Person</option>
                            <?php 
                                foreach($resource_person as $v_resource_person){
                             ?>
                            <option value="<?php echo $v_resource_person->resource_person_id;?>" <?php echo (set_value('resource_person_id')!= '')?" selected=' selected'":""?>><?php echo $v_resource_person->person_first_name;?></option>
                            <?php
                                }
                            ?>
                        </select>
                        <span class="add_admin_video_course_error_display" id="resource_person_id_error"><?php echo form_error('resource_person_id');?></span>
                    </div>
        <!-- --------------------Video Course Resource person End-------------------- -->       


        <!-- --------------------Video Course Level Start-------------------- -->
                <div class="form-group col-sm-6">
                    <select class="form-control" 
                            name="video_course_skill_level" 
                            id="video_course_skill_level"
                            onchange="add_edit_admin_video_course_validation(this.value, 'video_course_skill_level')">
                        <option value="">Select Video Course Skill Level</option>
                        <option value="1" <?php echo (set_value('video_course_skill_level')== 1)?" selected=' selected'":""?>>Any</option>
                        <option value="2" <?php echo (set_value('video_course_skill_level')== 2)?" selected=' selected'":""?>>Basic</option>
                        <option value="3" <?php echo (set_value('video_course_skill_level')== 3)?" selected=' selected'":""?>>Intermediate</option>
                        <option value="4" <?php echo (set_value('video_course_skill_level')== 4)?" selected=' selected'":""?>>Advance</option>
                    </select>
                        
                    <span class="add_admin_video_course_error_display" id="video_course_skill_level_error"><?php echo form_error('video_course_skill_level');?></span>
                </div>
                <div class="col-sm-12"><br></div>
        <!-- --------------------Video Course Level End-------------------- -->           

        
        <!-- --------------------Video Course Payment Type Start-------------------- -->
                <div class="form-group col-sm-6">
                    <label class="col-xs-4 col-sm-5  text-left label_black add_admin_video_course_div_padding">Video Course type: </label>
                    <div  class="col-xs-8 col-sm-7 radio radio-success add_admin_video_course_div_margin" id="radio_success">
                        
                        <input class="" 
                               type="radio" 
                               name="video_course_payment_type" 
                               id="paid" 
                               value="2" 
                               onclick="getVideoCoursePaymentType(this.value,'video_course_payment_type')"
                               <?php 
                                    echo set_value('video_course_payment_type') == 2 ? "checked" : ""; 
                                   ?>>
                        <label for="paid" class="label_black">Paid</label>
                        <span class="add_admin_video_course_span_margin"></span>
                        <input class=""  
                                type="radio" 
                                name="video_course_payment_type" 
                                id="free" 
                                value="1"
                                onclick="getVideoCoursePaymentType(this.value,'video_course_payment_type')"
                                <?php 
                                    echo set_value('video_course_payment_type') == 1 ? "checked" : ""; 
                                   ?>>
                        <label for="free" class="label_black">Free</label>
                    </div>
                        
                    <div class="col-sm-12 add_admin_video_course_error_display" id="video_course_payment_validation"><?php echo form_error('video_course_payment_type');?></div>
                </div>
                <div class="form-group col-sm-6 add_admin_video_course_div_display" id="video_course_price_view">
                        <div class="input-group">
                            <input type="text" 
                                   class="form-control" 
                                   id="video_course_price" 
                                   name="video_course_price"  
                                   value="<?php echo set_value('video_course_price'); ?>"
                                   oninput="check_price_validation(this.value,'video_course_price')"
                                   placeholder="Set Video Course Price">
                            <span class="input-group-addon" title="Video Course Price">
                                <i id="bdt">&#x9f3;</i>
                            </span>
                        </div>
                        
                        <span class="add_admin_video_course_error_display" id="video_course_price_error"><?php echo form_error('video_course_price');?></span>
                    </div>
                <div class="col-sm-12"><br></div>
        <!-- --------------------Video Course Payment Type End-------------------- -->       
        
                        
        <!-- --------------------Video Course Description Start-------------------- -->            
                <div class="form-group col-sm-12" >
                    <div class="input-group text-left">
                        <label class="label_black">Video Course Description:</label>
                        <textarea class="form-control  resoulation1280" 
                                  name="video_course_description"
                                  id="video_course_description"
                                  value=""><?php echo set_value('video_course_description');?></textarea>
                                  
                    </div>
                    
                    <span class="add_admin_video_course_error_display" id="video_course_description_validation"><?php echo form_error('video_course_description');?></span>
                </div>
                <div class="col-sm-12"><br></div>
        <!-- --------------------Video Course Description End-------------------- -->    
        

        <!-- --------------------Video Course Language Start-------------------- -->            
                <div class="form-group col-sm-6" >
                    <select class="form-control selectpicker"   
                            name="search_language_id" 
                            id="search_language_id"
                            data-live-search="true"
                            onchange="language_validation(this.value,'search_language_id')">
                        <option value="">Select Language</option>
                        <?php 
                            foreach($all_language_info as $v_langauge){
                        ?>
                        <option value="<?php echo $v_langauge->language_id;?>" <?php echo (set_value('search_language_id')!= '')?" selected=' selected'":""?>><?php echo $v_langauge->language_name;?></option>
                        <?php 
                            }
                        ?>
                     </select>
                        
                    <span class="add_admin_video_course_error_display" id="video_course_language_validation_id"><?php echo form_error('search_language_id');?></span>
                    <!--view search part-->
                </div>
        <!-- --------------------Video Course Language End-------------------- -->            


        <!-- --------------------Video Course Access Level Start-------------------- -->            
                <div class="form-group col-sm-6">
                    <select class="form-control"   
                            name="video_course_access_level" 
                            id="video_course_access_level"
                            onchange="add_edit_admin_video_course_validation(this.value,'video_course_access_level')">
                        <option value="">Select Access Level</option>
                        <option value="1"<?php echo (set_value('video_course_access_level')== 1)?" selected=' selected'":""?>>Public</option>
                        <option value="2" <?php echo (set_value('video_course_access_level')== 2)?" selected=' selected'":""?>>TalhaTraining User</option>
                    </select>
                        
                    <span class="add_admin_video_course_error_display" id="video_course_access_level_error"><?php echo form_error('video_course_access_level');?></span>
                </div>
                <div class="col-sm-12"><br></div>
        <!-- --------------------Video Course Access Level End-------------------- -->   
        
        
        <!-- --------------------Video Course Publication Status Start-------------------- -->            
                <div class="form-group col-sm-12">
                    <label class="col-sm-2 text-left padding-zero label_black" for="video_course_publication_status"> Publication Status : &nbsp;</label>
                    <div class="radio radio-success col-sm-10 margin-zero" id="publication_status_id">
                        
                        <input type="radio"
                               class="" 
                               name="video_course_publication_status" 
                               id="draft"
                               onclick="add_edit_admin_video_course_validation(this.value,'video_course_publication_status')"
                               value="1" <?php 
                                    echo set_value('video_course_publication_status') == 1 ? "checked" : ""; 
                                   ?>>
                        <label for="draft" class="label_black">Draft</label>
                        <span class="add_admin_video_course_span_margin"></span>
                        <input type="radio" 
                               class="" 
                               name="video_course_publication_status"
                               onclick="add_edit_admin_video_course_validation(this.value,'video_course_publication_status')"
                               id="published" 
                               value="2" <?php 
                                    echo set_value('video_course_publication_status') == 6 ? "checked" : ""; 
                                   ?>>
                        <label for="publishded" class="label_black">Publishded</label>
                        <span class="add_admin_video_course_span_margin"></span>
                        <input type="radio" 
                               class="" 
                               name="video_course_publication_status"
                               onclick="add_edit_admin_video_course_validation(this.value,'video_course_publication_status')"
                               id="pending" 
                               value="3" <?php 
                                    echo set_value('video_course_publication_status') == 3 ? "checked" : ""; 
                                   ?>>
                        <label for="pending" class="label_black">Pending</label>
                        <span class="add_admin_video_course_span_margin"></span>
                        <input type="radio"
                               class="" 
                               name="video_course_publication_status"
                               onclick="add_edit_admin_video_course_validation(this.value,'video_course_publication_status')"
                               id="archived" 
                               value="4" <?php 
                                    echo set_value('video_course_publication_status') == 2 ? "checked" : ""; 
                                   ?>>
                        <label for="archived" class="label_black">Archived</label>
                    </div>
                    
                    <span class="add_admin_video_course_error_display" id="video_course_publication_status_validation"><?php echo form_error('video_course_publication_status');?></span>
                </div>
        <!-- --------------------Video Course Publication Status End-------------------- -->            

                <div class="col-sm-12"><br></div>
                <div class="form-group col-sm-4 col-sm-offset-4">
                    <button type="submit" class="btn btn-default"><i class="fa fa-save" title="Add Video Course"></i></button><br/><br/>
                </div>
                <?php echo form_close(); ?>
            </div>
        </div>
    </div>
</div>
<link href="<?php echo base_url();?>back_end_resource/Manage_admin_video_course/add_admin_video_course.css" rel="stylesheet" type="text/css"/>
<script src="<?php echo base_url();?>back_end_resource/Manage_admin_video_course/add_admin_video_course.js" type="text/javascript"></script>

