blob: 02dc73431e576308df2dd5ebd8ba45af6ef31a2d (
plain)
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
|
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:py="http://genshi.edgewall.org/">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<title>Filer</title>
<link rel="stylesheet" href="/static/css/main.css" type="text/css" />
<link rel="stylesheet" href="/static/css/sugar-theme/jquery-ui-1.8.16.sugar.css" />
<script src="/static/js/jquery-1.6.2.js" type="text/javascript"></script>
<script src="/static/js/jquery-ui-1.8.16.sugar.min.js" type="text/javascript"></script>
<script src="/static/js/jquery.corner.js" type="text/javascript"></script>
<script src="/static/js/websdk-1.js" type="text/javascript"></script>
<!-- <script src="/static/js/jquery.plugin.svgimg.js" type="text/javascript"></script>
<script src="js/jquery-plugins/json.js" type="text/javascript"></script>
<script src="js/jquery-plugins/jquery.hotkeys-0.7.8.js" type="text/javascript"></script>
<script src="js/jquery-plugins/jquery.intercept.js" type="text/javascript"></script> -->
<style type="text/css">
.demoHeaders { margin-top: 2em; }
#dialog_link {padding: .4em 1em .4em 20px;text-decoration: none;position: relative;}
#dialog_link span.ui-icon {margin: 0 5px 0 0;position: absolute;left: .2em;top: 50%;margin-top: -8px;}
ul#icons {margin: 0; padding: 0;}
ul#icons li {margin: 2px; position: relative; padding: 4px 0; cursor: pointer; float: left; list-style: none;}
ul#icons span.ui-icon {float: left; margin: 0 4px;}
</style>
</head>
<body>
<div style="position:absolute; height:24px; z-index: -1" class="filer-header">
</div>
<div style="height:24px;width:${width}px;" class="filer-header">
<ul id="icons" style="float:left" class="ui-widget ui-helper-clearfix">
<li onclick="location='/fileshome/'" class="ui-state-default ui-corner-all"><span class="ui-icon ui-icon-home"></span></li>
</ul>
<div style="margin-left:15px;padding-top:7px;">
<span style="color:gray">[${project_name}]</span> /${absdir}
</div>
<!-- ul id="icons" class="ui-widget ui-helper-clearfix">
<li class="ui-state-default ui-corner-all" title=".ui-icon-home"><span class="ui-icon ui-icon-home"></span></li>
</ul-->
</div>
<div style="width:${width}px;" id="filer" >
<div id="noproject" py:if="files == []" style="color:gray;">
no active project
</div>
<ul>
<li py:for="file in files">
<a py:if="file.mode == 'dir'" href="${file.href}" class="file">
<img src="/static/icons/${file.icon}" style="border:none;"/>
<br/>${file.name}
</a>
<a py:if="file.mode != 'dir'" target="frame1" href="${file.href}" class="file">
<img src="/static/icons/${file.icon}" style="border:none;"/>
<br/>${file.name}
</a>
</li>
</ul>
</div>
<script>
jQuery.fn.center = function () {
this.css("position","absolute");
this.css("top", (($(window).height() - this.outerHeight()) / 2) + $(window).scrollTop() + "px");
this.css("left", (($(window).width() - this.outerWidth()) / 2) + $(window).scrollLeft() + "px");
return this;
}
document.ready = function() {
$('.file').corner("15px");
$("#filer").show("slow");
/*if ($.browser.mozilla) {
$('#filer img').hide();
$('#filer span').show();
}*/
$('#noproject').center();
$( "input:button" ).button();
};
</script>
</body>
</html>
|