Changeset 9427


Ignore:
Timestamp:
Mar 2, 2009, 10:05:52 AM (16 years ago)
Author:
Andrey Prikaznov
Message:
 
Location:
trunk/modules/boonex/shared_photo
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/modules/boonex/shared_photo/classes/BxShPhotoUploaderN.php

    r9426 r9427  
    1111    var $sWorkingFile; 
    1212    var $sPredefCategory; 
     13    var $sSendFileInfoFormCaption; 
    1314 
    1415    // constructor 
     
    2223        $this->sWorkingFile = $_SERVER['PHP_SELF']; 
    2324        $this->sPredefCategory = ''; 
     25        $this->sSendFileInfoFormCaption = ''; 
    2426    } 
    2527 
     
    204206            ); 
    205207        } 
    206          
     208 
     209        $sCaptionVal = ($this->sSendFileInfoFormCaption != '') ? $this->sSendFileInfoFormCaption : _t('_Info'); 
    207210        $aForm = array( 
    208211            'form_attrs' => array( 
     
    215218                'header2' => array( 
    216219                    'type' => 'block_header', 
    217                     'caption' => _t('_Info'), 
     220                    'caption' => $sCaptionVal, 
    218221                ), 
    219222                array( 
    220223                    'type' => 'custom', 
    221224                    'content' => $sProtoEl, 
    222                     'caption' => _t('_Image'), 
     225                    'caption' => _t('_bx_sh_Preview'), 
    223226                ), 
    224227                'title' => array( 
     
    477480                $iImgHeight = (int)$aSize[1]; 
    478481                $sDimension = $iImgWidth.'x'.$iImgHeight; 
     482                $sFileSize = sprintf("%u", filesize($sTempFileName) / 1024); 
    479483 
    480484                if ($iChangingPhotoID==0) { 
     
    497501                    return false; 
    498502                } 
     503 
     504                $this->sSendFileInfoFormCaption = $iLastID . $sExtension . " ({$sDimension}) ({$sFileSize}kb)"; 
    499505 
    500506                $sFile = $sMediaDir . $iLastID . $sExtension; 
  • TabularUnified trunk/modules/boonex/shared_photo/install/langs/en.php

    r9416 r9427  
    6565    '_bx_sh_Browse' => 'Browse', 
    6666    '_bx_sh_I_have_the_right_to_distribute_these_files' => 'I have the right to distribute these files', 
     67    '_bx_sh_Preview' => 'Preview', 
    6768); 
    6869 
Note: See TracChangeset for help on using the changeset viewer.
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.
Fork me on GitHub