37,719
社区成员
发帖
与我相关
我的任务
分享
<!DOCTYPE html>
<html lang="en">
{% load static %}
<head>
<script type="text/javascript" src="{% static "flexpaper/js/jquery.min.js" %}"> </script>
<script type="text/javascript" src="{% static "flexpaper/js/flexpaper.js" %}"> </script>
<script type="text/javascript" src="{% static "flexpaper/js/flexpaper_handlers.js" %}"></script>
<script type="text/javascript" src="{% static "flexpaper/js/flexpaper_handlers_debug.js" %}"></script>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body >
<h1 style="background-color: antiquewhite; color:black;">hello world!</h1>
<h1 title="...">用户输入</h1>
<form action="/index/" method="post">
<input type="text" name="username">
<input type="passwd" name="passwd">
<input type="submit" name="submit">
</form>
<hr/>
<h1 style="...">用户展示</h1>
<table border="1">
<thead>
<th>username</th>
<th>passwd</th>
</thead>
<tbody>
{% for line in data %}
<tr>
<td>{{ line.user }}</td>
<td>{{ line.pwd }}</td>
</tr>
{% endfor %}
</tbody>
</table>
<script src="{% static "js/jquery-3.2.1.min.js" %}"></script>
<!--<div style="position:absolute;left:10px;top:10px;">
#<div id="documentViewer" class="flexpaper_viewer" style="width:770px;height:500px"></div>-->
<div style="position:absolute;left:10px;top:10px;">
</div>
<a id="viewerPlaceHolder" style="width:660px;height:480px;display:block"></a>
<script type="text/javascript">
var fp = new FlexPaperViewer(
'FlexPaperViewer',
'viewerPlaceHolder', { config : {
SwfFile : "docs/bitcoin.swf",
Scale : 0.6,
ZoomTransition : 'easeOut',
ZoomTime : 0.5,
ZoomInterval : 0.2,
FitPageOnLoad : true,
FitWidthOnLoad : false,
PrintEnabled : true,
FullScreenAsMaxWindow : false,
ProgressiveLoading : false,
MinZoomSize : 0.2,
MaxZoomSize : 5,
SearchMatchAll : false,
InitViewMode : 'Portrait',
ViewModeToolsVisible : true,
ZoomToolsVisible : true,
NavToolsVisible : true,
CursorToolsVisible : true,
SearchToolsVisible : true,
localeChain: 'en_US'
}});
</script>
</body>
</html>