Commit 5434a30c authored by sumet's avatar sumet

readme

parent 91224be1
package models;
import io.ebean.Finder;
import javax.persistence.Entity;
import javax.persistence.Id;
@Entity
public class Thai extends BaseModel {
private static final long serialVersionUID = 1L;
@Id
public Long id;
public String Coun;
public String Prov;
public static final Finder <Long, Thai> find = new Finder<>(Thai.class);
}
\ No newline at end of file
@(thai:List[models.Thai])
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Country Database</title>
<link rel="stylesheet" href="/assets/stylesheets/Sumet.css">
</head>
<body class="background-info">
<nav class="navbar navbar-dark bg-dark">
<a class="navbar-brand" href="#">Country Database</a>
</nav>
<br>
<center><h1>จำนวนจังหวัดทั้งหมด @thai.size จังหวัด</h1></center>
<table border="1" width="600" class="table table-borderless table-dark" align="center">
<thead class="thead color">
<tr align="center">
<th>ID</th>
<th>PROVINCE</th>
<th>COUNTRY</th>
</tr>
</thead>
<tbody>
@for(t <- thai){
<tr align="center">
<td>@t.id</td>
<td>@t.Prov</td>
<td>@t.Coun</td>
</tr>
}
</tbody>
</table>
</body>
</html>
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment