Exemple #1
0
    echo CHtml::hiddenField("Import", "true");
    ?>
		<fieldset>
			<legend><?php 
    echo Yii::t('core', 'importFile');
    ?>
</legend>
			<?php 
    echo CHtml::fileField('file', '', array());
    ?>
&nbsp;
			(<?php 
    echo Yii::t('core', 'maximum');
    ?>
: <?php 
    echo ConfigUtil::getMaxUploadSize(true);
    ?>
)
			<br />
			<br />
			<?php 
    //echo Yii::t('core', 'characterSet', array(1));
    ?>
<br />
			<?php 
    //echo CHtml::activeDropDownList($model, 'fromCharacterSet', CHtml::listData($model->characterSets, 'name', 'name'));
    ?>
			<b><?php 
    echo Yii::t('core', 'notice');
    ?>
</b><br />
Exemple #2
0
 public function getMaxFileSize()
 {
     return ConfigUtil::getMaxUploadSize(true);
 }