forked from extern/egroupware
fix(?) donelink
This commit is contained in:
parent
4ed0543f9e
commit
f0888c316d
@ -210,25 +210,40 @@
|
|||||||
{
|
{
|
||||||
if ($referer)
|
if ($referer)
|
||||||
{
|
{
|
||||||
$t->set_var('edit_link','<form method="POST" action="' . $phpgw->link("/addressbook/edit.php",'referer='.urlencode($referer)).'">');
|
$t->set_var('edit_link','<form method="POST" action="'
|
||||||
|
. $phpgw->link("/addressbook/edit.php",'referer=' . urlencode($referer),
|
||||||
|
"cd=16&order=$order&sort=$sort&filter=$filter&start=$start&query=$query&cat_id=$cat_id").'">');
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$t->set_var('edit_link','<form method="POST" action="' . $phpgw->link("/addressbook/edit.php").'">');
|
$t->set_var('edit_link','<form method="POST" action="'
|
||||||
|
. $phpgw->link("/addressbook/edit.php",
|
||||||
|
"cd=16&order=$order&sort=$sort&filter=$filter&start=$start&query=$query&cat_id=$cat_id").'">');
|
||||||
}
|
}
|
||||||
$t->set_var('edit_button','<input type="submit" name="edit" value="' . lang('Edit') . '">');
|
$t->set_var('edit_button','<input type="submit" name="edit" value="' . lang('Edit') . '">');
|
||||||
}
|
}
|
||||||
|
|
||||||
$copylink = '<form method="POST" action="' . $phpgw->link("/addressbook/add.php").'">';
|
$copylink = '<form method="POST" action="' . $phpgw->link("/addressbook/add.php").'">';
|
||||||
$vcardlink = '<form method="POST" action="' . $phpgw->link("/addressbook/vcardout.php").'">';
|
if ($fields[0]['n_family'] && $fields[0]['n_given'])
|
||||||
if ($referer)
|
|
||||||
{
|
{
|
||||||
$referer = ereg_replace('/phpgroupware','',$referer);
|
$vcardlink = '<form method="POST" action="' . $phpgw->link("/addressbook/vcardout.php").'">';
|
||||||
$donelink = '<form method="POST" action="' . $phpgw->link($referer).'">';
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$donelink = '<form method="POST" action="' . $phpgw->link("/addressbook/index.php").'">';
|
$vcardlink = lang('no').' '.lang('vcard');
|
||||||
|
}
|
||||||
|
if ($referer)
|
||||||
|
{
|
||||||
|
$referer = ereg_replace('/phpgroupware','',$referer);
|
||||||
|
$donelink = '<form method="POST" action="'
|
||||||
|
. $phpgw->link($referer,
|
||||||
|
"cd=16&order=$order&sort=$sort&filter=$filter&start=$start&query=$query").'">';
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$donelink = '<form method="POST" action="'
|
||||||
|
. $phpgw->link("/addressbook/index.php",
|
||||||
|
"cd=16&order=$order&sort=$sort&filter=$filter&start=$start&query=$query").'">';
|
||||||
}
|
}
|
||||||
|
|
||||||
$t->set_var("access_link",$access_link);
|
$t->set_var("access_link",$access_link);
|
||||||
|
Loading…
Reference in New Issue
Block a user