This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; see the file COPYING. If not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ ?> "; $cl=""; while($r=mysql_fetch_object($q)) { if($_SESSION['nav']['secondary'] == $r->id) { $cl="class=\"secondarynav-selected\""; } else $cl=""; echo "
  • id}\" $cl>"; echo "id,$r->pid,$r->level)\">".i18n($r->task).""; if($_SESSION['debug']) { //echo "pid, $r->id)\">(*)"; } echo "
  • \n"; } echo "\n"; break; case 2: //populate the tertiary menu $_SESSION['nav']['secondary']=$id; unset($_SESSION['nav']['tertiary']); unset($_SESSION['nav']['tertiarylink']); $q=mysql_query("SELECT * FROM rolestasks WHERE pid='$id' AND level=2 ORDER By ord,task"); while($r=mysql_fetch_object($q)) { echo "

    id}\">link\">".i18n("$r->task")."

    \n"; echo ""; } echo "\n"; break; } } ?>