clean up to make it work with latest seeddms changes

This commit is contained in:
Uwe Steinmann 2023-03-11 22:45:24 +01:00
parent a5f6c3ee20
commit d3dbab7128

View File

@ -18,11 +18,6 @@
*/
//require_once("class.Bootstrap.php");
/**
* Include class to preview documents
*/
require_once("SeedDMS/Preview.php");
/**
* Class which outputs the html page for AttributeGroupMgr view
*
@ -121,17 +116,14 @@ $(document).ready( function() {
$this->contentHeading(getMLText("group_info"));
$folders = $selgroup->getFolders();
print "<table id=\"viewfolder-table\" class=\"table table-condensed\">";
print "<thead>\n<tr>\n";
print "<th></th>\n";
print "<th>".getMLText("name")."</th>\n";
print "<th>".getMLText("status")."</th>\n";
print "<th>".getMLText("action")."</th>\n";
print "</tr>\n</thead>\n<tbody>\n";
foreach($folders as $subFolder) {
echo $this->folderListRow($subFolder);
if($folders) {
print $this->folderListHeader();
print "<tbody>\n";
foreach($folders as $subFolder) {
echo $this->folderListRow($subFolder);
}
echo "</tbody>\n</table>\n";
}
echo "</tbody>\n</table>\n";
}
} /* }}} */
@ -344,7 +336,7 @@ $(document).ready( function() {
$this->columnStart(4);
?>
<form class="form-horizontal">
<select class="chzn-select" id="selector">
<select class="form-control chzn-select" id="selector">
<option value="-1"><?php echo getMLText("choose_attrdefgroup")?>
<option value="0"><?php echo getMLText("add_attrdefgroup")?>
<?php
@ -362,11 +354,9 @@ $(document).ready( function() {
$this->columnEnd();
$this->columnStart(8);
?>
<div class="well">
<?php if($accessop->check_view_access($this, array('action'=>'form'))) { ?>
<div class="ajax" data-view="AttributeGroupMgr" data-action="form" <?php echo ($selgroup ? "data-query=\"attrdefgroupid=".$selgroup->getID()."\"" : "") ?>></div>
<?php } ?>
</div>
<?php
$this->columnEnd();
$this->rowEnd();