forked from extern/egroupware
added some german translations
added a way to inlcude plugins into editaccount.php
This commit is contained in:
parent
55520a7296
commit
0c0924738c
@ -23,7 +23,7 @@
|
|||||||
// creates the html for the user data
|
// creates the html for the user data
|
||||||
function createPageBody($_account_id,$_userData='',$_errors='')
|
function createPageBody($_account_id,$_userData='',$_errors='')
|
||||||
{
|
{
|
||||||
global $phpgw, $phpgw_info;
|
global $phpgw, $phpgw_info, $t;
|
||||||
|
|
||||||
$t = CreateObject('phpgwapi.Template',PHPGW_APP_TPL);
|
$t = CreateObject('phpgwapi.Template',PHPGW_APP_TPL);
|
||||||
$t->set_unknowns('remove');
|
$t->set_unknowns('remove');
|
||||||
@ -39,6 +39,7 @@
|
|||||||
$t->set_block('account','form','form');
|
$t->set_block('account','form','form');
|
||||||
$t->set_block('account','form_passwordinfo','form_passwordinfo');
|
$t->set_block('account','form_passwordinfo','form_passwordinfo');
|
||||||
$t->set_block('account','form_buttons_','form_buttons_');
|
$t->set_block('account','form_buttons_','form_buttons_');
|
||||||
|
$t->set_block('account','link_row','link_row');
|
||||||
|
|
||||||
print_debug('Type : '.gettype($_userData).'<br>_userData(size) = "'.$_userData.'"('.strlen($_userData).')');
|
print_debug('Type : '.gettype($_userData).'<br>_userData(size) = "'.$_userData.'"('.strlen($_userData).')');
|
||||||
if (is_array($_userData))
|
if (is_array($_userData))
|
||||||
@ -231,6 +232,8 @@
|
|||||||
);
|
);
|
||||||
$t->set_var($var);
|
$t->set_var($var);
|
||||||
|
|
||||||
|
$phpgw->common->hook('edit_account');
|
||||||
|
|
||||||
echo $t->fp('out','form');
|
echo $t->fp('out','form');
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -369,6 +372,30 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function display_section($appname,$title,$file)
|
||||||
|
{
|
||||||
|
global $phpgw, $phpgw_info, $account_id;
|
||||||
|
$i = 0;
|
||||||
|
$color[1] = $phpgw_info['theme']['row_off'];
|
||||||
|
$color[0] = $phpgw_info['theme']['row_on'];
|
||||||
|
while(list($text,$url) = each($file))
|
||||||
|
{
|
||||||
|
$url = $phpgw->link($url,"account_id=$account_id");
|
||||||
|
section_item($url,lang($text),$color[$i%2]);
|
||||||
|
$i++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function section_item($pref_link='',$pref_text='', $bgcolor)
|
||||||
|
{
|
||||||
|
global $phpgw, $phpgw_info, $t;
|
||||||
|
|
||||||
|
$t->set_var('pref_link',$pref_link);
|
||||||
|
$t->set_var('pref_text',$pref_text);
|
||||||
|
$t->set_var('tr_color',$bgcolor);
|
||||||
|
$t->parse('rows','link_row',True);
|
||||||
|
}
|
||||||
|
|
||||||
// todo
|
// todo
|
||||||
// not needed if i use the same file for new users too
|
// not needed if i use the same file for new users too
|
||||||
if (! $account_id)
|
if (! $account_id)
|
||||||
|
11
admin/inc/hook_edit_account.inc.php
Normal file
11
admin/inc/hook_edit_account.inc.php
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
<?php
|
||||||
|
{
|
||||||
|
// Only Modify the $file and $title variables.....
|
||||||
|
$title = $appname;
|
||||||
|
$file = Array(
|
||||||
|
'userdata' => '/admin/editaccount.php'
|
||||||
|
);
|
||||||
|
//Do not modify below this line
|
||||||
|
display_section($appname,$title,$file);
|
||||||
|
}
|
||||||
|
?>
|
@ -78,3 +78,4 @@ view sessions admin de Sitzungen anzeigen
|
|||||||
you must add at least 1 permission to this account admin de Sie müssen diesem Konto mindestens eine Berechtigung zuteilen
|
you must add at least 1 permission to this account admin de Sie müssen diesem Konto mindestens eine Berechtigung zuteilen
|
||||||
you must enter an application name and title. admin de Sie müssen der Anwendung einen Namen und einen Titel geben.
|
you must enter an application name and title. admin de Sie müssen der Anwendung einen Namen und einen Titel geben.
|
||||||
you must select a file type admin de Sie müssen einen Filetyp auswählen
|
you must select a file type admin de Sie müssen einen Filetyp auswählen
|
||||||
|
userdata admin de Benutzerdaten
|
||||||
|
@ -96,3 +96,4 @@ you must add at least 1 permission or group to this account admin en You must ad
|
|||||||
you must enter an application name and title. admin en You must enter an application name and title.
|
you must enter an application name and title. admin en You must enter an application name and title.
|
||||||
you must select a file type admin en You must select a file type
|
you must select a file type admin en You must select a file type
|
||||||
You will need to remove the subcategories before you can delete the parent category admin en You will need to remove the subcategories before you can delete the parent category !
|
You will need to remove the subcategories before you can delete the parent category admin en You will need to remove the subcategories before you can delete the parent category !
|
||||||
|
userdata admin en userdata
|
||||||
|
@ -4,7 +4,18 @@
|
|||||||
|
|
||||||
<form method="POST" action="{form_action}">
|
<form method="POST" action="{form_action}">
|
||||||
<center>
|
<center>
|
||||||
<table border=0 width=85%>
|
<table border="0" width="95%">
|
||||||
|
<tr>
|
||||||
|
<td valign="top">
|
||||||
|
<table border="0" width="100%">
|
||||||
|
<tr bgcolor="{th_bg}">
|
||||||
|
<td colspan="4"> </td>
|
||||||
|
</tr>
|
||||||
|
{rows}
|
||||||
|
</table>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<table border=0 width=100%>
|
||||||
<tr bgcolor="{th_bg}">
|
<tr bgcolor="{th_bg}">
|
||||||
<td colspan="4"> </td>
|
<td colspan="4"> </td>
|
||||||
</tr>
|
</tr>
|
||||||
@ -38,10 +49,11 @@
|
|||||||
|
|
||||||
{permissions_list}
|
{permissions_list}
|
||||||
|
|
||||||
{gui_hooks}
|
|
||||||
|
|
||||||
{form_buttons}
|
{form_buttons}
|
||||||
|
|
||||||
|
</table>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</center>
|
</center>
|
||||||
</form>
|
</form>
|
||||||
@ -71,3 +83,9 @@
|
|||||||
<td>{account_lastloginfrom}</td>
|
<td>{account_lastloginfrom}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<!-- END form_logininfo -->
|
<!-- END form_logininfo -->
|
||||||
|
|
||||||
|
<!-- BEGIN link_row -->
|
||||||
|
<tr bgcolor="{tr_color}">
|
||||||
|
<td colspan="2"> <a href="{pref_link}">{pref_text}</a></td>
|
||||||
|
</tr>
|
||||||
|
<!-- END link_row -->
|
||||||
|
@ -72,3 +72,9 @@
|
|||||||
<td>{account_lastloginfrom}</td>
|
<td>{account_lastloginfrom}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<!-- END form_logininfo -->
|
<!-- END form_logininfo -->
|
||||||
|
|
||||||
|
<!-- BEGIN link_row -->
|
||||||
|
<tr bgcolor="{tr_color}">
|
||||||
|
<td colspan="2"> <a href="{pref_link}">{pref_text}</a></td>
|
||||||
|
</tr>
|
||||||
|
<!-- END link_row -->
|
||||||
|
@ -78,3 +78,11 @@ you have not entered a\nbrief description calendar de Sie haben keine a\nKurzbes
|
|||||||
you have not entered a\nvalid time of day calendar de Sie haben keine a\ngültige Tageszeit eingegeben.
|
you have not entered a\nvalid time of day calendar de Sie haben keine a\ngültige Tageszeit eingegeben.
|
||||||
you must enter one or more search keywords calendar de Sie müssen einen oder mehrere Suchbegriffe angeben
|
you must enter one or more search keywords calendar de Sie müssen einen oder mehrere Suchbegriffe angeben
|
||||||
your suggested time of <b> x - x </b> conflicts with the following existing calendar entries: calendar de Der von Ihnen gewählte Zeitraum <B> %1 - %2 </B> führt zu Konflikten mit folgenden bereits existierenden Kalendereinträgen:
|
your suggested time of <b> x - x </b> conflicts with the following existing calendar entries: calendar de Der von Ihnen gewählte Zeitraum <B> %1 - %2 </B> führt zu Konflikten mit folgenden bereits existierenden Kalendereinträgen:
|
||||||
|
Calendar Holiday Management calendar de Feiertage verwalten
|
||||||
|
Countries calendar de Länder
|
||||||
|
Holidays calendar de Feiertage
|
||||||
|
Back calendar de zurück
|
||||||
|
Holiday calendar de Feiertag
|
||||||
|
Reset calendar de Zurücksetzen
|
||||||
|
Occurence calendar de Wiederholung
|
||||||
|
Observance Rule calendar de Observance Rule
|
||||||
|
Loading…
Reference in New Issue
Block a user