From 0afea1ef9bfb43e9c1fe82aef2f13421b71836bb Mon Sep 17 00:00:00 2001 From: "Matteo Nastasi (mop)" Date: Wed, 29 May 2013 07:07:59 +0200 Subject: [PATCH] moderation table management tests --- web/commons.js | 17 ++++++++++++++++- web/moderation.css | 11 +++++++++++ web/moderation.php | 7 ++++++- 3 files changed, 33 insertions(+), 2 deletions(-) create mode 100644 web/moderation.css diff --git a/web/commons.js b/web/commons.js index 1dcb266..c2087c7 100644 --- a/web/commons.js +++ b/web/commons.js @@ -531,8 +531,23 @@ Moderate.prototype = { }, post_onload: function() { - $(this.win, 'mainbody').innerHTML = "GHE SEMU"; + var tr, td, remtr; + this.win.anc = this; + this.table = $(this.win, 'moder_tab'); + + for (i = 0 ; i < 3 ; i++) { + tr = document.createElement("tr"); + for (e = 0 ; e < 2 ; e++) { + td = document.createElement("td"); + td.innerHTML = "Content "+((i * 2)+e); + tr.appendChild(td); + } + this.table.appendChild(tr); + if (i == 0) + remtr = tr; + } + this.table.removeChild(remtr); this.enabled = true; }, diff --git a/web/moderation.css b/web/moderation.css new file mode 100644 index 0000000..6cac30e --- /dev/null +++ b/web/moderation.css @@ -0,0 +1,11 @@ +div.moder_tabanc table { + width: 100%; + border: 1px solid red; + border-collapse: collapse; + border-spacing: 0px; + padding: 0px; +} + +div.moder_tabanc td { + border: 1px solid green; +} diff --git a/web/moderation.php b/web/moderation.php index ceb06f9..cddc0d8 100644 --- a/web/moderation.php +++ b/web/moderation.php @@ -14,11 +14,16 @@ window.onbeforeunload = function() { } // --> + -
+
+
+
+
+
-- 2.17.1