mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-09-09 19:38:57 +00:00
- attributes can be attached to folders
This commit is contained in:
parent
5f9032979c
commit
88eceaba85
|
@ -56,7 +56,8 @@ if (!is_numeric($sequence)) {
|
||||||
|
|
||||||
$name = $_POST["name"];
|
$name = $_POST["name"];
|
||||||
$comment = $_POST["comment"];
|
$comment = $_POST["comment"];
|
||||||
$subFolder = $folder->addSubFolder($name, $comment, $user, $sequence);
|
$attributes = $_POST["attributes"];
|
||||||
|
$subFolder = $folder->addSubFolder($name, $comment, $user, $sequence, $attributes);
|
||||||
|
|
||||||
if (is_object($subFolder)) {
|
if (is_object($subFolder)) {
|
||||||
// Send notification to subscribers.
|
// Send notification to subscribers.
|
||||||
|
|
|
@ -87,6 +87,19 @@ function checkForm()
|
||||||
<td class="inputDescription"><?php printMLText("sequence");?>:</td>
|
<td class="inputDescription"><?php printMLText("sequence");?>:</td>
|
||||||
<td><?php UI::printSequenceChooser($folder->getSubFolders());?></td>
|
<td><?php UI::printSequenceChooser($folder->getSubFolders());?></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<?php
|
||||||
|
$attrdefs = $dms->getAllAttributeDefinitions(array(LetoDMS_Core_AttributeDefinition::objtype_folder, LetoDMS_Core_AttributeDefinition::objtype_all));
|
||||||
|
if($attrdefs) {
|
||||||
|
foreach($attrdefs as $attrdef) {
|
||||||
|
?>
|
||||||
|
<tr>
|
||||||
|
<td><?php echo htmlspecialchars($attrdef->getName()); ?></td>
|
||||||
|
<td><?php UI::printAttributeEditField($attrdef, '') ?></td>
|
||||||
|
</tr>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
}
|
||||||
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="2"><br><input type="Submit" value="<?php printMLText("add_subfolder");?>"></td>
|
<td colspan="2"><br><input type="Submit" value="<?php printMLText("add_subfolder");?>"></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user