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}"; } + + +
+
+ $_G[setting][bbname] + {lang post} + {lang trade} + {lang credit_rating} +
+
+ + +
+
+
+
+
+
+
+ +

trade {lang trade}

+ + + + + + +

+ + + {lang sale_of_goods}| + {lang credit_rating} + + +

+ + +
-

- {lang credit_rating} -

+

{lang credit_rating}

+
@@ -23,7 +74,7 @@

{lang payto_creditinfo}   -    +    {lang eccredit_buyerpercent}: $sellerpercent%;   {lang eccredit_sellerpercent}: $buyerpercent%;   {lang regdate}: $member[regdate] @@ -40,34 +91,34 @@ good {lang eccredit_good} - $caches[sellercredit][thisweek][good] - $caches[sellercredit][thismonth][good] - $caches[sellercredit][halfyear][good] - $caches[sellercredit][before][good] + $caches[sellercredit][thisweek][good] + $caches[sellercredit][thismonth][good] + $caches[sellercredit][halfyear][good] + $caches[sellercredit][before][good] $caches[sellercredit][all][good] soso {lang eccredit_soso} - $caches[sellercredit][thisweek][soso] - $caches[sellercredit][thismonth][soso] - $caches[sellercredit][halfyear][soso] - $caches[sellercredit][before][soso] + $caches[sellercredit][thisweek][soso] + $caches[sellercredit][thismonth][soso] + $caches[sellercredit][halfyear][soso] + $caches[sellercredit][before][soso] $caches[sellercredit][all][soso] bad {lang eccredit_bad} - $caches[sellercredit][thisweek][bad] - $caches[sellercredit][thismonth][bad] - $caches[sellercredit][halfyear][bad] - $caches[sellercredit][before][bad] + $caches[sellercredit][thisweek][bad] + $caches[sellercredit][thismonth][bad] + $caches[sellercredit][halfyear][bad] + $caches[sellercredit][before][bad] $caches[sellercredit][all][bad] {lang eccredit_total} - $caches[sellercredit][thisweek][total] - $caches[sellercredit][thismonth][total] - $caches[sellercredit][halfyear][total] - $caches[sellercredit][before][total] + $caches[sellercredit][thisweek][total] + $caches[sellercredit][thismonth][total] + $caches[sellercredit][halfyear][total] + $caches[sellercredit][before][total] $caches[sellercredit][all][total] @@ -84,33 +135,33 @@ good {lang eccredit_good}$caches[buyercredit][thisweek][good] - $caches[buyercredit][thismonth][good] - $caches[buyercredit][halfyear][good] - $caches[buyercredit][before][good] + $caches[buyercredit][thismonth][good] + $caches[buyercredit][halfyear][good] + $caches[buyercredit][before][good] $caches[buyercredit][all][good] soso {lang eccredit_soso} - $caches[buyercredit][thisweek][soso] - $caches[buyercredit][thismonth][soso] - $caches[buyercredit][halfyear][soso] - $caches[buyercredit][before][soso] + $caches[buyercredit][thisweek][soso] + $caches[buyercredit][thismonth][soso] + $caches[buyercredit][halfyear][soso] + $caches[buyercredit][before][soso] $caches[buyercredit][all][soso] bad {lang eccredit_bad} - $caches[buyercredit][thisweek][bad] - $caches[buyercredit][thismonth][bad] - $caches[buyercredit][halfyear][bad] - $caches[buyercredit][before][bad] + $caches[buyercredit][thisweek][bad] + $caches[buyercredit][thismonth][bad] + $caches[buyercredit][halfyear][bad] + $caches[buyercredit][before][bad] $caches[buyercredit][all][bad] {lang eccredit_total} - $caches[buyercredit][thisweek][total] - $caches[buyercredit][thismonth][total] - $caches[buyercredit][halfyear][total] - $caches[buyercredit][before][total] + $caches[buyercredit][thisweek][total] + $caches[buyercredit][thismonth][total] + $caches[buyercredit][halfyear][total] + $caches[buyercredit][before][total] $caches[buyercredit][all][total] @@ -121,10 +172,22 @@

-
-
- -
+ +
+ + +
+
+
+ +
+
+ +
+
+ +
+
\ No newline at end of file diff --git a/upload/template/default/home/space_profile_body.htm b/upload/template/default/home/space_profile_body.htm index 2d1f37436a91e858a84c9dc533f28ce0ba5f635b..3d2db46a79fd25470d11b33d53d8a988e7794285 100644 --- a/upload/template/default/home/space_profile_body.htm +++ b/upload/template/default/home/space_profile_body.htm @@ -168,10 +168,10 @@