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. */ ?> prepare("SELECT fundraising_donations.*, sponsors.organization FROM fundraising_donations,sponsors WHERE fundraising_donations.id='$id' AND fundraising_donations.sponsors_id=sponsors.id"); $q->execute(); $sponsorship=$q->fetch(PDO::FETCH_OBJ); $formaction="sponsorshipedit"; } else { $formaction="sponsorshipadd"; $fundraising_type=$_GET['fundraising_type']; } ?> "; echo ""; echo ""; echo ""; if($formaction=="sponsorshipadd") { echo ""; echo "\n"; echo ""; echo ""; echo "\n"; echo ""; echo "\n"; echo ""; echo "\n"; echo "\n"; echo ""; echo "\n"; echo ""; echo "\n"; echo "
".i18n("Donor Type").""; echo " ".i18n("Organization"); echo " "; echo " "; echo " "; echo " ".i18n("Individual"); echo "
".i18n("Donor").""; $q=$pdo->prepare("SELECT * FROM sponsors ORDER BY organization"); $q->execute(); echo $pdo->errorInfo(); echo ""; echo " ".i18n("Add")."\n"; echo ""; $q=$pdo->prepare("SELECT users.*, MAX(year) AS year FROM users WHERE (firstname!='' AND lastname!='') GROUP BY uid HAVING deleted='no' ORDER BY lastname,firstname"); $q->execute(); echo $pdo->errorInfo(); echo ""; echo "
".i18n("Donor Type").""; if($sponsorship->sponsors_id) echo i18n("Organization"); else echo i18n("Individual"); echo "
".i18n("Donor").""; echo $sponsorship->organization; } echo "
".i18n("Donation Allocation").""; $q=$pdo->prepare("SELECT * FROM fundraising WHERE year='{$config['FAIRYEAR']}' ORDER BY name"); $q->execute(); echo $pdo->errorInfo(); echo "\n"; echo "
".i18n("Amount")."value\">
".i18n("Status").""; echo "\n"; echo "
".i18n("Probability").""; echo "\n"; echo "
\n"; echo "\n"; ?>