hasPriv("admin")) util_show_error_page_and_exit("Insufficient privileges."); apidb_header("Admin Maintainers"); echo '
',"\n"; // get available maintainers $sQuery = "SELECT * FROM appMaintainers, user_list where appMaintainers.userId = user_list.userid"; $sQuery.= " AND state='accepted' ORDER BY realname;"; $hResult = query_parameters($sQuery); if(!$hResult || !query_num_rows($hResult)) { // no apps echo html_frame_start("","90%"); echo '

There are no operating system maintainers.

',"\n"; echo html_frame_end(" "); } else { echo '
E-mail all maintainers
'; // show applist echo html_frame_start("","90%","",0); echo "\n\n"; echo "\n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo "\n\n"; $c = 1; $oldUserId = 0; while($oRow = query_fetch_object($hResult)) { $oUser = new User($oRow->userId); $oApp = new application($oRow->appId); if ($c % 2 == 1) { $bgcolor = 'color0'; } else { $bgcolor = 'color1'; } /* if this is a new user we should print a header that has the aggregate of the applications */ /* the user super maintains and versions they maintain */ if($oRow->userId != $oldUserId) { $style = "border-top:thin solid;border-bottom:thin solid"; echo "\n"; echo " \n"; echo " \n"; $count = Maintainer::getMaintainerCountForUser($oUser, true); if($count == 0) echo " \n"; else if($count <= 1) echo " \n"; else echo " \n"; $count = Maintainer::getMaintainerCountForUser($oUser, false); if($count == 0) echo " \n"; else if($count <= 1) echo " \n"; else echo " \n"; echo " \n"; echo "\n\n"; $oldUserId = $oRow->userId; } echo "\n"; echo " \n"; echo " \n"; echo " \n"; if($oRow->superMaintainer) { echo " \n"; } else { $oVersion = new version($oRow->versionId); echo " \n"; } echo " \n"; echo "\n\n"; $c++; } echo "
Submission DateMaintainerOperating SystemVersionAction
Maintainer summary".$oUser->objectMakeLink()." ".$count." app".$count." apps ".$count." version".$count." versions 
".print_date(mysqldatetime_to_unixtimestamp($oRow->submitTime))."  ".$oUser->objectMakeLink()."".$oApp->objectMakeLink()."*".$oVersion->objectMakeLink()."[delete]
\n\n"; echo html_frame_end(" "); } echo "
"; apidb_footer(); ?>