123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218 |
- <!DOCTYPE html>
- <html>
- <!-- Mirrored from www.zi-han.net/theme/hplus/login.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 20 Jan 2016 14:18:23 GMT -->
- <head>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>引擎力-培养走向世界的企业</title>
- <meta name="keywords" content="引擎力后台">
- <meta name="description"
- content="引擎力定位于海外数字营销专家,用数据说话,引领外贸企业迈向全球化!拥有多项核心自主知识产权,一直在不断的发展和拓展我们的网络营销范围。拥有120余人海外推广团队,80%以上执创人员,5年以上专业外贸推广经验,为您的外贸网站量身定制打造高质量的流量及询盘。">
- <meta name="robots" content="noodp"/>
- <link rel="shortcut icon" href="{{asset('favicon.ico')}}">
- <link href="{{asset('css/bootstrap.min14ed.css?v=3.3.6')}}" rel="stylesheet">
- <link href="{{asset('css/font-awesome.min93e3.css?v=4.4.0')}}" rel="stylesheet">
- <link href="{{asset('oss/style.css')}}" rel="stylesheet">
- <link href="{{asset('css/admin/flow/style.css')}}" rel="stylesheet" />
- <link href="{{asset('css/animate.min.css')}}" rel="stylesheet">
- </head>
- <style>
- .btn:hover{
- color: #ffffff;
- }
- </style>
- <body>
- <div class="sep-yql-header">
- <a href="#" class="sep-logo">
- <img src="/img/y-top-logo.png" alt=""/>
- </a>
- <div class="logo-texts" style="font-size: 30px">
- {{$cn_title}}<br> 【资料上传】(ctrl+s保存)
- </div>
- </div>
- <div class="sep-yql-body">
- <div class="sep-xmzl-boxs fix">
- <div class="sep-container fix">
- <form action="{{url('/admin/flow/clientDataUpload/'.$siteId.'/1')}}" method="post" id="form1">
- <input type="hidden" value="{{$token}}" name="token">
- <div class="sep-xwcgss-ul-boxs fix">
- <div class="xwcgss-lists active ">
- <div class="xwcgss-table-boxs fix">
- <table border="" cellspacing="" cellpadding="">
- <tr>
- <td style="width: 5%;text-align: center">页面</td>
- <td style="width: 5%;text-align: center">样式参考</td>
- <td style="width: 20%;text-align: center">替换资料要求</td>
- <td style="width: 10%;text-align: center">参考(内部)</td>
- <td style="width: 10%;text-align: center">提交资料deadline</td>
- <td style="width: 10%;text-align: center">操作</td>
- <td style="width: 10%;text-align: center">文件下载(客户上传)</td>
- </tr>
- @foreach($list as $item)
- <tr>
- <td style="text-align: center">{{$item->page??''}}
- <input type="hidden" name="siteId" value="{{$siteId}}">
- </td>
- <td>{{$item->style_path??''}}</td>
- <td>{{$item->data_memo??''}}</td>
- <td>
- <ul>
- @if(isset($item->list))
- @foreach(\GuzzleHttp\json_decode($item->list,true) as $value)
- <li>
- <a href="https://yqlguestdata.oss-cn-hangzhou.aliyuncs.com/{{$value}}"
- download="https://yqlguestdata.oss-cn-hangzhou.aliyuncs.com/{{$value}}">{{$value}}</a>
- </li>
- @endforeach
- @endif
- </ul>
- </td>
- <td style="text-align: center">{{$item->deadline??''}}</td>
- <td>
- <form name=theform>
- <input type="radio" name="myradio" value="local_name" checked=true/>
- 上传文件名字保持本地文件名字<br>
- <input type="radio" name="myradio" value="random_name"/> 上传文件名字是随机文件名
- <br/>
- 上传到指定目录:<input style="width: 200px;border:none" type="text"
- id='dirname{{$item->id}}'
- value="{{$cn_title}}"
- placeholder="如果不填,默认是上传到根目录"
- size=50>
- </form>
- <h4>您所选择的文件列表:</h4>
- <div id="ossfile{{$item->id}}">你的浏览器不支持flash,Silverlight或者HTML5!</div>
- <br/>
- <div id="container{{$item->id}}">
- <a id="selectfiles{{$item->id}}" href="javascript:void(0);" class='btn'>选择文件</a>
- <a id="postfiles{{$item->id}}" href="javascript:void(0);" class='btn'>开始上传</a>
- </div>
- <pre id="console{{$item->id}}" style="display: none"></pre>
- <p> </p>
- </td>
- <td>
- <ul>
- @if(isset($item->url))
- @foreach(\GuzzleHttp\json_decode($item->url,true) as $value)
- <li>
- <a href="https://yqlguestdata.oss-cn-hangzhou.aliyuncs.com/{{$value}}"
- download="https://yqlguestdata.oss-cn-hangzhou.aliyuncs.com/{{$value}}">{{$value}}</a>
- </li>
- @endforeach
- @endif
- </ul>
- </td>
- </tr>
- @endforeach
- </table>
- </div>
- </div>
- </div>
- </form>
- </div>
- </div>
- </div>
- <div class="sep-yql-footer">
- <div class="sep-container fix">
- <div class="footer-texts">
- 浙江引擎力营销策划有限公司
- </div>
- </div>
- </div>
- <script src="{{asset('js/jquery.min.js?v=2.1.4')}}"></script>
- <script type="text/javascript" src="{{asset('oss/lib/crypto1/crypto/crypto.js')}}"></script>
- <script type="text/javascript" src="{{asset('oss/lib/crypto1/hmac/hmac.js')}}"></script>
- <script type="text/javascript" src="{{asset('oss/lib/crypto1/sha1/sha1.js')}}"></script>
- <script type="text/javascript" src="{{asset('oss/lib/base64.js')}}"></script>
- <script type="text/javascript" src="{{asset('oss/lib/plupload-2.1.2/js/plupload.full.min.js')}}"></script>
- <script type="text/javascript" src="{{asset('oss/upload.js?v=1')}}"></script>
- <script src="{{asset('js/plugins/layer-v3.1.1/layer/layer.js')}}"></script>
- <!-- Row Highlight Javascript -->
- <script type="text/javascript">
- @foreach($list as $item)
- var uploader{{$item->id}} = new plupload.Uploader({
- //multi_selection: false,
- runtimes: 'html5,flash,silverlight,html4',
- browse_button: 'selectfiles{{$item->id}}',
- container: document.getElementById('container{{$item->id}}'),
- flash_swf_url: 'lib/plupload-2.1.2/js/Moxie.swf',
- silverlight_xap_url: 'lib/plupload-2.1.2/js/Moxie.xap',
- url: 'http://oss.aliyuncs.com',
- init: {
- PostInit: function () {
- document.getElementById('ossfile{{$item->id}}').innerHTML = '';
- document.getElementById('postfiles{{$item->id}}').onclick = function () {
- set_upload_param(uploader{{$item->id}}, '', false);
- return false;
- };
- },
- FilesAdded: function (up, files) {
- plupload.each(files, function (file) {
- document.getElementById('ossfile{{$item->id}}').innerHTML += '<div id="' + file.id + '">' + file.name + ' (' + plupload.formatSize(file.size) + ')<b></b>'
- + '<div class="progress"><div class="progress-bar" style="width: 0%"></div></div>'
- + '</div>';
- });
- },
- BeforeUpload: function (up, file) {
- check_object_radio();
- get_dirname({{$item->id}});
- set_upload_param(up, file.name, true);
- },
- UploadProgress: function (up, file) {
- var d = document.getElementById(file.id);
- d.getElementsByTagName('b')[0].innerHTML = '<span>' + file.percent + "%</span>";
- var prog = d.getElementsByTagName('div')[0];
- var progBar = prog.getElementsByTagName('div')[0];
- progBar.style.width = 2 * file.percent + 'px';
- progBar.setAttribute('aria-valuenow', file.percent);
- },
- FileUploaded: function (up, file, info) {
- if (info.status == 200) {
- $("#container{{$item->id}}").append('<input type="hidden" name="{{$item->id}}:upload[]" value="' + get_uploaded_object_name(file.name) + '"/>');
- document.getElementById(file.id).getElementsByTagName('b')[0].innerHTML = '上传成功:' + get_uploaded_object_name(file.name);
- } else {
- document.getElementById(file.id).getElementsByTagName('b')[0].innerHTML = info.response;
- }
- },
- Error: function (up, err) {
- document.getElementById('console{{$item->id}}').appendChild(document.createTextNode("\nError xml:" + err.response));
- }
- }
- });
- uploader{{$item->id}}.init();
- @endforeach
- window.addEventListener("keydown", function (e) {
- //可以判断是不是mac,如果是mac,ctrl变为花键
- //event.preventDefault() 方法阻止元素发生默认的行为。
- if (e.keyCode === 83 && (navigator.platform.match("Mac") ? e.metaKey : e.ctrlKey)) {
- e.preventDefault();
- // Process event...
- $('#form1').submit();
- //window.location.href='/admin/flow/clientDataUpload/360/1';
- }
- }, false);
- </script>
- </body>
- </html>
|