<? global $vis_language;

//echo "OPERATION IN MYGOOGLE DRIVE: ";echo "<pre>";print_r($operation);echo "</pre>";
//$creation_date=$drive_info[0]['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 id="drive-modal-details" class="wrapper">      
				<div class="drive-info">
					<div class="drive-item">
						      <?  if($operation['vis_mimetype']=='text/plain') { ?>
      <i class="vh vh-file-text text-muted"></i>
      <?}
      else if($operation['vis_mimetype']=='image/jpeg') { ?>
        <img src="<?=$operation['vis_thumblink'];?>" alt="techimage" />
      <?}
      else if($operation['vis_mimetype']=='application/vnd.ms-excel') { ?>
       <i class="vh vh-file-spreadsheet vh-file-spreadsheet-color"></i>
      <?}
      else if($operation['vis_mimetype']=='image/png') { ?>
        <img src="<?=$operation['vis_thumblink'];?>" alt="techimage" />
       <?} 
       else if($operation['vis_mimetype']=='application/pdf') { ?>
      <i class="vh vh-file-pdf vh-file-pdf-color"></i>
       <?}
       else if($operation['vis_mimetype']=='application/vnd.openxmlformats-officedocument.wordprocessingml.document') { ?>
      <i class="vh vh-file-word vh-file-word-color"></i>
        <?}
        else if($operation['vis_mimetype']=='text/csv') { ?>
      <i class="vh vh-file-spreadsheet vh-file-spreadsheet-color"></i>
        <?} 
        else if($operation['vis_mimetype']=='message/rfc822') { ?>
      <i class="vh vh-file-text text-muted"></i>
        <?}
         else if(($operation['vis_mimetype']=='application/zip') || ($operation['vis_mimetype']=='application/octet-stream')) { ?>
      <i class="vh vh-file-zip vh-file-zip-color"></i>
        <?}
        else if($operation['vis_mimetype']=='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>
						<span class="text-sm"><a href=<? echo $operation['vis_domain'] ?>><?= $operation['vis_title']?> </a></span>
					</div>
					<div class="drive-item-owner">
						<small>Owner</small>
						<span class="text-sm"><?=$operation['vis_owner']?></span>
					</div>
					<div class="drive-item-size">
						<small>Size</small>
						<span class="text-sm"><?= $operation['vis_size']." Bytes";?> </span>
					</div>
					<div class="drive-item-date">
						<small>Creation date</small>
						<span class="text-sm"><?= $operation['vis_date'];?></span>
					</div>
				</div>			
	
			</div>
			
		</div>
	</div>
</div>
</div>
<div class="modal-backdrop fade in"></div>

