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. */ ?> 'committee_main.php', 'Administration' => 'admin/index.php', 'Tours' => 'admin/tours.php') ); if($_GET['action'] == 'renumber') { $q = mysql_query("SELECT id FROM tours WHERE conferences_id='{$conference['id']}'"); $x = 1; while($i = mysql_fetch_object($q)) { mysql_query("UPDATE tours SET num='$x' WHERE id='{$i->id}'"); $x++; } echo happy(i18n('Tours successfully renumbered')); } ?> setDebug(true); $editor->filterList("(tours.conferences_id={$conference['id']} OR tours.conferences_id IS NULL)"); // FIXME -- Not sure if this IS NULL condition is still relevant. Converted the query from years to conferences_id's $editor->execute(); if($_GET['TableEditorAction'] == '') { echo i18n('You can automatically erase all the tour numbers and re-number them (starting from 1) by clicking on the link below. This will NOT affect any students who have already specified their tour preferences. It will not change which tours students have been assigned to (if that has been completed too). It MAY cause the tour numbers to change, so if you have already printed reports with the tour numbers on them, they will need to be re--printed.'); echo '

'; echo "Renumber ALL Tours"; } send_footer(); ?>