<script type="text/javascript" src="<?php echo base_url(); ?>back_end_resource/video_course/video_course.js">
</script>
<div class="col-sm-10">
    <div class="row">
        <div class="col-sm-12">
            <div class="col-sm-12 gray_ttc">
                <div class="course-detail-tab margin-zero ">
                    <ul id="tabs" class="nav nav-tabs" data-tabs="tabs">
                        <h4>Update Video Course Work File</h3>
                    </ul>
                    <div id="my-tab-content" class="tab-content">
                        <!-- add_work_file tab -->
                        <div class="tab-pane active" id="add_video_work_file">
                            <div class="tab-content panel-body">
                                <div class="col-sm-10  "><br>
                                </div>
                                <div class="col-sm-10">

                                    <?php
                                    echo validation_errors();
                                    $url1 = 'edit-video-work-file/' . $video_course_info->url;
                                    echo form_open_multipart($url1, 'class="cmxform"  name="edit_video_course_work_form"');
                                    ?>

                                    <div class="col-sm-12 white" id="course_category_view">
                                        <div class="form-group col-sm-10">
                                            <div class="input-group">
                                                <select data-errormessage-value-missing="Category is required!"  
                                                        class="form-control"
                                                        onchange="getCategoryId(this.value, '<?php echo base_url(); ?>get-video-course-value')"
                                                        name="course_category_id" 
                                                        id="course_category_id">
                                                    <option value="<?php echo $video_course_info->course_category_id ?>"><?php echo $video_course_info->course_category_name ?></option>
                                                </select>
                                                <span class="input-group-addon" id="basic-addon1" title="Please Select Course category "><i class="fa fa-book"></i></span>
                                            </div>
                                            <input type="hidden" id="course_category_validate" value="1">
                                            <span style="color: red;" id="category_id_error"><?php echo form_error('course_category_id'); ?></span>
                                        </div>



                                        <div class="col-sm-12 form-group"></div>
                                        <div class="form-group col-sm-10">
                                            <div class="input-group">
                                                <select data-errormessage-value-missing="Category is required!"  
                                                        class="form-control" 
                                                        name="course_id" 
                                                        id="course_id"
                                                        onchange="getCourseId(this.value, '<?php echo base_url() . 'view-video-section'; ?>')" >
                                                    <option value="<?php echo $video_course_info->video_management_id; ?>"><?php echo $video_course_info->video_course_title; ?></option>

                                                </select>
                                                <input type="hidden" id="video_course_validate" value="1">
                                                <span class="input-group-addon" id="basic-addon1" title="Please Select Course category "><i class="fa fa-book"></i></span>
                                            </div>
                                            <span style="color: red;" id="course_id_error"><?php echo form_error('course_id'); ?></span>
                                        </div>
                                    </div>




                                    <div id="video_section_area">
                                        <?php
                                        $section_counter_array = array();
                                        foreach ($all_video_section as $section_value) {
                                            ++$section_counter;
                                            $section_counter_array[] = $section_counter;
                                            ?>
                                            <div id="upload_video_section<?php echo $section_counter; ?>">
                                                <div class="col-sm-12 padding-zero margin-top-20 "  >

                                                    <div class="col-sm-12 padding-zero white" ><br>
                                                        <div class="form-group col-sm-10">
                                                            <div class="input-group">
                                                                <input type="text" 
                                                                       class="form-control"
                                                                       id="video_section_name<?php echo $section_counter; ?>"
                                                                       name="video_section_name[<?php echo $section_counter; ?>]"
                                                                       oninput="getVideoSectionName(this.value,'<?php echo $section_counter; ?>','<?php echo base_url() . 'check-video-section-name' ?>')"
                                                                       value="<?php echo $section_value->upload_video_section_name; ?>"
                                                                       placeholder="Type Video Section Name.." >
                                                                <span class="input-group-addon"  title="Type Video Section Name"><i class="fa fa-folder"></i></span>
                                                            </div>
                                                            <input type="hidden" id="video_section_validate<?php echo $section_counter; ?>" value="1">
                                                            <div class="col-sm-12" id="video_section_name_errror<?php echo $section_counter; ?>" style="color: red"></div>
                                                        </div>

                                                        <div class="form-group col-sm-2" >
                                                            <a href="javascript:void(0)" onclick="removeSingleVideoSection('<?php echo $section_counter ?>', '<?php echo base_url() . 'remove-video-section' ?>')">
                                                                <i class="fa fa-times-circle fa-2x"></i>
                                                            </a>
                                                        </div>




                                                        <div id="upload_video_section<?php echo $section_counter ?>">
                                                            <?php
                                                            $video_counter = 0;
                                                            $all_video_counter = array();
                                                            $all_video_upload_id = array();
                                                            $all_video_work_file_counter = array();
                                                            $all_video_work_file_id = array();
                                                            foreach ($upload_video_info[$section_value->upload_video_section_name] as $upload_video_value) {
                                                                ++$video_counter;
                                                                $all_video_counter[] = $video_counter;
                                                                $all_video_upload_id[] = $upload_video_value->upload_video_id;
                                                                ?>
                                                                <div id="upload_video_area<?php echo $section_counter . '_video' . $video_counter ?>" class="col-sm-12 form-group">
                                                                    <div class="col-sm-10 padding-zero margin-top-20 white" style="margin-left: 10px">
                                                                        <div class="col-sm-12"><br> </div>
                                                                        <div class="form-group col-sm-10">
                                                                            <div class="input-group">
                                                                                <input type="text" 
                                                                                       class="form-control"
                                                                                       id="video_name_sec<?php echo $section_counter . '_video' . $video_counter ?>"
                                                                                       name="upload_video_name[<?php echo $section_counter; ?>][<?php echo $video_counter; ?>]"
                                                                                       oninput="getVideoName('<?php echo $section_counter; ?>','<?php echo $video_counter; ?>','<?php echo base_url() . 'check-video-name' ?>')"
                                                                                       value="<?php echo $upload_video_value->upload_video_name; ?>"
                                                                                       placeholder=" Please Type Video Title Name.." >
                                                                                <span class="input-group-addon"  title="Please Type Video Title Name"><i class="fa fa-file"></i></span>
                                                                            </div>
                                                                            <input type="hidden" id="video_name_validate_sec<?php echo $section_counter . '_video' . $video_counter ?>" value="1">
                                                                            <div class="col-sm-12" id="video_name_error_sec<?php echo $section_counter . '_video' . $video_counter ?>" style="color: red"></div>
                                                                        </div>


                                                                        <div class="form-group col-sm-2" >
                                                                            <a href="javascript:void(0)" onclick="removeSingleVideo('<?php echo $section_counter ?>', '<?php echo $video_counter ?>', '<?php echo base_url() . 'remove-video-course' ?>')">
                                                                                <i class="fa fa-times-circle fa-2x"></i>
                                                                            </a>
                                                                            <input type="hidden" id="upload_video_id_sec<?php echo $section_counter . '_video' . $video_counter ?>" value="<?php echo $upload_video_value->upload_video_id; ?>">
                                                                        </div>
                                                                        <div class="col-sm-12"><br> </div>


                                                                        <div class="form-group col-sm-10">
                                                                            <textarea class="form-control"
                                                                                      id="upload_video_transcript<?php echo $section_counter . '_video' . $video_counter ?>"
                                                                                      name="upload_video_transcript[<?php echo $section_counter; ?>][<?php echo $video_counter; ?>]"
                                                                                      rows="4" placeholder=" Please Type Video transcripts.."><?php echo $upload_video_value->upload_video_transcript; ?></textarea>
                                                                        </div>


                                                                        <div class="form-group col-sm-7">
                                                                            <div class="form-group col-sm-6 text-left" style="margin-top: 10px">  <label >Video Access Level  :  &nbsp;&nbsp;</label></div>
                                                                            <div class="form-group radio radio-success col-sm-6">
                                                                                <?php
                                                                                if ($video_course_info->video_course_type == 1) {
                                                                                    ?>
                                                                                    <input  type="radio" 
                                                                                            name="upload_video_access_level[<?php echo $section_counter; ?>][<?php echo $video_counter; ?>]" 
                                                                                            id="free" value="1" >
                                                                                    <label for="Free">Free</label>
                                                                                    <span style="margin-right: 30px"></span>
                                                                                    <input  type="radio" 
                                                                                            name="upload_video_access_level[<?php echo $section_counter; ?>][<?php echo $video_counter; ?>]" 
                                                                                            id="paid" 
                                                                                            value="2">
                                                                                    <label for="Paid">Paid</label>
                                                                                    <?php
                                                                                } else if ($video_course_info->video_course_type == 2) {
                                                                                    ?>
                                                                                    <input  type="radio" 
                                                                                            name="upload_video_access_level[<?php echo $section_counter; ?>][<?php echo $video_counter; ?>]" 
                                                                                            id="free" value="1" checked>
                                                                                    <label for="Free">Free</label>
                                                                                    <?php
                                                                                }
                                                                                ?>
                                                                            </div>
                                                                            <span class="col-sm-12" id="upload_video_access_level_error_sec<?php echo $section_counter . '_video' . $video_counter; ?>" 
                                                                                  style="color: red; margin-top: -15px;"></span>
                                                                            <script>
                                                                                document.forms['edit_video_course_work_form'].elements['upload_video_access_level[<?php echo $section_counter; ?>][<?php echo $video_counter; ?>]'].value = '<?php echo $upload_video_value->upload_video_access_level; ?>';
                                                                            </script>
                                                                        </div>
                                                                        <div class="col-sm-12"></div>




                                                                        <div class="form-group col-sm-12 padding-zero" >
                                                                            <div class="col-sm-7"> 
                                                                                <input tabindex = "-1"
                                                                                       style = "position: absolute; clip: rect(0px, 0px, 0px, 0px);"
                                                                                       id="videoFile_sec<?php echo $section_counter . '_video' . $video_counter; ?>"
                                                                                       data-icon = "false" type = "file" value = ""
                                                                                       onchange="getVideoFile(this, '<?php echo $section_counter; ?>', '<?php echo $video_counter; ?>', '<?php echo base_url() . 'upload-course-video' ?>')" >
                                                                                <div class = "bootstrap-filestyle input-group">
                                                                                    <input class = "form-control" disabled type = "text" 
                                                                                           id="view_video_file_name<?php echo $section_counter . '_video' . $video_counter; ?>" value="">
                                                                                    <span tabindex = "0" class = "group-span-filestyle input-group-btn">
                                                                                        <label for = "videoFile_sec<?php echo $section_counter . '_video' . $video_counter; ?>" class = "btn btn-default ">
                                                                                            <span class = "buttonText">Choose file</span>
                                                                                        </label>
                                                                                    </span>
                                                                                </div>



                                                                                <span class="pull-left" id="upload_video_error_sec<?php echo $section_counter . '_video' . $video_counter; ?>" 
                                                                                      style="color: red">
                                                                                    <span ><label style="color: #666;">[ Upload Video ]</label></span>
                                                                                </span>
                                                                                <input type="hidden" id="video_status_sec<?php echo $section_counter . '_video' . $video_counter; ?>" value="1">
                                                                            </div>
                                                                            <div class="col-sm-5">
                                                                                <div id="editFileName_sec_<?php echo $section_counter . '_video' . $video_counter; ?>" style="display:block;">
                                                                                    <?php
                                                                                    //$video_name = explode('/', $upload_video_value->upload_video_location);
                                                                                    $video_name = substr(strrchr($upload_video_value->upload_video_location, '/'), 1);
                                                                                    if(isset($video_name)){
                                                                                        echo $video_name;
                                                                                    }                                                                                    
                                                                                    ?>
                                                                                </div>
                                                                                <div class="progress" id="progressID_sec<?php echo $section_counter . '_video' . $video_counter; ?>" style="display: none">
                                                                                    <div class="progress-bar progress-bar-success progress-bar-striped"
                                                                                         id="videoProgressBar_sec<?php echo $section_counter . '_video' . $video_counter; ?>"
                                                                                         role="progressbar"
                                                                                         aria-valuenow="90" 
                                                                                         aria-valuemin="0" aria-valuemax="100" 
                                                                                         style="">
                                                                                    </div>
                                                                                </div>

                                                                                <div id="processing_image<?php echo $section_counter . '_video' . $video_counter; ?>" style="display:none">
                                                                                    <span>Processing</span>
                                                                                    <img src="<?php echo base_url('image/ajaxloader.gif') ?>" style="max-width: 35px;">
                                                                                </div>
                                                                            </div>
                                                                            <div class="col-sm-12" style="color: green;" id="view_file_size_sec<?php echo $section_counter . '_video' . $video_counter; ?>"></div>
                                                                        </div>
                                                                        <div class="col-sm-12"></div>


                                                                        <div class="form-group col-sm-6">
                                                                            <div class="form-group col-sm-6 text-left" style="margin-top: 10px">  <label > Work files  :  &nbsp;&nbsp;</label></div>
                                                                            <div class="form-group radio radio-success col-sm-6"  >
                                                                                <input  onclick="getWorkFileStatus(this.value, '<?php echo $section_counter; ?>', '<?php echo $video_counter; ?>', '<?php echo base_url() . 'get-video-work-file' ?>')" 
                                                                                        type="radio" 
                                                                                        name="work_file_status[<?php echo $section_counter; ?>][<?php echo $video_counter; ?>]" 
                                                                                        id="work_file_yes<?php echo $section_counter . '_video' . $video_counter; ?>" 
                                                                                        value="1" >
                                                                                <label for="work_file_yes<?php echo $section_counter . '_video' . $video_counter; ?>">Yes</label>
                                                                                <span style="margin-right: 30px"></span>
                                                                                <input  onclick="getWorkFileStatus(this.value, '<?php echo $section_counter; ?>', '<?php echo $video_counter; ?>', '<?php echo base_url() . 'get-video-work-file' ?>')" 
                                                                                        type="radio" 
                                                                                        name="work_file_status[<?php echo $section_counter; ?>][<?php echo $video_counter; ?>]" 
                                                                                        id="work_file_no<?php echo $section_counter . '_video' . $video_counter; ?>" 
                                                                                        value="2">
                                                                                <label for="work_file_no<?php echo $section_counter . '_video' . $video_counter; ?>">No</label>
                                                                            </div>
                                                                            <input type="hidden" id="work_file_status_validate_sec_<?php echo $section_counter . '_video' . $video_counter ?>" value="1">
                                                                            <span class="col-sm-12" id="video_work_file_status_error_sec<?php echo $section_counter . '_video' . $video_counter; ?>" 
                                                                                  style="color: red; margin-top: -15px;"></span>
                                                                        </div>
                                                                        <script>
                                                                            document.forms['edit_video_course_work_form'].elements['work_file_status[<?php echo $section_counter; ?>][<?php echo $video_counter; ?>]'].value = '<?php echo $upload_video_value->video_work_files; ?>';
                                                                        </script>
                                                                        <input type="hidden" 
                                                                               id="upload_video_work_file_id_sec<?php echo $section_counter . '_video' . $video_counter ?>" 
                                                                               value="<?php
                                                                               if (isset($video_work_file_info[$upload_video_value->upload_video_id])) {
                                                                                   echo $video_work_file_info[$upload_video_value->upload_video_id]->work_files_management_id;
                                                                               }
                                                                               ?>">
                                                                        <div class="col-sm-12"><br><br></div>


                                                                        <div id="work_file_area_sec<?php echo $section_counter . '_video' . $video_counter; ?>"   
                                                                        <?php
                                                                        if ($upload_video_value->video_work_files == 1) {
                                                                            echo 'style="display: block"';
                                                                        } else if ($upload_video_value->video_work_files == 2) {
                                                                            echo 'style="display: none"';
                                                                        }
                                                                        ?>>
                                                                                 <?php
                                                                                 if ($upload_video_value->video_work_files == 1) {
                                                                                     $all_video_work_file_counter[] = $video_counter;
                                                                                     $all_video_work_file_id[] = $video_work_file_info[$upload_video_value->upload_video_id]->work_files_management_id;
                                                                                 }
                                                                                 ?>
                                                                            <div class="form-group col-sm-6">
                                                                                <div class="input-group">
                                                                                    <input type="text" 
                                                                                           class="form-control"
                                                                                           id="work_files_name_sec<?php echo $section_counter . '_video' . $video_counter; ?>"
                                                                                           name="work_files_name[<?php echo $section_counter; ?>][<?php echo $video_counter; ?>]"
                                                                                           oninput="getWorkFileName(this.value,'<?php echo $section_counter; ?>','<?php echo $video_counter; ?>','<?php echo base_url() . 'check-video-work-file-name' ?>')"
                                                                                           value="<?php
                                                                                           if (isset($video_work_file_info)) {
                                                                                                if(array_key_exists($upload_video_value->upload_video_id, $video_work_file_info)){
                                                                                                    echo $video_work_file_info[$upload_video_value->upload_video_id]->work_files_name;
                                                                                                }
                                                                                           }
                                                                                           ?>"
                                                                                           placeholder="Please Type Work File Name"  >
                                                                                    <span class="input-group-addon "  title="Please Type Work File Name"><i class="fa fa-file"></i></span>
                                                                                </div>
                                                                                <input type="hidden" id="work_files_name_validate_sec<?php echo $section_counter . '_video' . $video_counter; ?>" value="1">
                                                                                <span class="col-sm-12" id="work_files_name_error_sec<?php echo $section_counter . '_video' . $video_counter; ?>" style="color: red;"></span>
                                                                            </div>
                                                                            <div class="col-sm-12"></div>

                                                                             <?php
                                                                                 if ($upload_video_value->video_work_files == 1) {
                                                                                 ?>
                                                                            <div class="form-group col-sm-6">
                                                                                <div class="form-group col-sm-6 text-left" style="margin-top: 10px">  <label >Work File Access Level  :  &nbsp;&nbsp;</label></div>
                                                                                <div class="form-group radio radio-success col-sm-6">
                                                                                    <?php
                                                                                    if ($video_course_info->video_course_type == 1) {
                                                                                        ?>
                                                                                        <input  type="radio" 
                                                                                                name="work_files_management_access_level[<?php echo $section_counter; ?>][<?php echo $video_counter; ?>]" 
                                                                                                id="free" value="1" >
                                                                                        <label for="Free">Free</label>
                                                                                        <span style="margin-right: 30px"></span>
                                                                                        <input  type="radio" 
                                                                                                name="work_files_management_access_level[<?php echo $section_counter; ?>][<?php echo $video_counter; ?>]" 
                                                                                                id="paid" 
                                                                                                value="2">
                                                                                        <label for="Paid">Paid</label>
                                                                                    <?php } else if ($video_course_info->video_course_type == 2) { ?>
                                                                                        <input  type="radio" 
                                                                                                name="work_files_management_access_level[<?php echo $section_counter; ?>][<?php echo $video_counter; ?>]" 
                                                                                                id="free" value="1" checked>
                                                                                        <label for="Free">Free</label>
                                                                                        <span style="margin-right: 30px"></span>
                                                                                    <?php } ?>
                                                                                </div>
                                                                                <span class="col-sm-12" id="work_file_access_level_error_sec<?php echo $section_counter . '_video' . $video_counter; ?>" 
                                                                                      style="color: red; margin-top: -15px;"></span>
                                                                                <script>
                                                                                    document.forms['edit_video_course_work_form'].elements['work_files_management_access_level[<?php echo $section_counter; ?>][<?php echo $video_counter; ?>]'].value = '<?php
                                                                            if (isset($video_work_file_info)) {
                                                                                echo $video_work_file_info[$upload_video_value->upload_video_id]->work_files_management_access_level;
                                                                            }
                                                                            ?>';
                                                                                </script>
                                                                            </div>
                                                                            <?php
                                                                                 }
                                                                            ?>

                                                                            <div class="form-group col-sm-12 padding-zero" >
                                                                                <?php
                                                                                 if ($upload_video_value->video_work_files == 1) {
                                                                                 ?>
                                                                                <div class="col-sm-7"> 
                                                                                    <input tabindex = "-1"
                                                                                           style = "position: absolute; clip: rect(0px, 0px, 0px, 0px);"
                                                                                           id="workFile_sec<?php echo $section_counter . '_video' . $video_counter; ?>"
                                                                                           data-icon = "false" type = "file" value = ""
                                                                                           onchange="getVideoWorkFile(this, '<?php echo $section_counter; ?>', '<?php echo $video_counter; ?>', '<?php echo base_url() . 'upload-video-work-file' ?>')" >
                                                                                    <div class = "bootstrap-filestyle input-group">
                                                                                        <input class = "form-control " disabled type = "text" 
                                                                                               id="view_work_file_name<?php echo $section_counter . '_video' . $video_counter; ?>" value="">
                                                                                        <span tabindex = "0" class = "group-span-filestyle input-group-btn">
                                                                                            <label for = "workFile_sec<?php echo $section_counter . '_video' . $video_counter; ?>" class = "btn btn-default ">
                                                                                                <span class = "buttonText">Choose file</span>
                                                                                            </label>
                                                                                        </span>
                                                                                    </div>



                                                                                    <span class="pull-left" id="upload_work_file_error_sec<?php echo $section_counter . '_video' . $video_counter; ?>" 
                                                                                          style="color: red">
                                                                                        <span ><label style="color: #666;">[ Upload work file ]</label></span>
                                                                                    </span>
                                                                                    <input type="hidden" id="work_file_upload_status_sec<?php echo $section_counter . '_video' . $video_counter; ?>" value="">
                                                                                </div>
                                                                                
                                                                                <?php 
                                                                                    }
                                                                                ?>
                                                                                <div class="col-sm-5">
                                                                                    <div id="editWorkFileName_sec_<?php echo $section_counter . '_video' . $video_counter; ?>" style="display:block;">
                                                                                        <?php
                                                                                        if (isset($video_work_file_info[$upload_video_value->upload_video_id])) {
                                                                                            $work_file_name = explode('/', $video_work_file_info[$upload_video_value->upload_video_id]->work_files_url);
                                                                                            echo $work_file_name[4];
                                                                                        }
                                                                                        ?>
                                                                                    </div>
                                                                                    <div class="progress" id="workFileProgressID_sec<?php echo $section_counter . '_video' . $video_counter; ?>" style="display: none">
                                                                                        <div class="progress-bar progress-bar-success progress-bar-striped"
                                                                                             id="workProgressBar_sec<?php echo $section_counter . '_video' . $video_counter; ?>"
                                                                                             role="progressbar"
                                                                                             aria-valuenow="90" 
                                                                                             aria-valuemin="0" aria-valuemax="100" 
                                                                                             style="">
                                                                                        </div>
                                                                                    </div>

                                                                                    <div id="processing_image<?php echo $section_counter . '_video' . $video_counter; ?>" style="display:none">
                                                                                        <span>Processing</span>
                                                                                        <img src="<?php echo base_url('image/ajaxloader.gif') ?>" style="max-width: 35px;">
                                                                                    </div>
                                                                                </div>
                                                                                <div class="col-sm-12" style="color: green;" id="view_work_file_size_sec<?php echo $section_counter . '_video' . $video_counter; ?>"></div>
                                                                            </div>

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

                                                                    </div>
                                                                </div>
                                                                <?php
                                                            }
                                                            ?>
                                                        </div>


                                                        <div class="col-sm-12">
                                                            <div class="form-group col-sm-6 text-center" style="color: red;" id="video_course_submit_error<?php echo $section_counter ?>"></div>
                                                            <div class="form-group col-sm-6">
                                                                <input type="hidden" 
                                                                       name="all_upload_video_counter[<?php echo $section_counter ?>]"
                                                                       id="allUploadVideoCounter_sec_<?php echo $section_counter ?>" value="<?php echo implode(',', $all_video_counter); ?>">
                                                                <input type="hidden" 
                                                                       name="all_upload_video_ok_counter[<?php echo $section_counter ?>]"
                                                                       id="allUploadVideoOKcounter_sec_<?php echo $section_counter ?>" value="<?php echo implode(',', $all_video_counter); ?>">
                                                                <input type="hidden" 
                                                                       name="all_upload_video_id[<?php echo $section_counter ?>]"
                                                                       id="allUploadVideoID_sec_<?php echo $section_counter ?>" value="<?php echo implode(',', $all_video_upload_id); ?>">
                                                                <input type="hidden" 
                                                                       name="allUploadVideoID1[<?php echo $section_counter ?>]"
                                                                       id="allUploadVideoID1_sec_<?php echo $section_counter ?>" value="<?php echo implode(',', $all_video_upload_id); ?>">
                                                                <input type="hidden" 
                                                                       name="all_upload_video_work_file_counter[<?php echo $section_counter ?>]"
                                                                       id="allUploadVideoWorkFileCounter_sec_<?php echo $section_counter ?>" value="<?php echo implode(',', $all_video_work_file_counter); ?>">
                                                                <input type="hidden" 
                                                                       name="all_upload_video_work_file_id[<?php echo $section_counter ?>]"
                                                                       id="allUploadVideoWorkFileID_sec_<?php echo $section_counter ?>" value="<?php echo implode(',', array_filter($all_video_work_file_id)); ?>">
                                                                <input type="hidden" 
                                                                       name="all_upload_video_work_file_ok_counter[<?php echo $section_counter ?>]"
                                                                       id="allUploadVideoWorkFileOKCounter_sec_<?php echo $section_counter ?>" value="<?php echo implode(',', $all_video_work_file_counter); ?>">
                                                                <input type="hidden" 
                                                                       name="video_course_url_check"
                                                                       id="video_course_url_check" value="<?php echo base_url().$url1; ?>">
                                                                <a type="button" 
                                                                   class="btn btn-success" 
                                                                   onclick="addMoreVideo('<?php echo $section_counter ?>', '<?php echo base_url() . 'add-single-video-area' ?>')" 
                                                                   style="margin-left: 156px;" >Add More Video</a>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                            <?php
                                        }
                                        ?>
                                    </div>
                                    <div class="col-sm-12"><br></div>




                                    <div class="col-sm-12">
                                        <div class="form-group col-sm-6 text-center" style="color: red" id="section_error">
                                        </div>
                                        <div class="form-group col-sm-6">
                                            <input type="hidden"
                                                   name="all_section_counter"
                                                   id="allSectionCounter" value="<?php echo implode(',', $section_counter_array); ?>">
                                            <a type="button" 
                                               class="btn btn-success" 
                                               onclick="addMoreVideoSection('<?php echo base_url() . 'add-section-area' ?>')" 
                                               style="margin-left: 156px;" >Add More Section </a>
                                        </div>
                                    </div>

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

                                    <div class="col-sm-12 padding-zero">
                                        <div class="form-group col-sm-4 col-sm-offset-4">
                                            <button type="submit" class="green-btn btn btn-default">Update Video Course Work file</button>
                                        </div>
                                    </div>
                                    <?php echo form_close(); ?>
                                </div>
                            </div>   
                        </div>
                        <!-- /.work tab -->
                    </div>
                </div>
            </div>
        </div>
    </div>
    <br>
    <div class="row gray">
        <div class="col-sm-12 ">
            <label><a href="dashboard.html">Dashboard </a> ->> <a href="<?php echo base_url() ?>super_admin_video/manage_video_management">Manage Video Management </a>->>Add Video Management </label>
        </div>
    </div>
    <br> <br>

</div>

<script>
    viewCourseCategoryURL = '<?php echo base_url(); ?>view-video-course-category';
    videoFileSizeResponseURL = '<?php echo base_url(); ?>view-video-course-file-size';
    removeUploadWorkFileURl = '<?php echo base_url(); ?>remove-video-course-work-file';
</script>