forked from science-ation/science-ation
Start renaming sponsor to donor
This commit is contained in:
parent
21882281c0
commit
97887153b6
@ -155,13 +155,13 @@ echo "</div>";
|
|||||||
|
|
||||||
echo "<br />\n";
|
echo "<br />\n";
|
||||||
echo "<br />\n";
|
echo "<br />\n";
|
||||||
echo "<a href=\"sponsorship_levels.php\">Manage Sponsorship Levels</a>\n";
|
echo "<a href=\"sponsorship_levels.php\">Manage Donation Levels</a>\n";
|
||||||
echo "<br />\n";
|
echo "<br />\n";
|
||||||
echo "<a href=\"sponsors.php\">Manage Sponsors</a>\n";
|
echo "<a href=\"sponsors.php\">Manage Donors</a>\n";
|
||||||
echo "<br />\n";
|
echo "<br />\n";
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<div style="display: none" title="<?=i18n("Sponsorship Editor")?>" id="sponsorship_editor">
|
<div style="display: none" title="<?=i18n("Donation Editor")?>" id="sponsorship_editor">
|
||||||
<div id="sponsorship_editor_content">
|
<div id="sponsorship_editor_content">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -59,14 +59,14 @@ function typechange() {
|
|||||||
echo "<table cellspacing=0 cellpadding=0 class=\"tableedit\">";
|
echo "<table cellspacing=0 cellpadding=0 class=\"tableedit\">";
|
||||||
|
|
||||||
if($formaction=="sponsorshipadd") {
|
if($formaction=="sponsorshipadd") {
|
||||||
echo "<tr><th>".i18n("Sponsor Type")."</th>";
|
echo "<tr><th>".i18n("Donor Type")."</th>";
|
||||||
echo "<td>";
|
echo "<td>";
|
||||||
echo "<input onchange=\"typechange()\" type=\"radio\" name=\"sponsortype\" value=\"organization\"> ".i18n("Organization");
|
echo "<input onchange=\"typechange()\" type=\"radio\" name=\"sponsortype\" value=\"organization\"> ".i18n("Organization");
|
||||||
echo " "; echo " "; echo " ";
|
echo " "; echo " "; echo " ";
|
||||||
echo "<input onchange=\"typechange()\" type=\"radio\" name=\"sponsortype\" value=\"individual\"> ".i18n("Individual");
|
echo "<input onchange=\"typechange()\" type=\"radio\" name=\"sponsortype\" value=\"individual\"> ".i18n("Individual");
|
||||||
echo "</td></tr>\n";
|
echo "</td></tr>\n";
|
||||||
|
|
||||||
echo "<tr><th>".i18n("Sponsor")."</th>";
|
echo "<tr><th>".i18n("Donor")."</th>";
|
||||||
echo "<td>";
|
echo "<td>";
|
||||||
|
|
||||||
$q=mysql_query("SELECT * FROM sponsors ORDER BY organization");
|
$q=mysql_query("SELECT * FROM sponsors ORDER BY organization");
|
||||||
@ -98,19 +98,19 @@ function typechange() {
|
|||||||
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
echo "<tr><th>".i18n("Sponsor Type")."</th>";
|
echo "<tr><th>".i18n("Donor Type")."</th>";
|
||||||
echo "<td>";
|
echo "<td>";
|
||||||
if($sponsorship->sponsors_id) echo i18n("Organization");
|
if($sponsorship->sponsors_id) echo i18n("Organization");
|
||||||
else echo i18n("Individual");
|
else echo i18n("Individual");
|
||||||
echo "</td></tr>\n";
|
echo "</td></tr>\n";
|
||||||
|
|
||||||
echo "<tr><th>".i18n("Sponsor")."</th>";
|
echo "<tr><th>".i18n("Donor")."</th>";
|
||||||
echo "<td>";
|
echo "<td>";
|
||||||
echo $sponsorship->organization;
|
echo $sponsorship->organization;
|
||||||
}
|
}
|
||||||
echo "</td></tr>\n";
|
echo "</td></tr>\n";
|
||||||
|
|
||||||
echo "<tr><th>".i18n("Type")."</th>";
|
echo "<tr><th>".i18n("Donation Allocation")."</th>";
|
||||||
echo "<td>";
|
echo "<td>";
|
||||||
$q=mysql_query("SELECT * FROM fundraising WHERE year='{$config['FAIRYEAR']}' ORDER BY name");
|
$q=mysql_query("SELECT * FROM fundraising WHERE year='{$config['FAIRYEAR']}' ORDER BY name");
|
||||||
echo mysql_error();
|
echo mysql_error();
|
||||||
|
@ -20,6 +20,7 @@ if($_POST['action']=="sponsorshipedit" || $_POST['action']=="sponsorshipadd") {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if($_POST['action']=="sponsorshipedit") {
|
if($_POST['action']=="sponsorshipedit") {
|
||||||
|
|
||||||
if($sponsorships_id && $fundraising_type && $value) {
|
if($sponsorships_id && $fundraising_type && $value) {
|
||||||
$q=mysql_query("SELECT * FROM sponsorships WHERE id='$sponsorships_id'");
|
$q=mysql_query("SELECT * FROM sponsorships WHERE id='$sponsorships_id'");
|
||||||
$current=mysql_fetch_object($q);
|
$current=mysql_fetch_object($q);
|
||||||
@ -58,7 +59,7 @@ if($_POST['action']=="sponsorshipedit") {
|
|||||||
echo error_("No changes were made");
|
echo error_("No changes were made");
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
echo error_("Required fields were missing, please try again");
|
echo error_("Required fields were missing, please try again".print_r($_POST,true));
|
||||||
}
|
}
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
@ -145,7 +145,7 @@
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
send_header("Sponsors",
|
send_header("Donor Management",
|
||||||
array('Committee Main' => 'committee_main.php',
|
array('Committee Main' => 'committee_main.php',
|
||||||
'Administration' => 'admin/index.php',
|
'Administration' => 'admin/index.php',
|
||||||
'Fundraising Main' => 'admin/fundraising.php')
|
'Fundraising Main' => 'admin/fundraising.php')
|
||||||
@ -304,11 +304,11 @@ function activityinfo_save() {
|
|||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
<div id="popup_editor" title="Sponsor Editor" style="display: none">
|
<div id="popup_editor" title="Donor Editor" style="display: none">
|
||||||
<div id="editor_tabs">
|
<div id="editor_tabs">
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#editor_tab_organization"><span><?=i18n('Organization Details')?></span></a></li>
|
<li><a href="#editor_tab_organization"><span><?=i18n('Donor Details')?></span></a></li>
|
||||||
<li><a href="#editor_tab_sponsorship"><span><?=i18n('Sponsorship Details')?></span></a></li>
|
<li><a href="#editor_tab_sponsorship"><span><?=i18n('Donations')?></span></a></li>
|
||||||
<li><a href="#editor_tab_contacts"><span><?=i18n('Contacts')?></span></a></li>
|
<li><a href="#editor_tab_contacts"><span><?=i18n('Contacts')?></span></a></li>
|
||||||
<li><a href="#editor_tab_activity"><span><?=i18n('Activity Log')?></span></a></li>
|
<li><a href="#editor_tab_activity"><span><?=i18n('Activity Log')?></span></a></li>
|
||||||
</ul>
|
</ul>
|
||||||
@ -316,8 +316,8 @@ function activityinfo_save() {
|
|||||||
<div id="editor_tab_organization">
|
<div id="editor_tab_organization">
|
||||||
<form enctype="multipart/form-data" id="organizationinfo">
|
<form enctype="multipart/form-data" id="organizationinfo">
|
||||||
<input type="hidden" name="sponsor_id" id="sponsor_id" value="0">
|
<input type="hidden" name="sponsor_id" id="sponsor_id" value="0">
|
||||||
<table class="tableedit">
|
<table class="">
|
||||||
<tr><th><?=i18n("Organization Name")?></th><td><input class="translatable" type="text" id="organizationinfo_organization" name="organization" size="60" maxlength="128" /></td></tr>
|
<tr><th><?=i18n("Name")?></th><td><input class="translatable" type="text" id="organizationinfo_organization" name="organization" size="60" maxlength="128" /></td></tr>
|
||||||
<tr><th><?=i18n("Address")?></th><td><input id="organizationinfo_address" type="text" name="address" size="60" maxlength="64" /></td></tr>
|
<tr><th><?=i18n("Address")?></th><td><input id="organizationinfo_address" type="text" name="address" size="60" maxlength="64" /></td></tr>
|
||||||
<tr><th><?=i18n("City")?></th><td><input id="organizationinfo_city" type="text" name="city" size="32" maxlength="32" /></td></tr>
|
<tr><th><?=i18n("City")?></th><td><input id="organizationinfo_city" type="text" name="city" size="32" maxlength="32" /></td></tr>
|
||||||
<tr><th><?=i18n($config['provincestate'])?></th><td>
|
<tr><th><?=i18n($config['provincestate'])?></th><td>
|
||||||
@ -369,7 +369,7 @@ function activityinfo_save() {
|
|||||||
// echo happy("Sponsors cannot be deleted");
|
// echo happy("Sponsors cannot be deleted");
|
||||||
}
|
}
|
||||||
|
|
||||||
echo "<a href=\"#\" onclick=\"popup_editor(-1)\">Add New Sponsor</a>\n";
|
echo "<a href=\"#\" onclick=\"popup_editor(-1)\">Add New Donor</a>\n";
|
||||||
echo "<br />";
|
echo "<br />";
|
||||||
echo "<table class=\"tableview\">";
|
echo "<table class=\"tableview\">";
|
||||||
echo "<tr>";
|
echo "<tr>";
|
||||||
|
Loading…
Reference in New Issue
Block a user