* @copyright Copyright (C) 2002-2005 Markus Westphal, * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, * 2010-2012 Uwe Steinmann * @version Release: @package_version@ */ /** * Include parent class */ require_once("class.Bootstrap.php"); /** * Class which outputs the html page for SubstituteUser view * * @category DMS * @package SeedDMS * @author Markus Westphal, Malcolm Cowe, Uwe Steinmann * @copyright Copyright (C) 2002-2005 Markus Westphal, * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, * 2010-2012 Uwe Steinmann * @version Release: @package_version@ */ class SeedDMS_View_SubstituteUser extends SeedDMS_Bootstrap_Style { function js() { /* {{{ */ ?> $(document).ready(function(){ $("#myInput").on("keyup", function() { var value = $(this).val().toLowerCase(); $("#myTable tbody tr").filter(function() { $(this).toggle($(this).text().toLowerCase().indexOf(value) > -1) }); }); }); params['dms']; $user = $this->params['user']; $allUsers = $this->params['allusers']; $this->htmlStartPage(getMLText("substitute_user")); $this->globalNavigation(); $this->contentStart(); $this->pageNavigation(getMLText("admin_tools"), "admin_tools"); $this->contentHeading(getMLText("substitute_user")); ?> isDisabled() ? " class=\"error\"" : "").">"; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; } echo ""; echo "
"; echo htmlspecialchars($currUser->getFullName())." (".htmlspecialchars($currUser->getLogin()).")
"; echo "".htmlspecialchars($currUser->getComment()).""; echo "
"; echo "getEmail())."\">".htmlspecialchars($currUser->getEmail())."
"; echo "
"; $groups = $currUser->getGroups(); if (count($groups) != 0) { for ($j = 0; $j < count($groups); $j++) { print htmlspecialchars($groups[$j]->getName()); if ($j +1 < count($groups)) print ", "; } } echo ""; switch($currUser->getRole()) { case SeedDMS_Core_User::role_user: printMLText("role_user"); break; case SeedDMS_Core_User::role_admin: printMLText("role_admin"); break; case SeedDMS_Core_User::role_guest: printMLText("role_guest"); break; } echo ""; if($currUser->getID() != $user->getID()) { echo "getID())."&formtoken=".createFormKey('substituteuser')."\"> ".getMLText('substitute_user')." "; } echo "
"; $this->contentEnd(); $this->htmlEndPage(); } /* }}} */ } ?>