mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-06-01 06:27:15 +00:00
output nice folder row in object check list
This commit is contained in:
parent
32a855b740
commit
dbc79f62aa
|
@ -47,37 +47,22 @@ class SeedDMS_View_ObjectCheck extends SeedDMS_Bootstrap_Style {
|
||||||
$tmparr = explode(':', $path);
|
$tmparr = explode(':', $path);
|
||||||
array_shift($tmparr);
|
array_shift($tmparr);
|
||||||
if(count($tmparr) != count(array_unique($tmparr))) {
|
if(count($tmparr) != count(array_unique($tmparr))) {
|
||||||
print "<tr>\n";
|
echo $this->folderListRowStart($folder);
|
||||||
print "<td><a class=\"standardText\" href=\"../out/out.ViewFolder.php?folderid=".$folder->getID()."\"><img src=\"".$this->getImgPath("folder.svg")."\" width=18 height=18 border=0></a></td>";
|
echo $this->folderListRow($folder, true);
|
||||||
print "<td><a class=\"standardText\" href=\"../out/out.ViewFolder.php?folderid=".$folder->getID()."\">";
|
|
||||||
print htmlspecialchars($path);
|
|
||||||
print "</a></td>";
|
|
||||||
|
|
||||||
$owner = $folder->getOwner();
|
|
||||||
print "<td>".htmlspecialchars($owner->getFullName())."</td>";
|
|
||||||
print "<td>Folder path contains cyclic relation</td>";
|
print "<td>Folder path contains cyclic relation</td>";
|
||||||
echo "<td>";
|
echo "<td>";
|
||||||
if($repair) {
|
if($repair) {
|
||||||
print "<span class=\"success\">".getMLText('repaired')."</span>\n";
|
print "<span class=\"success\">".getMLText('repaired')."</span>\n";
|
||||||
}
|
}
|
||||||
echo "</td>";
|
echo "</td>";
|
||||||
print "</tr>\n";
|
echo $this->folderListRowEnd($folder);
|
||||||
}
|
}
|
||||||
$folderList = $folder->getFolderList();
|
$folderList = $folder->getFolderList();
|
||||||
/* Check the folder */
|
/* Check the folder */
|
||||||
if($folderList != $path) {
|
if($folderList != $path) {
|
||||||
print "<tr>\n";
|
echo $this->folderListRowStart($folder);
|
||||||
|
echo $this->folderListRow($folder, true);
|
||||||
$this->needsrepair = true;
|
$this->needsrepair = true;
|
||||||
print "<td><a class=\"standardText\" href=\"../out/out.ViewFolder.php?folderid=".$folder->getID()."\"><img src=\"".$this->getImgPath("folder.svg")."\" width=18 height=18 border=0></a></td>";
|
|
||||||
print "<td><a class=\"standardText\" href=\"../out/out.ViewFolder.php?folderid=".$folder->getID()."\">";
|
|
||||||
$tmppath = $folder->getPath();
|
|
||||||
for ($i = 1; $i < count($tmppath); $i++) {
|
|
||||||
print "/".htmlspecialchars($tmppath[$i]->getName());
|
|
||||||
}
|
|
||||||
print "</a></td>";
|
|
||||||
|
|
||||||
$owner = $folder->getOwner();
|
|
||||||
print "<td>".htmlspecialchars($owner->getFullName())."</td>";
|
|
||||||
print "<td>Folderlist is '".$folderList."', should be '".$path."'</td>";
|
print "<td>Folderlist is '".$folderList."', should be '".$path."'</td>";
|
||||||
echo "<td>";
|
echo "<td>";
|
||||||
if($repair) {
|
if($repair) {
|
||||||
|
@ -85,7 +70,7 @@ class SeedDMS_View_ObjectCheck extends SeedDMS_Bootstrap_Style {
|
||||||
print "<span class=\"success\">".getMLText('repaired')."</span>\n";
|
print "<span class=\"success\">".getMLText('repaired')."</span>\n";
|
||||||
}
|
}
|
||||||
echo "</td>";
|
echo "</td>";
|
||||||
print "</tr>\n";
|
echo $this->folderListRowEnd($folder);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -228,8 +213,8 @@ class SeedDMS_View_ObjectCheck extends SeedDMS_Bootstrap_Style {
|
||||||
print "<thead>\n<tr>\n";
|
print "<thead>\n<tr>\n";
|
||||||
print "<th></th>\n";
|
print "<th></th>\n";
|
||||||
print "<th>".getMLText("name")."</th>\n";
|
print "<th>".getMLText("name")."</th>\n";
|
||||||
print "<th>".getMLText("owner")."</th>\n";
|
print "<th>".getMLText("status")."</th>\n";
|
||||||
print "<th></th>\n";
|
print "<th>".getMLText("action")."</th>\n";
|
||||||
print "<th>".getMLText("error")."</th>\n";
|
print "<th>".getMLText("error")."</th>\n";
|
||||||
print "</tr>\n</thead>\n<tbody>\n";
|
print "</tr>\n</thead>\n<tbody>\n";
|
||||||
$this->needsrepair = false;
|
$this->needsrepair = false;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user