Hey!
I need a bit of assistance with my radiPanel staff emails page.
As you all know, it shows up all of the contacts on your panel in their usergroups, but i would like my usergroups to be in heirachy order, meaning i would love my staff emails list to be in a paritcular ID order.
Admin - admin.addUsergroup?id=5
Radio Manager - admin.addUsergroup?id=4
Senior Presenter - admin.addUsergroup?id=11
Radio Presenter - admin.addUsergroup?id=2
Regular User - admin.addUsergroup?id=1
And here is the code of the radiPanel emails page which i would like ordered by ID number, and not just generically.
Code:<?php if( !preg_match( "/index.php/i", $_SERVER['PHP_SELF'] ) ) { die(); } ?> <div class="box"> <div class="square title"> <strong>Staff Contact Details</strong> </div> <?php $query = $db->query( "SELECT * FROM users ORDER BY displaygroup DESC" ); $j = "a"; while( $array = $db->assoc( $query ) ) { $query2 = $db->query( "SELECT * FROM usergroups WHERE id = '{$array['displaygroup']}'" ); $array2 = $db->assoc( $query2 ); echo "<div class=\"row {$j}\">"; echo "<span style=\"float: right;\">"; echo $array['email'] ? $array['email'] : 'N/A'; echo "</span>"; echo "<span style=\"font-weight: bold; color: #{$array2['colour']};\">"; echo $array['username']; echo "</span> "; echo "(" . ( $array['habbo'] ? $array['habbo'] : 'N/A' ) . ")"; echo "</div>"; $j++; if( $j == "c" ) { $j = "a"; } } ?> </div>





Reply With Quote


