]> WPIA git - gigi.git/blobdiff - src/org/cacert/gigi/output/CertificateTable.java
Updated impl.
[gigi.git] / src / org / cacert / gigi / output / CertificateTable.java
index 5cd6e0747b0e3d6d96d24f318a40a2695e93632e..a3aa4b63993f4bdaf99b5925460a1aa5fba88ca5 100644 (file)
@@ -21,6 +21,14 @@ public class CertificateTable implements Outputable {
                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, "colspan=\"2\""));
                        rs.beforeFirst();
                        while (rs.next()) {
                                // out.println(rs.getString("id"));
@@ -45,14 +53,8 @@ public class CertificateTable implements Outputable {
                                }
 
                                @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\"") };
+                               protected int getColoumnCount() {
+                                       return 8;
                                }
                        };
                        t.output(out, l, vars);