Changeset 6139

Show
Ignore:
Timestamp:
06/02/08 23:50:17 (22 months ago)
Author:
inureyes
Message:

#993

  • 1차 커밋.
  • FF3에서 테스트.
Location:
trunk
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/interface/owner/center/dashboard/index.php

    r6138 r6139  
    1414requireModel('blog.trash'); 
    1515requireModel('common.setting'); 
    16  
     16requireComponent('Textcube.Model.Statistics'); 
    1717 
    1818$blogMenu['topMenu'] = 'center'; 
     
    416416?> 
    417417                                    <div id="<?php echo $mapping['plugin'];?>" class="section"> 
    418                                         <h3 class="caption"> 
     418                                    <h3 class="caption<?php echo isset($_REQUEST['edit']) ? ' visible' : ' invisible';?>"> 
    419419                                            <span><?php echo _t('알림판');?> 
    420420<?php 
     
    429429                                        </h3> 
    430430<?php 
    431     if (!isset($_REQUEST['edit'])) { 
     431    if (isset($_REQUEST['edit'])) { 
     432?> 
     433                                    </div> 
     434<?php 
     435        return true; 
     436    } else { 
    432437        // Get default data 
    433438        $stats = getStatistics($blogid); 
     
    464469            'title'   =>$trackback['subject'], 
    465470            'date'    =>$trackback['written'], 
    466             'link    '=> $blogURL."/".$trackback['entry']."#trackback".$trackback['id'], 
     471            'link'    => $blogURL."/".$trackback['entry']."#trackback".$trackback['id'], 
    467472            'category'=>'trackback')); 
    468473        } 
    469         foreach($recents as $uniqid => $row){ 
     474/*      foreach($recents as $uniqid => $row){ 
    470475            foreach($row as $key=>$value){ 
    471476                $sort_array[$key][$uniqid] = $value; 
    472477            } 
    473478        } 
    474         array_multisort($sort_array['date'],SORT_DESC,$recents); 
     479        array_multisort($sort_array['date'],SORT_DESC,$recents);*/ 
    475480?> 
    476481                                        <div id="shortcut-collection"> 
     
    528533                                                    <tr> 
    529534                                                        <td class="type"><?php echo _t('방명록');?></td> 
    530                                                         <td class="sum"></td> 
     535                                                        <td class="sum"><?php echo number_format(getGuestbookCount($blogid));?></td> 
    531536                                                    </tr> 
    532537                                                    <tr> 
     
    553558                                                    <tr> 
    554559                                                        <td class="type"><?php echo _t('최근7일 평균');?></td> 
    555                                                         <td class="sum"></td> 
     560                                                        <td class="sum"><?php echo number_format(Statistics::getWeeklyStatistics());?></td> 
    556561                                                    </tr> 
    557562                                                    <tr> 
     
    571576                                                        <tr> 
    572577                                                            <th scope="col" class="date"><?=_t('날짜')?></th> 
     578                                                            <th scope="col" class="category"><?=_t('종류')?></th> 
    573579                                                            <th scope="col"><?=_t('내용')?></th> 
    574580                                                        </tr> 
     
    580586                                                        <tr class="<?php echo $item['category'];?>"> 
    581587                                                            <td class="date"><?php echo Timestamp::format('%m/%d',$item['date']);?></td> 
     588                                                            <td class="category"> 
     589                                                            <?php 
     590            switch($item['category']) { 
     591                case 'trackback' :  
     592                    echo '<a href="'.$blogURL.'/owner/communication/trackback?status=received">'._t('걸린글').'</a>';break; 
     593                case 'comment' :  
     594                    echo '<a href="'.$blogURL.'/owner/communication/comment?status=comment">'._t('댓글').'</a>';break; 
     595                case 'commentNotify' :  
     596                    echo '<a href="'.$blogURL.'/owner/communication/notify">'._t('알리미').'</a>';break; 
     597                case 'guestbook' :  
     598                    echo '<a href="'.$blogURL.'/owner/communication/comment?status=guestbook">'._t('방명록').'</a>';break; 
     599            } 
     600?> 
     601                                                            </td> 
    582602                                                            <td class="title"><a href="<?php echo $item['link'];?>"><?php echo htmlspecialchars(UTF8::lessenAsEm($item['title'],25));?></a></td> 
    583603                                                        </tr> 
     
    632652                                                    <tr> 
    633653                                                        <td class="date"><?php echo Timestamp::format2($item['written']);?></td> 
    634                                                         <td class="title"><a href="<?php echo $item['permalink'];?>" onclick="return openLinkInNewWindow(this);" ><?php echo htmlspecialchars(UTF8::lessenAsEm($item['title'],40));?></a></td> 
     654                                                        <td class="title"><a href="<?php echo $item['permalink'];?>" onclick="return openLinkInNewWindow(this);" ><?php echo htmlspecialchars(UTF8::lessenAsEm($item['title'],35));?></a></td> 
    635655                                                    </tr> 
    636656<?php 
  • trunk/lib/model/blog.comment.php

    r6136 r6139  
    969969} 
    970970 
     971function getGuestbookCount($blogid) { 
     972    global $database; 
     973    return POD::queryCell("SELECT count(id) FROM {$database['prefix']}Comments WHERE blogid = $blogid AND entry = 0"); 
     974} 
     975 
    971976function getCommentCountPart($commentCount, &$skin) { 
    972977    $noneCommentMessage = $skin->noneCommentMessage; 
  • trunk/style/admin/whitedream/center.css

    r6138 r6139  
    4646} 
    4747 
    48 #defaultDashboardWidget h3 
     48#defaultDashboardWidget h3.invisible 
    4949{ 
    5050    display                          : none; 
     
    117117 
    118118/* total information */ 
    119  
    120119#total-information .posts-line, 
    121120#total-information .visitors-line 
     
    204203#textcube-notice table 
    205204{ 
    206     margin                           : 0 0 25px 0; 
     205    margin                           : 0; 
    207206    width                            : 280px !important; 
    208     font-size                        : 0.925em; 
    209207} 
    210208 
     
    212210{ 
    213211    border-bottom                    : 1px solid #EEEEEE; 
    214     height                           : 28px; 
     212    height                           : 22px !important; 
    215213    padding-left                     : 10px; 
    216214    text-align                       : left; 
     
    227225 
    228226/* panel */ 
    229  
    230227#myBlogInfo h4 
    231228{ 
     
    236233    line-height                      : 1em !important; 
    237234    margin-top                       : 10px !important; 
    238     padding-top                      : 0 !important; 
     235    padding-top                      : 10px !important; 
    239236    height                           : 20px; 
    240237} 
     
    250247    line-height                      : 1.2em; 
    251248} 
    252  
     249#myBlogInfo table 
     250{ 
     251    margin-bottom                    : 0 !important; 
     252} 
    253253#myBlogInfo table caption 
    254254{ 
    255255    display                          : none; 
    256 } 
    257  
    258 #infoPanel table 
    259 { 
    260     width                            : 270px !important; 
    261256} 
    262257 
     
    280275    border-right                     : 1px solid #DDD !important; 
    281276} 
    282  
     277#infoPanel table td.category 
     278{ 
     279    width                            : 50px; 
     280} 
    283281#infoPanel table td.title 
    284282{ 
    285     width                            : 200px; 
     283    width                            : 190px; 
    286284    overflow                         : hidden; 
    287     padding-left                     : 50px !important; 
    288285} 
    289286