<?= $this->extend('layout') ?>
<?= $this->section('content') ?>

<div class ="flex2">
	<div class ="content">
	<div class="d-flex justify-content-center">
   
		     
		     
		     <?= form_open_multipart('newblog'); ?>
			<?= csrf_field() ?>

			
			<div class="form-group"> 
			<h11>This is the place to create a new blog </h11>
				 </div>	    

                <div class="form-group"> 
			    <label for="date">Date of Post (eg  15 February 2020)  </label>
			    <input type="input" name="date" id ="date" class="form-control" value =" "/><br />
			    </div>

			    <div class="form-group"> 
			    <label for="title">Blog Title</label>
			    <input type="input" name="title" id ="title" class="form-control"/><br />
			    </div>
    
    
			    <div class="form-group"> 
			    <label for="theArticle">Blog Article </label> 
			    <textarea class="form-control" id ="thArticle" rows="3" cols ="24" name ="article" required ="true"  ></textarea>
			   </div>
	   
			   <div class="form-group"> 
			    <input type="file" name="userfile" size="20" />
			    </div>
	    
			    <div class="form-group"> 
			   <input type="submit" class ="btn-success" value="submit" />
			   </div>
                           
			   
			   <div class="form-group"> 
			 <h1 style ="color:red";>  <?php echo $info ;?></h1>
			   </div>
			   
			   
			   
		   <?php echo form_close();?>

	</div>
	
	
	</div>
</div>
<?= $this->endSection() ?>
