<link rel="stylesheet" href="<?php echo DOMAIN ?>/jquery_file_upload/css/style.css">
<link rel="stylesheet" href="<?php echo DOMAIN ?>/jquery_file_upload/css/jquery.fileupload.css">
<input type="hidden" class="file_url" value="<?php echo DOMAIN ?>/ajax/upload_category_image" />

 <?php
                                    if($templateType == 'edit')
                                    {
                                        $current = 'Current Image : <img src="' . MAIN_DOMAIN . '/uploads/product_category/'.$data['cl_image'].'" width="100"/>';
                                        $currentEnglish = 'Current Image : <img src="' . MAIN_DOMAIN . '/uploads/product_category/'.$data['cl_image_english'].'" width="100"/>';
                                    }
                                    else
                                    {
                                        $current='';
                                        $currentEnglish = '';
                                    }
                                    ?>

<div class="error-main"></div>
                            <div class="form-group input-container">
                                <label for="Name" class=" form-control-label">Sub Category Name</label>
                                <input type="text" name="name" id="name" placeholder="Sub Category Name" class="form-control" value="<?php if(isset($data['cl_name'])){echo $data['cl_name'];}?>" />
                                <div class="error-input"></div>
                            </div>
                             <div class="form-group input-container">
                                <label for="Name" class=" form-control-label">Sub Category Name (English)</label>
                                <input type="text" name="name_english" id="name_english" placeholder="Sub Category Name (English)" class="form-control" value="<?php if(isset($data['cl_name_english'])){echo $data['cl_name_english'];}?>" />
                                <div class="error-input"></div>
                            </div>
                             <div class="form-group input-container">
                                <label for="Name" class=" form-control-label">Sub Category Name (Lithuanian)</label>
                                <input type="text" name="name_lithuanian" id="name_lithuanian" placeholder="Sub Category Name (Lithuanian)" class="form-control" value="<?php if(isset($data['cl_name_lithuanian'])){echo $data['cl_name_lithuanian'];}?>" />
                                <div class="error-input"></div>
                            </div>
                            <div class="form-group input-container">
                                <label for="Name" class=" form-control-label">Sub Category Name (Estonian)</label>
                                <input type="text" name="name_estonian" id="name_estonian" placeholder="Sub Category Name (Estonian)" class="form-control" value="<?php if(isset($data['cl_name_estonian'])){echo $data['cl_name_estonian'];}?>" />
                                <div class="error-input"></div>
                            </div>
                             <div class="form-group input-container">
                                <label for="Name" class=" form-control-label">Sub Category Name (Polish)</label>
                                <input type="text" name="name_polish" id="name_polish" placeholder="Category Name (Polish)" class="form-control" value="<?php if(isset($data['cl_name_polish'])){echo $data['cl_name_polish'];}?>" />
                                <div class="error-input"></div>
                            </div>
                            <div class="form-group input-container">
                                <label for="Name" class=" form-control-label">Sub Category Name (Russian)</label>
                                <input type="text" name="name_russian" id="name_russian" placeholder="Category Name (Russian)" class="form-control" value="<?php if(isset($data['cl_name_russian'])){echo $data['cl_name_russian'];}?>" />
                                <div class="error-input"></div>
                            </div>
                            <div class="form-group input-container">
                                <label for="Name" class=" form-control-label">Slug</label>
                                <input type="text" name="slug" id="slug" placeholder="Slug" class="form-control" value="<?php if(isset($data['cl_slug'])){echo $data['cl_slug'];}?>" />
                                <div class="error-input"></div>
                            </div>
                            <div class="form-group input-container">
                                <label for="Name" class=" form-control-label">Header</label>
                                <input type="text" name="header" id="header" placeholder="Header" class="form-control" value="<?php if(isset($data['cl_header'])){echo $data['cl_header'];}?>" />
                                <div class="error-input"></div>
                            </div>
                            <div class="form-group input-container">
                                <label for="Name" class=" form-control-label">Header (English)</label>
                                <input type="text" name="header_english" id="header_english" placeholder="Header (English)" class="form-control" value="<?php if(isset($data['cl_header_english'])){echo $data['cl_header_english'];}?>" />
                                <div class="error-input"></div>
                            </div>
                            <div class="form-group input-container">
                                <label for="Description" class=" form-control-label">Description</label>
                                <textarea id="Description" name="description" placeholder="Description" class="form-control" value="" ><?php if(isset($data['cl_description'])){echo $data['cl_description'];}?></textarea>
                                <div class="error-input"></div>
                            </div>

                             <div class="form-group input-container file_upload_container">
                                <label for="file" class=" form-control-label">Banner Image (Latvia)</label>
                                        <input type="hidden" class="image file_url" name="image" value="<?php if(isset($data['cl_image'])){echo $data['cl_image'];}?>"/>
                                                    <input type="hidden" class="name"   />
                                                        <!-- The container for the uploaded files -->
                                                        <span class="btn btn-success fileinput-button">
                                                        <i class="glyphicon glyphicon-plus"></i>
                                                        <span>Select file</span>
                                                        <!-- The file input field used as target for the file upload widget -->
                                                        <input class="fileupload" type="file" name="file" >
                                                        </span>
                                                        <br>
                                                    <br>
                                                    <!-- The global progress bar -->
                                                    <div class="progress">
                                                        <div class="progress-bar progress-bar-success"></div>
                                                    </div>
                                                    <!-- The container for the uploaded files -->
                                                    <div class="files_area"></div>
                                                    <div class="file_name">
                                                            
                                                        </div>
                                                     <div class="error_area"></div>

                                <?php echo $current;?>
                                <div class="error-input"></div>
                            </div>

                            <div class="form-group input-container file_upload_container">
                                <label for="file" class=" form-control-label">Banner Image (English)</label>
                                        <input type="hidden" class="image file_url" name="image_english" value="<?php if(isset($data['cl_image_english'])){echo $data['cl_image_english'];}?>"/>
                                                    <input type="hidden" class="name"   />
                                                        <!-- The container for the uploaded files -->
                                                        <span class="btn btn-success fileinput-button">
                                                        <i class="glyphicon glyphicon-plus"></i>
                                                        <span>Select file</span>
                                                        <!-- The file input field used as target for the file upload widget -->
                                                        <input class="fileupload" type="file" name="file" >
                                                        </span>
                                                        <br>
                                                    <br>
                                                    <!-- The global progress bar -->
                                                    <div class="progress">
                                                        <div class="progress-bar progress-bar-success"></div>
                                                    </div>
                                                    <!-- The container for the uploaded files -->
                                                    <div class="files_area"></div>
                                                    <div class="file_name">
                                                            
                                                        </div>
                                                     <div class="error_area"></div>

                                <?php echo $currentEnglish;?>
                                <div class="error-input"></div>
                            </div>
                            
							<div class="form-group">
							<button type="submit" class="track-btn pull-right btn-submit">Submit</button>
							
							</div>
                            
                            <!-- The Iframe Transport is required for browsers without support for XHR file uploads -->
<script src="<?php echo DOMAIN ?>/jquery_file_upload/js/jquery.iframe-transport.js"></script>
<!-- The basic File Upload plugin -->
<script src="<?php echo DOMAIN ?>/jquery_file_upload/js/jquery.fileupload.js"></script>