| @@ -109,7 +109,7 @@ | |||||
| <td width="260">变量名称</td> | <td width="260">变量名称</td> | ||||
| </tr> | </tr> | ||||
| <?php | <?php | ||||
| $dsql->SetQuery("SELECT * FROM `#@__sysconfig` where groupid='{$dls[0]}' order by aid asc"); | |||||
| $dsql->SetQuery("SELECT * FROM `#@__sysconfig` WHERE groupid='{$dls[0]}' ORDER BY aid ASC"); | |||||
| $dsql->Execute(); | $dsql->Execute(); | ||||
| $i = 1; | $i = 1; | ||||
| while($row = $dsql->GetArray()) { | while($row = $dsql->GetArray()) { | ||||
| @@ -239,8 +239,8 @@ function lib_arclistDone (&$refObj, &$ctag, $typeid=0, $row=10, $col=1, $titlele | |||||
| else if ($orderby == 'lastpost') $ordersql = " ORDER BY arc.lastpost $orderWay"; | else if ($orderby == 'lastpost') $ordersql = " ORDER BY arc.lastpost $orderWay"; | ||||
| else if ($orderby == 'scores') $ordersql = " ORDER BY arc.scores $orderWay"; | else if ($orderby == 'scores') $ordersql = " ORDER BY arc.scores $orderWay"; | ||||
| //添加按好评数和差评数调用 | //添加按好评数和差评数调用 | ||||
| else if ($orderby == 'goodpost') $ordersql = " order by arc.goodpost $orderWay"; | |||||
| else if ($orderby == 'badpost') $ordersql = " order by arc.badpost $orderWay"; | |||||
| else if ($orderby == 'goodpost') $ordersql = " ORDER BY arc.goodpost $orderWay"; | |||||
| else if ($orderby == 'badpost') $ordersql = " ORDER BY arc.badpost $orderWay"; | |||||
| else if ($orderby == 'rand') $ordersql = " ORDER BY rand()"; | else if ($orderby == 'rand') $ordersql = " ORDER BY rand()"; | ||||
| else $ordersql = " ORDER BY arc.sortrank $orderWay"; | else $ordersql = " ORDER BY arc.sortrank $orderWay"; | ||||
| //limit条件 | //limit条件 | ||||
| @@ -58,7 +58,7 @@ function lib_likearticle(&$ctag, &$refObj) | |||||
| } | } | ||||
| $arcid = (!empty($refObj->Fields['id']) ? $refObj->Fields['aid'] : 0); | $arcid = (!empty($refObj->Fields['id']) ? $refObj->Fields['aid'] : 0); | ||||
| if (empty($arcid) || $byabs == 0) { | if (empty($arcid) || $byabs == 0) { | ||||
| $orderquery = " ORDER BY arc.id desc "; | |||||
| $orderquery = " ORDER BY arc.id DESC "; | |||||
| } else { | } else { | ||||
| $orderquery = " ORDER BY ABS(arc.id - ".$arcid.") "; | $orderquery = " ORDER BY ABS(arc.id - ".$arcid.") "; | ||||
| } | } | ||||
| @@ -16,7 +16,7 @@ require_once(DEDEINC.'/datalistcp.class.php'); | |||||
| setcookie('ENV_GOBACK_URL', GetCurUrl(), time() + 3600, '/'); | setcookie('ENV_GOBACK_URL', GetCurUrl(), time() + 3600, '/'); | ||||
| if (!isset($dopost)) $dopost = ''; | if (!isset($dopost)) $dopost = ''; | ||||
| if ($dopost == '') { | if ($dopost == '') { | ||||
| $query = "SELECT * FROM `#@__member_operation` WHERE mid='".$cfg_ml->M_ID."' And product='archive' order by aid desc"; | |||||
| $query = "SELECT * FROM `#@__member_operation` WHERE mid='".$cfg_ml->M_ID."' And product='archive' ORDER BY aid DESC"; | |||||
| $dlist = new DataListCP(); | $dlist = new DataListCP(); | ||||
| $dlist->pagesize = 10; | $dlist->pagesize = 10; | ||||
| $dlist->SetTemplate(DEDEMEMBER.'/templets/mypay.htm'); | $dlist->SetTemplate(DEDEMEMBER.'/templets/mypay.htm'); | ||||