added icons for modules
This commit is contained in:
parent
cad39b6dc3
commit
d6200ee947
|
@ -793,6 +793,19 @@ abstract class baseModule {
|
||||||
public function getOriginalAttributes() {
|
public function getOriginalAttributes() {
|
||||||
return $this->orig;
|
return $this->orig;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the path to the module icon.
|
||||||
|
* The path must be releative to graphics (e.g. key.png).
|
||||||
|
*
|
||||||
|
* @return unknown
|
||||||
|
*/
|
||||||
|
public function getIcon() {
|
||||||
|
if (isset($this->meta['icon'])) {
|
||||||
|
return $this->meta['icon'];
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1009,8 +1009,16 @@ class accountContainer {
|
||||||
echo "<tr class=\"" . $class . "\"><td onclick=\"document.getElementsByName('form_main_".$this->order[$i]."')[0].click();\"";
|
echo "<tr class=\"" . $class . "\"><td onclick=\"document.getElementsByName('form_main_".$this->order[$i]."')[0].click();\"";
|
||||||
echo " align=\"center\" style=\"border: 1px solid;border-bottom: 0px solid;padding:10px;\">\n";
|
echo " align=\"center\" style=\"border: 1px solid;border-bottom: 0px solid;padding:10px;\">\n";
|
||||||
// print normal button
|
// print normal button
|
||||||
echo "<input style=\"background: transparent; width:" . $buttonWidth ."em;border:0px solid;\" name=\"form_main_".$this->order[$i]."\" type=\"submit\" value=\"";
|
$buttonImage = $this->module[$this->order[$i]]->getIcon();
|
||||||
echo $this->module[$this->order[$i]]->get_alias();
|
$buttonImageStyle = '';
|
||||||
|
$buttonSpace = '';
|
||||||
|
if ($buttonImage != null) {
|
||||||
|
$buttonImageStyle = 'background-image: url(../../graphics/' . $buttonImage . ');background-position: 2px center;background-repeat: no-repeat;';
|
||||||
|
$buttonSpace = ' ';
|
||||||
|
}
|
||||||
|
$buttonStyle = $buttonImageStyle . 'background-color:transparent;width:' . $buttonWidth . 'em;border:0px solid;';
|
||||||
|
echo "<input style=\"" . $buttonStyle . "\" name=\"form_main_".$this->order[$i]."\" type=\"submit\" value=\"";
|
||||||
|
echo $buttonSpace . $this->module[$this->order[$i]]->get_alias();
|
||||||
echo "\" tabindex=$x";
|
echo "\" tabindex=$x";
|
||||||
if (($buttonStatus == 'disabled') || $this->subpage == 'finish') echo " disabled";
|
if (($buttonStatus == 'disabled') || $this->subpage == 'finish') echo " disabled";
|
||||||
echo ">\n";
|
echo ">\n";
|
||||||
|
|
|
@ -48,6 +48,8 @@ class account extends baseModule {
|
||||||
$modules = $_SESSION['config']->get_AccountModules($this->get_scope());
|
$modules = $_SESSION['config']->get_AccountModules($this->get_scope());
|
||||||
}
|
}
|
||||||
$return = array();
|
$return = array();
|
||||||
|
// icon
|
||||||
|
$return['icon'] = 'uid.png';
|
||||||
// manages host accounts
|
// manages host accounts
|
||||||
$return["account_types"] = array("host", "user");
|
$return["account_types"] = array("host", "user");
|
||||||
// alias name
|
// alias name
|
||||||
|
|
|
@ -41,6 +41,8 @@ class ieee802Device extends baseModule {
|
||||||
*/
|
*/
|
||||||
function get_metaData() {
|
function get_metaData() {
|
||||||
$return = array();
|
$return = array();
|
||||||
|
// icon
|
||||||
|
$return['icon'] = 'device.png';
|
||||||
// manages host accounts
|
// manages host accounts
|
||||||
$return["account_types"] = array("host");
|
$return["account_types"] = array("host");
|
||||||
// alias name
|
// alias name
|
||||||
|
|
|
@ -41,6 +41,8 @@ class inetLocalMailRecipient extends baseModule {
|
||||||
*/
|
*/
|
||||||
function get_metaData() {
|
function get_metaData() {
|
||||||
$return = array();
|
$return = array();
|
||||||
|
// icon
|
||||||
|
$return['icon'] = 'mailAlias.png';
|
||||||
// manages host accounts
|
// manages host accounts
|
||||||
$return["account_types"] = array("user");
|
$return["account_types"] = array("user");
|
||||||
// alias name
|
// alias name
|
||||||
|
|
|
@ -115,6 +115,8 @@ class inetOrgPerson extends baseModule {
|
||||||
*/
|
*/
|
||||||
function get_metaData() {
|
function get_metaData() {
|
||||||
$return = array();
|
$return = array();
|
||||||
|
// icon
|
||||||
|
$return['icon'] = 'uid.png';
|
||||||
// manages user accounts
|
// manages user accounts
|
||||||
$return["account_types"] = array("user");
|
$return["account_types"] = array("user");
|
||||||
// alias name
|
// alias name
|
||||||
|
@ -1493,7 +1495,6 @@ class inetOrgPerson extends baseModule {
|
||||||
return $return;
|
return $return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -62,6 +62,8 @@ class kolabUser extends baseModule {
|
||||||
*/
|
*/
|
||||||
function get_metaData() {
|
function get_metaData() {
|
||||||
$return = array();
|
$return = array();
|
||||||
|
// icon
|
||||||
|
$return['icon'] = 'kolab.png';
|
||||||
// manages host accounts
|
// manages host accounts
|
||||||
$return["account_types"] = array("user");
|
$return["account_types"] = array("user");
|
||||||
// alias name
|
// alias name
|
||||||
|
|
|
@ -42,6 +42,8 @@ class ldapPublicKey extends baseModule {
|
||||||
*/
|
*/
|
||||||
function get_metaData() {
|
function get_metaData() {
|
||||||
$return = array();
|
$return = array();
|
||||||
|
// icon
|
||||||
|
$return['icon'] = 'key.png';
|
||||||
// manages host accounts
|
// manages host accounts
|
||||||
$return["account_types"] = array("user");
|
$return["account_types"] = array("user");
|
||||||
// alias name
|
// alias name
|
||||||
|
|
|
@ -41,6 +41,8 @@ class nisMailAlias extends baseModule {
|
||||||
*/
|
*/
|
||||||
function get_metaData() {
|
function get_metaData() {
|
||||||
$return = array();
|
$return = array();
|
||||||
|
// icon
|
||||||
|
$return['icon'] = 'mailAlias.png';
|
||||||
// manages host accounts
|
// manages host accounts
|
||||||
$return["account_types"] = array("mailAlias");
|
$return["account_types"] = array("mailAlias");
|
||||||
// base module
|
// base module
|
||||||
|
|
|
@ -101,6 +101,8 @@ class posixAccount extends baseModule {
|
||||||
*/
|
*/
|
||||||
function get_metaData() {
|
function get_metaData() {
|
||||||
$return = array();
|
$return = array();
|
||||||
|
// icon
|
||||||
|
$return['icon'] = 'tux.png';
|
||||||
// manages user and host accounts
|
// manages user and host accounts
|
||||||
$return["account_types"] = array("user", "host");
|
$return["account_types"] = array("user", "host");
|
||||||
// user specific data
|
// user specific data
|
||||||
|
|
|
@ -276,6 +276,8 @@ class posixGroup extends baseModule {
|
||||||
*/
|
*/
|
||||||
function get_metaData() {
|
function get_metaData() {
|
||||||
$return = array();
|
$return = array();
|
||||||
|
// icon
|
||||||
|
$return['icon'] = 'tux.png';
|
||||||
// manages group accounts
|
// manages group accounts
|
||||||
$return["account_types"] = array("group");
|
$return["account_types"] = array("group");
|
||||||
if ($this->get_scope() == "group") {
|
if ($this->get_scope() == "group") {
|
||||||
|
|
|
@ -64,6 +64,8 @@ class quota extends baseModule {
|
||||||
*/
|
*/
|
||||||
function get_metaData() {
|
function get_metaData() {
|
||||||
$return = array();
|
$return = array();
|
||||||
|
// icon
|
||||||
|
$return['icon'] = 'hard-drive.png';
|
||||||
// manages user and group accounts
|
// manages user and group accounts
|
||||||
$return["account_types"] = array("user", "group");
|
$return["account_types"] = array("user", "group");
|
||||||
// alias name
|
// alias name
|
||||||
|
|
|
@ -95,6 +95,8 @@ class sambaAccount extends baseModule {
|
||||||
*/
|
*/
|
||||||
function get_metaData() {
|
function get_metaData() {
|
||||||
$return = array();
|
$return = array();
|
||||||
|
// icon
|
||||||
|
$return['icon'] = 'samba.png';
|
||||||
// manages user and host accounts
|
// manages user and host accounts
|
||||||
$return["account_types"] = array("user", "host");
|
$return["account_types"] = array("user", "host");
|
||||||
if ($this->get_scope() == "host") {
|
if ($this->get_scope() == "host") {
|
||||||
|
@ -1186,7 +1188,6 @@ class sambaAccount extends baseModule {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -41,6 +41,8 @@ class sambaDomain extends baseModule {
|
||||||
*/
|
*/
|
||||||
function get_metaData() {
|
function get_metaData() {
|
||||||
$return = array();
|
$return = array();
|
||||||
|
// icon
|
||||||
|
$return['icon'] = 'samba.png';
|
||||||
// manages host accounts
|
// manages host accounts
|
||||||
$return["account_types"] = array("smbDomain");
|
$return["account_types"] = array("smbDomain");
|
||||||
// alias name
|
// alias name
|
||||||
|
|
|
@ -249,6 +249,8 @@ class sambaGroupMapping extends baseModule {
|
||||||
*/
|
*/
|
||||||
function get_metaData() {
|
function get_metaData() {
|
||||||
$return = array();
|
$return = array();
|
||||||
|
// icon
|
||||||
|
$return['icon'] = 'samba.png';
|
||||||
// manages group accounts
|
// manages group accounts
|
||||||
$return["account_types"] = array("group");
|
$return["account_types"] = array("group");
|
||||||
// alias name
|
// alias name
|
||||||
|
|
|
@ -117,6 +117,8 @@ class sambaSamAccount extends baseModule {
|
||||||
*/
|
*/
|
||||||
function get_metaData() {
|
function get_metaData() {
|
||||||
$return = array();
|
$return = array();
|
||||||
|
// icon
|
||||||
|
$return['icon'] = 'samba.png';
|
||||||
// manages user and host accounts
|
// manages user and host accounts
|
||||||
$return["account_types"] = array("user", "host");
|
$return["account_types"] = array("user", "host");
|
||||||
if ($this->get_scope() == "host") {
|
if ($this->get_scope() == "host") {
|
||||||
|
|
|
@ -63,6 +63,8 @@ class shadowAccount extends baseModule {
|
||||||
*/
|
*/
|
||||||
function get_metaData() {
|
function get_metaData() {
|
||||||
$return = array();
|
$return = array();
|
||||||
|
// icon
|
||||||
|
$return['icon'] = 'key.png';
|
||||||
// manages user accounts
|
// manages user accounts
|
||||||
$return["account_types"] = array("user");
|
$return["account_types"] = array("user");
|
||||||
// alias name
|
// alias name
|
||||||
|
|
Loading…
Reference in New Issue