Changeset 6980
- Timestamp:
- Jun 3, 2008, 10:09:39 AM (17 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/grp.php ¶
r6403 r6980 30 30 $_page_cont[$_ni]['page_main_code'] = ''; 31 31 32 list($sForm, $sResults) = $oGroups->GenCategoryPage( );32 list($sForm, $sResults) = $oGroups->GenCategoryPage(true); 33 33 34 34 //$sFormRes = (isset($_REQUEST['categUri']) || isset($_REQUEST['categID'])) ? '' : $sForm; 35 35 36 $_page_cont[$_ni]['groups_search_form'] = ''; 36 $_page_cont[$_ni]['groups_search_form'] = $sForm; 37 //$_page_cont[$_ni]['groups_search_form'] = ''; 37 38 $_page_cont[$_ni]['groups_search_results'] = $sResults; 38 39 … … 47 48 $_page_cont[$_ni]['page_main_code'] = ''; 48 49 49 list($sForm, $sResults) = $oGroups->GenCategoryPage(); 50 $bHiddenMode = ((int)$_REQUEST['hidden_mode']==1) ? true : false; 51 list($sForm, $sResults) = $oGroups->GenCategoryPage($bHiddenMode); 50 52 51 53 $_page_cont[$_ni]['groups_search_form'] = $sForm; -
TabularUnified trunk/inc/classes/BxDolGroups.php ¶
r6979 r6980 86 86 } 87 87 88 function GenCategoryPage( ) {88 function GenCategoryPage($bHiddenSearchForm = false) { 89 89 $sForm = ''; 90 90 $sResults = ''; 91 91 92 92 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); 94 94 95 95 if( $sKeywordDB or $sCategIDDB or $sCountryDB or $sCityVal ) … … 162 162 163 163 //PageCompGroupsSearchForm 164 function GenSearchForm( $sKeyword, $sSearchby, $iCategID, $sCountry, $sCityVal, $sSortby ) {164 function GenSearchForm( $sKeyword, $sSearchby, $iCategID, $sCountry, $sCityVal, $sSortby, $bHiddenSearchForm = false ) { 165 165 global $aPreValues; 166 166 global $site; … … 241 241 $sByCreatedSel = ($sSortby == 'created') ? $sChecked : ''; 242 242 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> 260 EOF; 261 } else { 262 $sRetHtml = <<<EOF 244 263 <div class="groups_search_adv" {$sDisplayStyle} > 245 264 <div class="clear_both"></div> … … 311 330 312 331 <input type="hidden" name="page" value="1" /> 313 {$sNFelement} 332 314 333 <div class="groups_search_row_center"> 315 334 <input type="hidden" value="search" id="action" name="action" /> … … 321 340 </div> 322 341 EOF; 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); 325 345 //return ($bNoFilter == true) ? $sJSCode . $sRetHtml : DesignBoxContent ( _t('_Search Groups'), $sJSCode . $sRetHtml, 1); 326 346 } … … 1881 1901 } 1882 1902 1883 if( !$isTopGroupsPage ) 1884 { 1903 if( !$isTopGroupsPage ) { 1885 1904 $sHtmlRet .= <<<EOF 1886 1905 {$sBreadCrumbs}
Note: See TracChangeset
for help on using the changeset viewer.