<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_ticket" />
 <?php
                                    if($templateType == 'edit')
                                    {
                                        $current='Current Image : <img src="' . MAIN_DOMAIN . '/uploads/ticket/'.$data['cl_image'].'" width="150px"/>';
                                       
                                    }
                                    else
                                    {
                                        $current='';
                                       
                                    }
                                    ?>
<div class="error-main"></div>
                            <div class="form-group input-container">
                                <label for="Name" class=" form-control-label">Ticket Title</label>
                                <input type="text" name="title" id="title" placeholder="Title" class="form-control" value="<?php if(isset($data['cl_title'])){echo $data['cl_title'];}?>" />
                                <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"><?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">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>
                            <?php
                            if($templateType == 'edit')
                                    {
                                        ?>
                                        <div class="form-group input-container">
                                                <label for="status" class=" form-control-label">Status</label>
                                                <select name="status" id="status" class="form-control">
                                                    <option value="">---Select Category---</option>
                                                   
                                                    <option value="Open" <?php if($data['cl_status'] == 'Open'){echo 'selected';}?>>Open</option>
                                                    <option value="Close" <?php if($data['cl_status'] == 'Close'){echo 'selected';}?>>Close</option>
                                                </select>

                                                <div class="error-input"></div>
                                            </div>
                                           
                                <?php
                                    }
                            ?>
							<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>



                       