Show
Ignore:
Timestamp:
03/25/08 16:41:10 (8 months ago)
Author:
inureyes
Message:

#897

  • 중간 커밋
  • 적절하게 안해주면 update할 때들 문제생길라...
Location:
trunk/interface/owner/communication/comment
Files:
1 modified
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/interface/owner/communication/comment/index.php

    r5610 r5632  
    4848 
    4949$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'] : ''; 
     55if(!empty($tabsClass['postfix'])) $tabsClass['postfix'] = ltrim($tabsClass['postfix'],'/');  
     56 
    5057if (isset($_POST['status'])) { 
    5158    if($_POST['status']=='comment') { 
     
    6067    $visibilityText = _t('댓글'); 
    6168} 
    62 if($tabsClass['comment'] == true) { 
     69if(isset($tabsClass['comment']) && $tabsClass['comment'] == true) { 
    6370    list($comments, $paging) = getCommentsWithPagingForOwner($blogid, $categoryId, $name, $ip, $search, $suri['page'], $perPage); 
    6471} else { 
     
    7380                                    if (!confirm("<?php echo _t('선택된 댓글을 삭제합니다. 계속 하시겠습니까?');?>")) 
    7481                                        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); 
    7683                                    request.onSuccess = function () { 
    7784                                        PM.removeRequest(this); 
     
    99106                                    } 
    100107                                     
    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/"); 
    102109                                    request.onSuccess = function() { 
    103110                                        document.getElementById('list-form').submit(); 
     
    200207                            </h2> 
    201208                            <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'];?>&amp;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'];?>&amp;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'];?>&amp;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'];?>&amp;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'];?>&amp;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'];?>&amp;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'];?>&amp;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'];?>&amp;status=sent"><?php echo _t('건 글');?></a></li> 
    208214                            </ul> 
    209215<?php 
    210216    if(isset($tabsClass['comment'])) { 
    211217?> 
    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"> 
    213219                                <div class="section"> 
    214220                                    <input type="hidden" name="page" value="<?php echo $suri['page'];?>" /> 
     
    234240    } 
    235241?> 
    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"> 
    237243<?php 
    238244    if(isset($_POST['ip'])) echo '                              <input type="hidden" name="ip" value="'.$_POST['ip'].'" />'.CRLF; 
     
    312318    } else { 
    313319        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        } 
    319324    } 
    320325     
     
    343348                                            </td> 
    344349                                            <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> 
    346351                                            </td> 
    347352                                        </tr> 
     
    404409                            <hr class="hidden" /> 
    405410                             
    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"> 
    407412                                <h2><?php echo _t('검색');?></h2> 
    408413