quota can be edited

This commit is contained in:
Uwe Steinmann 2014-05-20 06:28:40 +02:00
parent 8fc212966b
commit 3de00379d2

View File

@ -43,6 +43,7 @@ class SeedDMS_View_UsrMgr extends SeedDMS_Bootstrap_Style {
$enableuserimage = $this->params['enableuserimage'];
$undeluserids = $this->params['undeluserids'];
$workflowmode = $this->params['workflowmode'];
$quota = $this->params['quota'];
$this->htmlStartPage(getMLText("admin_tools"));
$this->globalNavigation();
@ -187,6 +188,17 @@ function showUser(selectObj) {
?>
</select></td>
</tr>
<tr>
<td><?php printMLText("quota");?>:</td>
<td><input type="text" name="quota">
<?php
if($quota > 0)
echo $this->warningMsg(getMLText('current_quota', array('quota'=>SeedDMS_Core_File::format_filesize($quota))));
else
echo $this->warningMsg(getMLText('quota_is_disabled'));
?>
</td>
</tr>
<tr>
<td><?php printMLText("is_hidden");?>:</td>
<td><input type="checkbox" name="ishidden" value="1"></td>
@ -397,6 +409,17 @@ function showUser(selectObj) {
?>
</select></td>
</tr>
<tr>
<td><?php printMLText("quota");?>:</td>
<td><input type="text" name="quota" value="<?php echo $currUser->getQuota(); ?>">
<?php
if($quota > 0)
echo $this->warningMsg(getMLText('current_quota', array('quota'=>SeedDMS_Core_File::format_filesize($quota))));
else
echo $this->warningMsg(getMLText('quota_is_disabled'));
?>
</td>
</tr>
<tr>
<td><?php printMLText("is_hidden");?>:</td>
<td><input type="checkbox" name="ishidden" value="1"<?php print ($currUser->isHidden() ? " checked='checked'" : "");?>></td>