Exemplo n.º 1
0
$w_ex = 20;
//simple and advanced search
if ($_GET['mode'] == 'simple') {
    $_page['name_index'] = 124;
    $_page['header_text'] = _t("_Simple Search");
} elseif ($_GET['mode'] == 'adv') {
    $_page['name_index'] = 125;
    $_page['header_text'] = _t("_Advanced search");
}
$_ni = $_page['name_index'];
$_page_cont[$_ni]['search'] = _t("_Search");
$_page_cont[$_ni]['with_photos_only'] = _t("_With photos only");
$_page_cont[$_ni]['online_only'] = _t("_online only");
$_page_cont[$_ni]['extended_search'] = _t("_Extended search");
$_page_cont[$_ni]['search_by_id'] = PageCodeSearchByID();
$_page_cont[$_ni]['search_by_nick'] = PageCodeSearchByNick();
$_page_cont[$_ni]['page_main_code'] = PageCompPageMainCode();
$_page_cont[$_ni]['zip_locator'] = $en_ziploc ? PageCodeZipLocator() : '';
// --------------- [END] page components
PageCode();
// --------------- page components functions
/**
 * page code function
 */
function PageCompPageMainCode()
{
    global $en_ziploc;
    global $_page_cont;
    global $_ni;
    global $w_ex;
    global $member_sex;
Exemplo n.º 2
0
    $aRequestParams['distance'] = (int) $_REQUEST['distance'];
}
// start page generation
ob_start();
$bShowForms = false;
//echoDbg($aRequestParams);
if (!empty($aRequestParams) or $_REQUEST['online_only']) {
    PageCodeSearchResult($aRequestParams);
} else {
    PageCodeSearchForm();
    $bShowForms = true;
}
$_ni = $_page['name_index'];
$_page_cont[$_ni]['page_main_code'] = ob_get_clean();
$_page_cont[$_ni]['search_by_id'] = $bShowForms ? PageCodeSearchByID() : '';
$_page_cont[$_ni]['search_by_nick'] = $bShowForms ? PageCodeSearchByNick() : '';
$_page_cont[$_ni]['search_by_tag'] = $bShowForms ? PageCodeSearchByTag() : '';
PageCode();
function PageCodeSearchForm()
{
    global $oPF;
    global $sPageHeader;
    global $sSearchMode;
    ob_start();
    ?>
<form method="GET" action="<?php 
    echo $_SERVER['PHP_SELF'];
    ?>
">
	<table class="search_form" cellspacing="0">
	<?php