X-Git-Url: https://code.wpia.club/?a=blobdiff_plain;f=src%2Forg%2Fcacert%2Fgigi%2Foutput%2FCertificateTable.java;h=836f3449a9f58406a22fc9b93267191e3c4c6d9d;hb=78c6b04860c66d34be008b6766b83c2f594b9909;hp=5cd6e0747b0e3d6d96d24f318a40a2695e93632e;hpb=062a926daaf1676aede69c4e60c6a3cd90597c38;p=gigi.git diff --git a/src/org/cacert/gigi/output/CertificateTable.java b/src/org/cacert/gigi/output/CertificateTable.java index 5cd6e074..836f3449 100644 --- a/src/org/cacert/gigi/output/CertificateTable.java +++ b/src/org/cacert/gigi/output/CertificateTable.java @@ -21,6 +21,14 @@ public class CertificateTable implements Outputable { try { out.println("
"); final LinkedList 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")); @@ -37,24 +45,7 @@ public class CertificateTable implements Outputable { cells.add(new Cell(rs.getString("a"), false)); cells.add(new Cell(rs.getString("a"), false)); } - DataTable t = new DataTable() { - - @Override - protected LinkedList getTableContent() { - return cells; - } - - @Override - protected Cell[] getColumns() { - return new Cell[] { new Cell("Renew/Revoke/Delete", true), - new Cell("Status", true), - new Cell("Email Address", true), - new Cell("SerialNumber", true), - new Cell("Revoked", true), - new Cell("Expires", true), new Cell("Login", true), - new Cell("Comment *", true, "colspan=\"2\"") }; - } - }; + DataTable t = new DataTable(9, cells); t.output(out, l, vars); out.println(""); } catch (SQLException e) {