Changeset 5632 for trunk/interface/owner/communication/comment/index.php
- Timestamp:
- 03/25/08 16:41:10 (8 months ago)
- Location:
- trunk/interface/owner/communication/comment
- Files:
-
- 1 modified
- 1 moved
-
. (moved) (moved from trunk/interface/owner/entry/comment)
-
index.php (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/interface/owner/communication/comment/index.php
r5610 r5632 48 48 49 49 $tabsClass = array(); 50 $tabsClass['postfix'] = null; 51 $tabsClass['postfix'] .= isset($_POST['category']) ? '&category='.$_POST['category'] : ''; 52 $tabsClass['postfix'] .= isset($_POST['name']) ? '&name='.$_POST['name'] : ''; 53 $tabsClass['postfix'] .= isset($_POST['ip']) ? '&ip='.$_POST['ip'] : ''; 54 $tabsClass['postfix'] .= isset($_POST['search']) ? '&search='.$_POST['search'] : ''; 55 if(!empty($tabsClass['postfix'])) $tabsClass['postfix'] = ltrim($tabsClass['postfix'],'/'); 56 50 57 if (isset($_POST['status'])) { 51 58 if($_POST['status']=='comment') { … … 60 67 $visibilityText = _t('댓글'); 61 68 } 62 if( $tabsClass['comment'] == true) {69 if(isset($tabsClass['comment']) && $tabsClass['comment'] == true) { 63 70 list($comments, $paging) = getCommentsWithPagingForOwner($blogid, $categoryId, $name, $ip, $search, $suri['page'], $perPage); 64 71 } else { … … 73 80 if (!confirm("<?php echo _t('선택된 댓글을 삭제합니다. 계속 하시겠습니까?');?>")) 74 81 return; 75 var request = new HTTPRequest("GET", "<?php echo $blogURL;?>/owner/ entry/comment/delete/" + id);82 var request = new HTTPRequest("GET", "<?php echo $blogURL;?>/owner/communication/comment/delete/" + id); 76 83 request.onSuccess = function () { 77 84 PM.removeRequest(this); … … 99 106 } 100 107 101 var request = new HTTPRequest("POST", "<?php echo $blogURL;?>/owner/ entry/comment/delete/");108 var request = new HTTPRequest("POST", "<?php echo $blogURL;?>/owner/communication/comment/delete/"); 102 109 request.onSuccess = function() { 103 110 document.getElementById('list-form').submit(); … … 200 207 </h2> 201 208 <ul id="communication-tabs-box" class="tabs-box"> 202 <!-- TODO : $tab['postfix'] 버그 --> 203 <li<?php echo isset($tabsClass['comment']) ? ' class="selected"' : NULL;?>><a href="<?php echo $blogURL;?>/owner/entry/comment?page=1<?php echo $tab['postfix'];?>&status=comment"><?php echo _t('댓글');?></a></li> 204 <li<?php echo isset($tabsClass['guestbook']) ? ' class="selected"' : NULL;?>><a href="<?php echo $blogURL;?>/owner/entry/comment?page=1<?php echo $tab['postfix'];?>&status=guestbook"><?php echo _t('방명록');?></a></li> 205 <li<?php echo isset($tabsClass['notify']) ? ' class="selected"' : NULL;?>><a href="<?php echo $blogURL;?>/owner/entry/notify"><?php echo _t('댓글 알리미');?></a></li> 206 <li<?php echo isset($tabsClass['received']) ? ' class="selected"' : NULL;?>><a href="<?php echo $blogURL;?>/owner/entry/trackback?page=1<?php echo $tab['postfix'];?>&status=received"><?php echo _t('걸린 글');?></a></li> 207 <li<?php echo isset($tabsClass['sent']) ? ' class="selected"' : NULL;?>><a href="<?php echo $blogURL;?>/owner/entry/trackback?page=1<?php echo $tab['postfix'];?>&status=sent"><?php echo _t('건 글');?></a></li> 209 <li<?php echo isset($tabsClass['comment']) ? ' class="selected"' : NULL;?>><a href="<?php echo $blogURL;?>/owner/communication/comment?page=1<?php echo $tabsClass['postfix'];?>&status=comment"><?php echo _t('댓글');?></a></li> 210 <li<?php echo isset($tabsClass['guestbook']) ? ' class="selected"' : NULL;?>><a href="<?php echo $blogURL;?>/owner/communication/comment?page=1<?php echo $tabsClass['postfix'];?>&status=guestbook"><?php echo _t('방명록');?></a></li> 211 <li<?php echo isset($tabsClass['notify']) ? ' class="selected"' : NULL;?>><a href="<?php echo $blogURL;?>/owner/communication/notify"><?php echo _t('댓글 알리미');?></a></li> 212 <li<?php echo isset($tabsClass['received']) ? ' class="selected"' : NULL;?>><a href="<?php echo $blogURL;?>/owner/communication/trackback?page=1<?php echo $tabsClass['postfix'];?>&status=received"><?php echo _t('걸린 글');?></a></li> 213 <li<?php echo isset($tabsClass['sent']) ? ' class="selected"' : NULL;?>><a href="<?php echo $blogURL;?>/owner/communication/trackback?page=1<?php echo $tabsClass['postfix'];?>&status=sent"><?php echo _t('건 글');?></a></li> 208 214 </ul> 209 215 <?php 210 216 if(isset($tabsClass['comment'])) { 211 217 ?> 212 <form id="category-form" class="category-box" method="post" action="<?php echo $blogURL;?>/owner/ entry/comment">218 <form id="category-form" class="category-box" method="post" action="<?php echo $blogURL;?>/owner/communication/comment"> 213 219 <div class="section"> 214 220 <input type="hidden" name="page" value="<?php echo $suri['page'];?>" /> … … 234 240 } 235 241 ?> 236 <form id="list-form" method="post" action="<?php echo $blogURL;?>/owner/ entry/comment">242 <form id="list-form" method="post" action="<?php echo $blogURL;?>/owner/communication/comment"> 237 243 <?php 238 244 if(isset($_POST['ip'])) echo ' <input type="hidden" name="ip" value="'.$_POST['ip'].'" />'.CRLF; … … 312 318 } else { 313 319 echo '<a class="entryURL" href="'.$blogURL.'/'.$comment['entry'].'#comment'.$comment['id'].'" title="'._t('댓글이 작성된 포스트로 직접 이동합니다.').'">'; 314 } 315 echo '<span class="entry-title">'. htmlspecialchars($comment['title']) .'</span>'; 316 317 if ($comment['title'] != '' && $comment['parent'] != '') { 318 echo '<span class="divider"> | </span>'; 320 echo '<span class="entry-title">'. htmlspecialchars($comment['title']) .'</span>'; 321 if ($comment['title'] != '' && $comment['parent'] != '') { 322 echo '<span class="divider"> | </span>'; 323 } 319 324 } 320 325 … … 343 348 </td> 344 349 <td class="delete"> 345 <a class="delete-button button" href="<?php echo $blogURL;?>/owner/ entry/comment/delete/<?php echo $comment['id'];?>" onclick="deleteComment(<?php echo $comment['id'];?>); return false;" title="<?php echo _t('이 댓글을 삭제합니다.');?>"><span class="text"><?php echo _t('삭제');?></span></a>350 <a class="delete-button button" href="<?php echo $blogURL;?>/owner/communication/comment/delete/<?php echo $comment['id'];?>" onclick="deleteComment(<?php echo $comment['id'];?>); return false;" title="<?php echo _t('이 댓글을 삭제합니다.');?>"><span class="text"><?php echo _t('삭제');?></span></a> 346 351 </td> 347 352 </tr> … … 404 409 <hr class="hidden" /> 405 410 406 <form id="search-form" class="data-subbox" method="post" action="<?php echo $blogURL;?>/owner/ entry/comment">411 <form id="search-form" class="data-subbox" method="post" action="<?php echo $blogURL;?>/owner/communication/comment"> 407 412 <h2><?php echo _t('검색');?></h2> 408 413
