<?
$result = $orl->mq ("SELECT prt_id, prt_name, prt_id2
FROM ".$orl->pr()."parts
WHERE prt_id2='".$prt_id."'
ORDER by prt_sort, prt_id ASC");
while (list($oid,$title)=mysql_fetch_row($result)) {
if($oid==79) {
printf('<li><a href="http://2013.ru">%s</a></li>', $title);
}
else {
if($oid==84) {
printf('%s', $title);
}
else {
printf('<li><a href="/dir/%s">%s</a></li>', $oid, $title);
}
}
}
?>