Changeset 46


Ignore:
Timestamp:
Aug 8, 2014 5:39:50 PM (11 years ago)
Author:
dungnv
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pro-bachkim-filespace/sourcecode/api.violet.vn/www/apps/platform/modules/space/templates/dirSuccess.php

    r41 r46  
    22  <!-- folders in current folder -->
    33  <folderlist>
    4   <?php foreach ($tblcategories as $tblcategory): ?>
    5     <folder id="<?php echo $tblcategory->getCatId() ?>" parentid="<?php echo $tblcategory->getCatParent() ?>"><?php echo $tblcategory->getCatName() ?></folder>
    6   <?php endforeach; ?>
     4  <?php if (count($tblcategories) > 0):?>
     5          <?php foreach ($tblcategories as $tblcategory): ?>
     6            <folder id="<?php echo $tblcategory->getCatId() ?>" parentid="<?php echo $tblcategory->getCatParent() ?>"><?php echo $tblcategory->getCatName() ?></folder>
     7          <?php endforeach; ?>
     8  <?php else:?>
     9                <folder id="0" parentid="0"></folder>
     10  <?php endif;?>
    711  </folderlist>
    812  <!-- files in current folder -->
Note: See TracChangeset for help on using the changeset viewer.