Changeset 6254

Show
Ignore:
Timestamp:
06/11/08 18:27:30 (7 months ago)
Author:
inureyes
Message:

#1009

  • UI 개선
  • 블로그 명으로 검색하던 부분을 URL 기준으로 수정하였습니다. (스팸표시와 일치하도록)
  • 받은 트랙백의 내용중 앞부분 약간을 함께 출력해 줍니다.
Location:
trunk
Files:
3 modified

Legend:

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

    r6070 r6254  
    99if (isset($_GET['name'])) $_POST['name'] = $_GET['name']; 
    1010if (isset($_GET['ip'])) $_POST['ip'] = $_GET['ip']; 
     11if (isset($_GET['site'])) $_POST['site'] = $_GET['site']; 
     12if (isset($_GET['url'])) $_POST['url'] = $_GET['url']; 
    1113if (isset($_GET['withSearch'])) $_POST['withSearch'] = $_GET['withSearch']; 
    1214if (isset($_GET['search'])) $_POST['search'] = $_GET['search']; 
     
    2022        'category' => array('int', 'default' => 0), 
    2123        'site' => array('string', 'default' => ''), 
     24        'url' => array('url', 'default' => ''), 
    2225        'ip' => array('ip', 'default' => ''), 
    2326        'withSearch' => array(array('on'), 'mandatory' => false), 
     
    3336$categoryId = empty($_POST['category']) ? 0 : $_POST['category']; 
    3437$site = empty($_POST['site']) ? '' : $_POST['site']; 
     38$url = empty($_POST['url']) ? '' : $_POST['url']; 
    3539$ip = empty($_POST['ip']) ? '' : $_POST['ip']; 
    3640$search = empty($_POST['withSearch']) || empty($_POST['search']) ? '' : trim($_POST['search']); 
     
    4852$tabsClass['trash'] = true; 
    4953 
    50 list($trackbacks, $paging) = getTrashTrackbackWithPagingForOwner($blogid, $categoryId, $site, $ip, $search, $suri['page'], $perPage); 
     54list($trackbacks, $paging) = getTrashTrackbackWithPagingForOwner($blogid, $categoryId, $site, $url, $ip, $search, $suri['page'], $perPage); 
    5155require ROOT . '/lib/piece/owner/header.php'; 
    5256 
     
    358362    } 
    359363?> 
    360                                                 <a href="<?php echo $blogURL;?>/owner/communication/trash/trackback?site=<?php echo urlencode(escapeJSInAttribute($trackback['site']));?>" title="<?php echo _t('이 사이트에서 건 글 목록을 보여줍니다.');?>"><?php echo htmlspecialchars($trackback['site']);?></a> 
     364                                                <a href="<?php echo $blogURL;?>/owner/communication/trash/trackback?url=<?php echo urlencode(escapeJSInAttribute($trackback['url']));?>" title="<?php echo _t('이 사이트에서 건 글 목록을 보여줍니다.');?>"><?php echo htmlspecialchars($trackback['site']);?></a> 
    361365                                            </td> 
    362366                                            <td class="category"> 
  • trunk/lib/model/blog.trash.php

    r6162 r6254  
    66//require 'common.correctTT.php'; 
    77 
    8 function getTrashTrackbackWithPagingForOwner($blogid, $category, $site, $ip, $search, $page, $count) { 
     8function getTrashTrackbackWithPagingForOwner($blogid, $category, $site, $url, $ip, $search, $page, $count) { 
    99    global $database; 
    1010     
     
    2121        $sql .= ' AND t.site = \'' . POD::escapeString($site) . '\''; 
    2222        $postfix .= '&site=' . rawurlencode($site); 
     23    } 
     24    if (!empty($url)) { 
     25        $sql .= ' AND t.url = \'' . POD::escapeString($url) . '\''; 
     26        $postfix .= '&url=' . rawurlencode($url); 
    2327    } 
    2428    if (!empty($ip)) { 
  • trunk/style/admin/whitedream/communication.css

    r6093 r6254  
    5555{ 
    5656    text-align                       : left; 
     57} 
     58 
     59table.data-inbox tbody tr td.title span.excerpt 
     60{ 
     61    display                          : block; 
     62    color                            : #DDD; 
    5763} 
    5864