$id = $_GET['id'];
// $con = pg_connect("","","umaimono_or_jp");
$con = pg_connect ("host='db1.dohome.net' dbname='umaimono_or_jp' user='umaimono_or_jp'");
if (!$con) {
print ("データベースに接続できませんでした。
");
exit;
}
$qstr ="select * from shop where id='$id'";
$result = pg_exec($con,$qstr);
$num = pg_numrows($result);
if (!$num && $direct == "") {
print "--指定のIDのショップは存在しません--"; exit;
} else {
$id = pg_result($result,0,0);
$temp_pt_c01 = pg_result($result,0,1);
$logo = pg_result($result,0,2);
$photo = pg_result($result,0,3);
$get_c01_03 = pg_result($result,0,4);
$get_c02_01 = pg_result($result,0,5);
$get_c02_02 = pg_result($result,0,6);
$get_c02_03 = pg_result($result,0,7);
$get_c02_04 = pg_result($result,0,8);
$get_c02_05 = pg_result($result,0,9);
$get_c02_06 = pg_result($result,0,10);
$get_c02_07 = pg_result($result,0,11);
$get_c02_08 = pg_result($result,0,12);
$get_c02_09 = pg_result($result,0,26);
$get_c03_02 = pg_result($result,0,28);
$get_c03_01 = pg_result($result,0,13);
$temp_pt_c04 = pg_result($result,0,14);
$get_c04_01_1 = pg_result($result,0,15);
$get_c04_01_2 = pg_result($result,0,16);
$get_c04_02_1 = pg_result($result,0,17);
$get_c04_02_2 = pg_result($result,0,18);
$get_c04_03_1 = pg_result($result,0,19);
$get_c04_03_2 = pg_result($result,0,20);
$get_c04_04_1 = pg_result($result,0,21);
$get_c04_04_2 = pg_result($result,0,22);
$get_c05_01 = pg_result($result,0,23);
$get_c05_02 = pg_result($result,0,27);
$get_c06_01 = pg_result($result,0,24);
$get_c06_02 = pg_result($result,0,25);
}
$qstr ="select * from open_check where id='$id'";
$result_oc = pg_exec($con,$qstr);
$num = pg_numrows($result_oc);
if (!$num && $direct == "") {
print "--指定のIDのショップは存在しません--"; exit;
} else {
$cc_ichioshi = pg_result($result_oc,0,1);
$cc03_02 = pg_result($result_oc,0,2);
$cc03_01 = pg_result($result_oc,0,3);
$cc_selection = pg_result($result_oc,0,4);
$cc04_01_1 = pg_result($result_oc,0,5);
$cc04_01_2 = pg_result($result_oc,0,6);
$cc04_02_1 = pg_result($result_oc,0,7);
$cc04_02_2 = pg_result($result_oc,0,8);
$cc04_03_1 = pg_result($result_oc,0,9);
$cc04_03_2 = pg_result($result_oc,0,10);
$cc04_04_1 = pg_result($result_oc,0,11);
$cc04_04_2 = pg_result($result_oc,0,12);
}
if ($id<10) {$id="0$id";}
?>
日光うまいもの会全店リスト
#---サブタイトル---
print ereg_replace( "\n", " ","$get_c01_03" );
?>
#---店舗名---
print ereg_replace( "\n", " ","$get_c02_01" );
?>
|
|
switch($temp_pt_c01) {
#-- 1(横ロゴ) --
case 1:
print '
';
#---CI----
print"";
print ' |
|
';
#---写真----
print"";
print ' |
';
break;
#-- 2 (縦ロゴ) --
case 2:
print '
';
#---写真----
print"";
print ' |
|
';
#---CI----
print"";
print ' |
';
break;
#-- 3 (正方形ロゴ) --
case 3:
print '
';
#---写真----
print"";
print ' |
|
';
#---CI----
print"";
print ' |
';
break;
} ?>
|
|
if ($cc_ichioshi) : ?>
else : endif ?>
if ($cc_selection) : ?>
#---セレクション写真1----
if ($cc04_01_1 ==1 ) { print""; }
else { print ""; }
?>
|
|
#---セレクション写真2----
if ($cc04_02_1 ==1 ) { print""; }
else { print ""; }
?>
|
#---セレクション コメント1
if ($cc04_01_2 ==1 ) {
$pre1_c04_01_2 = ereg_replace( "\n", " ","$get_c04_01_2" );
$pre2_c04_01_2 = ereg_replace( "\[", "","$pre1_c04_01_2" );
$pre3_c04_01_2 = ereg_replace( "\]", "","$pre2_c04_01_2" );
print $pre3_c04_01_2;
} else { print ""; }
?>
|
|
#---セレクション コメント2
if ($cc04_02_2 ==1 ) {
$pre1_c04_02_2 = ereg_replace( "\n", " ","$get_c04_02_2" );
$pre2_c04_02_2 = ereg_replace( "\[", "","$pre1_c04_02_2" );
$pre3_c04_02_2 = ereg_replace( "\]", "","$pre2_c04_02_2" );
print $pre3_c04_02_2;
} else { print ""; }
?>
|
|
|
|
#---セレクション写真3----
if ($cc04_03_1) { print""; }
else { print ""; }
?>
|
|
#---セレクション写真4----
if ($cc04_04_1) { print""; }
else { print ""; }
?>
|
#---セレクション コメント3
if ($cc04_03_2) {
$pre1_c04_03_2 = ereg_replace( "\n", " ","$get_c04_03_2" );
$pre2_c04_03_2 = ereg_replace( "\[", "","$pre1_c04_03_2" );
$pre3_c04_03_2 = ereg_replace( "\]", "","$pre2_c04_03_2" );
print $pre3_c04_03_2;
} else { print ""; }
?>
|
|
#---セレクション コメント4
if ($cc04_04_2) {
$pre1_c04_04_2 = ereg_replace( "\n", " ","$get_c04_04_2" );
$pre2_c04_04_2 = ereg_replace( "\[", "","$pre1_c04_04_2" );
$pre3_c04_04_2 = ereg_replace( "\]", "","$pre2_c04_04_2" );
print $pre3_c04_04_2;
} else { print ""; }
?>
|
else : endif ?>
|
|
|
|
#---店主よりひとこと---
print ereg_replace( "\n", " ","$get_c05_02" );
?>
|
住所: |
#---住所---
print ereg_replace( "\n", " ","$get_c02_02" );
?>
|
営業時間: |
#---営業時間---
print ereg_replace( "\n", " ","$get_c02_05" );
?>
|
定休日: |
#---定休日---
print ereg_replace( "\n", " ","$get_c02_06" );
?>
|
TEL: |
#---電話番号---
print ereg_replace( "\n", " ","$get_c02_03" );
?>
|
FAX: |
#---FAX番号---
print ereg_replace( "\n", " ","$get_c02_04" );
?>
|
アクセス: |
#---アクセス---
print ereg_replace( "\n", " ","$get_c02_07" );
?>
|
|
|
|
if ($get_c02_09) {
print "オフィシャルホームページ";}
?>
|
|
if ($get_c02_08) {
print "メールアドレス"; }
?>
|
|
#---地図----
print"";
?>
|