1
McDonald
WF-Links 1.03: alphabetically ordering permission lists
  • 2006/1/22 20:53

  • McDonald

  • Home away from home

  • Posts: 1072

  • Since: 2005/8/15


The categories and links in the permission setting lists are ordered by category id-number.

$cat_form = new XoopsGroupPermForm''$xoopsModule -> getVar'mid' ), 'WFLinkCatPerm'_AM_WFL_PERM_CSELECTPERMISSIONS.");
$result $xoopsDB -> query"SELECT cid, pid, title FROM " $xoopsDB -> prefixWFLINKS_CAT ) );
if ( 
$xoopsDB -> getRowsNum$result ) )
{
    while ( 
$cat_row $xoopsDB -> fetcharray$result ) )
    {
        
$cat_form -> addItem$cat_row['cid'], $cat_row['title'], $cat_row['pid'] );
    } 
    echo 
$cat_form -> render();

else
{
    echo 
"
_AM_WFL_PERM_CNOCATEGORY "
"
;

unset ( 
$cat_form );

etcetcetc.


How can I get these lists being displayed alphabetically?

Login

Who's Online

398 user(s) are online (45 user(s) are browsing Support Forums)


Members: 0


Guests: 398


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Oct 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits