searchArticles($search, $offset); } elseif ($mode === 'keyword') { if (mb_detect_encoding($_GET['k']) === "SJIS") { $search = htmlspecialchars(mb_convert_encoding(filter_input(INPUT_GET, 'k'), 'UTF-8', 'SHIFT_JIS'), ENT_QUOTES, 'UTF-8'); } else { $search = htmlspecialchars(filter_input(INPUT_GET, 'k'), ENT_QUOTES, 'UTF-8'); } $articles = $xml->getKeywordArticles($search, $offset); } $total = (int)$articles->result->info->hitnum; $max = (int)$articles->result->info->last_page; if ($max > 1000) { $max = 1000; } $current = (int)$articles->result->info->current_page; if ($max > 9) { if ($current < 6) { $start = 2; $pagenation = 8; } elseif ($current >= $max - 8) { $start = $max - 8; $pagenation = 8; } else { $start = $current -3; $pagenation = 7; } if ($current < 3) { $start_sp = 1; } elseif ($current >= $max - 3) { $start_sp = $max - 3; } else { $start_sp = $current -1; } $pagenation_sp = 4; } elseif ($max === 1) { $start = ""; $pagenation = 0; $start_sp = 1; $pagenation_sp = 1; } else { $start = 2; $pagenation = $max - 2; if ($max < 4) { $start_sp = 1; $pagenation_sp = $max - 1; } else { if ($current < 3) { $start_sp = 1; } elseif ($current >= $max - 3) { $start_sp = $max - 3; } else { $start_sp = $current -1; } $pagenation_sp = 4; } } ?>

の検索結果

のお役立ち情報

result->items->item as $item): ?>

url) === 1): ?>

convertDate($item->number19); ?>

convertTarget($xml->getTargetList($item->narrow2)); ?>

title; ?>

getCategory($item->path); ?>