<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_brand_image" />

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

<div class="error-main"></div>
                            <div class="form-group input-container">
                                <label for="Name" class=" form-control-label">Brand Name</label>
                                <input type="text" name="name" id="Name" placeholder="Brand 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="Description" class=" form-control-label">Description</label>
                                <input type="text" id="Description" name="description" placeholder="Description" class="form-control" value="<?php if(isset($data['cl_description'])){echo $data['cl_description'];}?>" />
                                <div class="error-input"></div>
                            </div>

                            <div class="form-group input-container file_upload_container">
                                <label for="file" class=" form-control-label">Image</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">
							<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>
                            
                           