forked from extern/egroupware
add admin section
This commit is contained in:
parent
b5bcc312fb
commit
9d154b8ba4
@ -1,8 +1,6 @@
|
||||
TODO:
|
||||
- configuration dialog for admin section
|
||||
don't use vfs
|
||||
picture size
|
||||
thumbnail size (problem with general thumbs / icons)
|
||||
- advanced search dialog, accessable via sideboxmenu
|
||||
- show dialog
|
||||
- make delete, show and edit dialoges popup (??)
|
||||
@ -13,7 +11,6 @@ TODO:
|
||||
handle select all button --> add actions for selected: move to other cat,...
|
||||
|
||||
-edit / add
|
||||
add accessories functionality
|
||||
bug: loose html and picture on tab-switch (eTemplate bug --> Ralf)
|
||||
inputvalidation on selectbox --> eTemplate --> Ralf
|
||||
make some returnmessages js dialogs
|
||||
|
@ -27,6 +27,9 @@ class bo_resources
|
||||
$this->cats = $this->acl->egw_cats;
|
||||
$this->vfs = CreateObject('phpgwapi.vfs');
|
||||
$this->link = CreateObject('infolog.bolink');
|
||||
$this->conf = CreateObject('phpgwapi.config');
|
||||
$this->conf->read_repository();
|
||||
|
||||
}
|
||||
|
||||
/*!
|
||||
@ -390,7 +393,7 @@ class bo_resources
|
||||
switch($src)
|
||||
{
|
||||
case 'own_src':
|
||||
$picture = false /*$this->config->use_vfs*/ ? 'vfs:' : $GLOBALS['phpgw_info']['server']['webserver_url'];
|
||||
$picture = $this->conf->config_data['dont_use_vfs'] ? $GLOBALS['phpgw_info']['server']['webserver_url'] : 'vfs:';
|
||||
$picture .= $size ? $this->pictures_dir.$id.'.jpg' : $this->thumbs_dir.$id.'.jpg';
|
||||
break;
|
||||
case 'cat_src':
|
||||
|
@ -84,7 +84,6 @@ class ui_resources
|
||||
}
|
||||
|
||||
}
|
||||
$this->tmpl->read('resources.show');
|
||||
|
||||
$content['nm']['get_rows'] = 'resources.bo_resources.get_rows';
|
||||
$content['nm']['no_filter'] = False;
|
||||
@ -111,6 +110,7 @@ class ui_resources
|
||||
$no_button['back'] = false;
|
||||
}
|
||||
$preserv = $content;
|
||||
$this->tmpl->read('resources.show');
|
||||
$this->tmpl->exec('resources.ui_resources.index',$content,$sel_options,$no_button,$preserv);
|
||||
}
|
||||
|
||||
@ -189,6 +189,30 @@ class ui_resources
|
||||
|
||||
}
|
||||
|
||||
/*!
|
||||
@function admin
|
||||
@abstract adminsection of resources
|
||||
@author Cornelius Weiß <egw@von-und-zu-weiss.de>
|
||||
*/
|
||||
function admin($content='')
|
||||
{
|
||||
if(is_array($content))
|
||||
{
|
||||
if(isset($content['save']))
|
||||
{
|
||||
$this->bo->conf->read_repository();
|
||||
$this->bo->conf->save_value('dont_use_vfs',$content['dont_use_vfs']);
|
||||
}
|
||||
else
|
||||
{
|
||||
return $GLOBALS['phpgw']->redirect_link('/admin/index.php');
|
||||
}
|
||||
}
|
||||
$content = $this->bo->conf->read_repository();
|
||||
$this->tmpl->read('resources.admin');
|
||||
$this->tmpl->exec('resources.ui_resources.admin',$content,$sel_options,$no_button,$preserv);
|
||||
}
|
||||
|
||||
/*!
|
||||
@function show
|
||||
@abstract showes a single resource
|
||||
|
@ -1,10 +1,12 @@
|
||||
<?php
|
||||
// eTemplates for Application 'resources', generated by soetemplate::dump4setup() 2005-03-01 10:32
|
||||
// eTemplates for Application 'resources', generated by soetemplate::dump4setup() 2005-03-01 11:55
|
||||
|
||||
/* $Id$ */
|
||||
|
||||
$templ_version=1;
|
||||
|
||||
$templ_data[] = array('name' => 'resources.admin','template' => '','lang' => '','group' => '0','version' => '','data' => 'a:1:{i:0;a:4:{s:4:"type";s:4:"grid";s:4:"data";a:3:{i:0;a:0:{}i:1;a:1:{s:1:"A";a:3:{s:4:"type";s:8:"checkbox";s:5:"label";s:55:"Don\'t use vfs (this will need a symlink --> see README)";s:4:"name";s:12:"dont_use_vfs";}}i:2;a:1:{s:1:"A";a:4:{s:4:"type";s:4:"hbox";s:4:"size";s:1:"2";i:1;a:3:{s:4:"type";s:6:"button";s:5:"label";s:4:"Save";s:4:"name";s:4:"save";}i:2;a:3:{s:4:"type";s:6:"button";s:5:"label";s:6:"Cancel";s:4:"name";s:6:"cancel";}}}}s:4:"rows";i:2;s:4:"cols";i:1;}}','size' => '','style' => '','modified' => '1109673054',);
|
||||
|
||||
$templ_data[] = array('name' => 'resources.edit','template' => '','lang' => '','group' => '0','version' => '','data' => 'a:1:{i:0;a:4:{s:4:"type";s:4:"grid";s:4:"data";a:4:{i:0;a:0:{}i:1;a:1:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:7:"no_lang";s:1:"1";s:4:"name";s:3:"msg";}}i:2;a:1:{s:1:"A";a:2:{s:4:"type";s:8:"template";s:4:"name";s:19:"resources.edit_tabs";}}i:3;a:1:{s:1:"A";a:2:{s:4:"type";s:8:"template";s:4:"name";s:22:"resources.edit_buttons";}}}s:4:"rows";i:3;s:4:"cols";i:1;}}','size' => '','style' => '','modified' => '1109000980',);
|
||||
|
||||
$templ_data[] = array('name' => 'resources.edit_buttons','template' => '','lang' => '','group' => '0','version' => '','data' => 'a:1:{i:0;a:5:{s:4:"type";s:4:"grid";s:4:"data";a:2:{i:0;a:1:{s:1:"C";s:4:"100%";}i:1;a:3:{s:1:"A";a:4:{s:4:"type";s:6:"button";s:5:"label";s:4:"Save";s:4:"name";s:4:"save";s:4:"help";s:21:"Saves entry and exits";}s:1:"B";a:3:{s:4:"type";s:6:"button";s:5:"label";s:6:"Cancel";s:4:"name";s:6:"cancel";}s:1:"C";a:4:{s:4:"type";s:6:"button";s:5:"label";s:6:"Delete";s:5:"align";s:5:"right";s:4:"name";s:6:"delete";}}}s:4:"rows";i:1;s:4:"cols";i:3;s:4:"size";s:4:"100%";}}','size' => '100%','style' => '','modified' => '1093597552',);
|
||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user