$var) { echo "$name:$var
"; } */ //ココは必要な部分 foreach ($HTTP_POST_VARS as $name => $var) { $GLOBALS[$name] = $var; } foreach ($HTTP_GET_VARS as $name => $var) { $GLOBALS[$name] = $var; } $genre_ctgy_sid = $GLOBALS[genre_ctgy_sid]; $topic_path_area03_id = $GLOBALS[area03_id]; $topic_path_genre_small_id = $GLOBALS[genre_small_id]; $topic_path_kodawari_id = $GLOBALS[kodawari_id]; //仮で空の場合は1を入れる if(!$genre_ctgy_sid){ $genre_ctgy_sid = '1'; } //topic_pathリスト if ($_POST[$genre_ctgy_sid]) $genre_ctgy_sid = $_POST[genre_ctgy_sid]; if ($_POST[area03_id]) $topic_path_area03_id = $_POST[area03_id]; if ($_POST[genre_small_id]) $topic_path_genre_small_id = $_POST[genre_small_id]; if ($_POST[kodawari_id]) $topic_path_kodawari_id = $_POST[kodawari_id]; require_once($_SERVER[DOCUMENT_ROOT]."/require/logic_topic_path.php"); $area03_id = $topic_path_area03_id; $genre_small_id = $topic_path_genre_small_id; $kodawari_id = $topic_path_kodawari_id; if($genre_ctgy_sid != ""){ $g_sql = "SELECT * FROM wedding_genre_ctgy WHERE sid = '$genre_ctgy_sid'"; $g_sql = pg_Exec($g_sql); if(pg_Numrows($g_sql) > 0){ $disp_bunrui = pg_Result($g_sql,0,"bunrui"); } $page_para = "&genre_ctgy_sid=".$genre_ctgy_sid; } //ページタイトル手動設定 $CMN_PAGE_TITLE = $disp_bunrui."|タイフリーク[THAIFREAK]"; //body tagまで require_once($_SERVER[DOCUMENT_ROOT]."/require/header.php"); ?>

簡単検索
0) $WHERE = " WHERE ".implode(" AND ",$WHERE); $str_sql = " SELECT wedding_company.sid AS wsid,* FROM wedding_company JOIN wedding_company2 ON(wedding_company.sid = wedding_company2.company_id) ".$WHERE; if($offset == ""){ $offset = 0; $allrows = pg_exec($str_sql); $allrows = pg_numrows($allrows); if($allrows <= 0){ } }else{ $para = "&offset=".$offset."&allrows=".$allrows; } $str_sql = $str_sql." ORDER BY wedding_company2.keisai_plan, sort_key ASC, wedding_company.update_day DESC LIMIT $limit OFFSET $offset"; //echo $str_sql; $str_sql = pg_Exec($str_sql); if($offset > 0){ $before = $offset - $limit; $before_para = ""; $before_para .= "?allrows=$allrows"; $before_para .= "&offset=$before"; $before_para .= "&limit=$limit"; $before_para .= "&action=$action"; $before_para .= "&mode=$mode"; if($page_para != "") $before_para .= $page_para; //$before_para .= "&adv_place_id=".urlencode($adv_place_id); $mae = "
  • 前へ
  • "; } if(($allrows - $offset + $limit) > 0 && ($offset + $limit) < $allrows){ $next = $offset + $limit; $next_para = ""; $next_para .= "?allrows=$allrows"; $next_para .= "&offset=$next"; $next_para .= "&limit=$limit"; $next_para .= "&action=$action"; $next_para .= "&mode=$mode"; if($page_para != "") $next_para .= $page_para; //$next_para .= "&adv_place_id=".urlencode($adv_place_id); $ato = "
  • 次へ
  • \n"; //$ato = "次のページ\n"; }else{ $next = $allrows; } if($mae == "") $mae = "
  • 前へ
  • "; if($ato == "") $ato = "
  • 次へ
  • "; $disp_num = ($offset == 0) ? "1":$offset; $disp_rows = $disp_num."〜".$next; $disp_rows = $allrows."件中 ".$disp_num."件〜".$next."件を表示しています。 "; $rows = pg_Numrows($str_sql); if($rows <= 0){ echo "

    次の条件に一致する情報は見つかりませんでした。

    "; }else{ ?>
         


    ","",$top_image_comment1); $top_image_comment1 = htmlspecialchars($top_image_comment1); if(mb_strlen($top_image_comment1) > 100) $top_image_comment1 = mb_substr($top_image_comment1,0,100)."・・・"; if($keisai_plan == "b"){ ?>

    TEL  
    最寄駅   
    営業時間   
    ホームページ"?> 

    クーポンあり

    TEL  
    最寄駅  
    営業時間   
    ホームページ"?> 

    ".$shopname.""; if($tel != "") echo "

    TEL ".$tel."
    "; echo $adress."
    ".$traffic."

    "; ?>