Commit a5d02229 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Table headers

parent 5a5ad50e
......@@ -150,6 +150,7 @@ var browsebutton = INPUT({'id':'browsebutton', 'type':'button', 'value':{$getstr
function browsemyfiles() {
hideElement('browsebutton');
insertSiblingNodesAfter('browsebutton', H3(null, {$getstring['myfiles']}));
showElement('filebrowser');
browser = new FileBrowser('filebrowser', '{$wwwroot}artefact/file/myfiles.json.php',
function () {}, {$getstring['attach']}, attachtopost);
browser.init();
......
......@@ -18,9 +18,25 @@
<h2>{str section="artefact.blog" tag=$pagetitle}</h2>
{$textinputform}
<div id='uploader'></div>
<table id='filebrowser'><tbody><tr><td></td></tr></tbody></table>
<table id='filebrowser' style='display: none;'>
<thead><tr>
<th>{str section=artefact.file tag=name}</th>
<th>{str section=artefact.file tag=description}</th>
<th>{str section=artefact.file tag=size}</th>
<th>{str section=mahara tag=date}</th>
<th></th>
</tr></thead>
<tbody><tr><td></td></tr></tbody>
</table>
<h3>{str section=artefact.blog tag=attachedfiles}</h3>
<table id='attachedfiles'><tbody><tr><td></td></tr></tbody></table>
<table id='attachedfiles'>
<thead><tr>
<th>{str section=artefact.file tag=name}</th>
<th>{str section=artefact.file tag=description}</th>
<th></th>
</tr></thead>
<tbody><tr><td></td></tr></tbody>
</table>
</div>
</span></span></span></span>
</div>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment