From 0c7dce869d1cee584cc600599d2b6a75081d8709 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sat, 14 Nov 2009 18:31:39 +0000 Subject: [PATCH] *** empty log message *** --- lam/config/profiles/default.asteriskExt | Bin 0 -> 835 bytes lam/graphics/asterisk.png | Bin 0 -> 1721 bytes lam/lib/types/asteriskExt.inc | 126 ++++++++++++++++++++++++ lam/style/600_type_asteriskExt.css | 119 ++++++++++++++++++++++ 4 files changed, 245 insertions(+) create mode 100644 lam/config/profiles/default.asteriskExt create mode 100644 lam/graphics/asterisk.png create mode 100644 lam/lib/types/asteriskExt.inc create mode 100644 lam/style/600_type_asteriskExt.css diff --git a/lam/config/profiles/default.asteriskExt b/lam/config/profiles/default.asteriskExt new file mode 100644 index 0000000000000000000000000000000000000000..c438872542216b5b775f9d5d4658f39a2c9595e1 GIT binary patch literal 835 zcmV-J1HAkniwFn+0000014~b4W@%$(AYpKDY-wX*bZKvHFL*6$cW-iJ1O@=@meEq; zFcgNl_9fy(7RJKf7Gx6oO)iujO9_s3elSzYh@zQoh2MaJ82>%2d@b>XuQlVD6Z$QDJF%8CPx#32;bRa{vGf6951U69E94oEQKA00(qQO+^RU3l0((3uJ+pssI26OG!jQR9M5s zmu+aCR~g5D|8w8ZlP52I(!94#)mlf|O>M2#>Z(=iXvKcnVEBT}K|zK?j7^q-Or;k6 zP;g5^1ULOM(BY^cSUM>CV25nrx@O(FN+@e+k}a-Dnm3XreO~VSTz+_7e9|Rr9YW8y z`@YY)&i}s7|N3A5BQxVpj`05xWV~C|0GWtHDkLAxVOyTH%p-1@ zc7u&TmBBmmoHH>d<6Pr_jejTrGe`7!!S{eqBSyS2C^#?A)#Z>GfQ5SEno(S|j$}iU zO+@UGxF6VT#;`L+ZiM`P(^K~DZ37tX()zUVpuqzeW8OHi6mW4%pUvM6@TqQX4Lv_b z?8Ufl#@Sqg-i=S%^eq8QKC0HRibo`NndiAh$4jM+r+=dTPHY8;J#V)R*vo6id0ef@ zh@YFWAF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ev/null +++ b/lam/lib/types/asteriskExt.inc @@ -0,0 +1,126 @@ +LABEL_CREATE_ANOTHER_ACCOUNT = _('Create another extension'); + $this->LABEL_BACK_TO_ACCOUNT_LIST = _('Back to extensions list'); + } + + /** + * Returns the alias name of this account type. + * + * @return string alias name + */ + function getAlias() { + return _("Asterisk extensions"); + } + + /** + * Returns the description of this account type. + * + * @return string description + */ + function getDescription() { + return _("Asterisk extensions entries"); + } + + /** + * Returns the class name for the list object. + * + * @return string class name + */ + function getListClassName() { + return "lamAsteriskExtList"; + } + + /** + * Returns the default attribute list for this account type. + * + * @return string attribute list + */ + function getDefaultListAttributes() { + return "#cn;#AstExtension;#AstPriority"; + } + + /** + * Returns a list of attributes which have a translated description. + * This is used for the head row in the list view. + * + * @return array list of descriptions + */ + function getListAttributeDescriptions() { + return array( + "cn" => _("Extension name"), + "astextension" => _("Label"), + "astpriority" => _("Priority") + ); + } + +} + + +/** + * Generates the list view. + * + * @package lists + * @author Pozdnyak Pavel + * + */ +class lamAsteriskExtList extends lamList { + + /** + * Constructor + * + * @param string $type account type + * @return lamList list object + */ + function __construct($type) { + parent::__construct($type); + $this->labels = array( + 'nav' => _("%s extension(s) found"), + 'error_noneFound' => _("No extension(s) found!"), + 'newEntry' => _("New extension"), + 'deleteEntry' => _("Delete extension(s)")); + } + +} + +?> diff --git a/lam/style/600_type_asteriskExt.css b/lam/style/600_type_asteriskExt.css new file mode 100644 index 00000000..96142f7f --- /dev/null +++ b/lam/style/600_type_asteriskExt.css @@ -0,0 +1,119 @@ +/* +$Id$ + + This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/) + Copyright (C) 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 + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more detaexils. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + +*/ + + +/** + * style definition for Asterisk accounts + */ + + +/* navigation bar */ +table.asteriskExtnav { + background-color:#fff3c8; + border-width:1px; + border-style:solid; + border-color:#af8800; +} + +/* input elements */ +table.asteriskExtnav input { + background-color:#ffe27f; +} + +/* text in navigation bar */ +td.asteriskExtnav-text { + color:green; + font-family:Verdana,sans-serif; + font-size:12px; +} + +/* color for active page digit */ +td.asteriskExtnav-activepage { + color:red; +} + +/* table preferences */ +table.asteriskExtlist { + border-width:1px; + border-style:solid; + border-color:#af8800; + border-collapse:collapse; +} + +table.asteriskExtlist td,th { + border-color:#af8800; +} + +/* input elements */ +table.asteriskExtlist input,select,button { + background-color:#ffe27f; +} + +/* color of entry rows */ +tr.asteriskExtlist { + background-color:#fff3c8; +} + +/* color of head row */ +tr.asteriskExtlist-head { + background-color:#ffe27f; +} + +/* color of sorted column in head row */ +th.asteriskExtlist-sort { + background-color:#fff3c8; +} + +/* color of rows on mouseOver */ +tr.asteriskExtlist-over { + background-color:#ffe27f; +} + +/* color of checked rows */ +tr.asteriskExtlist-checked { + background-color:#f27c71; +} + +fieldset.asteriskExtedit { + background-color:#fff3c8; + border:1px solid #af8800; +} + +fieldset.asteriskExtedit legend { + color:blue; +} + +/* input elements */ +fieldset.asteriskExtedit input,select,button { + background-color:#ffe27f; +} + +/* input elements */ +input.asteriskExt { + background-color:#ffe27f; +} + +/* select elements */ +select.asteriskExt { + background-color:#ffe27f; +} +