[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] CVS: property/inc class.uiinvoice.inc.php,NONE,1.1
From: |
Sigurd Nes <address@hidden> |
Subject: |
[Phpgroupware-cvs] CVS: property/inc class.uiinvoice.inc.php,NONE,1.1 |
Date: |
Thu, 02 Jan 2003 17:05:13 -0500 |
Update of /cvsroot/phpgroupware/property/inc
In directory subversions:/tmp/cvs-serv12753/inc
Added Files:
class.uiinvoice.inc.php
Log Message:
no message
--- NEW FILE ---
<?php
/***************************************************************************\
* -------------------------------------------------
*
* This program is free software; you can redistribute it and/or modify
it *
* under the terms of the GNU General Public License as published by the
*
* Free Software Foundation; either version 2 of the License, or (at
your *
* option) any later version.
*
\***************************************************************************/
class uiinvoice
{
var $grants;
var $cat_id;
var $start;
var $query;
var $sort;
var $order;
var $filter;
var $user_lid;
var $sub;
var $currentapp;
var $public_functions = array
(
'index' => True,
'property' => True,
'equipment' => True
);
function uiinvoice()
{
$this->currentapp =
$GLOBALS['phpgw_info']['flags']['currentapp'];
$this->cats =
CreateObject('phpgwapi.categories');
$this->cats->app_name = 'building';
$this->nextmatchs =
CreateObject('phpgwapi.nextmatchs');
$this->account =
$GLOBALS['phpgw_info']['user']['account_id'];
$this->grants =
$GLOBALS['phpgw']->acl->get_grants($this->currentapp);
$this->grants[$this->account] = PHPGW_ACL_READ +
PHPGW_ACL_ADD + PHPGW_ACL_EDIT + PHPGW_ACL_DELETE;
$this->bo =
CreateObject($this->currentapp.'.boinvoice',True);
$this->bocommon =
CreateObject($this->currentapp.'.bocommon',True);
$this->start =
$this->bo->start;
$this->query =
$this->bo->query;
$this->sort =
$this->bo->sort;
$this->order =
$this->bo->order;
$this->filter =
$this->bo->filter;
$this->cat_id =
$this->bo->cat_id;
$this->sub =
$this->bo->sub;
$this->user_lid =
$this->bo->user_lid;
}
function save_sessiondata()
{
$data = array
(
'start' => $this->start,
'query' => $this->query,
'sort' => $this->sort,
'order' => $this->order,
'filter' => $this->filter,
'cat_id' => $this->cat_id,
'sub' => $this->sub,
'user_lid' => $this->user_lid
);
$this->bocommon->save_sessiondata($data);
}
function index()
{
$GLOBALS['phpgw']->xslttpl->add_file(array('invoice','menu',
'nextmatchs',
$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'));
$sub = get_var('sub',array('POST','GET'));
$links = $this->bocommon->menu($sub);
$content = $this->bo->read_invoice();
$table_header[] = array
(
'sort_invoice' =>
$this->nextmatchs->show_sort_order(array
(
'sort' => $this->sort,
'var' => 'bilagsnr',
'order' => $this->order,
'extra' => array('menuaction' =>
$this->currentapp.'.uiinvoice.index',
'cat_id'
=>$this->cat_id,
'sub'
=>$this->sub,
'user_lid'
=> $this->user_lid)
)),
'lang_invoice' =>
lang('invoice'),
'lang_invoice_date' =>
lang('Invoice Date'),
'lang_days'
=> lang('Days'),
'lang_sum'
=> lang('Sum'),
'lang_vendor_id' =>
lang('Vendor'),
'lang_num_sub_invoice' =>
lang('Count'),
'lang_period' =>
lang('Period'),
'lang_kredit' =>
lang('KreditNota'),
'lang_none'
=> lang('None'),
'lang_janitor' =>
lang('Janitor'),
'lang_supervisor' =>
lang('Supervisor'),
'lang_budget_responsible' => lang('Budget
Responsible'),
'lang_transfer' =>
lang('Transfer')
);
$table_done[] = array
(
'lang_done' =>
lang('Done'),
'lang_done_statustext' => lang('Close this
window')
);
$link_data = array
(
'menuaction' =>
$this->currentapp.'.uiinvoice.index',
'order' => $this->order,
'sort' => $this->sort,
'cat_id' =>
$this->cat_id,
'user_lid' =>
$this->user_lid,
'sub' => $this->sub,
'query' => $this->query,
'filter' => $this->filter
);
$data = array
(
'form_action'
=> $GLOBALS['phpgw']->link('/index.php',$link_data),
'lang_save'
=> lang('save'),
'done_action'
=>
$GLOBALS['phpgw']->link('/index.php','menuaction='.$this->currentapp.'.uiinvoice.index'),
'lang_done_statustext' =>
lang('Back to the list'),
'lang_save_statustext' =>
lang('Save the invoice'),
'links'
=> $links,
'allow_all_rows'
=> false,
'start_record'
=> $this->start,
'record_limit'
=> $GLOBALS['phpgw_info']['user']['preferences']['common']['maxmatchs'],
'num_records'
=> count($invoice_list),
'all_records'
=> $this->bo->total_records,
'link_url'
=> $GLOBALS['phpgw']->link('/index.php',$link_data),
'img_path'
=> $GLOBALS['phpgw']->common->get_image_path('phpgwapi'),
'appname'
=> lang($this->currentapp),
'function_msg'
=> lang('list invoice'),
'lang_no_cat'
=> lang('no category'),
'lang_cat_statustext' =>
lang('Select the category the building belongs to. To do not use a category
select NO CATEGORY'),
'select_name'
=> 'cat_id',
'cat_list'
=> $this->bo->select_category('filter',$this->cat_id),
'user_list'
=> $this->bo->get_invoice_user_list('filter',$this->user_lid),
'select_action'
=> $GLOBALS['phpgw']->link('/index.php',$link_data),
'lang_no_user'
=> lang('no user'),
'lang_user_statustext' =>
lang('Select the user the selection belongs to. To do not use a user select NO
USER'),
'select_user_name'
=> 'user_lid',
'lang_searchfield_statustext' => lang('Enter
the search string. To show all entries, empty this field and press the SUBMIT
button again'),
'lang_searchbutton_statustext' => lang('Submit
the search string'),
'query'
=> $this->query,
'lang_submit'
=> lang('submit'),
'table_header_list_invoice' =>
$table_header,
'values_list_invoice' =>
$content,
'table_done'
=> $table_done
);
//_debug_array($data);
$GLOBALS['phpgw']->xslttpl->set_var('phpgw',array('list_invoice' => $data));
$this->save_sessiondata();
}
}
?>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] CVS: property/inc class.uiinvoice.inc.php,NONE,1.1,
Sigurd Nes <address@hidden> <=
- Next by Date:
[Phpgroupware-cvs] CVS: property/inc class.bocommon.inc.php,1.1,1.2 class.boinvoice.inc.php,1.2,1.3 class.bolookup.inc.php,1.1,1.2 class.sobuilding.inc.php,1.2,1.3 class.socommon.inc.php,1.2,1.3 class.soinvoice.inc.php,1.2,1.3 class.solookup.inc.php,1.2,1.3 class.soproperty.inc.php,1.1,1.2 class.uilookup.inc.php,1.2,1.3 class.uiXport.inc.php,1.7,1.8
- Next by thread:
[Phpgroupware-cvs] CVS: property/inc class.bocommon.inc.php,1.1,1.2 class.boinvoice.inc.php,1.2,1.3 class.bolookup.inc.php,1.1,1.2 class.sobuilding.inc.php,1.2,1.3 class.socommon.inc.php,1.2,1.3 class.soinvoice.inc.php,1.2,1.3 class.solookup.inc.php,1.2,1.3 class.soproperty.inc.php,1.1,1.2 class.uilookup.inc.php,1.2,1.3 class.uiXport.inc.php,1.7,1.8
- Index(es):