". $Init['Title']. " ". $Init['Url']. " ". $Init['Summary']. " $rsstime $cnt "; $i = 1; foreach ($Docs as $val) { $Doc = dbfields($val); if ($Doc['filecode']) { $file = $Doc['filecode']; } else { $file = $_REQUEST['file']; } if ((!$Doc['Viewdate'] || jst_time(time(), 6) >= $Doc['Viewdate']) && (!$Doc['Closedate'] || jst_time(time(), 6) <= $Doc['Closedate']) && $Doc['Auth']) { $xml .= " "; $i++; if ($i > 100) break; } } $xml .= " "; $i = 1; foreach ($Docs as $val) { $Doc = dbfields($val); if ($Doc['filecode']) { $file = $Doc['filecode']; } else { $file = $_REQUEST['file']; } $rsstime = rss_time(dateserial($Doc['Date'], $Init['Timelag']) - $Init['Timelag'] * 3600); if ((!$Doc['Viewdate'] || jst_time(time(), 6) >= $Doc['Viewdate']) && (!$Doc['Closedate'] || jst_time(time(), 6) <= $Doc['Closedate']) && $Doc['Auth']) { $Doc['Subject'] = tag_decode($Doc['Subject'], 1); $Doc['Subject'] = strip_tags($Doc['Subject']); $Doc['Subject'] = preg_replace("/[\r\n\t]/", "", $Doc['Subject']); $Doc['Subject'] = preg_replace("/\&.+?;/", " ", $Doc['Subject']); $Doc['Summary'] = preg_replace("/\s/", "", $Doc['Summary']); $xml .= " ". $Doc['Subject']. " http://". $_SERVER['SERVER_NAME']. "$scriptname/$file/". $Doc['ID']. "/ ". $Doc['Summary']. " 管理者 $rsstime ja "; $i++; if ($i > 100) break; } } $xml .= " "; header("Content-type:text/xml; charset=utf-8;"); echo $xml; exit; } elseif ($_REQUEST['cmd'] == "cal" || $_REQUEST['ajax'] == "cal") { /* カレンダーの表示 */ !$Setup['headStr'] && $Setup['headStr'] = 0; $Days = split(",", $days[$Setup['headStr']]); if ($_REQUEST['month']) { $year = $_REQUEST['year']; $month = $_REQUEST['month']; } else { $now = getdate(); $year = $now['year']; $month = $now['mon']; $today = $now['mday']; } $_REQUEST['cmd'] && $html = "
"; if ($Setup['headStr']) { $title = $months[$month]. ".$year"; } else { $title = "$year 年 $month 月"; } $prev_year = $year; $next_year = $year; $prev_month = $month - 1; if ($prev_month < 1) { $prev_month = 12; $prev_year--; } $next_month = $month + 1; if ($next_month > 12) { $next_month = 1; $next_year++; } $html .= "
\"\"
$title
\"\"
"; $Date = calendar($year, $month); $max = count($Date); $year = sprintf("%04d", $year); $month = sprintf("%02d", $month); for ($i = 1; $i < $max; $i++) { $html .= " "; $Day = split(",", $Date[$i]); $j = 0; foreach ($Day as $line) { $day = sprintf("%02d", $line); if ($dummy = grep("/^Date=$year\/$month\/$day\t/", $Docs)) { $class = "s_news"; if (!$Setup['nonlink']) { $Doc = dbfields($dummy[0]); $line = "$line"; } else { $Doc['Subject'] = strip_tags($Doc['Subject']); $line = "$line"; } } else if ($j == 0) { $class = "s_sun"; } else if ($j == 6) { $class = "s_sat"; } else { $class = "s_week"; } if ($line == ' ') { $line = " "; $class = "s_blank"; } if ($line == $today) { $class = "s_today"; } $html .= ""; $j++; if ($j > 6) { $j = 0; } } $html .= ""; } $html .= "
".$Days[0]." ".$Days[1]." ".$Days[2]." ".$Days[3]." ".$Days[4]." ".$Days[5]." ".$Days[6]."
$line
"; $_REQUEST['cmd'] && $html .= "
"; } else if (preg_match("/^agg/", $_REQUEST['cmd'])) { foreach ($Docs as $val) { $Doc = dbfields($val); if ((!$Doc['Viewdate'] || jst_time(time(), 6) >= $Doc['Viewdate']) && (!$Doc['Closedate'] || jst_time(time(), 6) <= $Doc['Closedate']) && $Doc['Auth']) { $match = 1; if ($_REQUEST['y']) { list($y, $m, $d) = split("/", $Doc['Date']); $y * 1 != $_REQUEST['y'] && ($match = 0); } if ($match) array_push($New, $val); } } sort($Docs); !$Setup['Sort'] && ($Docs = array_reverse($Docs)); $html = "
"; $i = 1; foreach ($Docs as $val) { $Doc = dbfields($val); if ($prev != substr($Doc['Date'], 0, 7)) { $date = substr($Doc['Date'], 0, 7); $prev = $date; $i > 1 && ($html .= ""); $html .= "
[$prev]
"; } elseif ($_REQUEST['cmd'] || $_REQUEST['viewID']) { !$Setup['Name'] && $Setup['Name'] = "新着情報"; $cgi_doc = false; if ($_REQUEST['viewID']) { if ($Setup['comment_user'] && $_REQUEST['action'] == "reviewregist") { $now = time(); $value = join("\t", array( "ID=". $_REQUEST['ReviewID'], "newsID=". $_REQUEST['viewID'], "Date=$now", "Auth=". $Setup['auth'], "Subject=". $_REQUEST['subject'], "Name=". $_REQUEST['name'], "Email=". $_REQUEST['Email'], "Zip=". $_REQUEST['zip'], "Pre=". $_REQUEST['pre'], "City=". $_REQUEST['city'], "Addr=". $_REQUEST['addr'], "Buill=". $_REQUEST['buill'], "Tel=". $_REQUEST['tel'], "Comment=". $_REQUEST['comment'], "\n")); $body = " [". $_REQUEST['ReviewID']. "] ". jst_time($now, 7). " -- 【お名前】". $_REQUEST['name']. " 【E-Mail】". $_REQUEST['Email']. " 【住所】〒 ". $_REQUEST['zip']. " ". $_REQUEST['pre']. $_REQUEST['city']. $_REQUEST['addr']. " ". $_REQUEST['buill']. " 【電話番号】". $_REQUEST['tel']. " -- ". $_REQUEST['comment']. " --"; $body = str_replace("\t", "", $body); $err = 0; if ($Setup['comment_view']) { $reviewfile = $System['path']. "/". $System['datadir']. "/news/". $_REQUEST['file']. ".review"; if (is_file($reviewfile)) { $Review = file($reviewfile); } else { $Review = array(); } if (array_values(preg_grep("/^ID=". $_REQUEST['ReviewID']. "\t/", $Review))) { $registmessage = " alert('ありがとうございます。\\n\\nあなたのメッセージは既にお受けしています。');"; $err = 1; } else { array_unshift($Review, $value); data_save($reviewfile, $Review); } } if (!$err && $Init['sendmail'] && preg_match("/^[\w\.\-]+\@[\w\-]+\.[\w\.\-]+$/", $Setup['comment_email'])) { $subject = $_REQUEST['subject']; if ($Init['mailEncode']) { $subject = subjectiso2022($subject, "UTF-8"); $body = mb_convert_encoding($body, "JIS"); } if (preg_match("/^[\w\.\-]+\@[\w\-]+\.[\w\.\-]$/", $_REQUEST['Email'])) { $from = $_REQUEST['Email']; } else { list($dummy, $domain) = split("\@", $Setup['comment_email']); $from = "nobody\@$domain"; } $mailto = $Setup['comment_email']; !$mailto && $mailto = $Init['sendmail']; if (send_email($Init['sendmail'], $subject, $from, $mailto, $body)) { $registmessage = " alert('申し訳ありません。\\n\\nメッセージの送信に失敗しました。\\nお急ぎのところ申し訳ありませんが、少し時間をおいて再送信してみてください。\\nよろしくお願いします。。');"; $ee = 1; } } if (!$err) { $registmessage = " alert('ありがとうございました。\\n\\n正常にメッセージを送信しました。\\n返信が必要な方には、追って担当者よりご連絡を差し上げます。\\nしばらくお待ちください。');"; } $registmessage = str_replace("\t", "", $registmessage); } $Dummy = grep("/\tID=". $_REQUEST['viewID']. "\t/", $Docs); $doc = dbfields($Dummy[0]); } if ($_REQUEST['cmd'] == "list") { sort($Docs); if ($Setup['Sort'] == 0) { $Docs = array_reverse($Docs); } elseif ($Setup['Sort'] == 2) { foreach ($Docs as &$val) { $doc = dbfields($Docs[$i]); $val = "sort=". $doc['Subject']. "\t$line"; } sort($Docs); } $text = "
"; if ($_REQUEST['target'] == "sp") { if ($Setup['Listsummary']) { $text .= "
"; } else { $text .= "
    "; } } elseif ($Setup['nonDesign'] || $_REQUEST['target'] == "mb") { $text .= "
      "; } else { $text .= " "; } !$Setup['Listview'] && $Setup['Listview'] = 50; $Pageview = $Setup['Listview']; !$_REQUEST['start'] && $_REQUEST['start'] = 0; $max = count($Docs) - 1; $end = $_REQUEST['start'] + $Pageview - 1; $end > $max && $end = $max; if ($_REQUEST['start'] > 0) { $prev = $_REQUEST['start'] - $Pageview; if ($_REQUEST['target'] == "mb" || $_REQUEST['target'] == "sp") { $prevButton = " ". $Setup['Prevbutton']. ""; } else { $prevButton = " ". $Setup['Prevbutton']. ""; } } if ($max > $end) { $next = $_REQUEST['start'] + $Pageview; if ($_REQUEST['target'] == "mb" || $_REQUEST['target'] == "sp") { $nextButton = " ". $Setup['Nextbutton']. ""; } else { $nextButton = " ". $Setup['Nextbutton']. ""; } } for($i = $_REQUEST['start']; $i <= $end; $i++) { $doc = dbfields($Docs[$i]); list($y, $m, $d, $t, $n) = preg_split("/[\/\s \:]/", $doc['Viewdate']); if ((!$doc['Viewdate'] || jst_time(time(), 6) >= $doc['Viewdate']) && (!$doc['Closedate'] || jst_time(time(), 6) <= $doc['Closedate']) && $doc['Auth']) { $text .= lineview($doc, $Setup['nonDesign']); } } if ($Setup['Listsummary'] && $_REQUEST['target'] == "sp") { $text .= " "; } elseif ($Setup['nonDesign'] || $_REQUEST['target'] == "mb") { $text .= " "; } else { $text .= "
      "; } $returnButton = "戻る"; if ($_REQUEST['target']) { if ($_REQUEST['target'] == "mb") { $prevButton = mb_convert_encoding($prevButton, "SJIS", "UTF-8"); $nextButton = mb_convert_encoding($nextButton, "SJIS", "UTF-8"); $returnButton = mb_convert_encoding($returnButton, "SJIS", "UTF-8"); } $text .= "
      $prevButton
      $nextButton

      "; } else { $text .= "
      $prevButton $nextButton
      "; } $text .= "
"; } elseif ($_REQUEST['viewID'] && $doc['Auth'] && (!$doc['Viewdate'] || jst_time(time(), 6) >= $doc['Viewdate']) && (!$doc['Closedate'] || jst_time(time(), 6) <= $doc['Closedate'])) { list($year, $month, $day) = split("/", $doc['Date']); $date = dateFmt($Setup['Dateformat'], $year, $month, $day); $doc['Subject'] = tag_decode($doc['Subject'], 1); $doc['Body'] = tag_decode($doc['Body'], 1); if ($_REQUEST['target'] == "mb") { $date = mb_convert_encoding($date, "SJIS", "UTF-8"); $subject = mb_convert_encoding(strip_tags($doc['Subject']), "SJIS", "UTF-8"); if ($Setup['imgview']) { $body = preg_replace("/<(img.*?)>/", "<$1>", $doc['Body']); $body = strip_tags($body); $body = str_replace("<", "

<", $body); $body = str_replace(">", ">

", $body); } else { $body = strip_tags($doc['Body']); } $body = mb_convert_encoding($body, "SJIS", "UTF-8"); $text .= "

$date

$subject

$body

"; } elseif ($_REQUEST['target'] == "sp") { $subject = strip_tags($doc['Subject']); /* * data-collapsed = false:開いた状態からスタート * = true :閉じた状態からスタート * data-theme = A-E:タイトルバーのテーマ * data-content-theme = A-E:コンテンツ内部のテーマ */ $text = "

$subject

$date

". $doc['Body']. "

"; if ($Setup['comment_user']) { $subject = strip_tags($doc['Subject']); $text .= "

". $Setup['form_title']. "

"; if ($Setup['email_fld']) $text .= "
"; if ($Setup['addr_fld']) $text .= "
※7桁の郵便番号を入力してカーソルを移動
"; if ($Setup['tel_fld']) $text .= "
"; $text .= "
"; if ($Setup['comment_view']) { $reviewfile = $System['path']. "/". $System['datadir']. "/news/". $_REQUEST['file']. ".review"; if (is_file($reviewfile)) { $Review = array_values(preg_grep("/\tnewsID=". $_REQUEST['viewID']. "\t.*\tAuth=checked\t/", file($reviewfile))); } else { $Review = array(); } if (count($Review)) { foreach ($Review as $line) { $review = dbfields($line); $text .= "

". $review['Subject']. "

". $review['Name']. "

". $review['Comment']. "

". jst_time($review['Date'], 7). "


"; } } } $text .= "
"; } $text .= " 戻る
"; } else { if (!$Setup['nonTitle']) { $text = "
$date
". $doc['Subject']. "
"; } $text .= "
". $doc['Body']. "

"; if ($Setup['comment_user']) { $subject = strip_tags($doc['Subject']); $text .= "

". $Setup['form_title']. "

件名

お名前

"; if ($Setup['email_fld']) $text .= "

E-Mail

"; if ($Setup['addr_fld']) $text .= "

ご住所



"; if ($Setup['tel_fld']) $text .= "

電話番号

"; $text .= "

"; if ($Setup['comment_view']) { $reviewfile = $System['path']. "/". $System['datadir']. "/news/". $_REQUEST['file']. ".review"; if (is_file($reviewfile)) { $Review = array_values(preg_grep("/\tnewsID=". $_REQUEST['viewID']. "\t.*\tAuth=checked\t/", file($reviewfile))); } else { $Review = array(); } if (count($Review)) { $text .= "

". $Setup['comment_title']. "

"; foreach ($Review as $line) { $review = dbfields($line); $text .= "

". $review['Subject']. "


お名前

". $review['Name']. "

". $review['Comment']. "

". jst_time($review['Date'], 7). "

"; } $text .= "
"; } } $text .= "
"; } $text .= " "; } } /* ページの生成 */ if ($Setup['Template'] == "auto") { /* 環境設定のメインテンプレートに"auto"が設定されている場合は、 * 詳細を呼び出したhtmlがテンプレートになる */ $temp = str_replace("http://".$_SERVER['SERVER_NAME'], "", $_SERVER['HTTP_REFERER']); } else { if (is_array($Template)) { list($temp, $title) = split(":", $Template[0]); } $Setup['Template'] && $temp = $Setup['Template']; (($_REQUEST['target'] == "mb" || $_REQUEST['target'] == "sp") && $Setup['Mobile_temp']) && $temp = $Setup['Mobile_temp']; ($_REQUEST['target'] == "sp" && $Setup['sp_temp']) && $temp = $Setup['sp_temp']; } if (is_file($_SERVER['DOCUMENT_ROOT']. $temp)) { $html = file_get_contents($_SERVER['DOCUMENT_ROOT']. $temp); } else { $html = join("", systemtemplate()); } $html = preg_replace("/\n/", "\r", $html); ($_REQUEST['target'] != "mb" && $Init['Encode'] != "UTF-8") && $html = mb_convert_encoding($html, 'UTF-8', $Init['Encode']); while(preg_match("//i", $html, $m)) { $tg = $m[0]; if (trim($m[1]) == 'list') { $link = "". $Setup['Name']. ""; $html = str_replace($tg, $link, $html); } else { $html = str_replace($tg, $Setup['Name'], $html); } } if ($_REQUEST['viewID']) { $doc['Subject'] = tag_decode($doc['Subject'], true); $title = strip_tags($doc['Subject']); $html = preg_replace("//i", $title, $html); $html = preg_replace("//i", $doc['Subject'], $html); $html = preg_replace("//i", $doc['Date'], $html); } else { $html = preg_replace("//i", $Setup['Name'], $html); $html = preg_replace("//i", $Setup['Name'], $html); } $html = preg_replace("/().*()/i", $text, $html); $k=1; while(preg_match("//i", $html, $m)) { $tg = ""; $separator = $m[1]; $separator = str_replace("?", '\?', $separator); $ssi = $m[2]; list($leftdoc, $rightdoc) = split($separator, $line); if ($ssi) { list($exe, $param) = split("\?", $ssi); if ($Init['ssiurl']) { $url = $System['protocol']. $_SERVER['SERVER_NAME']. $ssi; $ssitext = file_get_contents($url); } else { $url = $_SERVER['DOCUMENT_ROOT']. $ssi; if (is_file($_SERVER['DOCUMENT_ROOT']. $ssi)) { $ssitext = file_get_contents($url); } } } $html = str_replace($tg, $ssitext, $html); } } else { sort($Docs); if ($Setup['Sort'] == 0) { $Docs = array_reverse($Docs); } elseif ($Setup['Sort'] == 2) { foreach ($Docs as &$val) { $doc = dbfields($Docs[$i]); $val = "sort=". $doc['Subject']. "\t$line"; } sort($Docs); } !$Setup['Name'] && $Setup['Name'] = "新着情報"; $html = ""; !$_REQUEST['ajax'] && $html .= "
"; if ($_REQUEST['target'] == "sp") { if ($Setup['Listsummary']) { $html .= "

". $Setup['Name']. "

"; if ($Setup['Listsummary'] == 3) { $html .= "
"; } } else { $html .= "
  • ". $Setup['Name']. "
  • "; } } elseif ($Setup['nonDesign'] || $_REQUEST['mobile'] || $_REQUEST['target'] == "mb") { if ($Setup['Listsummary'] == 3) { $html .= "
    "; } else { $html .= "
      "; } } else { $html .= " "; } !$Setup['Pageview'] && $Setup['Pageview'] = 5; $_REQUEST['pv'] && $Setup['Pageview'] = $_REQUEST['pv']; $max = count($Docs); !$_REQUEST['start'] && $_REQUEST['start'] = 0; $end = $_REQUEST['start'] + $Setup['Pageview'] - 1; $end > $max && $end = $max; $i = 0; for($j = $_REQUEST['start']; $j < $max; $j++) { if ($i >= $Setup['Pageview']) break; $doc = dbfields($Docs[$j]); if ((!$doc['Viewdate'] || jst_time(time(), 6) >= $doc['Viewdate']) && (!$doc['Closedate'] || jst_time(time(), 6) <= $doc['Closedate']) && $doc['Auth']) { $html .= lineview($doc, $Setup['nonDesign']); $i++; } } if ($Setup['nonDesign'] || $_REQUEST['mobile'] || $_REQUEST['target'] == "mb" || $_REQUEST['target'] == "sp") { if ($Setup['Listsummary'] == 3) { $Setup['Listsummary'] == 3 && $_REQUEST['target'] == "sp" && $html .= ""; $html .= " "; } else { $html .= " "; if ($Setup['Listsummary'] == 2) { $html .= " "; } } } else { $html .= "
      "; } if ($Setup['Pager'] && !$_REQUEST['mobile'] && !$_REQUEST['target']) { $html .= " "; if ($_REQUEST['start']) { $st = $_REQUEST['start'] - $Setup['Pageview']; $html .= " "; } if ($max > $end) { $st = $end + 1; $html .= " "; } $html .= "
      ". $Setup['Prevbutton']. "". $Setup['Nextbutton']. "
      "; } elseif ($max > $end) { if ($Setup[Listbutton]) { $button = "\"\""; } else { $button = 'すべて表示...'; } if ($_REQUEST['mobile'] || $_REQUEST['target'] == "mb") { $button = mb_convert_encoding($button, "SJIS", "UTF-8"); $html .= " "; } elseif ($_REQUEST['target'] == "sp") { $html .= " "; } else { $html .= " "; } } !$_REQUEST['ajax'] && $html .= "
    "; if ($Setup['Listsummary'] == 3 && !$_REQUEST['target']) { $html .= " "; } } if ($_REQUEST['mobile'] || $_REQUEST['target'] == "mb") { header("Content-type:text/html; charset=SHIFT_JIS"); echo $html; } else { echo_encode($html); } function lineview($Doc, $mode) { global $System, $Init, $Setup, $Exe, $i, $scriptname; list($year, $month, $day) = split("/", $Doc['Date']); $date = trim(dateFmt($Setup['Dateformat'], $year, $month, $day)); $Doc['Subject'] = tag_decode($Doc['Subject'], 1); $Doc['Summary'] = str_replace("\r", "
    ", $Doc['Summary']); if ($Doc['filecode']) { $file = $Doc['filecode']; } else { $file = $_REQUEST['file']; } $url = ""; $Stress = ""; if ($Setup['Stress'] || $Doc['Stress']) { /* 強調画像 */ !$Setup['Stresslimit'] && $Setup['Stresslimit'] = 7; if (dateserial($Doc['Date']) + $Setup['Stresslimit'] * 86400 >= time()) { if ($Doc['Stress']) { $Stress = ""; } else { $Stress = ""; } } } if ($_REQUEST['target'] == "mb") { $date = mb_convert_encoding($date, "SJIS", "UTF-8"); $subject = mb_convert_encoding(strip_tags($Doc['Subject']), "SJIS", "UTF-8"); if ($Doc['Link_mb'] || $Doc['Body']) { if ($Doc['Link_mb']) { $url = $Doc['Link_mb']; } elseif ($Doc['Body']) { $url = "$scriptname?file=$file&viewID=". $Doc['ID']. "&target=mb"; } } $url && $subject = "$subject"; $line = "
  • $date
    $subject$Stress
  • "; } elseif ($_REQUEST['target'] == "sp") { /* スマートフォン */ $url = ""; if ($Doc['Link_sp'] || $Doc['Body']) { if ($Doc['Link_sp']) { $url = $Doc['Link_sp']; } elseif ($Doc['Body']) { $url = "$scriptname/$file/". $Doc['ID']. "/sp/"; } } $subject = "". strip_tags($Doc['Subject']). ""; if ($Setup['Listsummary']) { $subject = "

    $subject$Stress

    $date

    "; if ($url) { !$Setup['more_button'] && $Setup['more_button'] = "つづきを読む"; $link = "

    ". $Setup['more_button']. "

    "; } $theme = "data-theme=\"c\" data-content-theme=\"c\""; $Setup['Listsummary'] == 3 && $theme = ""; $collapsed = ""; if ($Setup['Listsummary'] == 1 || ($Setup['Listsummary'] == 3 && $i == 0)) { $collapsed = "data-collapsed=\"false\""; } elseif ($Setup['Listsummary'] == 2) { $collapsed = "data-collapsed=\"true\""; } $line .= "

    $subject

    ". $Doc['Summary']. " $link
    "; } else { $icon = ""; if ($Setup['Imagewidth']) { $icon = $Doc['Image']; !$icon && $img = "/trycmd/images/exspc.gif\" height=\"40"; $icon = ""; $subject = $icon. " ". $subject; "

    $date

    ". "

    ". $Doc['Summary']. "

    "; } else { if ($Doc['Icon']) { $icon = "\"\""; } elseif ($Setup['Icon']) { $icon = "\"\""; } $subject = $icon. " $subject$Stress"; } $inc = "$icon

    $date

    $subject
    "; $onclick = ""; $none = "none;"; if ($url && !$Setup['Titlelink'] && !$Doc['Titlelink']) { $onclick = " onclick=\"location.href='$url';\""; $none = "block;"; $inc = "$inc

    "; } $line = "
  • $inc
  • "; } } elseif ($mode) { $subject = $Doc['Subject']; if ($Doc['link']) { $url = $Doc['link']; } elseif ($Doc['Body']) { $url = "$scriptname/$file/". $Doc['ID']. "/"; } if (!$Setup['Titlelink'] && !$Doc['Titlelink'] && $link) { $subject = "$subject"; } $icon = ""; if ($Doc['Icon']) { $icon = "
    \"\"
    "; } elseif ($Setup['Icon']) { $icon = "
    \"\"
    "; } $listimage = ""; if ($Setup['Imagewidth'] && $Doc['Image']) { $Setup['Listsummary'] = 1; if ($Setup['popupimg']) { $listimage = "
    \"\"
    "; } else { $listimage = "
    \"\"
    "; } } if ($url && $Setup['Listsummary']) { !$Setup['more_button'] && $Setup['more_button'] = "つづきを読む"; $link = ""; } if ($Setup['Listsummary'] == 3) { $subject = strip_tags($subject); $line = "

    $icon

    $date

    $subject

    $Stress $listimage

    ". $Doc['Summary']. "$link
    "; } elseif ($Setup['Listsummary']) { $onclick = ""; if ($Setup['Listsummary'] == 2) { $onclick = " onclick=\"$('#". $Doc['ID']. "-summary').toggle();\""; } $line = "
  • $icon
    $date

    $subject
    $Stress $listimage"; $Setup['Listsummary'] && $line .= "
    ". $Doc['Summary']. "$link
    "; $line .= "
  • "; } else { $onclick = ""; $none = "none;"; if ($url && !$Setup['Titlelink'] && !$Doc['Titlelink']) { $onclick = " onclick=\"location.href='$url';\""; $none = "block;"; $subject = "$subject"; } $line = "
  • $icon

    $date

    $subject

  • "; } } else { $colspan = 1; $w = 100; $line = ""; $titleicon = $Setup['Icon']; $Doc['Icon'] && $titleicon = $Doc['Icon']; if ($Setup['Listicon'] && $titleicon) { $line .= " "; $w -= 1; $colspan++; } if ($date) { $line .= " $date"; $w -= 4; $colspan++; } if ($Doc['Link'] || $Doc['Body']) { if ($Doc['Link']) { $url = $Doc['Link']; } elseif ($Doc['Body']) { $url = "$scriptname/$file/". $Doc['ID']. "/"; } $target = ''; $Doc['Target'] && $target = "target=\"". $Doc['Target']. "\""; } $listimage = ""; if ($Setup['Imagewidth'] && $Doc['Image']) { $Setup['Listsummary'] = 1; if ($Setup['popupimg']) { $listimage = " \"\""; } else { $listimage = " \"\""; } } if ($url) { !$Setup['more_button'] && $Setup['more_button'] = "つづきを読む"; $link = ""; } if ($Setup['Listsummary'] > 1) { $line .= " ". $Doc['Subject']. " $Stress
    $listimage". $Doc['Summary']. " $link
    "; } else { $line .= ""; if ($url && !$Setup['Titlelink'] && !$Doc['Titlelink']) { $line .= "". $Doc['Subject']. " "; } else { $line .= $Doc['Subject']; } $line .= " $Stress"; if ($Setup['Listsummary']) { $line .= "
    $listimage ". $Doc['Summary']. "

    $link
    "; } } if ($Setup['Lineimg']) { $lineimage = $_SERVER['DOCUMENT_ROOT']. $Setup['Lineimg']; if (is_file($lineimage)) { list($w, $h, $t, $a) = getimagesize($lineimage); $h = $h."px"; $line .= " "; } } } return($line); } function dateFmt($id, $year, $month, $day) { if ($id == 1) { $date = sprintf("%04d/%02d/%02d", $year, $month, $day); } elseif ($id == 2) { $date = sprintf("%04d年%02d月%02d日 ", $year, $month, $day); } elseif ($id == 3) { $date = sprintf("%02d/%02d", $month, $day); } elseif ($id == 4) { $date = sprintf("%02d月%02d日 ", $month, $day); } elseif ($id == 5) { $date = sprintf("%04d/%02d/%02d", $year, $month, $day); $serialtime = dateserial($date, $Init{Timelag}); $date = gengo($serialtime); } return($date); } ?>