diff --git a/views/bootstrap/class.UsrMgr.php b/views/bootstrap/class.UsrMgr.php
index fccf3c864..b0240108e 100644
--- a/views/bootstrap/class.UsrMgr.php
+++ b/views/bootstrap/class.UsrMgr.php
@@ -229,262 +229,285 @@ $(document).ready( function() {
-
-
- : |
- "> |
-
-
- : |
- " name="pwd" id="pwd">isGuest()) echo ' '.getMLText('clear_password'); ?> |
-
-formField(
+ getMLText("user_login"),
+ array(
+ 'element'=>'input',
+ 'type'=>'text',
+ 'id'=>'login',
+ 'name'=>'login',
+ 'value'=>($currUser ? htmlspecialchars($currUser->getLogin()) : '')
+ )
+ );
+ $this->formField(
+ getMLText("password"),
+ ''.(($currUser && $currUser->isGuest()) ? ' '.getMLText('clear_password') : '')
+ );
if($passwordstrength > 0) {
-?>
-
- : |
-
- " class="progress" style="width: 220px; height: 30px; margin-bottom: 8px;">
- |
-
-formField(
+ getMLText("password_strength"),
+ ''
+ );
}
-?>
-
- : |
- |
-
- 0) {
-?>
-
- : |
- getPwdExpiration() : ""; ?> |
-
-
-
- : |
- "> |
-
-
- : |
- "> |
-
-
- : |
- |
-
-
- : |
- |
-
-
- : |
- |
-
-
- : |
- printFolderChooser("form".($currUser ? $currUser->getId() : '0'), M_READ, -1, $currUser ? $dms->getFolder($currUser->getHomeFolder()) : 0, 'homefolder');?> |
-
-
- : |
- ">
- 0)
- echo $this->warningMsg(getMLText('current_quota', array('quota'=>SeedDMS_Core_File::format_filesize($quota))));
- else
- echo $this->warningMsg(getMLText('quota_is_disabled'));
-?>
- |
-
-
- : |
- isHidden() ? " checked='checked'" : "");?>> |
-
-
- : |
- isDisabled() ? " checked='checked'" : "");?>> |
-
+ $this->formField(
+ getMLText("groups"),
+ array(
+ 'element'=>'select',
+ 'name'=>'groups[]',
+ 'class'=>'chzn-select',
+ 'multiple'=>true,
+ 'attributes'=>array(array('data-placeholder', getMLText('select_groups'))),
+ 'options'=>$options
+ )
+ );
+ $this->formField(getMLText("home_folder"), $this->getFolderChooserHtml("form".($currUser ? $currUser->getId() : '0'), M_READ, -1, $currUser ? $dms->getFolder($currUser->getHomeFolder()) : 0, 'homefolder'));
+ echo '';
-
-
-
-
- : |
-
-hasImage())
- print " getId()."\">";
- else
- printMLText("no_user_image");
-?>
- |
-
-
- : |
-
-printFileChooser('userfile', false, "image/jpeg");
-?>
- |
-
-
-
- : |
-
-printFileChooser('userfile', false, 'image/jpeg');
-?>
- |
-
-
-
-formField(
+ getMLText("quota"),
+ array(
+ 'element'=>'input',
+ 'type'=>'text',
+ 'id'=>'quota',
+ 'name'=>'quota',
+ 'value'=>($currUser ? $currUser->getQuota() : '')
+ )
+ );
+ if($quota > 0)
+ $this->warningMsg(getMLText('current_quota', array('quota'=>SeedDMS_Core_File::format_filesize($quota))));
+ else
+ $this->warningMsg(getMLText('quota_is_disabled'));
+ $this->formField(
+ getMLText("is_hidden"),
+ array(
+ 'element'=>'input',
+ 'type'=>'checkbox',
+ 'name'=>'ishidden',
+ 'value'=>1,
+ 'checked'=>$currUser && $currUser->isHidden()
+ )
+ );
+ $this->formField(
+ getMLText("is_disabled"),
+ array(
+ 'element'=>'input',
+ 'type'=>'checkbox',
+ 'name'=>'isdisabled',
+ 'value'=>1,
+ 'checked'=>$currUser && $currUser->isDisabled()
+ )
+ );
+ if ($enableuserimage) {
+ if ($currUser) {
+ $this->formField(
+ getMLText("user_image"),
+ ($currUser->hasImage() ? "
getId()."\">" : getMLText('no_user_image'))
+ );
+ $this->formField(
+ getMLText("new_user_image"),
+ $this->getFileChooser('userfile', false, "image/jpeg")
+ );
+ } else {
+ $this->formField(
+ getMLText("user_image"),
+ $this->getFileChooser('userfile', false, "image/jpeg")
+ );
+ }
}
if($workflowmode == "traditional" || $workflowmode == 'traditional_only_approval') {
- if($workflowmode == "traditional") {
-?>
-
-
- : |
-
-
-
- :
- |
-
-
- |
-
-
-
- :
- |
-
-
- |
-
-
-
- : |
-
-
-
- :
- |
-
-
- |
-
-
-
- :
- |
-
-
- |
-
-getID()) $checked=true;
+
+ $options[] = array($grp->getID(), htmlspecialchars($grp->getName()), $checked);
+ }
+ $this->formField(
+ getMLText("groups"),
+ array(
+ 'element'=>'select',
+ 'name'=>'grpApprovers[]',
+ 'class'=>'chzn-select',
+ 'attributes'=>array(array('data-placeholder', getMLText('select_groups'))),
+ 'multiple'=>true,
+ 'options'=>$options
+ )
+ );
} else {
$workflows = $dms->getAllWorkflows();
if($workflows) {
-?>
-
-
- :
- |
-
-
- |
-
-formField(
+ getMLText("workflow"),
+ array(
+ 'element'=>'select',
+ 'name'=>'workflows[]',
+ 'class'=>'chzn-select',
+ 'attributes'=>array(array('data-placeholder', getMLText('select_workflow'))),
+ 'multiple'=>true,
+ 'options'=>$options
+ )
+ );
}
}
+ $this->formSubmit(" ".getMLText($currUser ? "save" : "add_user"));
?>
-
- |
- |
-
-