Copyright (C) 2005 James Grant 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. */ ?> <?=i18n("Division Selector")?> "; if($_GET['division']) { //FIXME: this only works when the division form uses ID's in order or their index AND the ID's are sequential starting from 1 ?> ".i18n($r->division)."\n"; echo "".i18n("Restart division selector").""; echo "
"; echo "
"; echo "".i18n("Close window")."\n"; } else { if(!$_GET['id']) $id=1; else $id=$_GET['id']; $q=mysql_query("SELECT * FROM projectdivisionsselector WHERE id='$id'"); $r=mysql_fetch_object($q); echo i18n($r->question); echo "
"; echo "
"; echo ""; echo "
"; echo "
\n"; if($r->no_type=="question") echo "no\">\n"; if($r->no_type=="division") echo "no\">\n"; echo ""; echo "
\n"; echo "
"; echo " "; echo "
\n"; if($r->yes_type=="question") echo "yes\">\n"; if($r->yes_type=="division") echo "yes\">\n"; echo ""; echo "
\n"; echo "
"; } echo ""; ?>