mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-06-18 02:59:27 +00:00
use new code for printing delete document icon
This commit is contained in:
parent
6b56a5e31f
commit
a152a57735
|
@ -339,7 +339,7 @@ class SeedDMS_View_Search extends SeedDMS_Bootstrap_Style {
|
||||||
else
|
else
|
||||||
$comment = htmlspecialchars($document->getComment());
|
$comment = htmlspecialchars($document->getComment());
|
||||||
if (strlen($comment) > 150) $comment = substr($comment, 0, 147) . "...";
|
if (strlen($comment) > 150) $comment = substr($comment, 0, 147) . "...";
|
||||||
print "<tr>";
|
print "<tr id=\"table-row-document-".$document->getID()."\">";
|
||||||
//print "<td><img src=\"../out/images/file.gif\" class=\"mimeicon\"></td>";
|
//print "<td><img src=\"../out/images/file.gif\" class=\"mimeicon\"></td>";
|
||||||
if (in_array(2, $searchin)) {
|
if (in_array(2, $searchin)) {
|
||||||
$docName = $this->markQuery(htmlspecialchars($document->getName()), "i");
|
$docName = $this->markQuery(htmlspecialchars($document->getName()), "i");
|
||||||
|
@ -393,9 +393,7 @@ class SeedDMS_View_Search extends SeedDMS_Bootstrap_Style {
|
||||||
print "<td>";
|
print "<td>";
|
||||||
print "<div class=\"list-action\">";
|
print "<div class=\"list-action\">";
|
||||||
if($document->getAccessMode($user) >= M_ALL) {
|
if($document->getAccessMode($user) >= M_ALL) {
|
||||||
?>
|
$this->printDeleteDocumentButton($document, 'splash_rm_document');
|
||||||
<a class_="btn btn-mini" href="../out/out.RemoveDocument.php?documentid=<?php echo $document->getID(); ?>"><i class="icon-remove"></i></a>
|
|
||||||
<?php
|
|
||||||
} else {
|
} else {
|
||||||
?>
|
?>
|
||||||
<span style="padding: 2px; color: #CCC;"><i class="icon-remove"></i></span>
|
<span style="padding: 2px; color: #CCC;"><i class="icon-remove"></i></span>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user