

<table width="100%">
 <tr>
     <th>Check</th>
     <th>Name</th>
     <th>Kind</th>
     <th>Modified</th>
 </tr>
<?php foreach($data as $val):?>
           <tr class="selectableColor" data-id=<?php  echo $val['Cloud']['id']; ?>>
            <!--<td class="folderOpen"  style="cursor: pointer;" ><?php /*echo $this->Html->link($this->Html->image('folder.png',array('width'=>20,'alt'=> $val['Cloud']['id'],'style'=>'padding-right:10px;')).$val['Cloud']['name'],array('controller'=> 'clouds','action'=>'folderlist',$val['Cloud']['id']),array('escape'=>false));*/?></td>-->
           <?php if($val['Cloud']['createtype'] == 'directory'):?>
              <td class="folderOpen"  style="cursor: pointer;" ><?php echo $this->Html->link($this->Html->image('folder_open.png',array('width'=>20,'alt'=> $val['Cloud']['id'],'style'=>'padding-right:10px;')).$val['Cloud']['name'],array('controller'=> 'clouds','action'=>'folderlist',$val['Cloud']['id']),array('escape'=>false));?></td>
              <?php else: ?>
              <td class="folderOpen"><?php echo $this->Html->image('file.png',array('width'=>20,'alt'=> $val['Cloud']['id'],'style'=>'padding-right:10px;')).$val['Cloud']['name'];?></td>
              <?php endif; ?>
            <td><?php echo $val['Cloud']['createtype']; ?></td>
            <td><?php echo $val['Cloud']['modified']; ?></td>
          </tr>
<?php endforeach; ?>


 </table>