-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
executable file
·144 lines (136 loc) · 6.27 KB
/
index.php
File metadata and controls
executable file
·144 lines (136 loc) · 6.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
<?php
//获取当前的域名:
$site_path = $_SERVER['SERVER_NAME'];
?>
<!DOCTYPE html>
<!--[if IE 8]>
<html xmlns="http://www.w3.org/1999/xhtml" class="ie8" dir="ltr" lang="en">
<![endif]-->
<!--[if !(IE 8) ]><!-->
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en">
<!--<![endif]-->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Excel数据转换</title>
<link rel='stylesheet' href='static/css/index.css' type='text/css' media='all' />
<script type="text/javascript">
addLoadEvent = function(func){if(typeof jQuery!="undefined")jQuery(document).ready(func);else if(typeof wpOnload!='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};
/* <![CDATA[ */
var pluploadL10n = {"queue_limit_exceeded":"您向队列中添加的文件过多。","file_exceeds_size_limit":"%s 超过了站点的最大上传限制。","zero_byte_file":"文件为空,请选择其它文件。","invalid_filetype":"不允许上传该类型的文件,请选择其它文件。","not_an_image":"该文件不是图像,请使用其它文件。","image_memory_exceeded":"达到内存限制,请使用小一些的文件。","image_dimensions_exceeded":"该文件超过了最大大小,请使用其它文件。","default_error":"上传时发生了错误。请稍后再试。","missing_upload_url":"配置有误。请联系您的服务器管理员。","upload_limit_exceeded":"您只能上传一个文件。","http_error":"HTTP 错误。","upload_failed":"上传失败。","big_upload_failed":"请尝试使用%1$s标准的浏览器上传工具%2$s来上传这个文件。","big_upload_queued":"%s 超出了您浏览器对高级多文件上传工具所做的大小限制。","io_error":"IO 错误。","security_error":"安全错误。","file_cancelled":"文件已取消。","upload_stopped":"上传停止。","dismiss":"不再显示","crunching":"上传完成,请选择相应的处理","deleted":"移动到回收站。","error_uploading":"“%s”上传失败。"};
/* ]]> */
</script>
<script type="text/javascript" src="static/js/jquery/jquery.js"></script>
<script type="text/javascript" src="static/js/plupload/plupload.full.js"></script>
<script type="text/javascript" src="static/js/plupload/handlers.dev.js"></script>
<script type="text/javascript" src="static/js/json2.js"></script>
</head>
<body class="no-js">
<script type="text/javascript">document.body.className = document.body.className.replace('no-js','js');</script>
<div id="wpwrap">
<div id="wpbody">
<div id="wpbody-content">
<div class="wrap">
<h2>Excel数据转换</h2>
<div id="media-upload-notice"></div>
<div id="media-upload-error"></div>
<script type="text/javascript">
var resize_height = 1024, resize_width = 1024,
wpUploaderInit = {
"runtimes":"html5,silverlight,flash,html4",
"browse_button":"plupload-browse-button",
"container":"plupload-upload-ui",
"drop_element":"drag-drop-area",
"file_data_name":"async-upload",
"multiple_queues":true,
"max_file_size":"52428800b",
"url":"async-upload.php",
"flash_swf_url":"static\/js\/plupload\/plupload.flash.swf",
"silverlight_xap_url":"static\/js\/plupload\/plupload.silverlight.xap",
"filters":[{"title":"hello","extensions":"xls,xlsx"}],
"multipart":true,"urlstream_upload":true,"multipart_params":{}};
</script>
<div id="plupload-upload-ui" class="hide-if-no-js">
<div id="drag-drop-area">
<div class="drag-drop-inside">
<p class="drag-drop-info">将文件拖到这里</p>
<p>或</p>
<p class="drag-drop-buttons">
<input id="plupload-browse-button" type="button" value="选择文件" class="button" />
</p>
</div>
</div>
<!--<p class="upload-flash-bypass"> 您正在使用高级多文件上传工具。不能正确上传?请尝试使用<a href="#">标准的浏览器上传工具</a> 。 </p>-->
</div>
<p class="after-file-upload">文件上传之后,请点击你需要的操作。</p>
<script type="text/javascript">
jQuery(function($){
var preloaded = $(".media-item.preloaded");
if ( preloaded.length > 0 ) {
preloaded.each(function(){prepareMediaItem({id:this.id.replace(/[^0-9]/g, '')},'');});
}
updateMediaForm();
post_id = 0;
shortform = 1;
});
</script>
<input type="hidden" name="post_id" id="post_id" value="0" />
<div id="media-items" class="hide-if-no-js"></div>
<!--<button class="button" onclick="toHtml(event,'20120628091016-1340845816.xls');">Ajax</button>-->
</div>
<div class="clear"></div>
</div>
<!-- wpbody-content -->
<div class="clear"></div>
</div>
<h3>输出 </h3>
<textarea cols="20" id="results" class="textarea" style="height:198px;"></textarea>
<!-- <button class="button" id="btn-copy">Copy</button>-->
<script>
function toJson( e, filename ){
var event = new jQuery.Event(e);
event.preventDefault();
toData('json',filename);
}
function toHtml( e, filename ){
var event = new jQuery.Event(e);
event.preventDefault();
toData('html',filename);
}
function toData( type, filename){
jQuery.ajax({
url: 'fidu-bus.php',
data: { type: type, filename: filename},
cache: false
}).done(function( html ) {
jQuery("#results").val(html);
});
}
</script>
<!--<form method="post" action="cms.php">
反向工程测试: <input type="text" name="url" placeholder="输入URL,并回车" />
</form>-->
</div>
<!--<script type="text/javascript">if(typeof wpOnload=='function')wpOnload();</script>
<script type="text/javascript" src="http://<?php echo $site_path;?>/packer/excel2/static/ZeroClipboard.min.js"></script>
<script>
ZeroClipboard.setMoviePath( 'http://<?php echo $site_path;?>/packer/excel2/static/ZeroClipboard10.swf' );
var clip = new ZeroClipboard.Client();
clip.setHandCursor( true );
clip.setCSSEffects( true );
jQuery(function($){
$('#btn-copy').on('mouseover',function(e){
clip.glue( 'btn-copy' );
});
clip.addEventListener( 'onMouseDown', function(client) {
var text = document.getElementById('results').value;
if( text == ''){
alert( '嘿嘿!为什么是光溜溜的!' );
}else{
alert(text);
clip.setText( text );
}
});
});
</script>-->
</body>
</html>