Changeset 814
- Timestamp:
- Mar 20, 2015 3:44:03 PM (10 years ago)
- Location:
- pro-violet-viettel/www/deploy/api/platform/modules/space
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pro-violet-viettel/www/deploy/api/platform/modules/space/actions/actions.class.php
r812 r814 218 218 $c->add(TblspacefilePeer::FILE_TYPE, explode(';', $filter), Criteria::IN); 219 219 $c->addAscendingOrderByColumn(TblspacefilePeer::FILE_NAME); 220 $this->userId= $userId; 220 221 $this->tblfiles = TblspacefilePeer::doSelect($c); 221 222 $this->isGetAll = $isGetAll; … … 417 418 } 418 419 419 p ublicfunction createPreview($fileurl, $userId, $fileid) {420 private function createPreview($fileurl, $userId, $fileid) { 420 421 421 422 -
pro-violet-viettel/www/deploy/api/platform/modules/space/templates/dirSuccess.php
r784 r814 24 24 $fileName = $tblres->getFullFilename(); 25 25 $fileName= str_replace('/srv/www/violet/web', 'http://sbgapi.violet.vn', $fileName); 26 $thumbnail=""; 27 if (file_exists("previews/$userId/".$tblfile->getFileId()."/0.png")) 28 { 29 $thumbnail="http://sbgapi.violet.vn/previews/$userId/".$tblfile->getFileId()."/0.png"; 30 } 26 31 ?> 27 <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>32 <file thumbnail="<?php echo $thumbnail;?>" fileurl="<?php echo $fileName;?>" id="<?php echo $tblfile->getFileId() ?>" parentid="<?php echo $tblfile->getFileCategory() ?>" filetype="<?php echo $tblfile->getFileType() ?>"><?php echo $tblfile->getFileName() ?></file> 28 33 <?php endforeach; ?> 29 34 </filelist>
Note: See TracChangeset
for help on using the changeset viewer.