mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 00:58:55 +01:00
work on select function
This commit is contained in:
parent
6ccbfc8439
commit
e818b0c8be
@ -304,8 +304,14 @@ class ui_resources
|
|||||||
*
|
*
|
||||||
* @author Lukas Weiss <wnz.gh05t@users.sourceforge.net>
|
* @author Lukas Weiss <wnz.gh05t@users.sourceforge.net>
|
||||||
*/
|
*/
|
||||||
function select()
|
function select($content='')
|
||||||
{
|
{
|
||||||
|
if($content['btn_close'])
|
||||||
|
{
|
||||||
|
echo "<html><body><script>window.close();</script></body></html>\n";
|
||||||
|
$GLOBALS['egw']->common->egw_exit();
|
||||||
|
}
|
||||||
|
|
||||||
if (isset($_GET['name'])) $name = $_GET['name'];
|
if (isset($_GET['name'])) $name = $_GET['name'];
|
||||||
$content=array('js_id' => $name);
|
$content=array('js_id' => $name);
|
||||||
$content['js'] = "<script LANGUAGE=\"JavaScript\">
|
$content['js'] = "<script LANGUAGE=\"JavaScript\">
|
||||||
@ -397,8 +403,18 @@ class ui_resources
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
window.close();
|
window.close();
|
||||||
}
|
}</script>";
|
||||||
</script>";
|
|
||||||
|
$content['nm']['show_bookable'] = true;
|
||||||
|
$content['nm']['get_rows'] = 'resources.bo_resources.get_rows';
|
||||||
|
$content['nm']['no_filter'] = False;
|
||||||
|
$content['nm']['filter_label'] = 'Category';
|
||||||
|
$content['nm']['filter_help'] = lang('Select a category'); // is this used???
|
||||||
|
$content['nm']['options-filter']= array('0'=>lang('all categories'))+(array)$this->bo->acl->get_cats(EGW_ACL_READ);
|
||||||
|
$content['nm']['no_filter2'] = true;
|
||||||
|
$content['nm']['filter_no_lang'] = true;
|
||||||
|
$content['nm']['no_cat'] = true;
|
||||||
|
|
||||||
$sel_options = array();
|
$sel_options = array();
|
||||||
$no_button = array();
|
$no_button = array();
|
||||||
$preserv = $content;
|
$preserv = $content;
|
||||||
|
Loading…
Reference in New Issue
Block a user