Exemple #1
0
?>
"  style="width: 150px; height: 150px;">
                </div>
              </div>
            </div>
            <div class="col-md-6">
                <div class="fileupload fileupload-new">
                    <div class="img-preview"></div>
                </div>
            </div>
        </div>
        <div class="clearfix"></div>
        <div class="form-group">
            <div class="col-md-12">
                <?php 
echo \shiyang\webuploader\Cropper::widget();
?>
            </div>
            <div class="col-md-12">
                <a id="set-avatar" class="btn btn-success btn-lg" href="<?php 
echo Url::toRoute(['/user/setting/avatar']);
?>
" onclick="return false;">
                    <?php 
echo Yii::t('app', 'System avatar');
?>
                </a>
                <div id="avatar-container"></div><!-- 系统头像容器 -->
            </div>
        </div>
    </div>
Exemple #2
0
?>
    </div>
    <div class="col-md-6">
          <div class="form-group">
            <label class="control-label col-md-12"><?php 
echo Yii::t('app', 'Forum Icon');
?>
</label>
            <div class="col-md-6">
              <div class="fileupload fileupload-new">
                <div class="fileupload-new img-preview" style="width: 150px; height: 150px;">
                  <img src="<?php 
echo Yii::getAlias('@forum_icon') . $model->forum_icon;
?>
"  style="width: 150px; height: 150px;">
                </div>
              </div>
            </div>
            <div class="col-md-6">
                <div class="fileupload fileupload-new">
                    <div class="img-preview"></div>
                </div>
            </div>
          </div>
          <div class="clearfix"></div>
        <?php 
echo Cropper::widget();
?>
    </div>
</div>