diff --git a/plugins/ktcore/admin/expungeList.php b/plugins/ktcore/admin/expungeList.php index 229f292..7d23fc3 100644 --- a/plugins/ktcore/admin/expungeList.php +++ b/plugins/ktcore/admin/expungeList.php @@ -39,8 +39,9 @@ require_once(KT_LIB_DIR . '/browse/browseutil.inc.php'); require_once(KT_LIB_DIR . '/documentmanagement/Document.inc'); require_once(KT_LIB_DIR . '/documentmanagement/DocumentTransaction.inc'); - -$aDocuments =& Document::getList("status_id=" . DELETED); + +$sWhere = "status_id=" . DELETED; +$aDocuments =& Document::getList($sWhere); $pageNum = $_REQUEST['page']; @@ -50,6 +51,11 @@ if(fmod($items, 10) > 0){ }else{ $pages = ($items/10); } + +for($i=1; $i<=$pages; $i++){ + $aPages[] = $i; +} + if($pageNum == 1){ $listStart = 0; $listEnd = 9; @@ -60,13 +66,53 @@ if($pageNum == 1){ $listStart = (10*($pageNum-1)); $listEnd = $listStart+9; } + + + +$output = "
| + | "._kt('Document Name').' | +'._kt('Last Modification').' | +'._kt('Deletion Comment').' | +
|---|---|---|---|
| + $output .= " + | |||
| getId()."\"/> | ".$aDocuments[$i]->getName()." | ".$aDocuments[$i]->getLastModifiedDate()." | ".$aDocuments[$i]->getLastDeletionComment()." |
| + '.$items.' '._kt('items, 10 per page').' + | +|||
|
+ ';
+
+ foreach($aPages as $page){
+ $output .= ''.$page.' ';
+ }
+
+$output .= '
+ |
+ |||