Ejemplo n.º 1
0
                {%=file.err%}
            </div>
        </div>
    </div>
    {% } else if(file.err_limit) {  %}
        <div class="img_item img_item_loaded err fll">
            <div class="err_msg">
                <div class='in'>
                    {%=file.err%}
                </div>
            </div>
        </div>
    {%  } else { %}
    {% if(parseInt(file.id_main)==parseInt(file.id)){
        var src = file.thumbUrl_300;
        $('.upload-area .main-image img').attr('src', src);
    } %}
        <div class="img_item img_item_loaded b-r-all-3 fll {%= (parseInt(file.id_main)==parseInt(file.id))?'sel':''%} "  data-img="{%=file.id%}"  >
            <div class="set-fav icon-check trans" title="<?php 
echo CLib::param('DO_MAIN');
?>
"></div>
            <div class="del icon-cancel1 trans" title="<?php 
echo CLib::param('DELETE');
?>
"></div>
            <img src='{%=file.thumbUrl%}' class='b-r-all-3' data-prev100='{%=file.thumbUrl_100%}' data-prev300='{%=file.thumbUrl_300%}' >
        </div>
    {% } %}
{% }  %}
</script>
Ejemplo n.º 2
0
                            <div class="files clr-a"></div>
                        </div>
                        <div class="clr"></div>
                        <div class="modalfooter clr-a b-r-bottom-5">
                            <div class="file-explorer fll btn small def_btn2 b-r-all-3 fll" title="">
                                <div><?php 
echo CLib::param('LOAD_IMAGE');
?>
</div>
                                <input type="file" name="<?php 
echo $this->context->params['fileKey'];
?>
" accept="image/*" >
                            </div>
                            <div class="btn def_btn no-border b-r-all-3 flr confirm " ><?php 
echo CLib::param('OK');
?>
</div>
                        </div>

                    </div>
                <?php 
ActiveForm::end();
?>
            </div>

        </div><!-- /.body -->
        <div class="clr"></div>
    </div>
</div><!-- /.modal -->