forked from extern/egroupware
added global cats
This commit is contained in:
parent
32e82f77ef
commit
b464dd7249
@ -48,7 +48,7 @@
|
|||||||
$t->set_var('hidden_vars','<input type="hidden" name="cat_id" value="' . $cat_id . '">');
|
$t->set_var('hidden_vars','<input type="hidden" name="cat_id" value="' . $cat_id . '">');
|
||||||
$t->set_var('lang_select_parent',lang('Select parent category'));
|
$t->set_var('lang_select_parent',lang('Select parent category'));
|
||||||
|
|
||||||
$t->set_var('category_list',$c->formated_list('select','False','all',$cat_parent));
|
$t->set_var('category_list',$c->formated_list('select','all',$cat_parent,'False'));
|
||||||
$t->set_var('lang_name',lang('Category name'));
|
$t->set_var('lang_name',lang('Category name'));
|
||||||
$t->set_var('lang_descr',lang('Category description'));
|
$t->set_var('lang_descr',lang('Category description'));
|
||||||
$t->set_var('cat_name',$cat_name);
|
$t->set_var('cat_name',$cat_name);
|
||||||
|
@ -46,7 +46,7 @@
|
|||||||
|
|
||||||
$c = CreateObject('phpgwapi.categories');
|
$c = CreateObject('phpgwapi.categories');
|
||||||
$c->categories($phpgw_info['user']['account_id'],'phpgw');
|
$c->categories($phpgw_info['user']['account_id'],'phpgw');
|
||||||
$categories = $c->return_array('False','all',$start,$limit,$query,$sort,$order);
|
$categories = $c->return_array('all',$start,$limit,$query,$sort,$order,'False');
|
||||||
|
|
||||||
//--------------------------------- nextmatch --------------------------------------------
|
//--------------------------------- nextmatch --------------------------------------------
|
||||||
|
|
||||||
|
@ -71,7 +71,7 @@
|
|||||||
|
|
||||||
$t->set_var('cat_name',$phpgw->strip_html($cats[0]['name']));
|
$t->set_var('cat_name',$phpgw->strip_html($cats[0]['name']));
|
||||||
$t->set_var('cat_description',$phpgw->strip_html($cats[0]['description']));
|
$t->set_var('cat_description',$phpgw->strip_html($cats[0]['description']));
|
||||||
$t->set_var('category_list',$c->formated_list('select','False','all',$cat_parent));
|
$t->set_var('category_list',$c->formated_list('select','all',$cat_parent,'False'));
|
||||||
|
|
||||||
$t->set_var('edithandle','');
|
$t->set_var('edithandle','');
|
||||||
$t->set_var('addhandle','');
|
$t->set_var('addhandle','');
|
||||||
|
@ -82,7 +82,7 @@
|
|||||||
@param $order order by
|
@param $order order by
|
||||||
@result $cats array
|
@result $cats array
|
||||||
*/
|
*/
|
||||||
function return_array($public = 'False',$type = 'all',$start,$limit,$query = '',$sort = '',$order = '')
|
function return_array($type = 'all',$start,$limit,$query = '',$sort = '',$order = '',$public = 'False')
|
||||||
{
|
{
|
||||||
global $phpgw, $phpgw_info;
|
global $phpgw, $phpgw_info;
|
||||||
|
|
||||||
@ -181,7 +181,7 @@
|
|||||||
$this->app_name = $app_name;
|
$this->app_name = $app_name;
|
||||||
$this->db = $phpgw->db;
|
$this->db = $phpgw->db;
|
||||||
$this->total_records = $this->db->num_rows();
|
$this->total_records = $this->db->num_rows();
|
||||||
$this->cats = $this->return_array($public,$type,$start,$limit,$query,$sort,$order);
|
$this->cats = $this->return_array($type,$start,$limit,$query,$sort,$order,$public);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Return into a select box, list or other formats
|
// Return into a select box, list or other formats
|
||||||
@ -193,7 +193,7 @@
|
|||||||
@param $selected ?
|
@param $selected ?
|
||||||
@result $s array - populated with categories
|
@result $s array - populated with categories
|
||||||
*/
|
*/
|
||||||
function formated_list($format,$public = 'False',$type,$selected = "")
|
function formated_list($format,$type,$selected = '',$public = 'False')
|
||||||
{
|
{
|
||||||
global $phpgw;
|
global $phpgw;
|
||||||
$filter = $this->filter($type);
|
$filter = $this->filter($type);
|
||||||
|
Loading…
Reference in New Issue
Block a user