Make selectbox remember what resources cat was selected

This commit is contained in:
wnz_gh05t 2005-10-27 18:43:08 +00:00
parent 295d7844e5
commit 3e0ec3a586

View File

@ -500,7 +500,7 @@ class ui_resources
// so it is possible to select all resources of a category // so it is possible to select all resources of a category
foreach($cats as $cat_id => $cat_name) foreach($cats as $cat_id => $cat_name)
{ {
if (($resources = $this->bo->so->search(array('cat_id' => $cat_id, 'bookable' => '1'),'res_id'))) if ($resources = $this->bo->so->search(array('cat_id' => $cat_id, 'bookable' => '1'),'res_id'))
{ {
foreach($resources as $res) foreach($resources as $res)
{ {
@ -513,7 +513,7 @@ class ui_resources
if($date != '') $link_array['date'] = $date; if($date != '') $link_array['date'] = $date;
$selectbox = $this->html->select( $selectbox = $this->html->select(
'owner', 'owner',
'uical_select_resource', $_GET['owner'],
$selectbox_content, $selectbox_content,
$no_lang=true, $no_lang=true,
$options='style="width: 165px;" onchange="load_cal(\''. $options='style="width: 165px;" onchange="load_cal(\''.