<input type="hidden" id="baseurl" value="<?php echo base_url(); ?>" >
<div class="row">
    <div class="col-md-6 margin-bottom-30">
        <div class="hs_heading medium">
            <h3>Add Blog</h3>
        </div>
		<form id="addblogs" enctype="multipart/form-data">
        <div class="hs_input">
            <label>Title</label>
            <input type="text" class="form-control" placeholder="Title" name="blog_title" id="b_title">
        </div>
         
        <div class="hs_input">
            <label>Category</label>
            <select class="form-control" name="blog_cate" id="b_category">
			    <option value="0">Choose One</option>
				<?php if(!empty($blog_category)){ foreach($blog_category as $blog_cate){  ?>
                <option value="<?php echo $blog_cate->cate_id; ?>"><?php echo $blog_cate->cate_name; ?></option>
				
				<?php 
				  }
				}
				?>
            </select>
        </div>
		 <div class="hs_input">
            <label for="exampleInputFile">Feature Image</label>
            <input type="file" name="blog_image" id="exampleInputFile" class="form-control">
            <p class="help-block">Example block-level help text here.</p>
        </div>
        <div class="hs_input">
            <label>Short Content</label>
            <textarea rows="4" class="form-control" placeholder="Your message" name="blog_content" id="b_content"></textarea>
        </div>
		<div class="hs_input">
            <label>Long Content</label>
            <textarea rows="4" class="form-control" name="longblog_content" id="longb_content"> </textarea>
        </div>
       <input type="hidden" name="blog_userid" id="blog_userid" value="<?php if(isset($_SESSION['admin_uid'])){ echo $_SESSION['admin_uid']; } ?>">
        <button type="submit" class="btn">Submit</button>
		</form>
    </div>
</div>
