ここの情報は古いです。ご理解頂いた上でお取り扱いください。

source: OpenPNE/trunk/webapp/modules/admin/templates/diary_list.tpl @ 6555

Last change on this file since 6555 was 6555, checked in by ebihara, 12 years ago

#135:管理画面からアルバム一覧が利用できるようにした

File size: 4.6 KB
Line 
1({$inc_header|smarty:nodefaults})
2({ext_include file="inc_subnavi_adminImageKakikomi.tpl"})
3({assign var="page_name" value="`$WORD_DIARY`管理"})
4({ext_include file="inc_tree_adminImageKakikomi.tpl"})
5</div>
6
7({*ここまで:navi*})
8
9<h2>({$WORD_DIARY})管理</h2>
10<div class="contents">
11
12({if $msg})
13<p class="actionMsg">({$msg})</p>
14({/if})
15
16<form action="./" method="get">
17<input type="hidden" name="m" value="({$module_name})" />
18<input type="hidden" name="a" value="page_({$hash_tbl->hash('diary_list','page')})" />
19<h3 class="item">検索キーワード</h3>
20<input class="basic" type="text" name="keyword" value="({$keyword})" />
21<span class="textBtnS"><input type="submit" value="検索" /></span>
22</form>
23
24<form action="./" method="get">
25<input type="hidden" name="m" value="({$module_name})" />
26<input type="hidden" name="a" value="page_({$hash_tbl->hash('diary_list','page')})" />
27<h3 class="item">ID検索</h3>
28<input class="basic" type="text" name="target_c_diary_id" value="({$target_c_diary_id})" />
29<span class="textBtnS"><input type="submit" value="検索" /></span>
30</form>
31
32({if !$album_list})
33
34<p class="info">該当する({$WORD_DIARY})が存在しません</p>
35
36({else})
37
38({capture name="pager"})
39<div class="listControl">
40<p class="display">
41({$total_num})件中 ({$start_num})-({$end_num})件目を表示しています
42</p>
43<p class="listMove">
44({if $page_list})({foreach from=$page_list item=item})({if $page!=$item})<a href="?m=({$module_name})&amp;a=page_({$hash_tbl->hash('diary_list','page')})&amp;page=({$item})&amp;keyword=({$keyword_encode})">({$item})</a>({else})<b>({$item})</b>({/if})&nbsp;&nbsp;({/foreach})&nbsp;({/if})
45({if $prev})<a href="?m=({$module_name})&amp;a=page_({$hash_tbl->hash('diary_list','page')})&amp;page=({$page-1})&amp;keyword=({$keyword_encode})"><<前</a> ({/if})
46({if $next})<a href="?m=({$module_name})&amp;a=page_({$hash_tbl->hash('diary_list','page')})&amp;page=({$page+1})&amp;keyword=({$keyword_encode})">次>></a>({/if})
47</p>
48</div>
49({/capture})
50
51<div class="listControl" id="pager01">
52({$smarty.capture.pager|smarty:nodefaults})
53</div>
54
55({foreach from=$diary_list item=item})
56<table class="basicType2">
57<tbody>
58({****})
59<tr>
60<th>ID</th>
61<td class="type1">
62({$item.c_diary_id})
63</td>
64</tr>
65({****})
66<tr>
67<th>タイトル</th>
68<td>
69<a href="({t_url _absolute=1 m=pc a=page_fh_diary})&amp;target_c_diary_id=({$item.c_diary_id})" target="_blank">({$item.subject})</a> (({if $item.count_comments})<a href="?m=({$module_name})&amp;a=page_({$hash_tbl->hash('diary_comment_list','page')})&amp;target_c_diary_id=({$item.c_diary_id})">({/if})コメント({$item.count_comments})件({if $item.count_comments})</a>({/if}))
70</td>
71</tr>
72({****})
73<tr>
74<th>作成者</th>
75<td>
76<a href="({t_url _absolute=1 m=pc a=page_f_home})&amp;target_c_member_id=({$item.c_member_id})" target="_blank">({$item.c_member.nickname})</a>
77</td>
78</tr>
79({****})
80<tr>
81<th>公開範囲</th>
82<td>
83({if $item.public_flag == "public"})
84全員に公開
85({elseif $item.public_flag == "friend"})
86({$WORD_MY_FRIEND})まで公開
87({elseif $item.public_flag == "private"})
88公開しない
89({/if})
90</td>
91</tr>
92({****})
93<tr>
94<th>作成日</th>
95<td>
96({$item.r_datetime})
97</td>
98</tr>
99({****})
100<tr>
101<th>({$WORD_DIARY})本文</th>
102<td class="textbody">
103({if $item.image_filename_1 || $item.image_filename_2 || $item.image_filename_3})
104<div>
105({if $item.image_filename_1})<span class="padding_s"><a href="({t_img_url filename=$item.image_filename_1})" target="_blank"><img src="({t_img_url filename=$item.image_filename_1 w=120 h=120})"></a></span>({/if})
106({if $item.image_filename_2})<span class="padding_s"><a href="({t_img_url filename=$item.image_filename_2})" target="_blank"><img src="({t_img_url filename=$item.image_filename_2 w=120 h=120})"></a></span>({/if})
107({if $item.image_filename_3})<span class="padding_s"><a href="({t_img_url filename=$item.image_filename_3})" target="_blank"><img src="({t_img_url filename=$item.image_filename_3 w=120 h=120})"></a></span>({/if})
108</div>
109({/if})
110({if $smarty.const.OPENPNE_ADMIN_CONVERT_URL})
111({$item.body|nl2br|t_url2cmd:'diary'|t_cmd:'diary'|t_decoration:1})
112({else})
113({$item.body|nl2br|t_decoration:1})
114({/if})
115</td>
116</tr>
117({****})
118<tr>
119<td class="formbutton" colspan="2">
120<form action="./" method="get">
121<input type="hidden" name="m" value="({$module_name})" />
122<input type="hidden" name="a" value="page_({$hash_tbl->hash('delete_diary')})" />
123<input type="hidden" name="target_c_diary_id" value="({$item.c_diary_id})" />
124<span class="textBtnS"><input type="submit" value="削除" /></span>
125</form>
126</td>
127</tr>
128</tbody>
129</table>
130({/foreach})
131
132<div class="listControl" id="pager02">
133({$smarty.capture.pager|smarty:nodefaults})
134</div>
135
136({/if})
137
138({$inc_footer|smarty:nodefaults})
Note: See TracBrowser for help on using the repository browser.