Ignore:
Timestamp:
Jan 13, 2015 1:51:31 PM (10 years ago)
Author:
quyenla
Message:

thumbnail

Location:
pro-violet-viettel/sourcecode/api.violet.vn/www/apps/platform/modules/space
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pro-violet-viettel/sourcecode/api.violet.vn/www/apps/platform/modules/space/actions/actions.class.php

    r686 r692  
    157157  }
    158158
    159   public function executeDir() {
    160       echo "123";die();
    161         $this->catId = $this->getRequestParameter('id', -1);
     159  public function executeDir() {
     160    $this->catId = $this->getRequestParameter('id', -1);
    162161    $userId = $this->getRequestParameter('userid');
    163162    $filter = $this->getRequestParameter('filter');
  • pro-violet-viettel/sourcecode/api.violet.vn/www/apps/platform/modules/space/templates/dirSuccess.php

    r686 r692  
    99  <filelist>
    1010  <?php foreach ($tblfiles as $tblfile): ?>
    11     <file fileurl="<?php echo $tblfile->getFileId()?>" id="<?php echo $tblfile->getFileId() ?>" parentid="<?php echo $tblfile->getFileCategory() ?>" filetype="<?php echo $tblfile->getFileType() ?>"><?php echo $tblfile->getFileName() ?></file>
     11      <?php
     12      $tblres = TblspacefilePeer::retrieveByPk($tblfile->getFileId())->getTblspaceresource();
     13      $fileName = $tblres->getFullFilename();
     14      $fileName=  str_replace("/home/www/web", "http://api.violet.vn", $fileName);
     15   
     16      ?>
     17    <file  fileurl="<?php echo $fileName?>" id="<?php echo $tblfile->getFileId() ?>" parentid="<?php echo $tblfile->getFileCategory() ?>" filetype="<?php echo $tblfile->getFileType() ?>"><?php echo $tblfile->getFileName() ?></file>
    1218  <?php endforeach; ?>
    1319  </filelist>
Note: See TracChangeset for help on using the changeset viewer.