diff --git a/upload/source/function/function_ec_credit.php b/upload/source/function/function_ec_credit.php index 8944004a0acc629ff34b7179c67ad67651bc33c3..3607b22cb045b9670230b858d4823a1638f54019 100644 --- a/upload/source/function/function_ec_credit.php +++ b/upload/source/function/function_ec_credit.php @@ -37,7 +37,7 @@ function updatecreditcache($uid, $type, $return = 0) { } function countcredit($uid, $type, $days = 0) { - $type = $type == 'buyercredit' ? 1 : 0; + $type = $type == 'sellercredit' ? 1 : 0; $good = $soso = $bad = 0; foreach(C::t('forum_tradecomment')->fetch_all_by_rateeid($uid, $type, $days ? TIMESTAMP - $days * 86400 : 0) as $credit) { if($credit['score'] == 1) { @@ -66,7 +66,7 @@ function updateusercredit($uid, $type, $level) { $expiration = getexpiration(); } - foreach(array('all', 'before', 'halfyear', 'thismonth', 'thisweek') as $key) { + foreach(array('all', 'halfyear', 'thismonth', 'thisweek') as $key) { $cache[$key][$level]++; $cache[$key]['total']++; } diff --git a/upload/template/default/common/common.css b/upload/template/default/common/common.css index f0272868d157bef2619effa85595a5ab6e01f7d0..a625fe52cd2bb2e521964d4ac6bca8bf4a08eef0 100644 --- a/upload/template/default/common/common.css +++ b/upload/template/default/common/common.css @@ -795,7 +795,7 @@ CSS 写作注意事项: #uhd .tb a { border-width: 1px 0; border-top-color: {SPECIALBG}; border-bottom-color: {WRAPBORDERCOLOR}; } #uhd .tb .a a { border: 1px solid #CCC; border-bottom-color: #FFF; } .ie6 #uhd .tb .a { position: relative; } - #uhd .mn { float: right; margin-right: 15px; margin-bottom: -30px; line-height: 28px; } + #uhd .mn { float: right; margin-right: 15px; margin-bottom: -30px; width: auto; line-height: 28px; } #uhd .mn a { padding: 2px 0 2px 20px; background: no-repeat 0 50%; color: {MIDTEXT}; } #uhd .mn a:hover { color: {HIGHLIGHTLINK}; } #uhd .mn .addflw a { background-image: url({IMGDIR}/flw_ico.png); } diff --git a/upload/template/default/home/space_eccredit.htm b/upload/template/default/home/space_eccredit.htm index 0345c650c53b30ba9c7187b38488c8f9c78910bc..1cea8c2fd82addcd3e270f820b552b2dcf691ab8 100644 --- a/upload/template/default/home/space_eccredit.htm +++ b/upload/template/default/home/space_eccredit.htm @@ -2,15 +2,66 @@ $filter = array( 'common' => '{lang have_posted}', 'save' => '{lang draft}', 'close' => '{lang closed}', 'aduit' => '{lang pending}', 'recyclebin' => '{lang recyclebin}'); $_G[home_tpl_spacemenus][] = "{lang credit_rating}"; } + + +
+ + + {lang sale_of_goods}| + {lang credit_rating} + + +
+ + +
-
+
{lang eccredit_buyerpercent}: $sellerpercent%;
{lang eccredit_sellerpercent}: $buyerpercent%;
{lang regdate}: $member[regdate]
@@ -40,34 +91,34 @@