mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 07:04:57 +00:00
use dumplog() from revisionlog and receiptlog
This commit is contained in:
parent
ec244587eb
commit
3ef5dbd2ae
|
@ -322,54 +322,10 @@ function tree($folder, $parent=null, $indent='', $skipcurrent=false) { /* {{{ */
|
|||
dumplog($version, 'review', $reviewStatus, $indent);
|
||||
}
|
||||
if($receiptStatus) {
|
||||
echo $indent." <receipts>\n";
|
||||
$curreceiptid = 0;
|
||||
foreach($receiptStatus as $a) {
|
||||
if($a['receiptID'] != $curreceiptid) {
|
||||
if($curreceiptid != 0) {
|
||||
echo $indent." </receipt>\n";
|
||||
}
|
||||
echo $indent." <receipt id=\"".$a['receiptID']."\">\n";
|
||||
echo $indent." <attr name=\"type\">".$a['type']."</attr>\n";
|
||||
echo $indent." <attr name=\"required\">".$a['required']."</attr>\n";
|
||||
}
|
||||
echo $indent." <receiptlog id=\"".$a['receiptLogID']."\">\n";
|
||||
echo $indent." <attr name=\"user\">".$a['userID']."</attr>\n";
|
||||
echo $indent." <attr name=\"status\">".$a['status']."</attr>\n";
|
||||
echo $indent." <attr name=\"comment\">".wrapWithCData($a['comment'])."</attr>\n";
|
||||
echo $indent." <attr name=\"date\" format=\"Y-m-d H:i:s\">".$a['date']."</attr>\n";
|
||||
echo $indent." </receiptlog>\n";
|
||||
// echo $indent." </receipt>\n";
|
||||
$curreceiptid = $a['receiptID'];
|
||||
}
|
||||
if($curreceiptid != 0)
|
||||
echo $indent." </receipt>\n";
|
||||
echo $indent." </receipts>\n";
|
||||
dumplog($version, 'receipt', $receiptStatus, $indent);
|
||||
}
|
||||
if($revisionStatus) {
|
||||
echo $indent." <revisions>\n";
|
||||
$currevisionid = 0;
|
||||
foreach($revisionStatus as $a) {
|
||||
if($a['revisionID'] != $currevisionid) {
|
||||
if($currevisionid != 0) {
|
||||
echo $indent." </revision>\n";
|
||||
}
|
||||
echo $indent." <revision id=\"".$a['revisionID']."\">\n";
|
||||
echo $indent." <attr name=\"type\">".$a['type']."</attr>\n";
|
||||
echo $indent." <attr name=\"required\">".$a['required']."</attr>\n";
|
||||
}
|
||||
echo $indent." <revisionlog id=\"".$a['revisionLogID']."\">\n";
|
||||
echo $indent." <attr name=\"user\">".$a['userID']."</attr>\n";
|
||||
echo $indent." <attr name=\"status\">".$a['status']."</attr>\n";
|
||||
echo $indent." <attr name=\"comment\">".wrapWithCData($a['comment'])."</attr>\n";
|
||||
echo $indent." <attr name=\"date\" format=\"Y-m-d H:i:s\">".$a['date']."</attr>\n";
|
||||
echo $indent." </revisionlog>\n";
|
||||
// echo $indent." </revision>\n";
|
||||
$currevisionid = $a['revisionID'];
|
||||
}
|
||||
if($currevisionid != 0)
|
||||
echo $indent." </revision>\n";
|
||||
echo $indent." </revisions>\n";
|
||||
dumplog($version, 'revision', $revisionStatus, $indent);
|
||||
}
|
||||
if(file_exists($dms->contentDir . $version->getPath())) {
|
||||
echo $indent." <data length=\"".filesize($dms->contentDir . $version->getPath())."\"";
|
||||
|
|
Loading…
Reference in New Issue
Block a user