<?php$opts=array();$r=query('SELECT * FROM `gentoo_profiles` WHERE `flags` NOT LIKE "%d%"');while($profile=$r->fetch(PDO::FETCH_ASSOC)){$profile=newsql_gentoo_profile($profile);$display=$profile->name?$profile->name:($profile->pkgdir?$profile->pkgdir:'/');$opts[$profile->id]=$display;}$this->select('profile','profile','Profile',$opts);?>