<? global $vis_language;

 //$creation_date=$operation['vis_creation_date']+VIS_TIMEZONE;
//$date=date(VIS_DATE_FORMAT,$creation_date);
?>
<div id="ajaxModal" class="modal fade in" style="display: block;" aria-hidden="false">
	<div class="modal-dialog">
	<div class="modal-content">
		<div class="pull-right m-t-n m-r-n">
			<button aria-label="Close" data-dismiss="modal" class="btn btn-rounded btn-sm btn-icon btn-primary" type="button"><span aria-hidden="true"><i class="vh vh-cross-slim"></i></span></button>
		</div>
		<div class="m bg-light">
			<div class="wrapper">      
				<div class="drive-info">
					<div class="drive-item">
						      <? 


							  if($operation['vis_drive_type']=='text/plain') { ?>
      <i class="vh vh-file-text text-muted"></i>
      <?}
      else if($operation['vis_drive_type']=='image/jpeg') { ?>
        <img src="<?= $operation['vis_link'];?>" alt="techimage" />
      <?}
      else if($operation['vis_drive_type']=='application/vnd.ms-excel') { ?>
       <i class="vh vh-file-spreadsheet vh-file-spreadsheet-color"></i>
      <?}
      else if($operation['vis_drive_type']=='image/png') { ?>
        <img src="<?= $operation['vis_link'];?>" alt="techimage" />
       <?} 
       else if($operation['vis_drive_type']=='application/pdf') { ?>
      <i class="vh vh-file-pdf vh-file-pdf-color"></i>
       <?}
       else if($operation['vis_drive_type']=='application/vnd.openxmlformats-officedocument.wordprocessingml.document') { ?>
      <i class="vh vh-file-word vh-file-word-color"></i>
        <?}
        else if($operation['vis_drive_type']=='text/csv') { ?>
      <i class="vh vh-file-spreadsheet vh-file-spreadsheet-color"></i>
        <?} 
        else if($operation['vis_drive_type']=='message/rfc822') { ?>
      <i class="vh vh-file-text text-muted"></i>
        <?}
         else if(($operation['vis_drive_type']=='application/zip') || ($operation['vis_drive_type']=='application/octet-stream')) { ?>
      <i class="vh vh-file-zip vh-file-zip-color"></i>
        <?}
        else if($operation['vis_drive_type']=='application/vnd.openxmlformats-officedocument.presentationml.presentation') { ?>
      <i class="vh vh-file-presentation vh-file-presentation-color"></i>
        <?} else
        {?>
			<i class="vh vh-file vh-info"></i>
		<?}
        ?>
					</div>				
					<div class="drive-item-name">
						<small>Name</small>
						<?= $operation['vis_drive_name']?>
					</div>
					<div class="drive-item-owner">
						<small>Owner</small>
						<?=$operation['vis_drive_owner']?>
					</div>
					<div class="drive-item-size">
						<small>Size</small>
						<?= $operation['vis_drive_size']?>KiB
					</div>
					<div class="drive-item-date">
						<small>Creation date</small>
						<?= $operation['vis_drive_date']?>
					</div>
				</div>			
	
			</div>
			
		</div>
	</div>
</div>
</div>
<div class="modal-backdrop fade in"></div>

