欧美不卡视频中文字幕

Join VIP [check in and send gold coins]
Dream weaving worry free, heart to do source code! 7 years of brand, trustworthy! Dream weaving without worry, each fine product, rather than excessive! Purchase no less than 3000 yuan per month, free source sharing, open early, enjoy early! Temporary promotion for lifelong members, only 498 yuan! The new member opens, enters the member center directly -- the purchase member -- opens directly.

How does dedecms use idlist in the Arclist tag to sort articles

Abstract: Usually with version network see webmaster friends do station, sorting is always a headache problem, dedecms default article sorting function has been very powerful, but the only lack is, according to the specified ID order, with version network editor after thinking about it, finally solved this problem, dedecms default Arclist tag has an idlist call to the specified ID article
Usually, when you see the webmaster's friends doing the website, sorting is always a headache. Dedecms's default article sorting function is very powerful, but the only thing missing is to sort according to the specified ID order. After thinking about this problem, the editor of dedecms has an idlist to call the article with the specified ID, So with the version of the network small editor thought, on the use of this idlist for sorting, the following method first, then the principle. Open / include / taglib / Arclist first lib. All changes to PHP are done here. ? 1. Return lib found_ Arclistdone code is preceded by $ORDERLIST = $CTAG - > getatt ("ORDERLIST '); And in lib_ Add the parameter $ORDERLIST to the last side of the arclistdone function call. The code is as follows: ? $orderidlist = $ctag->GetAtt(‘orderidlist’); return lib_ arclistDone ( $refObj, $ctag, $typeid, $ctag->GetAtt(‘row’), $ctag->GetAtt(‘col’), $titlelen, $infolen, $ctag->GetAtt(‘imgwidth’), $ctag->GetAtt(‘imgheight’), $listtype, $orderby, $ctag->GetAtt(‘keyword’), $innertext, $envs[‘aid’], $ctag->GetAtt(‘idlist’), $channelid, $ctag->GetAtt(‘limit’), $flag,$ctag->GetAtt(‘orderway’), $ctag->GetAtt(‘subday’), $ctag->GetAtt(‘noflag’), $tagid,$pagesize,$isweight,$orderidlist ); ? 2. Find function lib_ Arclistdone code, in the function lib_ At the end of arclistdone, add the parameter $ORDERLIST ='n ', and the code is as follows: ? function lib_ arclistDone(&$refObj, &$ctag, $typeid=0, $row=10, $col=1, $titlelen=30, $infolen=160, $imgwidth=120, $imgheight=90, $listtype=’all’, $orderby=’default’, $keyword=”, $innertext=”, $arcid=0, $idlist=”, $channelid=0, $limit=”, $att=”, $order=’desc’, $subday=0, $noflag=”,$tagid=”, $pagesize=0, $isweight=’N’,$orderidlist=’N’) ? 3. Find $innerText = trim ($innerText), Add $ORDERLIST = attdef ($ORDERLIST, 'n'), below it; The code is as follows: ? $orderby = strtolower($orderby); $keyword = trim($keyword); $innertext = trim($innertext); $orderidlist = AttDef($orderidlist,’N’); $tablewidth = $ctag->GetAtt(‘tablewidth’); $writer = $ctag->GetAtt(‘writer’); if($tablewidth == “”) $tablewidth = 100; ? 4. Search for "/ / specified ID or use ID in cache" to change the following conditional statement to: ? //The ID is specified or the ID in the cache is used if($idlist != ”) { $query = “SELECT arc.*,tp.typedir,tp.typename,tp.corank,tp.isdefault,tp.defaultname,tp.namerule,tp.namerule2,tp.ispart, tp. moresite,tp. siteurl,tp. sitepath $addfieldsSql FROM `$maintable` arc left join `dede_ arctype` tp on arc. typeid=tp. id $addfieldsSqlJoin WHERE arc. id in($idlist) “; if($orderidlist == ‘N’) { $query .= $ ordersql; } else { $query .= ” ORDER BY FIELD(arc.id,$idlist) “; } } In this way, an ORDERLIST attribute is added to Arclist, which has a parameter Y / N, which is n by default. When y is set, you can sort by idlist. In fact, this principle is also very simple, which is to use the order by field function of MySQL database. So we can sort with idlist

Link to this article: http://b5y7hj.cn//dedecmsjiaocheng/biaoqiandiaoyong/181698.html

Copyright notice: Our resources are from the Internet or member release, if you infringe on your rights and interests, please contact us, we will delete within 24 hours! thank you!

 QR code of public number

Wechat public account

//Auto push

欧美不卡视频中文字幕_我和闺蜜共做一个男人_正撅着她肥白的大屁股

http://45.b5y7hj.cn http://08.b5y7hj.cn http://57.b5y7hj.cn http://49.b5y7hj.cn http://57.b5y7hj.cn http://47.b5y7hj.cn http://69.b5y7hj.cn http://09.b5y7hj.cn http://95.b5y7hj.cn http://69.b5y7hj.cn http://74.b5y7hj.cn