[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] CVS: addressbook/inc class.uiaddressbook.inc.php,1.40
From: |
Miles Lott <address@hidden> |
Subject: |
[Phpgroupware-cvs] CVS: addressbook/inc class.uiaddressbook.inc.php,1.40,1.41 |
Date: |
Mon, 18 Mar 2002 21:44:18 -0500 |
Update of /cvsroot/phpgroupware/addressbook/inc
In directory subversions:/tmp/cvs-serv2810/inc
Modified Files:
class.uiaddressbook.inc.php
Log Message:
Allow admin to enable remote search (off by default)
Index: class.uiaddressbook.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/addressbook/inc/class.uiaddressbook.inc.php,v
retrieving revision 1.40
retrieving revision 1.41
diff -C2 -r1.40 -r1.41
*** class.uiaddressbook.inc.php 14 Mar 2002 14:06:04 -0000 1.40
--- class.uiaddressbook.inc.php 19 Mar 2002 02:44:15 -0000 1.41
***************
*** 297,300 ****
--- 297,301 ----
$this->template->set_block('addressbook_list_t','column','column');
$this->template->set_block('addressbook_list_t','row','row');
+
$this->template->set_block('addressbook_list_t','remsearch','remsearch');
$this->template->set_block('addressbook_list_t','addressbook_footer','addressbook_footer');
***************
*** 473,478 ****
$GLOBALS['phpgw_info']['theme']['th_bg'],1,1,1,1,$this->cat_id);
- $search_remote = $this->remote_search_option();
-
$lang_showing =
$GLOBALS['phpgw']->nextmatchs->show_hits($total_records,$this->start);
--- 474,477 ----
***************
*** 487,496 ****
$this->template->set_var('searchreturn',$noprefs . ' '
. $searchreturn);
-
$this->template->set_var('remote_search',$GLOBALS['phpgw']->link('/index.php','menuaction=addressbook.uiaddressbook.remote_search'));
-
$this->template->set_var('remote_query',$GLOBALS['HTTP_POST_VARS']['remote_query']);
-
$this->template->set_var('lang_remote_search',lang('Remote Search'));
$this->template->set_var('lang_showing',$lang_showing);
$this->template->set_var('search_filter',$search_filter);
-
$this->template->set_var('search_remote',$search_remote);
$this->template->set_var('cats',lang('Category'));
$this->template->set_var('cats_url',$GLOBALS['phpgw']->link('/index.php','menuaction=addressbook.uiaddressbook.index'));
--- 486,491 ----
***************
*** 522,525 ****
--- 517,532 ----
$this->template->set_var('cols',$cols);
+
if(@isset($GLOBALS['phpgw_info']['server']['enable_remote_addressbook']))
+ {
+
$this->template->set_var('remote_search',$GLOBALS['phpgw']->link('/index.php','menuaction=addressbook.uiaddressbook.remote_search'));
+
$this->template->set_var('remote_query',$GLOBALS['HTTP_POST_VARS']['remote_query']);
+
$this->template->set_var('lang_remote_search',lang('Remote Search'));
+
$this->template->set_var('search_remote',$this->remote_search_option());
+ $this->template->fp('remotesearch','remsearch');
+ }
+ else
+ {
+ $this->template->set_var('remotesearch','');
+ }
$this->template->pparse('out','addressbook_header');
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] CVS: addressbook/inc class.uiaddressbook.inc.php,1.40,1.41,
Miles Lott <address@hidden> <=
- Prev by Date:
[Phpgroupware-cvs] CVS: addressbook/templates/default config.tpl,1.7,1.8 form.tpl,1.16,1.17 index.tpl,1.6,1.7
- Next by Date:
[Phpgroupware-cvs] CVS: addressbook csv_import.php,1.7,1.8
- Previous by thread:
[Phpgroupware-cvs] CVS: addressbook/templates/default config.tpl,1.7,1.8 form.tpl,1.16,1.17 index.tpl,1.6,1.7
- Next by thread:
[Phpgroupware-cvs] CVS: addressbook csv_import.php,1.7,1.8
- Index(es):