<? global $vis_language; // echo " Required Array IN Template : ";echo "<pre>";print_r($dropbox_list);echo "</pre>";echo "<br>"; ?>

   <? $status=array($img => ' <i class="vh vh-module"></i>');
   $priority=array(1 => $vis_language['TXTLOW'],2 => $vis_language['TXTMEDIUM'],3 => $vis_language['TXTHIGH']); 
  
  
 ?>


 

    <section class="padder">
    <section class="m-t-sm">   
		
		<div id="vh-drive">
			  <div id="drive-view" class="drive-object grid-view">
		 
                <div class="drive-head animated fadeInUp">
                        <div class="drive-items">
                                Item
                        </div>
                        <div class="drive-items">
                              <small>Name</small>
                             <?//= $share_link['links'][$i]['name'];?>
                        </div>
                        <div class="drive-items">
                               <small>Owner</small>
                               <?//=$client_info['display_name'];?>
                        </div>
                        <div class="drive-items">
                           <small>Size</small>
                           <?//= $share_link['links'][$i]['size'];?>KiB
                        </div>
                        <div class="drive-items">
                                <small>Creation date</small>
                                        <?//= $date?>
                        </div>
		</div> 
            	<?
				
				 
			   
				if($folder_info123['total_count']!=-1)
{
	for($i=0; $i<count($folder_info123['entries'][$i]); $i++){ $flag=0;
   
 //$creation_date=$share_link['links'][$i]['client_modified']+ VIS_TIMEZONE;
 $date=date(VIS_DATE_FORMAT,$creation_date);?>
               <a data-modal-arguments="vis_module=selfhelp&vis_operation=box_details1&vis_drive_name=<? echo $folder_info123['entries'][$i]['name']; ?>&vis_drive_size=<? echo $folder_info123['entries'][$i]['name']; ?>&vis_drive_type=<? echo $drive_info[$i]['file_type']; ?>&vis_drive_content=<? echo $drive_info[$i]['content']; ?>&vis_drive_owner=<? echo urlencode($client_info['display_name']); ?>&vis_drive_date=<? echo urlencode($share_link['links'][$i]['client_modified']);?>" data-toggle="ajaxModal" href="javascript:void(0);">
                        <div class="drive-info ">
                                <div class="drive-item">
								 
                                        <?  
										 
										
										if($folder_info123['entries'][$i]['name']=='text/plain') { ?>
      <i class="vh vh-file-text text-muted"></i>
      <?}
      else if($folder_info123['entries'][$i]['name']=='image/jpeg') { ?>
	   <img src="<?=$share_link['links'][$i]['path_lower'];?>" alt="techimage" />
         <?}
      else if($folder_info123['entries'][$i]['name']=='image/jpg') { ?>
	   <img src="<?=$share_link['links'][$i]['path_lower'];?>" alt="techimage" />
         
      <?}
      else if($folder_info1['entries'][$i]['name']=='application/vnd.ms-excel') { ?>
       <i class="vh vh-file-spreadsheet vh-file-spreadsheet-color"></i>
      <?}
      else if($folder_info123[$i]['mime_type']=='image/png') { ?>
        <img src="<?=$share_link['links'][$i]['path_lower'];?>" alt="techimage" />
       <?} 
       else if($folder_info1['entries'][$i]['name']=='application/pdf') { ?>
      <i class="vh vh-file-pdf vh-file-pdf-color"></i>
       <?}
       else if($folder_info123['entries'][$i]['name']=='application/vnd.openxmlformats-officedocument.wordprocessingml.document') { ?>
      <i class="vh vh-file-word vh-file-word-color"></i>
        <?}
        else if($folder_info123['entries'][$i]['name']=='text/csv') { ?>
      <i class="vh vh-file-spreadsheet vh-file-spreadsheet-color"></i>
        <?} 
        else if($folder_info123['entries'][$i]['name']=='message/rfc822') { ?>
      <i class="vh vh-file-text text-muted"></i>
        <?}
         else if(($folder_info123['entries'][$i]['name']=='application/zip') || ($folder_info123['entries'][$i]['name']=='application/octet-stream')) { ?>
      <i class="vh vh-file-zip vh-file-zip-color"></i>
        <?}
        else if($folder_info123['entries'][$i]['name']=='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>
                                       <?= $folder_info123['entries'][$i]['name'];?>
                                </div>
                                <div class="drive-item-owner">
                                        <small>Owner</small>
                                        <?=$client_info['display_name'];?>
                                </div>
                                <div class="drive-item-size">
                                        <small>Size</small>
                                       <?= $share_link['links'][$i]['size'];?>KiB
                                </div>
                                <div class="drive-item-date">
                                        <small>Creation date</small>
                                        <?= $share_link['links'][$i]['client_modified']?>
                                </div> 
                        </div>
                </a>
                
             
<?}
if($drive_details[0]['count']>$view_info['page_count']){?>	
			<div id="load_more_activities" onclick="javascript:mydrive_list_load(<?= $page+1;?>);">
			<div style="text-align: center;">
				<span class="link vis-pointer"><?= $vis_language['TXTLOADMORE'];?></span>
			</div>
			</div><? 
	} 
	

		}?>	
		</div>
</div>	

  </section>
</section>
<script>
 function mydrive_list_load(page){
	$.post("index.php?vis_module=selfhelp&vis_operation=mydrive_list_load&vis_tmpst="+new Date().getTime(),{'vis_page': page}, function(data) {
		$("#load_more_activities").last().remove();
		$("#drive-view").last().append(data);
		//$("#load_more_activities").before(data);
	});
}
</script>




