import org.cacert.gigi.Language;
import org.cacert.gigi.output.DataTable.Cell;
-import org.cacert.gigi.output.DataTable.EmptyCell;
public class CertificateTable implements Outputable {
String resultSet;
try {
out.println("<form method=\"post\" action=\"account.php\">");
final LinkedList<Cell> cells = new LinkedList<>();
+ cells.add(new Cell("Renew/Revoke/Delete", true));
+ cells.add(new Cell("Status", true));
+ cells.add(new Cell("Email Address", true));
+ cells.add(new Cell("SerialNumber", true));
+ cells.add(new Cell("Revoked", true));
+ cells.add(new Cell("Expires", true));
+ cells.add(new Cell("Login", true));
+ cells.add(new Cell("Comment *", true, 2));
rs.beforeFirst();
while (rs.next()) {
// out.println(rs.getString("id"));
- cells.add(new EmptyCell());
+ cells.add(new Cell());
cells.add(new Cell("State", false));
cells.add(new Cell(rs.getString("CN"), false));
cells.add(new Cell(rs.getString("serial"), false));
cells.add(new Cell(rs.getString("a"), false));
cells.add(new Cell(rs.getString("a"), false));
}
- DataTable t = new DataTable() {
-
- @Override
- protected LinkedList<Cell> getTableContent() {
- return cells;
- }
-
- @Override
- protected String[] getColumns() {
- return new String[] { "Renew/Revoke/Delete", "Status",
- "Email Address", "SerialNumber", "Revoked",
- "Expires", "Login", "Comment*" };
- }
- };
+ DataTable t = new DataTable(9, cells);
t.output(out, l, vars);
out.println("</form>");
} catch (SQLException e) {