added some german translations

added a way to inlcude plugins into editaccount.php
This commit is contained in:
Lars Kneschke 2001-07-01 17:29:49 +00:00
parent 55520a7296
commit 0c0924738c
7 changed files with 76 additions and 4 deletions

View File

@ -23,7 +23,7 @@
// creates the html for the user data
function createPageBody($_account_id,$_userData='',$_errors='')
{
global $phpgw, $phpgw_info;
global $phpgw, $phpgw_info, $t;
$t = CreateObject('phpgwapi.Template',PHPGW_APP_TPL);
$t->set_unknowns('remove');
@ -39,6 +39,7 @@
$t->set_block('account','form','form');
$t->set_block('account','form_passwordinfo','form_passwordinfo');
$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).')');
if (is_array($_userData))
@ -230,6 +231,8 @@
'permissions_list' => $appRightsOutput
);
$t->set_var($var);
$phpgw->common->hook('edit_account');
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
// not needed if i use the same file for new users too
if (! $account_id)

View 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);
}
?>

View 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 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
userdata admin de Benutzerdaten

View File

@ -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 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 !
userdata admin en userdata

View File

@ -4,7 +4,18 @@
<form method="POST" action="{form_action}">
<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">&nbsp;</td>
</tr>
{rows}
</table>
</td>
<td>
<table border=0 width=100%>
<tr bgcolor="{th_bg}">
<td colspan="4">&nbsp;</td>
</tr>
@ -38,11 +49,12 @@
{permissions_list}
{gui_hooks}
{form_buttons}
</table>
</td>
</tr>
</table>
</center>
</form>
<!-- END form -->
@ -71,3 +83,9 @@
<td>{account_lastloginfrom}</td>
</tr>
<!-- END form_logininfo -->
<!-- BEGIN link_row -->
<tr bgcolor="{tr_color}">
<td colspan="2">&nbsp;&nbsp;<a href="{pref_link}">{pref_text}</a></td>
</tr>
<!-- END link_row -->

View File

@ -72,3 +72,9 @@
<td>{account_lastloginfrom}</td>
</tr>
<!-- END form_logininfo -->
<!-- BEGIN link_row -->
<tr bgcolor="{tr_color}">
<td colspan="2">&nbsp;&nbsp;<a href="{pref_link}">{pref_text}</a></td>
</tr>
<!-- END link_row -->

View File

@ -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 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:
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