<?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 Photo</h4>
        <div class="db-list-com tz-db-table">
          <div class="ds-boar-title">
            <h2>Add New Photo</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="photo_text" name="photo_text" value="<?php echo set_value('photo_text'); ?>" required type="text" class="validate">
                    <label for="photo_text">Photo Caption*</label>
                  </div>                  
                </div>
                <div class="row">
                  <div class="input-field col s3">
                    <div class="">
                      <img src="<?php echo get_image('clients/photos', '', '600', '400', 'R'); ?>" id="pic1" class="profile_picture" width="600" height="400"  /><div class="clearfix"></div>
                      <a href="javascript:void(0);" onclick="$('#img1').trigger('click');"  class="profile_picture">Add Photo</a>
                    </div>
                    <input id="img1" name="photo_image" 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 v2-mar-top-60"> <button type="submit" class="waves-effect waves-light btn-large full-btn" >Add Photo</button> </div>
                </div>
              </form>
            </div>
          </div>
        </div>
      </div>
    </div>

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