open(0); $categoryArray = $categoryTable->getAllRecord(); $eventTable = new EventTable; $eventTable->open(0); $PAGEROW = 10; //ページング $conv1="UTF-8"; //変換後エンコード $conv2="euc-jp"; //変換前エンコード if (isset($_GET[category])){ $eventResult = $eventTable->findRows(1, $_GET[category],4); }elseif (isset($_GET[y])){ $eventResult = $eventTable->findRowsStr(4, 0, 4, $_GET[y], 4); }else{ $eventResult = $eventTable->getAllRecord(); } $eventResult1 = array(); $sess_flg; if (array_key_exists("username", $_SESSION)){ $sess_flg = true; }else{ $sess_flg = false; } if (isset($_GET[kid])){ $categoryResult = $categoryTable->findRowsLastColumn(8, $_GET[kid], 1); }else{ $categoryResult = $categoryTable->findRows(3, "1", 1); } //delete category flg = 0 and delete passwd_flg $prevNo = 0; $nextNo = 0; if(isset($_GET[event_no])){ $eventResult1 = $eventTable->findRow(0, $_GET[event_no]); //get prev and next event_no $tmp_eventResult = $eventResult; $i = 0; while($i < count($tmp_eventResult)){ if($_GET[event_no] == $tmp_eventResult[$i][0]){ if($i == 0){ $prevNo = 0; if(count($tmp_eventResult) - 1 > $i){ $nextNo = $tmp_eventResult[$i+1][0]; }else{ $nextNo = 0; } }else if(count($tmp_eventResult) - 1 == $i){ $prevNo = $tmp_eventResult[$i-1][0]; $nextNo = 0; }else{ $prevNo = $tmp_eventResult[$i-1][0]; $nextNo = $tmp_eventResult[$i+1][0]; } break; } $i++; } }else{ $i=0; while($i < count($eventResult)){ $j=0; $k=false; while($j < count($categoryResult)){ if($sess_flg){ if($eventResult[$i][1] == $categoryResult[$j][0]){ $k = true; break; } }else{ if($eventResult[$i][1] == $categoryResult[$j][0] && $categoryResult[$j][4] == "1"){ $k = true; break; } } $j++; } if($k){ array_push($eventResult1, $eventResult[$i]); } $i++; } } $yResult = $eventTable->findRowsStrDist(4, 0, 4, true); function getCategoryName($no, $categoryResult){ $i=0; while($i < count($categoryResult)){ if($no == $categoryResult[$i][0]){ return $categoryResult[$i][2]; } $i++; } return "null"; } function getCategoryColor($no, $categoryResult){ $i=0; while($i < count($categoryResult)){ if($no == $categoryResult[$i][0]){ if($categoryResult[$i][5] < 10){ return "0" . $categoryResult[$i][5]; }else{ return $categoryResult[$i][5]; } } $i++; } return "01"; } ?> 宮島 三女神〈さんひめ〉物語 「大野、瀬戸の恵み」からはじまる物語――。

宮島 三女神物語は、地域の強みとなり得る地域資源を活用し、新商品・新サービスの開発販売促進し、地域資源の需要開拓・地域経済の活性化を図る官民一体の事業です。

レポート

大野瀬戸の地域資源および商品の情報、
三女神物語に関する情報をレポートします。

$date2){ $new = 1; } $str = str_replace(chr(10), "
", $eventResult1[3]); $imgnum = 0; $fNo=0; while($fNo++ < $IMG_NUM){ if ($eventResult1[$IMG_START+($fNo-1)*$IMG_COLUMN] != "" && $eventResult1[$IMG_START+($fNo-1)*$IMG_COLUMN+2] == 1){ $imgnum++; } } if($imgnum == 0 ){ echo "
"; }elseif($imgnum == 1 ){ echo "
"; }elseif($imgnum == 2 ){ echo "
"; }elseif($imgnum >= 3 ){ echo "
"; } ?>

"; while($fNo++ < $IMG_NUM){ if ($eventResult1[$IMG_START+($fNo-1)*$IMG_COLUMN] != ""){ if ($eventResult1[$IMG_START+($fNo-1)*$IMG_COLUMN+2] == 1){ $ts = mb_convert_encoding($eventResult1[$IMG_START+($fNo-1)*$IMG_COLUMN + 3],"$conv1","$conv2"); List($width,$height,$kind)=@getimagesize($eventResult1[$IMG_START+($fNo-1)*$IMG_COLUMN]); if($width > $height){ echo ""; }else{ echo ""; } echo ""; echo "

" . $ts . "

"; } } } echo "
"; echo "

".mb_convert_encoding($str,"$conv1","$conv2"); $fNo=0; while($fNo++ < $IMG_NUM){ if ($eventResult1[$IMG_START+($fNo-1)*$IMG_COLUMN] != ""){ if ($eventResult1[$IMG_START+($fNo-1)*$IMG_COLUMN+2] == 2){ echo "" . $eventResult1[$IMG_START+($fNo-1)*$IMG_COLUMN+1] . "
"; } } } echo "

"; // echo ""; // echo "
"; }else{ echo "

" . mb_convert_encoding($str,"$conv1","$conv2") . "

"; $fNo=0; while($fNo++ < $IMG_NUM){ $ts = mb_convert_encoding($eventResult1[$IMG_START+($fNo-1)*$IMG_COLUMN + 3],"$conv1","$conv2"); if ($eventResult1[$IMG_START+($fNo-1)*$IMG_COLUMN+2] == "2"){ echo "" . $eventResult1[$IMG_START+($fNo-1)*$IMG_COLUMN+1] . "
"; echo "

" . mb_convert_encoding($eventResult1[$IMG_START+($fNo-1)*$IMG_COLUMN+3],"$conv1","$conv2") . "

"; } } $fNo=0; $y = 0; while($fNo++ < $IMG_NUM){ if ($eventResult1[$IMG_START+($fNo-1)*$IMG_COLUMN+2] == "1"){ $ts = mb_convert_encoding($eventResult1[$IMG_START+($fNo-1)*$IMG_COLUMN + 3],"$conv1","$conv2"); echo "\n"; $y++; } } echo "

"; } echo ""; echo "
"; }else{ //一覧 ?> $PAGEROW){ $i=0; while(($i++) * $PAGEROW < count($eventResult1)){ if(isset($_GET[cnt])){ if($_GET[cnt]==$i){ echo "" . $i . " "; }else{ echo "" . $i . " "; } }else{ if(1==$i){ echo "" . $i . " "; }else{ echo "" . $i . " "; } } } } $i = 0; $j = $PAGEROW; if(isset($_GET[cnt])){ $i= $PAGEROW * ($_GET[cnt] - 1); $j= $PAGEROW * $_GET[cnt]; } $date2 = substr(date('Y-m-d H:i:s', mktime(date('H'), date('i'), date('s'), date('m'), date('d')-7, date('Y'))), 0, 19); //イベント一覧開始 while($i < count($eventResult1) && $i < $j){ if($eventResult1[$i][0] == "" || $eventResult1[$i][0] == "\\"){ $i++; continue; } $date1 = $eventResult1[$i][4]; $new = 0; if($date1 > $date2){ $new = 1; } $imgnum = 0; $fNo=0; while($fNo++ < $IMG_NUM){ if ($eventResult1[$i][$IMG_START+($fNo-1)*$IMG_COLUMN] != "" && $eventResult1[$i][$IMG_START+($fNo-1)*$IMG_COLUMN+2] == 1){ $imgnum++; } } if($imgnum == 0 ){ echo "
"; }elseif($imgnum == 1 ){ echo "
"; }elseif($imgnum == 2 ){ echo "
"; }elseif($imgnum >= 3 ){ echo "
"; } ?>

", $eventResult1[$i][3]); //写真1枚2枚の場合 if($imgnum == 1 || $imgnum == 2){ $fNo=0; echo "
"; while($fNo++ < $IMG_NUM){ if ($eventResult1[$i][$IMG_START+($fNo-1)*$IMG_COLUMN] != ""){ if ($eventResult1[$i][$IMG_START+($fNo-1)*$IMG_COLUMN+2] == 1){ $ts = mb_convert_encoding($eventResult1[$i][$IMG_START+($fNo-1)*$IMG_COLUMN + 3],"$conv1","$conv2"); List($width,$height,$kind)=@getimagesize($eventResult1[$i][$IMG_START+($fNo-1)*$IMG_COLUMN]); if($width > $height){ echo ""; }else{ echo ""; } echo ""; echo "

" . $ts . "

"; } } } echo "
"; echo "

".mb_convert_encoding($str,"$conv1","$conv2"); $fNo=0; while($fNo++ < $IMG_NUM){ if ($eventResult1[$i][$IMG_START+($fNo-1)*$IMG_COLUMN] != ""){ if ($eventResult1[$i][$IMG_START+($fNo-1)*$IMG_COLUMN+2] == 2){ echo "" . $eventResult1[$i][$IMG_START+($fNo-1)*$IMG_COLUMN+1] . "
"; } } } echo "

"; }else{ echo "

" . mb_convert_encoding($str,"$conv1","$conv2") . "

"; $fNo=0; while($fNo++ < $IMG_NUM){ $ts = mb_convert_encoding($eventResult1[$i][$IMG_START+($fNo-1)*$IMG_COLUMN + 3],"$conv1","$conv2"); if ($eventResult1[$i][$IMG_START+($fNo-1)*$IMG_COLUMN+2] == "2"){ echo "" . $eventResult1[$i][$IMG_START+($fNo-1)*$IMG_COLUMN+1] . "
"; echo "

" . $ts . "

"; } } $fNo=0; $y = 0; while($fNo++ < $IMG_NUM){ if ($eventResult1[$i][$IMG_START+($fNo-1)*$IMG_COLUMN+2] == "1"){ $ts = mb_convert_encoding($eventResult1[$i][$IMG_START+($fNo-1)*$IMG_COLUMN + 3],"$conv1","$conv2"); echo "\n"; $y++; } } } echo ""; echo "
"; $i++; } } ?>
Copyright © Seto no Kurodaimeshi All Rights Resrved.