The MTPaginate tag only works within PHP documents!
Make sure that the document extension is .php and that your server supports PHP documents.
// Values that can be used in other PHP code on the page
$paginate_num_pages = 1;
$paginate_num_sections = 2;
$paginate_page_selector = 'page';
$paginate_current_page = $_GET['page'];
// 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;
}
$paginate_self = '&' . $_SERVER['QUERY_STRING'] . '&';
$paginate_self = preg_replace("/&page=[^&]*&/", "&", $paginate_self);
$paginate_self = substr($paginate_self, 1, strlen($paginate_self) - 1);
if($paginate_self == '&')
$paginate_self = '';
else
$paginate_self = htmlentities($paginate_self);
$paginate_self = basename($_SERVER['PHP_SELF']) . "?${paginate_self}page";
?>
2004年05月10日
八神がかわいそうと思ったのは...
今日はやっと時間ができたのでGW中に録画しておいた高橋留美子の傑作アニメ「めぞん一刻」の完結編を見た。いつもは主人公の立場で見るのだが、今回は主人公、五代祐作に惚れている八神いぶきの立場で見てしまった。たぶん今の自分の精神的な状態がすごく似ていたのかもしれない。でもどうしても最後にはハッピーエンドとなり、結局五代の立場になり嬉涙が出てしまった。自分の歳を考えるとなんとも恥ずかしい。
投稿者 toshiya :
00:29
|
コメント (0)
|
トラックバック