mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-14 05:31:42 +00:00
show fields for user/group notification
This commit is contained in:
parent
886bd0aaf8
commit
7ef7e13c4c
|
@ -43,6 +43,7 @@ class SeedDMS_View_AddDocument extends SeedDMS_Bootstrap_Style {
|
||||||
$dropfolderdir = $this->params['dropfolderdir'];
|
$dropfolderdir = $this->params['dropfolderdir'];
|
||||||
$workflowmode = $this->params['workflowmode'];
|
$workflowmode = $this->params['workflowmode'];
|
||||||
$presetexpiration = $this->params['presetexpiration'];
|
$presetexpiration = $this->params['presetexpiration'];
|
||||||
|
$sortusersinlist = $this->params['sortusersinlist'];
|
||||||
$folderid = $folder->getId();
|
$folderid = $folder->getId();
|
||||||
|
|
||||||
$this->htmlStartPage(getMLText("folder_title", array("foldername" => htmlspecialchars($folder->getName()))));
|
$this->htmlStartPage(getMLText("folder_title", array("foldername" => htmlspecialchars($folder->getName()))));
|
||||||
|
@ -493,6 +494,44 @@ $(document).ready(function() {
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<?php $this->contentSubHeading(getMLText("add_document_notify")); ?>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<div class="cbSelectTitle"><?php printMLText("individuals");?>:</div>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<select class="chzn-select span9" name="notification_users[]" multiple="multiple" data-placeholder="<?php printMLText('select_ind_notification'); ?>">
|
||||||
|
<?php
|
||||||
|
$allUsers = $dms->getAllUsers($sortusersinlist);
|
||||||
|
foreach ($allUsers as $userObj) {
|
||||||
|
if (!$userObj->isGuest() && $folder->getAccessMode($userObj) >= M_READ)
|
||||||
|
print "<option value=\"".$userObj->getID()."\">" . htmlspecialchars($userObj->getLogin() . " - " . $userObj->getFullName()) . "\n";
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</select>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<div class="cbSelectTitle"><?php printMLText("groups");?>:</div>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<select class="chzn-select span9" name="notification_groups[]" multiple="multiple" data-placeholder="<?php printMLText('select_grp_notification'); ?>">
|
||||||
|
<?php
|
||||||
|
$allGroups = $dms->getAllGroups();
|
||||||
|
foreach ($allGroups as $groupObj) {
|
||||||
|
if ($folder->getGroupAccessMode($groupObj) >= M_READ)
|
||||||
|
print "<option value=\"".$groupObj->getID()."\">" . htmlspecialchars($groupObj->getName()) . "\n";
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</select>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<p><input type="submit" class="btn" value="<?php printMLText("add_document");?>"></p>
|
<p><input type="submit" class="btn" value="<?php printMLText("add_document");?>"></p>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user