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

348 user(s) are online (315 user(s) are browsing Support Forums)


Members: 1


Guests: 347


heyula,

more...

Donat-O-Meter

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

Latest GitHub Commits