<@6> <#$ifjump(! Is_phone, 'diary_list_table')> <@local(tm,t)> <@> ログイン確認 <$ifexec(! v.diary_id, begin)> <$redirect( v.myself3p . '?menu' )> <$end> <@> システムモード <$v.system_mode()> <#$v.title = '日記の一覧'> <@> 90日前 <$tm = TM-90*86400> <$set = v.daybook_setting> <@call('sub/error_message', 0)> <@>ログのロード <$h.type="diary"> <$lists = if(int(v.display_op), int(v.display_op), undef)> <$limit = h.limit= lists || 30><@> 表示件数指定 <$h.sort= sort = v.query_ary#1 || 'yyyymmdd'> <$h.offset = int(v.query_ary#2 -1)> <$h.offset = if(h.offset<0, undef, h.offset)> <$h.sort_reverse = rev = if(v.query_ary#3 eq '+', 0, 1)> <$query = read_query()> <$h.category = query.cat> <$h.word = query.word> <$h.id = query.id> <$h.yyyymm = query.yyyymm> <$logs = v.load_list( h )> <$h.start = h.offset + 1> <$h.end = h.offset + limit> <$ifset(h.hits < h.end, h.end, h.hits)> <@>前へと次へ <$prev = h.start - limit> <$next = h.end + 1> <$prev = if(prev < 1, undef, prev)> <$next = if(h.hits < next, 0, next)> <$url = v.myself2p . lists . '?' . v.query_ary#0> <$ifset(query.id ne '', add_query, "&id=" . form_encode(x=query.id))> <$ifset(query.cat ne '', add_query, "&cat=" . form_encode(x=query.cat))> <$ifset(query.yyyymm ne '', add_query, "&yyyymm=" . form_encode(x=query.yyyymm))> <$ifset(query.cat ne '', add_query, "&word=" . form_encode(x=query.word) . "&all=" . form_encode(x=query.cat))> <@>------------------------------------------------------------------------------ <@>------------------------------------------------------------------------------ <@> 現在sort中のカラム <$title = begin><@argv#1> <@if(rev,'▼','▲')><$end> <$title2 = begin><@argv#1><$end> <@> ■日記一覧
コメント一覧
<@ifexec(h.hits, begin)> <@ifexec(query.cat ne '', begin)>

『<@tag_escape(query.cat)>』のみ表示中(記事を表示すべて表示

<$end>

<@h.start>件〜<@h.end>件まで表示(10件表示30件表示50件表示

<@if(prev != h.offset, #'≪前<@limit>件[4] ')> <@if(next, #'[6]次<@limit>件≫')>

<@exec(if(sort eq 'yyyymmdd', title, title2), 'yyyymmdd', '日付')> <@exec(if(sort eq 'title', title, title2), 'title','タイトル')> <@ifexec(set.category_list, begin)> <@exec(if(sort eq 'category', title, title2), 'category', '分類')> <$end>
<@forexec(t, logs, begin)> <$com = if(v.allow_edit, t.comments_all, t.comments)> <@if(t.tm > tm, "<@t.mon>/<@t.day>", substr(t.year,2) . "-<@t.mon>")> <@if(!t.enable, '[非]')><@t.title><@if(com, "(<@com>)")> <@ifexec(set.category_list, begin)> <@t.category> <$end>
<$end>

<@if(prev != h.offset, #'≪前<@limit>件[4] ')> <@if(next, #'[6]次<@limit>件≫')>

<$end>