[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] CVS: property/inc class.uiXport.inc.php,1.11,1.12
From: |
Sigurd Nes <address@hidden> |
Subject: |
[Phpgroupware-cvs] CVS: property/inc class.uiXport.inc.php,1.11,1.12 |
Date: |
Sat, 11 Jan 2003 13:55:46 -0500 |
Update of /cvsroot/phpgroupware/property/inc
In directory subversions:/tmp/cvs-serv8727/inc
Modified Files:
class.uiXport.inc.php
Log Message:
no message
Index: class.uiXport.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/property/inc/class.uiXport.inc.php,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -r1.11 -r1.12
*** class.uiXport.inc.php 9 Jan 2003 23:10:22 -0000 1.11
--- class.uiXport.inc.php 11 Jan 2003 18:55:43 -0000 1.12
***************
*** 6,11 ****
var $template;
var $public_functions = array(
! 'import' => True,
! 'export' => True
);
var $bo;
--- 6,12 ----
var $template;
var $public_functions = array(
! 'import' => True,
! 'export' => True,
! 'rollback' => True
);
var $bo;
***************
*** 495,498 ****
--- 496,567 ----
$message =
$this->bo->export($values['conv_type'],$values['download']);
}
+ endif;
+ }
+ else
+ {
+ $date =
$GLOBALS['phpgw']->common->show_date(mktime(0,0,0,date("m"),date("d"),date("Y")),$GLOBALS['phpgw_info']['user']['preferences']['common']['dateformat']);
+ }
+
+
+ $link_data = array
+ (
+ 'menuaction' =>
$this->currentapp.'.uiXport.export',
+ 'invoice_id' => $invoice_id,
+ 'sub' => $sub);
+
+ $data = array
+ (
+ 'links'
=> $links,
+ 'error'
=> $receipt['error'],
+ 'appname'
=> lang($this->currentapp),
+ 'function_msg'
=> lang('Export invoice'),
+ 'lang_select_conv'
=> lang('Select conversion'),
+ 'conv_list'
=> $this->bo->select_export_conv($values['conv_type']),
+ 'select_conv'
=> 'values[conv_type]',
+ 'lang_conv_statustext' =>
lang('Select conversion'),
+
+
+ 'lang_rollback_file' =>
lang('Roll back'),
+ 'link_rollback_file' =>
$GLOBALS['phpgw']->link('/index.php','menuaction='.$this->currentapp.'.uiXport.rollback&sub='.$sub),
+
+ 'lang_export_to_file' =>
lang('Export to file'),
+ 'value_debug'
=> $values['debug'],
+
+ 'lang_submit'
=> lang('Submit'),
+ 'lang_cancel'
=> lang('Cancel'),
+
+ 'message'
=> $message,
+ 'form_action'
=> $GLOBALS['phpgw']->link('/index.php',$link_data),
+ 'lang_save'
=> lang('save')
+ );
+
+ //_debug_array($data);
+
+
$GLOBALS['phpgw']->xslttpl->set_var('phpgw',array('export' => $data));
+ }
+
+ function rollback()
+ {
+
$GLOBALS['phpgw']->xslttpl->add_file(array('invoice','menu',
+
$GLOBALS['phpgw']->common->get_tpl_dir('phpgwapi','default') . SEP .
'app_header',
+
$GLOBALS['phpgw']->common->get_tpl_dir('phpgwapi','default') . SEP .
'filter_select',
+
$GLOBALS['phpgw']->common->get_tpl_dir('phpgwapi','default') . SEP .
'search_field'));
+
+ $values = get_var('values',array('POST','GET'));
+ $date = get_var('date',array('POST','GET'));
+ //_debug_array($values);
+
+ $sub = get_var('sub',array('POST','GET'));
+
+ $links = $this->bocommon->menu($sub);
+
+ if($values['submit'])
+ {
+ if (!$values['conv_type'] && !$values['file'] ):
+ {
+ $receipt['error'][0]['msg']= lang('No
conversion type could be located.');
+ $receipt['error'][1]['msg']=
lang('Please choose a conversion type from the list');
+ echo ' <a
href="'.$GLOBALS['phpgw']->link('/index.php','menuaction=property.uiXport.export')
. '">' . lang('OK') . '</a>';
+ }
elseif($values['conv_type'] && $values['file']):
{
***************
*** 537,541 ****
'error'
=> $receipt['error'],
'appname'
=> lang($this->currentapp),
! 'function_msg'
=> lang('Export invoice'),
'lang_select_conv'
=> lang('Select conversion'),
'conv_list'
=> $this->bo->select_export_conv($values['conv_type']),
--- 606,610 ----
'error'
=> $receipt['error'],
'appname'
=> lang($this->currentapp),
! 'function_msg'
=> lang('Rollback invoice'),
'lang_select_conv'
=> lang('Select conversion'),
'conv_list'
=> $this->bo->select_export_conv($values['conv_type']),
***************
*** 567,572 ****
//_debug_array($data);
!
$GLOBALS['phpgw']->xslttpl->set_var('phpgw',array('export' => $data));
}
--- 636,643 ----
//_debug_array($data);
!
$GLOBALS['phpgw']->xslttpl->set_var('phpgw',array('rollback' => $data));
}
+
+
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] CVS: property/inc class.uiXport.inc.php,1.11,1.12,
Sigurd Nes <address@hidden> <=