<?php view('layout/header')->send();?>

<link rel="stylesheet" type="text/css" href="<?= asset('media/webuploader.css'); ?>" />
<link rel="stylesheet" type="text/css" href="<?= asset('media/style.css'); ?>" />
<script type="text/javascript">
    var imageGroups = [];
</script>
<!--container start-->

<div class="cv-fixed-global">
    <div class="easyui-tabs cv-tabs-media" border="false" style="width:100%;height: 100%;">
        <div title="本地上传" style="padding: 10px;">

            <div id="wrapper">
                <div id="container">
                    <div id="uploader">
                        <div class="queueList">
                            <div id="dndArea" class="placeholder">
                                <div id="filePicker"></div>
                            </div>
                        </div>
                        <div class="statusBar" style="display:none;">
                            <div class="progress">
                                <span class="text">0%</span>
                                <span class="percentage"></span>
                            </div><div class="info"></div>
                            <div class="btns">
                                <div id="filePicker2"></div><div class="uploadBtn">开始上传</div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <?php if ($show_bottom_bar):?>
            <div class="cv-submit">
                <a href="javascript:void(0)" class="easyui-linkbutton c8" onclick="<?= $yes; ?>" style="width:80px">确定</a>
                <a href="javascript:void(0)" class="easyui-linkbutton" onclick="<?= $no; ?>" style="width:80px">取消</a>
            </div>
            <?php endif;?>
        </div>

<!--        <div title="资源库">-->
<!--            资源库-->
<!--        </div>-->
    </div>
</div>

<!--container end-->

<?php view('layout/footer')->send();?>

<!--js start-->
<script src="<?= asset('media/webuploader.min.js'); ?>" type="text/javascript"></script>
<script src="<?= asset('media/extension.js'); ?>" type="text/javascript"></script>
<script type="text/javascript">
    var CONFIG = {
        server: '<?= url('dash/media/upload'); ?>',
        swf: '<?= asset('media/Uploader.swf'); ?>',
        accept: <?= $accept; ?>,
        fileNumLimit: <?= $file_num_limit; ?>,
        fileSizeLimit: <?= $all_size_limit; ?>,
        fileSingleSizeLimit: <?= $single_size_limit; ?>
    };
</script>
<script src="<?= asset('media/upload.js'); ?>" type="text/javascript"></script>
<script type="text/javascript">
    uploader.on('uploadSuccess', function (file, response) {
        <?php foreach ($callbacks as $callback):?>
        <?= $callback; ?>
        <?php endforeach;?>
    })
</script>
<!--js end-->
