[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] sync/inc/class.ui_outlook_import.inc.php, 1.2
From: |
nomail |
Subject: |
[Phpgroupware-cvs] sync/inc/class.ui_outlook_import.inc.php, 1.2 |
Date: |
Wed, 14 Jul 2004 20:56:09 +0200 |
Update of /sync/inc
Modified Files:
Branch:
class.ui_outlook_import.inc.php
date: 2004/07/14 18:56:09; author: mkaemmerer; state: Exp; lines: +19 -11
Log Message:
- select addressbook categories instead of global categories
- chose subdirectory instead of edit field
=====================================================================
Index: sync/inc/class.ui_outlook_import.inc.php
diff -u sync/inc/class.ui_outlook_import.inc.php:1.1
sync/inc/class.ui_outlook_import.inc.php:1.2
--- sync/inc/class.ui_outlook_import.inc.php:1.1 Tue Jul 13 18:24:30 2004
+++ sync/inc/class.ui_outlook_import.inc.php Wed Jul 14 18:56:09 2004
@@ -25,6 +25,7 @@
{
$this->template = $GLOBALS['phpgw']->template;
$this->cat = CreateObject('phpgwapi.categories');
+ $this->cat->app_name = 'addressbook';
$this->browser = CreateObject('phpgwapi.browser');
}
@@ -55,13 +56,16 @@
function import()
{
+ $dir = "c:\\a";
+
if ($_REQUEST['convert'])
{
$GLOBALS['phpgw']->common->phpgw_header();
echo parse_navbar();
$bo = CreateObject('sync.bo_outlook_import');
+ error_log($_REQUEST['folder']);
- $bo->sync(stripslashes($_REQUEST['tsvfile']),
$_REQUEST['fcat_id']);
+ $bo->sync($dir . "\\" .
stripslashes($_REQUEST['folder']), $_REQUEST['fcat_id']);
}
else
{
@@ -69,26 +73,30 @@
echo parse_navbar();
set_time_limit(0);
-
- $this->template->set_file(array('import' =>
'import.tpl'));
-
+
+ $folder = dir($dir);
+ while ($foldername = $folder->read())
+ {
+ if (is_dir($dir . "\\" . $foldername) && (!ereg($foldername,
'^\.')))
+ {
+ $folders = $folders.'<option>' . $foldername . '</option>';
+ }
+
+ }
+
+ $this->template->set_file(array('import' =>
'import.tpl'));
$this->template->set_var('lang_cancel',lang('Cancel'));
$this->template->set_var('lang_cat',lang('Select Category'));
$this->template->set_var('cancel_url',$GLOBALS['phpgw']->link('/index.php','menuaction=sync.ui_sync.init'));
$this->template->set_var('navbar_bg',$GLOBALS['phpgw_info']['theme']['navbar_bg']);
$this->template->set_var('navbar_text',$GLOBALS['phpgw_info']['theme']['navbar_text']);
- $this->template->set_var('import_text','Outlook
vCard Sync');
$this->template->set_var('action_url',$GLOBALS['phpgw']->link('/index.php','menuaction=sync.ui_outlook_import.import'));
$this->template->set_var('cat_link',$this->cat_option($this->cat_id,False,False));
+ $this->template->set_var('dir_options',
$folders);
$this->template->set_var('tsvfilename','');
$this->template->set_var('debug',lang('Debug
output in browser'));
$this->template->set_var('filetype',lang('LDIF'));
$this->template->set_var('download',lang('Submit'));
- $this->template->set_var('start',$this->start);
- $this->template->set_var('sort',$this->sort);
- $this->template->set_var('order',$this->order);
-
$this->template->set_var('filter',$this->filter);
- $this->template->set_var('query',$this->query);
$this->template->set_var('cat_id',$this->cat_id);
$this->template->pparse('out','import');
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] sync/inc/class.ui_outlook_import.inc.php, 1.2,
nomail <=