<?php
$this->load->view("top_application");
?>
<section>
  <div class="tz">
    <!--LEFT SECTION-->
    <div class="tz-l">      
      <?php $this->load->view("members/left"); ?>
    </div>
    <!--CENTER SECTION-->
    <div class="tz-4">
      <div class="tz-2-com tz-2-main">
        <h4>Add New Blog</h4>
        <div class="db-list-com tz-db-table">
          <div class="ds-boar-title">
            <h2>Add New Blog</h2>
          </div>
          <div class="hom-cre-acc-left hom-cre-acc-right">
            <div class="">
              <?php
              echo validation_message();
              ?>
              <form action="" enctype="multipart/form-data" method="post" class="">
                <div class="row">
                  <div class="input-field col s12">
                    <input id="article_title" name="article_title" value="<?php echo set_value('article_title', $res['article_title']); ?>" required type="text" class="validate">
                    <label for="article_title">Blog Title*</label>
                  </div>                  
                </div>
                <div class="row">
                  <div class="input-field col s3">
                    <div class="">
                      <img src="<?php echo get_image('blog', $res['article_image'], '125', '125', 'R'); ?>" id="pic1" class="profile_picture" width="125" height="125"  /><div class="clearfix"></div>
                      <a href="javascript:void(0);" onclick="$('#img1').trigger('click');"  class="profile_picture">Add Blog Image</a>
                    </div>
                    <input id="img1" name="image1" type="file" onchange="document.getElementById('pic1').src = window.URL.createObjectURL(this.files[0])" class="validate" style="display: none;" />
                  </div>
                </div>
                <div class="row"><div class="input-field col s12"></div></div>
                <div class="row">
                  <div class="input-field col s12">
                    <h5 style="margin-bottom: 5px; font-size: 14px;">Blog Description*</h5>
                    <textarea id="article_desc" onclick="$(this).focus();" name="article_desc" rows="12" cols="50" class="validate"><?php echo set_value('article_desc', $res['article_desc']); ?></textarea><?php echo display_ckeditor($ckeditor); ?>
                  </div>
                </div>

                <div class="row"><div class="input-field col s12"></div></div>


                <div class="row">
                  <div class="input-field col s12 v2-mar-top-60"> <button type="submit" class="waves-effect waves-light btn-large full-btn" >Update Blog</button> </div>
                </div>
              </form>
            </div>
          </div>
        </div>
      </div>
    </div>

  </div>
</section>
<?php $this->load->view("bottom_application"); ?>