source: trunk/reference-skin/list.php @ 1490

Revision 1490, 2.9 KB checked in by yupmin, 3 years ago (diff)

이동/삭제 부분 개선

Line 
1<div id="account-info">
2<? if ($guest): ?>
3<a href="<?=$link_login?>">로그인</a>
4<a href="<?=$link_signup?>">회원가입</a>
5<? else: ?>
6<a href="<?=$link_logout?>">로그아웃</a>
7<a href="<?=$link_account?>">정보 수정</a>
8<? if ($link_admin): ?><a href="<?=$link_admin?>">관리자 페이지</a><? endif; ?>
9<? endif; ?>
10</div>
11
12<div id="board-info">
13모두 <?=$post_count?>개의 글이 있습니다.
14<a href="<?=$link_rss?>">RSS</a>
15</div>
16
17<? if ($categories): ?>
18<ul id="categories">
19        <li><a href="?">전체 보기</a></li>
20<? foreach ($categories as $category): ?>
21        <li><a href="<?=$category->url?>"><?=$category->name?></a> (<?=$category->post_count?>)</li>
22<? endforeach; ?>
23</ul>
24<? endif; ?>
25
26<form method="post" action="<?=url_with_referer_for($board, 'manage')?>">
27<table id="posts">
28        <thead>
29                <tr>
30                        <? if ($admin): ?><th class="manage"><input type="checkbox" onclick="toggleAll(this.form, this.checked)" /></th><? endif; ?>
31                        <th class="author">글쓴이</th>
32                        <th class="title">제목</th>
33                        <th class="views">조회수</th>
34                        <th class="date">날짜</th>
35                </tr>
36        </thead>
37
38        <tfoot>
39                <tr>
40                        <td colspan="4" id="page-list">
41                                <? if ($link_prev_page): ?><a href="<?=$link_prev_page?>">&larr;</a><? endif; ?>
42                                <? foreach ($pages as $page): ?><?=$page?> <? endforeach; ?>
43                                <? if ($link_next_page): ?><a href="<?=$link_next_page?>">&rarr;</a><? endif; ?>
44                        </td>
45                </tr>
46        </tfoot>
47
48        <tbody>
49        <? foreach ($posts as $post): ?>
50                <tr>
51                        <? if ($admin): ?><td class="manage"><input type="checkbox" name="posts[]" value="<?=$post->id?>" /></td><? endif; ?>
52                        <td class="author"><?=$post->author?></td>
53                        <td class="title">
54                                <? if ($post->notice): ?>공지사항<? endif; ?>
55                                <? if ($post->secret): ?>비밀글<? endif; ?>
56                                <? if ($post->category): ?><a href="<?=$post->category->url?>"><?=$post->category->name?></a><? endif; ?>
57                                <a href="<?=$post->url?>"><?=$post->title?></a>
58                                <? if ($post->comment_count): ?><?=$post->comment_count?><? endif; ?>
59                        </td>
60                        <td class="views"><?=$post->views?>번 읽힘</td>
61                        <td class="date"><?=$post->date?></td>
62                </tr>
63        <? endforeach; ?>
64        </tbody>
65</table>
66
67<? if ($admin): ?><input type="submit" value="선택한 글 관리" /><? endif; ?>
68</form>
69
70<div id="meta-nav">
71<? if ($link_new_post): ?><a href="<?=$link_new_post?>">글쓰기</a><? endif; ?>
72</div>
73
74<form method="get" action="">
75        <input type="checkbox" name="title" id="search_title" value="1" <?=$title_checked?> /> <label for="search_title">제목</label>
76        <input type="checkbox" name="body" id="search_body" value="1" <?=$body_checked?> /> <label for="search_body">내용</label>
77        <input type="checkbox" name="comment" id="search_comment" value="1" <?=$comment_checked?> /> <label for="search_comment">댓글</label>
78        <input type="text" name="keyword" value="<?=$keyword?>" />
79        <input type="submit" value="검색" />
80</form>
Note: See TracBrowser for help on using the repository browser.