 <div class="content-wrapper">
    <div class="container-fluid">
		
		<div class="row">
			<div class="col-lg-12">
			   <form action="#" method="post" method="post" enctype="multipart/form-data">
			   <input type="hidden" name="id" value="<?= @$id; ?>">
			   <div class="card">
			     <div class="card-body">
				   <div class="card-title"><?= $pagetitle; ?></div>
				   <?php echo ($this->session->flashdata('form_error'));?>
				   <?php echo ($this->session->flashdata('image_error'));?>
				   <hr>
					 <div class="form-group row">
					  <label for="input-21" class="col-sm-2 col-form-label">Title</label>
					  <div class="col-sm-10">
						<input type="text" class="form-control" name="title" id="input-21" placeholder="Enter Title" <?php if(@$title !=''){echo "value='".@$title."'";}?>>
					  </div>
					</div>
					
					<div class="form-group row">
					  <label for="input-22" class="col-sm-2 col-form-label">Description</label>
					  <div class="col-sm-10">
						<textarea name="description" class="ckeditor"><?php if(@$description){echo @$description;}?></textarea>
					  </div>
					</div>
					  <div class="form-group row">
						<label for="input-23" class="col-sm-2 col-form-label">Image</label>
						<div class="col-sm-10">
						<input name="image" type="file" class="form-control" id="input-23" placeholder="Select Logo" >
						<input name="imageold" type="hidden" value="<?= @$image; ?>" >
						<?php if(@$image){echo "<img src='".base_url('uploads/'.@$image)."' width='150'>";}?>
						</div>
					  </div>
					  <div class="form-group row">
						<label for="input-23" class="col-sm-2 col-form-label">Banner</label>
						<div class="col-sm-10">
						<input name="banner" type="file" class="form-control" id="input-23" placeholder="Select Logo" >
						<input name="bannerold" type="hidden" value="<?= @$banner; ?>" >
						<?php if(@$banner){echo "<img src='".base_url('uploads/'.@$banner)."' width='150'>";}?>
						</div>
					  </div>
					  <div class="form-group row">
						<label for="input-23" class="col-sm-2 col-form-label">Teplates</label>
						<div class="col-sm-10">
						<select class="form-control" name="template">
							<?php for($i=0;$i<count(@$templates);$i++){?>
								<option value="<?= $templates[$i]; ?>" <?php if(@$templates[$i] == @$template){ echo "selected";}?>><?= $templates[$i]; ?></option>
							<?php } ?>
						</select>
						</div>
					  </div>
					<div class="form-group row">
					  <label for="input-24" class="col-sm-2 col-form-label">Status</label>
					  <div class="col-sm-10">
						<input type="checkbox" name="status" class="" id="activestatus" value="1" <?php if(@$status==1){echo "checked";}?>> <label for="activestatus"> Active</label>
					  </div>
					</div>
					 
					 <div class="form-group row">
					  <label class="col-sm-2 col-form-label"></label>
					  <div class="col-sm-10">
						<button type="submit" name="submit" class="btn btn-primary px-5"><i class="icon-lock"></i> Update</button>
					  </div>
					</div>
				 </div>
			 </div>
			</form>
		</div>
	</div><!--End Row-->
	
	