* fix bug 504.

This commit is contained in:
wyd621
2013-09-26 06:23:59 +00:00
parent 7f3d4bcdca
commit 6dbe327790
19 changed files with 96 additions and 39 deletions
+5 -2
View File
@@ -70,8 +70,11 @@ var browseType = '<?php echo $browseType;?>';
<td>
<?php
common::printIcon('doc', 'edit', "doc={$doc->id}", '', 'list');
$deleteURL = $this->createLink('doc', 'delete', "docID=$doc->id&confirm=yes");
echo html::a("javascript:ajaxDelete(\"$deleteURL\",\"docList\",confirmDelete)", '<i class="icon-green-common-delete"></i>', '', "class='link-icon' title='{$lang->doc->delete}'");
if(common::hasPriv('doc', 'delete'))
{
$deleteURL = $this->createLink('doc', 'delete', "docID=$doc->id&confirm=yes");
echo html::a("javascript:ajaxDelete(\"$deleteURL\",\"docList\",confirmDelete)", '<i class="icon-green-common-delete"></i>', '', "class='link-icon' title='{$lang->doc->delete}'");
}
?>
</td>
</tr>