123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157 |
- {layout name="layout2" /}
-
- <style>
- .layui-form-label { width: 160px; }
- .layui-input-block { margin-left: 190px; }
- .engine_method { line-height: 36px; }
- </style>
-
- <div class="layui-form" style="padding: 20px 30px 0 0;">
- <input type="hidden" name="engine" value="{$engine}">
- {if $engine == 'local'}
- <div class="layui-form-item" style=" margin-bottom: 0; ">
- <label class="layui-form-label">存储方式:</label>
- <div class="layui-input-block">
- <span class="engine_method">本地存储</span>
- </div>
- </div>
- <div class="layui-form-item">
- <label class="layui-form-label"></label>
- <div class="layui-input-block">
- <div class="layui-form-mid layui-word-aux">本地存储方式不需要配置其他参数</div>
- </div>
- </div>
- {elseif $engine == 'qiniu'}
- <div class="layui-form-item">
- <label class="layui-form-label">存储方式:</label>
- <div class="layui-input-block">
- <span class="engine_method">七牛云存储</span>
- </div>
- </div>
- <div class="layui-form-item">
- <label class="layui-form-label">存储空间(Bucket):</label>
- <div class="layui-input-block">
- <input type="text" name="qiniu_bucket" value="{$storage.qiniu.bucket}" placeholder="存储空间名称" autocomplete="off" class="layui-input">
- </div>
- </div>
- <div class="layui-form-item">
- <label class="layui-form-label">ACCESS_KEY(AK):</label>
- <div class="layui-input-block">
- <input type="text" name="qiniu_ak" value="{$storage.qiniu.access_key}" autocomplete="off" class="layui-input">
- </div>
- </div>
- <div class="layui-form-item">
- <label class="layui-form-label">SECRET_KEY(SK):</label>
- <div class="layui-input-block">
- <input type="text" name="qiniu_sk" value="{$storage.qiniu.secret_key}" autocomplete="off" class="layui-input">
- </div>
- </div>
- <div class="layui-form-item" style="margin-bottom: 0;">
- <label class="layui-form-label">空间域名(Domain):</label>
- <div class="layui-input-block">
- <input type="text" name="qiniu_domain" value="{$storage.qiniu.domain}" placeholder="http://" autocomplete="off" class="layui-input">
- </div>
- </div>
- <div class="layui-form-item">
- <label class="layui-form-label"></label>
- <div class="layui-input-block">
- <div class="layui-form-mid layui-word-aux">请补全http://或https://,例如https://static.cloud.com</div>
- </div>
- </div>
-
- {elseif $engine == 'aliyun'}
- <div class="layui-form-item">
- <label class="layui-form-label">存储方式:</label>
- <div class="layui-input-block">
- <span class="engine_method">阿里云存储</span>
- </div>
- </div>
- <div class="layui-form-item">
- <label class="layui-form-label">存储空间(Bucket):</label>
- <div class="layui-input-block">
- <input type="text" name="aliyun_bucket" value="{$storage.aliyun.bucket}" placeholder="存储空间名称" autocomplete="off" class="layui-input">
- </div>
- </div>
- <div class="layui-form-item">
- <label class="layui-form-label">AccessKeyId:</label>
- <div class="layui-input-block">
- <input type="text" name="aliyun_ak" value="{$storage.aliyun.access_key_id}" autocomplete="off" class="layui-input">
- </div>
- </div>
- <div class="layui-form-item">
- <label class="layui-form-label">AccessKeySecret:</label>
- <div class="layui-input-block">
- <input type="text" name="aliyun_sk" value="{$storage.aliyun.access_key_secret}" autocomplete="off" class="layui-input">
- </div>
- </div>
- <div class="layui-form-item" style="margin-bottom: 0;">
- <label class="layui-form-label">空间域名(Domain):</label>
- <div class="layui-input-block">
- <input type="text" name="aliyun_domain" value="{$storage.aliyun.domain}" placeholder="http://" autocomplete="off" class="layui-input">
- </div>
- </div>
- <div class="layui-form-item">
- <label class="layui-form-label"></label>
- <div class="layui-input-block">
- <div class="layui-form-mid layui-word-aux">请补全http://或https://,例如https://static.cloud.com</div>
- </div>
- </div>
-
- {elseif $engine == 'qcloud'}
- <div class="layui-form-item">
- <label class="layui-form-label">存储方式:</label>
- <div class="layui-input-block">
- <span class="engine_method">腾讯云存储</span>
- </div>
- </div>
- <div class="layui-form-item">
- <label class="layui-form-label">存储空间(Bucket):</label>
- <div class="layui-input-block">
- <input type="text" name="qcloud_bucket" value="{$storage.qcloud.bucket}" placeholder="存储空间名称" autocomplete="off" class="layui-input">
- </div>
- </div>
- <div class="layui-form-item">
- <label class="layui-form-label">所属地区(Region):</label>
- <div class="layui-input-block">
- <input type="text" name="qcloud_region" value="{$storage.qcloud.region}" autocomplete="off" class="layui-input">
- </div>
- </div>
- <div class="layui-form-item">
- <label class="layui-form-label">SecretId:</label>
- <div class="layui-input-block">
- <input type="text" name="qcloud_ak" value="{$storage.qcloud.secret_id}" autocomplete="off" class="layui-input">
- </div>
- </div>
- <div class="layui-form-item">
- <label class="layui-form-label">SecretKey:</label>
- <div class="layui-input-block">
- <input type="text" name="qcloud_sk" value="{$storage.qcloud.secret_key}" autocomplete="off" class="layui-input">
- </div>
- </div>
- <div class="layui-form-item" style="margin-bottom: 0;">
- <label class="layui-form-label">空间域名(Domain):</label>
- <div class="layui-input-block">
- <input type="text" name="qcloud_domain" value="{$storage.qcloud.domain}" placeholder="http://" autocomplete="off" class="layui-input">
- </div>
- </div>
- <div class="layui-form-item">
- <label class="layui-form-label"></label>
- <div class="layui-input-block">
- <div class="layui-form-mid layui-word-aux">请补全http://或https://,例如https://static.cloud.com</div>
- </div>
- </div>
- {/if}
-
- <div class="layui-form-item" >
- <div class="layui-form-item layui-hide">
- <input type="button" lay-submit lay-filter="addSubmit" id="addSubmit" value="确认">
- </div>
- </div>
- </div>
-
- <script>
- layui.use(['form','like'], function(){
- var $ = layui.$
- ,form = layui.form;
- })
- </script>
|