38 $keyword = ConnectionManager::escape($_GET[
"keyword"]);
42 redirect(
"fileshare_libraries");
45 $page->page_title =
"Fileshare Library Files";
50 redirect(
"fileshare_libraries");
54 $table =
new DataListView(
$mgr->documents,
"library_documents");
55 $table->column(
"Document", array(
$mgr, formatDocumentTitle),
true,
"width: 60%")
56 ->column(
"Uploaded By", array(
$mgr, getDocumentAuthor),
true,
"width: 20%; text-align: center")
57 ->column(
"Last Modified",
"{last_modified:short}",
true,
"width: 20%; text-align: center")
66 if(
$library->isOwner() || checkRole(
"fileshare,admin"))
77 <script type=
'text/javascript'>
78 window.addEvent(
'domready',
function()
85 <div
id=
"fileshare_content">
95 <div
style=
'width: 95%'>
96 <table
class=
"layout" style=
"width: 100%">
98 <td
style=
"width: 40%">
99 <h3>Files in <?echo
$library->name?></h3>
101 <td
style=
"text-align: right; padding-right: 10px;">
102 <form
id=
"keyword_search_form" method=
"GET" action=
"">
103 <label
for=
'keyword'>Keyword</label>
104 <input
id=
'LibrarySearch_form_keyword' type=
'text' name=
'keyword' autocomplete=
'off' value=
'' size=
'20'/>
106 <input type=
'submit' class=
'button' name=
'submit' value=
'Search'/>
107 <input type=
"hidden" name=
"document_library_id" value=
"<?php echo $document_library_id ?>"/>
116 <div
style=
'padding-top: 5px;'>
120 if(
$library->fileshareAllowUpload())
123 <div
id=
"submit_block">
124 <a
class=
"button" href=
"#" onclick=
"new LibraryManager().uploadFileshareFile(<?php echo $document_library_id ?>); return false">Upload a File</a>
This class maps the publication table.
static usingFeature()
Uses the specified framework feature(s).
static using()
Import the datamodels, views and manifest for the specified component(s).
static libraryTabs($key="")
static addFacets($manager, $classes, $dropdown=true, $max_width="200px", $width="200px", $height="120px")