Changeset 6980


Ignore:
Timestamp:
Jun 3, 2008, 10:09:39 AM (17 years ago)
Author:
aramis
Message:
 
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/grp.php

    r6403 r6980  
    3030            $_page_cont[$_ni]['page_main_code'] = ''; 
    3131 
    32             list($sForm, $sResults) = $oGroups->GenCategoryPage(); 
     32            list($sForm, $sResults) = $oGroups->GenCategoryPage(true); 
    3333 
    3434            //$sFormRes = (isset($_REQUEST['categUri']) || isset($_REQUEST['categID'])) ? '' : $sForm; 
    3535 
    36             $_page_cont[$_ni]['groups_search_form'] = ''; 
     36            $_page_cont[$_ni]['groups_search_form'] = $sForm; 
     37            //$_page_cont[$_ni]['groups_search_form'] = ''; 
    3738            $_page_cont[$_ni]['groups_search_results'] = $sResults; 
    3839 
     
    4748            $_page_cont[$_ni]['page_main_code'] = ''; 
    4849 
    49             list($sForm, $sResults) = $oGroups->GenCategoryPage(); 
     50            $bHiddenMode = ((int)$_REQUEST['hidden_mode']==1) ? true : false; 
     51            list($sForm, $sResults) = $oGroups->GenCategoryPage($bHiddenMode); 
    5052 
    5153            $_page_cont[$_ni]['groups_search_form'] = $sForm; 
  • TabularUnified trunk/inc/classes/BxDolGroups.php

    r6979 r6980  
    8686    } 
    8787 
    88     function GenCategoryPage() { 
     88    function GenCategoryPage($bHiddenSearchForm = false) { 
    8989        $sForm = ''; 
    9090        $sResults = ''; 
    9191 
    9292        list($sKeyword, $sSearchby, $iCategID, $sCountry, $sCityVal, $sSortby, $sKeywordDB, $sSearchbyDB, $sCategIDDB, $sCountryDB, $sCityDB, $sSortbyDB) = $this->CollectBrowseParams(); 
    93         $sForm = $this->GenSearchForm($sKeyword, $sSearchby, $iCategID, $sCountry, $sCityVal, $sSortby); 
     93        $sForm = $this->GenSearchForm($sKeyword, $sSearchby, $iCategID, $sCountry, $sCityVal, $sSortby, $bHiddenSearchForm); 
    9494 
    9595        if( $sKeywordDB or $sCategIDDB or $sCountryDB or $sCityVal ) 
     
    162162 
    163163    //PageCompGroupsSearchForm 
    164     function GenSearchForm( $sKeyword, $sSearchby, $iCategID, $sCountry, $sCityVal, $sSortby ) { 
     164    function GenSearchForm( $sKeyword, $sSearchby, $iCategID, $sCountry, $sCityVal, $sSortby, $bHiddenSearchForm = false ) { 
    165165        global $aPreValues; 
    166166        global $site; 
     
    241241        $sByCreatedSel = ($sSortby == 'created') ? $sChecked : ''; 
    242242 
    243         $sRetHtml = <<<EOF 
     243        if ($bHiddenSearchForm == true) { 
     244            $sRetHtml = <<<EOF 
     245    <form action="{$site['url']}{$this->sCurrFile}?action=categ" method="get" name="groups_search_form" onsubmit="return checkSearchForm();"> 
     246        <input type="hidden" id="keyword" name="keyword" value="" /> 
     247        <input type="hidden" name="searchby" value="name" id="searchby_name" /> 
     248        <input type="hidden" name="searchby" value="keyword" id="searchby_keyword" /> 
     249        <input type="hidden" id="categID" name="categID" value="{$iCategID}" /> 
     250        <input type="hidden" id="Country" name="Country" value="" /> 
     251        <input type="hidden" id="City" name="City" value="" /> 
     252        <input type="hidden" name="sortby" value="Name" id="sortby_Name" /> 
     253        <input type="hidden" name="sortby" value="membersCount" id="sortby_membersCount" /> 
     254        <input type="hidden" name="sortby" value="created" id="sortby_created" /> 
     255        <input type="hidden" name="hidden_mode" value="1" /> 
     256        <input type="hidden" name="page" value="1" /> 
     257        <input type="hidden" value="search" id="action" name="action" /> 
     258        <!-- <input type="submit" value="{$sSearchC}" class="groups_search_labelfor" /> --> 
     259    </form> 
     260EOF; 
     261        } else { 
     262            $sRetHtml = <<<EOF 
    244263<div class="groups_search_adv" {$sDisplayStyle} > 
    245264    <div class="clear_both"></div> 
     
    311330 
    312331        <input type="hidden" name="page" value="1" /> 
    313         {$sNFelement} 
     332 
    314333        <div class="groups_search_row_center"> 
    315334            <input type="hidden" value="search" id="action" name="action" /> 
     
    321340</div> 
    322341EOF; 
    323  
    324         return DesignBoxContent( _t('_Search Groups'), $sJSCode . $sRetHtml, 1); 
     342        } 
     343 
     344        return ($bHiddenSearchForm == true) ? $sJSCode.$sRetHtml : DesignBoxContent( _t('_Search Groups'), $sJSCode . $sRetHtml, 1); 
    325345        //return ($bNoFilter == true) ? $sJSCode . $sRetHtml : DesignBoxContent ( _t('_Search Groups'), $sJSCode . $sRetHtml, 1); 
    326346    } 
     
    18811901            } 
    18821902 
    1883             if( !$isTopGroupsPage ) 
    1884             { 
     1903            if( !$isTopGroupsPage ) { 
    18851904                $sHtmlRet .= <<<EOF 
    18861905{$sBreadCrumbs} 
Note: See TracChangeset for help on using the changeset viewer.
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.
Fork me on GitHub