Home Design Archives CMS 2007年10月

2007年10月アーカイブ

The MTPaginate tag only works within PHP documents!
Make sure that the document extension is .php and that your server supports PHP documents.
1, ); $paginate_page_selector = 'page'; $paginate_page_section_selector = 'page_section'; $paginate_current_page_section = @$_GET[$paginate_page_section_selector]; if($paginate_current_page_section) $paginate_current_page = @$paginate_section_ids[$paginate_current_page_section]; else $paginate_current_page = @$_GET[$paginate_page_selector]; // Pin page selector to a valid number (or 'all') if($paginate_current_page=='') $paginate_current_page = '1'; if($paginate_current_page != 'all') { if($paginate_current_page == 'first') $paginate_current_page = 1; elseif($paginate_current_page == 'last') $paginate_current_page = 1; elseif($paginate_current_page < 1) $paginate_current_page = 1; elseif($paginate_current_page > 1) $paginate_current_page = 1; $paginate_sections = array( 0 , 2); $paginate_top_section = $paginate_sections[$paginate_current_page-1]+1; $paginate_bottom_section = $paginate_sections[$paginate_current_page]; } else { $paginate_top_section = 1; $paginate_bottom_section = 2; } if(isset($_SERVER['QUERY_STRING'])) { $paginate_self = '&' . $_SERVER['QUERY_STRING'] . '&'; $paginate_self = preg_replace("/&page=[^&]*&/", "&", $paginate_self); $paginate_self = preg_replace("/&page_section=[^&]*&/", "&", $paginate_self); $paginate_self = substr($paginate_self, 1, strlen($paginate_self) - 1); if($paginate_self == '&') $paginate_self = ''; else $paginate_self = htmlentities($paginate_self); } else { $paginate_self = ''; } $paginate_self = basename($_SERVER['PHP_SELF']) . "?${paginate_self}page"; ?>

Ajaxコメント

  • 編集
  • 2007年10月22日
  • コメント(8)
  • トラックバック(0)
2008&#24180;4&#26376;

このアーカイブについて

このページには、2007年10月に書かれたブログ記事が新しい順に公開されています。

次のアーカイブは2008年4月です。

最近のコンテンツはインデックスページで見られます。過去に書かれたものはアーカイブのページで見られます。

Powered by Movable Type 4.21-ja

ページの先頭に戻る