Index: trunk/admin/relation_select.php =================================================================== diff -u -r898 -r1317 --- trunk/admin/relation_select.php (.../relation_select.php) (revision 898) +++ trunk/admin/relation_select.php (.../relation_select.php) (revision 1317) @@ -295,9 +295,37 @@ - - +
 /icon16_search.gif" alt="" align="absMiddle" onclick="this.action = this.getAttribute('action'); actionHandler(this);" src="/arrow16.gif" onmouseover="this.src='/icon16_search_f2.gif'" onmouseout="this.src='/icon16_search.gif'" style="cursor:hand" width="22" width="22"><?php echo admin_language(" align="absMiddle" onclick="this.action = this.getAttribute('action'); actionHandler(this);" src="/arrow16.gif" onmouseover="this.src='/arrow16_f2.gif'" onmouseout="this.src='/arrow16.gif'" style="cursor:hand"> - /icon16_search_reset.gif" alt="" align="absMiddle" onclick="this.action = this.getAttribute('action'); actionHandler(this);" onmouseover="this.src='/icon16_search_reset_f2.gif'" onmouseout="this.src='/icon16_search_reset.gif'" style="cursor:hand" width="22" width="22">  + + /icon16_search.gif" + alt="" + align="absMiddle" + onclick="this.action = this.getAttribute('action'); actionHandler(this);" + src="/arrow16.gif" + onmouseover="this.src='/icon16_search_f2.gif'" + onmouseout="this.src='/icon16_search.gif'" + style="cursor:hand" + width="22" + width="22"> + + + /icon16_search_reset.gif" + alt="" + align="absMiddle" + onclick="this.action = this.getAttribute('action'); actionHandler(this);" + onmouseover="this.src='/icon16_search_reset_f2.gif'" onmouseout="this.src='/icon16_search_reset.gif'" style="cursor:hand" width="22" width="22"> 
@@ -315,7 +343,7 @@ $OrderBy = $objCatList->QueryOrderByClause(TRUE,TRUE,TRUE); if($SearchType=="categories" || $SearchType="all") { - $list = $objSession->GetVariable("SearchWord"); + $list = $objSession->GetVariable('SearchWord'); $SearchQuery = $objCatList->AdminSearchWhereClause($list); if(strlen($SearchQuery)) { @@ -397,6 +425,29 @@ echo " var single_select = true;"; ?> InitPage(); + cats_on = theMainScript.GetCookie('cats_tab_on'); + if (cats_on == 0) { + toggleCategoriesB(document.getElementById('cats_tab'), true); + } + + tabs_on = theMainScript.GetCookie('tabs_on'); + if (tabs_on == '1' || tabs_on == null) { + if(default_tab.length == 0 || default_tab == 'categories' ) + { + cookie_start = theMainScript.GetCookie('active_tab'); + if (cookie_start != null) start_tab = cookie_start; + if(start_tab!=null) { + //alert('ok'); + toggleTabB(start_tab, true); + } + } + else + { + //alert('ok'); + toggleTabB(default_tab,true); + } + } + //toggleTabB(start_tab, true);