<?php
defined('BASEPATH')or exit('NO DIRECT ACCESS IS ALLOWED');?>
<?php ?>
<section class="content">
  <div class="row">
    <div class="col-xs-12">
      <div class="box">
        <div class="box-header">
        <?=form_open_multipart('admin/Adminlte/upload_profile',['name'=>'payslip_form_add','id'=>'payslip_form_add']);?>
         <div class="box-body">
		<div class="row">
			<div class="col-md-12">
				<div class="col-md-3">
                  <?php if(preg_match ('./',$userdata->profile_image) && ($userdata->profile_image!="")){
                            echo img(array("src"=>base_url($userdata->profile_image),"class"=>"img-user img-circle img-responsive",
                            "style"=>"width:93px;"));
                        }
                        else if(!preg_match ('./',$userdata->profile_image) && ($userdata->profile_image!="") ){
                            echo img(array("src"=>$userdata->profile_image,"class"=>"img-user img-circle img-responsive",
                            "style"=>"width:93px;"));
                        }
                        else {
                            echo img(array("src"=>"assets/easy-admin/images/user-img.png","class"=>"img-user img-circle img-responsive",
                            "style"=>"width:93px;"));
                        }
                        ?>
				</div>
				<div class="col-md-3">
					<?=form_upload(['name'=>'userFiles[]','class'=>'btn btn-primary','multiple'=>'multiple']);?>
				</div>
				<div class="col-md-3">
					<?=form_submit(['name'=>'fileSubmit','value'=>' UPLOAD','class'=>'btn btn-default btn-sm','style'=>'color:#000;']); ?>
				</div>
			</div>
		</div>
	</div>
	<?=form_close();?>
	</div>
</div>
</div>
</div>
</section>