<?php defined("BASEPATH")or exit("NO DIRECT ACCESS IS ALLOWED");?>

<div class="col-md-12">
<div class="row" style="margin-right:0px ;margin-left:0px;">
<div class="card-head profile-categories_bread">
	<header>Profile Picture</header>
	 <ol class="breadcrumb page-breadcrumb pull-right">
            <li><i class="fa fa-home"></i>&nbsp;<a class="parent-item" href="index-2.html">Home</a>&nbsp;<i class="fa fa-angle-right"></i>
            </li>
            <li><a class="parent-item" href="#">Profile</a>&nbsp;<i class="fa fa-angle-right"></i></li>
            <li class="active">Picture</li>
     </ol>
</div>
<div class="card card-topline-purple">
    	<!-- <div class="card-head">
    		<div id="example4_filter" class="dataTables_filter"><label>Search:
				<input type="search" class="form-control form-control-sm search-boxes input-sm" placeholder="" aria-controls="example4"></label>
			</div><?php echo  $link;?>
    		<div class="tools">
    			<a class="fa fa-repeat btn-color box-refresh" href="javascript:;"></a>
    			<a class="t-collapse btn-color fa fa-chevron-down" href="javascript:;"></a>
    			<a class="t-close btn-color fa fa-times" href="javascript:;"></a>
    		</div>
    	</div>-->

    	<div class="card-body scroll_table_x">
	   <div class="table-responsive">
	     <table class="table table-striped custom-table table-hover table table-bordered" style="font-family: sans-serif;font-size: 12px;">
			<thead>
				<tr>
					<th>#</th>
					<th>profile picture</th>
					<th>upload </th>

				</tr>
			</thead>
		   <tbody>

				<tr>
				 	<?=form_open_multipart('Teacher/upload_profile',['name'=>'payslip_form_add','id'=>'payslip_form_add']);?>
   					 <?php //echo form_upload(['name'=>'userFiles[]','class'=>'btn btn-primary','multiple'=>'multiple']);?>
<td>   <?php if(preg_match ('./',$this->teacher_data->profile_image) && ($this->teacher_data->profile_image!="")){
       echo img(array("src"=>base_url($this->teacher_data->profile_image),"class"=>"profile-user-img img-responsive img-circle ","style"=>"width:100px; height:100px;"));
           }
           else if(!preg_match ('./',$this->teacher_data->profile_image) && ($this->teacher_data->profile_image!="") ){
               echo img(array("src"=>$this->teacher_data->profile_image,"class"=>"profile-user-img img-responsive img-circle ","style"=>"width:100px; height:100px;"));
           }
         else {echo img(array("src"=>"assets/easy-admin/images/user-img.png","class"=>"profile-user-img img-responsive img-circle ","style"=>"width:100px; height:100px;"));}?>
				</td>
					<td ><?php echo form_upload(['name'=>'userFiles[]','class'=>'btn btn-primary','multiple'=>'multiple']);?>
						<?php //echo form_upload(['name'=>'userFiles[]','class'=>'dropify','multiple'=>'multiple']);?>
				 			<!-- <input type="file" id="input-file-now" class="dropify" data-default-file=""/> -->
					</td>
					<td><?=form_submit(['name'=>'fileSubmit','value'=>' UPLOAD','class'=>'btn btn-default btn-sm','style'=>'color:#000;']); ?></td>
					 <?=form_close();?>
				</tr>

		  </tbody>
	</table>
</div>
</div>

</div>
</div>
</div><!-- /.container -->
</div>
</div>
