Collaborama About Help Contact Anonymous [login] Source: site.view [edit] Function name: editContent Arguments: Description: Form to edit content Page type: webl Render function: Module: jw Page source: var fi = Wub_GetFunctionInfo("jw.publishedContent"); var content = WubEval(fi.exec); var html = "<table>\n"; var lastPos = ""; var i = 0; every rec in content do if (rec.pos != lastPos) then html = html + "<tr><td> </td></tr>\n"; lastPos = rec.pos; end; html = html + "<tr><td>\n"; html = html + `<a href="/webl/WubHub_DoIt?cmdline=jw.contentCmd(del,` + ToString(i) + `)">DEL</a> | `; html = html + `<a href="/webl/WubHub_DoIt?cmdline=jw.contentCmd(up,` + ToString(i) + `)">UP</a> | `; html = html + `<a href="/webl/WubHub_DoIt?cmdline=jw.contentCmd(down,` + ToString(i) + `)">DOWN</a> | `; html = html + `<a href="/webl/WubHub_DoIt?cmdline=jw.contentCmd(top,` + ToString(i) + `)">TOP</a> | `; html = html + `<a href="/webl/WubHub_DoIt?cmdline=jw.editItemForm(` + ToString(i) + `)">EDIT</a> : `; html = html + "</td><td>\n"; html = html + "[" + (ToString(rec.pos) ? "ul") + "] "; html = html + (ToString(rec.title) ? "EMPTY"); html = html + "</td></tr>\n"; i = i + 1 end; html = html + "</table>\n"; html = html + `<p><a href="/webl/WubHub_DoIt?cmdline=jw.contentCmd(new,-1)">[NEW ITEM]</a>`; NewPiece(html, "text/html");