Remove unused erb

This commit is contained in:
Lee moon soo 2015-03-30 06:06:49 +09:00
parent 1ffca75945
commit be06c43440
2 changed files with 0 additions and 51 deletions

View file

@ -1,15 +0,0 @@
<html>
<head>
</head>
<body>
<% if z and z.result != nil %>
<% if z.result.rows != nil %>
<pre><% z.result.rows.each do |row| %>
<% row.each do |cell| %><%= cell %><% end %><% end %>
<% end %></pre>
<% end %>
</body>
</html>

View file

@ -1,36 +0,0 @@
<html>
<head>
<script type='text/javascript' src='https://www.google.com/jsapi'></script>
<script type='text/javascript'>
google.load('visualization', '1', {packages:['table']});
google.setOnLoadCallback(drawTable);
function drawTable() {
var data = new google.visualization.DataTable();
<% if z and z.result != nil %>
<% z.result.getColumnDef.each do |col| %>
data.addColumn('string', '<%=col.name%>');
<% end %>
<% if z.result.rows != nil %>
data.addRows([
<% z.result.rows.each do |row| %>
[
<% row.each do |cell| %>
'<%= cell.to_s().gsub("'","\\\\'") %>',
<% end %>
],
<% end %>
]);
<% end %>
<% end %>
var table = new google.visualization.Table(document.getElementById('table_div'));
table.draw(data, {showRowNumber: true});
}
</script>
</head>
<body>
<div id="table_div"></div>
</body>
</html>