mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-24 14:11:29 +01:00
sorting infolog types (incl. custom ones) alphabetically
This commit is contained in:
parent
05cd4a36d9
commit
e677e8979d
@ -179,6 +179,12 @@ class boinfolog
|
|||||||
$this->enums['type'] += $this->config->config_data['types'];
|
$this->enums['type'] += $this->config->config_data['types'];
|
||||||
//echo "types:<pre>"; print_r($this->enums['type']); echo "</pre>\n";
|
//echo "types:<pre>"; print_r($this->enums['type']); echo "</pre>\n";
|
||||||
}
|
}
|
||||||
|
// sort types by there translation
|
||||||
|
foreach($this->enums['type'] as $key => $val)
|
||||||
|
{
|
||||||
|
if (($val = lang($key)) != $key.'*') $this->enums['type'][$key] = lang($key);
|
||||||
|
}
|
||||||
|
natcasesort($this->enums['type']);
|
||||||
if (isset($this->config->config_data['customfields']) && is_array($this->config->config_data['customfields']))
|
if (isset($this->config->config_data['customfields']) && is_array($this->config->config_data['customfields']))
|
||||||
{
|
{
|
||||||
if (!($this->customfields = $this->config->config_data['customfields'])) $this->customfields = array();
|
if (!($this->customfields = $this->config->config_data['customfields'])) $this->customfields = array();
|
||||||
|
File diff suppressed because one or more lines are too long
@ -58,7 +58,7 @@
|
|||||||
<description value="Action" align="center" statustext="deletes this field"/>
|
<description value="Action" align="center" statustext="deletes this field"/>
|
||||||
</row>
|
</row>
|
||||||
<row class="row" valign="top">
|
<row class="row" valign="top">
|
||||||
<listbox rows="3" id="${row}[type2]" statustext="for which types should this field be used"/>
|
<listbox rows="3" id="${row}[type2]" statustext="for which types should this field be used" no_lang="1"/>
|
||||||
<textbox size="20" maxlength="32" id="${row}[name]" statustext="the name used internaly (<= 20 chars), changeing it makes existing data unavailible"/>
|
<textbox size="20" maxlength="32" id="${row}[name]" statustext="the name used internaly (<= 20 chars), changeing it makes existing data unavailible"/>
|
||||||
<vbox options="0,0">
|
<vbox options="0,0">
|
||||||
<textbox maxlength="255" id="${row}[label]" statustext="the text displayed to the user"/>
|
<textbox maxlength="255" id="${row}[label]" statustext="the text displayed to the user"/>
|
||||||
@ -95,7 +95,7 @@
|
|||||||
<row>
|
<row>
|
||||||
<description value="Typ"/>
|
<description value="Typ"/>
|
||||||
<menulist>
|
<menulist>
|
||||||
<menupopup id="type2" onchange="1" statustext="select a typ to edit it's status-values or delete it"/>
|
<menupopup id="type2" onchange="1" statustext="select a typ to edit it's status-values or delete it" no_lang="1"/>
|
||||||
</menulist>
|
</menulist>
|
||||||
<button label="Delete" id="button[delete]" statustext="deletes the selected typ"/>
|
<button label="Delete" id="button[delete]" statustext="deletes the selected typ"/>
|
||||||
<textbox size="10" maxlength="40" id="new_name" statustext="name of new type to create" blur="new name"/>
|
<textbox size="10" maxlength="40" id="new_name" statustext="name of new type to create" blur="new name"/>
|
||||||
|
@ -141,7 +141,7 @@
|
|||||||
<row class="th" height="28">
|
<row class="th" height="28">
|
||||||
<description value="Type" options=",,,info_type"/>
|
<description value="Type" options=",,,info_type"/>
|
||||||
<menulist span="all">
|
<menulist span="all">
|
||||||
<menupopup id="info_type" onchange="1" statustext="Type of the log-entry: Note, Phonecall or ToDo"/>
|
<menupopup id="info_type" onchange="1" statustext="Type of the log-entry: Note, Phonecall or ToDo" no_lang="1"/>
|
||||||
</menulist>
|
</menulist>
|
||||||
</row>
|
</row>
|
||||||
<row class="row">
|
<row class="row">
|
||||||
|
@ -121,7 +121,7 @@
|
|||||||
<rows>
|
<rows>
|
||||||
<row class="th">
|
<row class="th">
|
||||||
<vbox options="0,0">
|
<vbox options="0,0">
|
||||||
<nextmatch-filterheader options="Type" id="info_type"/>
|
<nextmatch-filterheader options="Type" id="info_type" no_lang="1"/>
|
||||||
<nextmatch-filterheader options="Status" id="info_status" align="center"/>
|
<nextmatch-filterheader options="Status" id="info_status" align="center"/>
|
||||||
<nextmatch-sortheader label="Completed" id="info_percent" align="right"/>
|
<nextmatch-sortheader label="Completed" id="info_percent" align="right"/>
|
||||||
</vbox>
|
</vbox>
|
||||||
|
Loading…
Reference in New Issue
Block a user