<?php
$this->load->view('admin/templates/header.php');
?>
<div id="content">
		<div class="grid_container">
			<div class="grid_12">
				<div class="widget_wrap">
					<div class="widget_top">
						<span class="h_icon list"></span>
						<h6><?php echo $heading;?></h6>
					</div>
					<div class="widget_content">
					<?php 
						$attributes = array('class' => 'form_container left_label', 'id' => 'addcategorybanner_form',  'enctype' => 'multipart/form-data');
						echo form_open_multipart('admin/category/editBanner',$attributes) 
					?>
                    
	 						<ul>
	 							
								<li>
								<div class="form_grid_12">
									<label class="field_title" for="name">Banner Name </label>
									<div class="form_input">
										<input name="name" id="name" type="text" tabindex="1" class="large tipTop" value="<?php echo $banner_details->row()->name;?>" title="Please enter the banner name"/>
									</div>
								</div>
								</li>
                                
                                <li>
								<div class="form_grid_12">
									<label class="field_title" for="banner_image">Banner Image </label>
									<div class="form_input">
										<input name="banner_image" id="banner_image" type="file" tabindex="2" class="large tipTop" title="Please upload banner image"/>
										<span class="input_instruction green">Image Size 890 x 420 pixel</span>
									</div>
									<div class="form_input">
										<img src="<?php echo base_url();?>images/category/banner/<?php echo $banner_details->row()->image;?>" width="200"/>
									</div>
								</div>
								</li>
								
								<li>
								<div class="form_grid_12">
									<label class="field_title" for="link">Banner Link </label>
									<div class="form_input">
										<input name="link" id="link" type="text" tabindex="3" class="large tipTop" value="<?php echo $banner_details->row()->link;?>" title="Please enter the banner link"/>
									</div>
								</div>
								</li>
								
	 							<li>
								<div class="form_grid_12">
									<label class="field_title" for="status">Status <span class="req">*</span></label>
									<div class="form_input">
										<div class="publish_unpublish">
											<input type="checkbox" tabindex="4" name="status" <?php if ($banner_details->row()->status == 'Publish'){?>checked="checked"<?php }?> id="publish_unpublish_publish" class="publish_unpublish"/>
										</div>
									</div>
								</div>
								</li>
								<li>
								<div class="form_grid_12">
									<div class="form_input">
										<button type="submit" class="btn_small btn_blue" tabindex="5"><span>Update</span></button>
									</div>
								</div>
								</li>
							</ul>
              <input type="hidden" name="banner_id" value="<?php echo $banner_details->row()->id;?>" />
                            
						</form>
					</div>
				</div>
			</div>
		</div>
		<span class="clear"></span>
	</div>
</div>
<script type="text/javascript">
$('#addcategorybanner_form').validate();
</script>
<?php 
$this->load->view('admin/templates/footer.php');
?>