-
Notifications
You must be signed in to change notification settings - Fork 0
/
searchhtml.py
230 lines (185 loc) · 10.3 KB
/
searchhtml.py
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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
#!/usr/bin/python3
# coding:utf-8
cloudhead_search = """
<!DOCTYPE html>
<html lang="cn">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Simple Drive">
<meta name="keyword" content="Simple Drive">
<title>Simple Cloud</title>
<!-- Bootstrap core CSS -->
<link href="/pan/css/bootstrap.min.css" rel="stylesheet">
<link href="/pan/css/bootstrap-reset.css" rel="stylesheet">
<!--external css-->
<link href="/pan/css/font-awesome.css" rel="stylesheet" />
<link href="/pan/css/jquery.easy-pie-chart.css" rel="stylesheet" type="text/css" media="screen"/>
<!-- Custom styles for this template -->
<link href="/pan/css/style.css" rel="stylesheet">
<link href="/pan/css/style-responsive.css" rel="stylesheet" />
<link href="/pan/css/index.css" rel="stylesheet" />
<link rel="stylesheet" type="text/css" href="/pan/css/multi-select.css" />
<body >
<script type="text/javascript">
function urlpage(){
history.back(-1);
}
</script>
<section id="container">
<!--header start-->
<header class="header white-bg">
<!--logo start-->
<div class="pull-left logo"><a href="#">iBarn</a></div>
<!--<div class="pull-left" style="margin-top: 40px;color: #ffffff;"><a href="javascript:;" onclick="Cookies.set('lang', 'zh');window.location.reload();" style="color: #ffffff;">中文</a> | <a href="javascript:;" onclick="Cookies.set('lang', 'en');window.location.reload();" style="color: #ffffff;">English</a></div>-->
<!--logo end-->
<div class="top-nav">
<ul class="nav pull-right top-menu">
<li class="dropdown">
<a class="dropdown-toggle" href="#">
<span class="username">用户名:"""
preusername_search = """</span>
</a>
</li>
<li class="dropdown">
<a class="dropdown-toggle" href="/logout">
<span class="username">注销</span> </a>
</li>
</ul>
</div>
</header>
<!--header end-->
<!--sidebar start-->
<aside>
<div id="sidebar" class="nav-collapse">
<!-- sidebar menu start-->
<ul class="sidebar-menu" id="nav-accordion">
<li class="on">
<a href="/cloud">
<i class="icon-home"></i>
<span>资料</span>
</a>
</li>"""
adminpage_search = """<li >
<a href="/manage" target='_blank'>
<i class="icon-user"></i>
<span>管理</span>
</a>
</li>"""
afteradminpage_search = """ <li >
<a href="/shared">
<i class="icon-user"></i>
<span>已分享</span>
</a>
</li>
</ul>
<!-- sidebar menu end-->
</div>
</aside>
<!--sidebar end--> <!--main content start-->
<section id="main-content">
<section class="wrapper">
<!--state overview start-->
<div class="row state-overview">
<ul class="buttons pull-left">
<li>
<div id="ucontainer" style="position: relative;">
<button class="btn btn-danger" style="position: relative; z-index: 1;" onClick="urlpage()">
返回网盘 </button>
<div id="html5_1ds8v1q8j1k2510p7uud11kl15v73_container" class="moxie-shim moxie-shim-html5" style="position: absolute; top: 0px; left: 0px; width: 101px; height: 34px; overflow: hidden; z-index: 0;"><input id="html5_1ds8v1q8j1k2510p7uud11kl15v73" type="file" style="font-size: 999px; opacity: 0; position: absolute; top: 0px; left: 0px; width: 100%; height: 100%;" multiple="" accept=""></div></div>
</li>
</ul>
<form method=post>
<div class="searchRight pull-right hidden-xs">
<div class="input-group m-bot15">
<div class="input-group-btn">
<span id="searchShow" class="btn dropdown-toggle btn-white">名称</span>
</div>
<input type="hidden" style="visibility: hidden;" name="formname" value="search" />
<input type="text" class="form-control" id="search" name="search" value="" placeholder="搜文件/文件夹">
</div>
<button class="btn btn-success searchButton" type="submit">
<i class="icon-search"></i>
搜索 </button>
</div>
</form>
</div>
</div>
</div>
<div class="row">
<div class="col-lg-12">
<ul class="listTable pull-left">
<li id="fileList">
<div class="listTableTop pull-left">
<div class="listTableTopL pull-left">
<div id="name" class="name">名称<div class="seq"></div></div>
</div>
<div class="listTableTopR5 pull-right hidden-xs">
<div class="size">待定接口1</div>
<div id="status" class="size">待定接口2<div class="seq"></div></div>
<div id="size" class="size">大小<div class="seq"></div></div>
<div id="utime" class="updateTime">上传时间<div class="seq"></div></div>
</div>
</div>
</li><li style="display:none" id="file" onclick="">
<p>在此目录上传新文件>>></p>
<form method=post enctype=multipart/form-data>
<input type="hidden" style="visibility: hidden;" name="formname" value="newfile" />
<input type=file name=file>
<input type=submit value='上传'>
</form>
</li>
<li style="display:none" id="folder" onclick="">
<p>在此目录新建文件夹>>></p>
<form method="post">
<input type="hidden" style="visibility: hidden;" name="formname" value="newfolder" />
<p><input name="newfoldername"></p>
<p><button type="submit">新建</button></p></form>
</li>
<form name='fileorfolderlist' method="POST">
<input type="hidden" style="visibility: hidden;" name="formname" value="fileorfolderlist" />
"""
filedownloadurla_search = ("""<li id="li_7544" onclick="">
<div class="listTableIn pull-left" >
<div class="listTableInL pull-left">
<div class="cBox"><input type="checkbox" class="mycheckbox" name='mycheck' value='""")
filedownloadurlb_search = ("""'/></div>
<div class="name">
<a target='_blank' href=""")
beforefilename_search = (""" >
<span class="div_pro">""")
afterfilename_search = (""" </span>
</a>
</div>
</div>
<div class="listTableInR pull-right hidden-xs">
<div class="size"><a target="_blank" href="#">待定功能</a></div>
<div class="size"><p id="p_7544">待定功能</p></div>
<div class="size">""")
aftersize_search = ("""</div><div class="updateTime">""")
afterfiletime_search = ("""</div>
<div style="display:none;position: absolute;margin-left: -60px;" class="float_box" id="box_7544">
<ul class="control">
<li><a title="下载" href="#"><i class="icon-download-alt"></i></a></li>
</ul>
</div>
</div>
</div>
""")
cloudreset_search = """
<input id='submit.download'style="visibility: hidden;" type='submit' name='submit'value='下载'>
<input id='submit.delete'style="visibility: hidden;" type='submit' name='submit'value='删除'>
<input id='submit.share'style="visibility: hidden;" type='submit' name='submit'value='分享'>
</form>
</section>
</section>
<!--main content end-->
</section>
</body>
</html>"""
cloudhead_search = str(cloudhead_search)
cloudreset_search = str(cloudreset_search)
filedownloadurla_search = str(filedownloadurla_search)
filedownloadurlb_search = str(filedownloadurlb_search)
beforefilename_search = str(beforefilename_search)
afterfilename_search = str(afterfilename_search)