diff --git a/addressbook/templates/default/view.tpl b/addressbook/templates/default/view.tpl
index 2517ff860f..dd544491fe 100644
--- a/addressbook/templates/default/view.tpl
+++ b/addressbook/templates/default/view.tpl
@@ -33,40 +33,17 @@
diff --git a/addressbook/view.php b/addressbook/view.php
index 181d3ffa98..6f2b2129c7 100755
--- a/addressbook/view.php
+++ b/addressbook/view.php
@@ -239,63 +239,66 @@
$sfields = rawurlencode(serialize($fields[0]));
+ function html_input_hidden($vars) {
+ if (!is_array($vars)) return '';
+ while (list($name,$value) = each($vars)) {
+ if ($value != '') // dont need to send all the empty vars
+ $html .= "\n";
+ }
+ return $html;
+ }
+
+ function html_submit_button($name,$lang) {
+ return "\n";
+ }
+
+ function phpgw_link($url,$vars='') {
+ global $phpgw;
+ if (is_array( $vars )) {
+ while(list($name,$value) = each($vars)) {
+ if ($value != '') // dont need to send all the empty vars
+ $v[] = "$name=$value";
+ }
+ $vars = implode('&',$v);
+ }
+ return $phpgw->link($url,$vars);
+ }
+
+ function html_1button_form($name,$lang,$hidden_vars,$url,$url_vars='',$method='POST') {
+ $html = "\n";
+ return $html;
+ }
+
+ $common_vars = array('sort' => $sort,'order' => $order,'filter' => $filter,'start' => $start); // common vars for all buttons
+
if (($this->grants[$record_owner] & PHPGW_ACL_EDIT) || ($record_owner == $phpgw_info['user']['account_id']))
{
- if ($referer)
- {
- $t->set_var('edit_link','