moderation table management tests
authorMatteo Nastasi (mop) <nastasi@alternativeoutput.it>
Wed, 29 May 2013 05:07:59 +0000 (07:07 +0200)
committerMatteo Nastasi (mop) <nastasi@alternativeoutput.it>
Wed, 29 May 2013 05:07:59 +0000 (07:07 +0200)
web/commons.js
web/moderation.css [new file with mode: 0644]
web/moderation.php

index 1dcb266..c2087c7 100644 (file)
@@ -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 (file)
index 0000000..6cac30e
--- /dev/null
@@ -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; 
+}
index ceb06f9..cddc0d8 100644 (file)
@@ -14,11 +14,16 @@ window.onbeforeunload = function() {
 }
 // -->
 </script>
+<link rel="stylesheet" type="text/css" href="moderation.css">
 </head>
 <body>
 <?php
   // sleep(10);
 ?>
-<div id="mainbody"/>
+<div id="mainbody">
+    <div class="moder_tabanc">
+        <table id="moder_tab"></table>
+    </div>
+</div>
 </body>
 </html>