type specific button labels
This commit is contained in:
parent
ef92fb4094
commit
e195942dd1
|
@ -35,13 +35,24 @@ $Id$
|
|||
*/
|
||||
class baseType {
|
||||
|
||||
public $LABEL_CREATE_ANOTHER_ACCOUNT;
|
||||
public $LABEL_BACK_TO_ACCOUNT_LIST;
|
||||
|
||||
/**
|
||||
* Creates a new type object.
|
||||
*/
|
||||
public function __construct() {
|
||||
$this->LABEL_CREATE_ANOTHER_ACCOUNT = _('Create another account');
|
||||
$this->LABEL_BACK_TO_ACCOUNT_LIST = _('Back to account list');
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the alias name of this account type.
|
||||
* This function must be overwritten by the child classes.
|
||||
*
|
||||
* @return string alias name
|
||||
*/
|
||||
function getAlias() {
|
||||
public function getAlias() {
|
||||
return "baseType";
|
||||
}
|
||||
|
||||
|
@ -51,7 +62,7 @@ class baseType {
|
|||
*
|
||||
* @return string description
|
||||
*/
|
||||
function getDescription() {
|
||||
public function getDescription() {
|
||||
return "base type";
|
||||
}
|
||||
|
||||
|
@ -60,7 +71,7 @@ class baseType {
|
|||
*
|
||||
* @return string class name
|
||||
*/
|
||||
function getListClassName() {
|
||||
public function getListClassName() {
|
||||
return "lamList";
|
||||
}
|
||||
|
||||
|
@ -70,7 +81,7 @@ class baseType {
|
|||
*
|
||||
* @return string attribute list
|
||||
*/
|
||||
function getDefaultListAttributes() {
|
||||
public function getDefaultListAttributes() {
|
||||
return "dn:DN,objectClass:Object classes";
|
||||
}
|
||||
|
||||
|
@ -80,7 +91,7 @@ class baseType {
|
|||
*
|
||||
* @return array list of descriptions
|
||||
*/
|
||||
function getListAttributeDescriptions() {
|
||||
public function getListAttributeDescriptions() {
|
||||
return array();
|
||||
}
|
||||
|
||||
|
|
|
@ -1249,8 +1249,9 @@ class accountContainer {
|
|||
echo "<br>\n";
|
||||
echo "<table class=\"".$this->type."list\" width=\"100%\" style=\"border-width:0px;\"><tr><td>\n";
|
||||
|
||||
echo "<input name=\"accountContainerCreateAgain\" type=\"submit\" value=\"" . _('Create another account') . "\"> \n";
|
||||
echo "<input name=\"accountContainerBackToList\" type=\"submit\" value=\"" . _('Back to account list') . "\"> \n";
|
||||
$type = new $this->type();
|
||||
echo "<input name=\"accountContainerCreateAgain\" type=\"submit\" value=\"" . $type->LABEL_CREATE_ANOTHER_ACCOUNT . "\"> \n";
|
||||
echo "<input name=\"accountContainerBackToList\" type=\"submit\" value=\"" . $type->LABEL_BACK_TO_ACCOUNT_LIST . "\"> \n";
|
||||
echo " ";
|
||||
echo "<select name=\"pdfStructure\" size=1>\n";
|
||||
for ($i = 0; $i < sizeof($pdfStructures); $i++) {
|
||||
|
|
|
@ -4,6 +4,7 @@ $Id$
|
|||
|
||||
This code is part of LDAP Account Manager (http://www.sourceforge.net/projects/lam)
|
||||
Copyright (C) 2008 Thomas Manninger
|
||||
2009 Roland Gruber
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
|
@ -36,6 +37,16 @@ $Id$
|
|||
**/
|
||||
|
||||
class dhcp extends baseType {
|
||||
|
||||
/**
|
||||
* Constructs a new DHCP type object.
|
||||
*/
|
||||
public function __construct() {
|
||||
parent::__construct();
|
||||
$this->LABEL_CREATE_ANOTHER_ACCOUNT = _('Create another DHCP entry');
|
||||
$this->LABEL_BACK_TO_ACCOUNT_LIST = _('Back to DHCP list');
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the alias name of this account type.
|
||||
*
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
$Id$
|
||||
|
||||
This code is part of LDAP Account Manager (http://www.sourceforge.net/projects/lam)
|
||||
Copyright (C) 2005 - 2006 Roland Gruber
|
||||
Copyright (C) 2005 - 2009 Roland Gruber
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
|
@ -36,6 +36,15 @@ $Id$
|
|||
*/
|
||||
class group extends baseType {
|
||||
|
||||
/**
|
||||
* Constructs a new group type object.
|
||||
*/
|
||||
public function __construct() {
|
||||
parent::__construct();
|
||||
$this->LABEL_CREATE_ANOTHER_ACCOUNT = _('Create another group');
|
||||
$this->LABEL_BACK_TO_ACCOUNT_LIST = _('Back to group list');
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the alias name of this account type.
|
||||
*
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
$Id$
|
||||
|
||||
This code is part of LDAP Account Manager (http://www.sourceforge.net/projects/lam)
|
||||
Copyright (C) 2005 - 2006 Roland Gruber
|
||||
Copyright (C) 2005 - 2009 Roland Gruber
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
|
@ -35,6 +35,15 @@ $Id$
|
|||
*/
|
||||
class host extends baseType {
|
||||
|
||||
/**
|
||||
* Constructs a new host type object.
|
||||
*/
|
||||
public function __construct() {
|
||||
parent::__construct();
|
||||
$this->LABEL_CREATE_ANOTHER_ACCOUNT = _('Create another host');
|
||||
$this->LABEL_BACK_TO_ACCOUNT_LIST = _('Back to host list');
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the alias name of this account type.
|
||||
*
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
$Id$
|
||||
|
||||
This code is part of LDAP Account Manager (http://www.sourceforge.net/projects/lam)
|
||||
Copyright (C) 2005 - 2007 Roland Gruber
|
||||
Copyright (C) 2005 - 2009 Roland Gruber
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
|
@ -35,6 +35,15 @@ $Id$
|
|||
*/
|
||||
class mailAlias extends baseType {
|
||||
|
||||
/**
|
||||
* Constructs a new alias type object.
|
||||
*/
|
||||
public function __construct() {
|
||||
parent::__construct();
|
||||
$this->LABEL_CREATE_ANOTHER_ACCOUNT = _('Create another alias');
|
||||
$this->LABEL_BACK_TO_ACCOUNT_LIST = _('Back to alias list');
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the alias name of this account type.
|
||||
*
|
||||
|
|
|
@ -35,6 +35,15 @@ $Id$
|
|||
*/
|
||||
class netgroup extends baseType {
|
||||
|
||||
/**
|
||||
* Constructs a new group type object.
|
||||
*/
|
||||
public function __construct() {
|
||||
parent::__construct();
|
||||
$this->LABEL_CREATE_ANOTHER_ACCOUNT = _('Create another group');
|
||||
$this->LABEL_BACK_TO_ACCOUNT_LIST = _('Back to group list');
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the alias name of this account type.
|
||||
*
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
$Id$
|
||||
|
||||
This code is part of LDAP Account Manager (http://www.sourceforge.net/projects/lam)
|
||||
Copyright (C) 2005 - 2007 Roland Gruber
|
||||
Copyright (C) 2005 - 2009 Roland Gruber
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
|
@ -35,6 +35,15 @@ $Id$
|
|||
*/
|
||||
class smbDomain extends baseType {
|
||||
|
||||
/**
|
||||
* Constructs a new domain type object.
|
||||
*/
|
||||
public function __construct() {
|
||||
parent::__construct();
|
||||
$this->LABEL_CREATE_ANOTHER_ACCOUNT = _('Create another domain');
|
||||
$this->LABEL_BACK_TO_ACCOUNT_LIST = _('Back to domain list');
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the alias name of this account type.
|
||||
*
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
$Id$
|
||||
|
||||
This code is part of LDAP Account Manager (http://www.sourceforge.net/projects/lam)
|
||||
Copyright (C) 2005 - 2006 Roland Gruber
|
||||
Copyright (C) 2005 - 2009 Roland Gruber
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
|
@ -35,6 +35,15 @@ $Id$
|
|||
*/
|
||||
class user extends baseType {
|
||||
|
||||
/**
|
||||
* Constructs a new user type object.
|
||||
*/
|
||||
public function __construct() {
|
||||
parent::__construct();
|
||||
$this->LABEL_CREATE_ANOTHER_ACCOUNT = _('Create another user');
|
||||
$this->LABEL_BACK_TO_ACCOUNT_LIST = _('Back to user list');
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the alias name of this account type.
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue