forked from tokuhirom/js-xlsx-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
40 lines (39 loc) · 1.56 KB
/
index.html
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
<!doctype html>
<html ng-app>
<head>
<title>js-xslx demo</title>
<script src="bower_components/js-xlsx/shim.js"></script>
<script src="bower_components/js-xlsx/jszip.js"></script>
<script src="bower_components/js-xlsx/xlsx.js"></script>
<script src="bower_components/js-xlsx/xlsx.js"></script>
<script src="bower_components/FileSaver/FileSaver.js"></script>
<script src="bower_components/jquery/dist/jquery.min.js"></script>
<script src="bower_components/angular/angular.js"></script>
<script src="demo.js"></script>
<link href="bower_components/bootstrap/dist/css/bootstrap.css" type="text/css" rel="stylesheet">
</head>
<body>
<div style="margin-top: 20px">
<div class="container" ng-controller="ReportCtrl">
<div><a class="btn btn-default" href="#" ng-click="downloadCSV()">Excel ファイルダウンロード</a></div>
<h1>売上</h1>
<table class="report table table-bordered table-hover">
<tr>
<th>日付</th>
<th>販売数</th>
<th>売上金額</th>
<th>税金</th>
</tr>
<tr ng-repeat="row in data">
<td align="right">{{row.date}}</td>
<td class="report-num" align="right">{{row.num}}</td>
<td class="report-num" align="right">{{uriage(row)}}</td>
<td class="report-num" align="right">{{tax(uriage(row))}}</td>
</tr>
</table>
<br><br>
<p><a href="https://github.com/tokuhirom/js-xlsx-demo/">Source</a></p>
</div>
</div>
</body>
</html>