Link fundraising dashboard campaign table to the campaign manager

This commit is contained in:
james 2009-10-07 22:00:56 +00:00
parent 77c3498fc1
commit 7e559461f8
2 changed files with 9 additions and 3 deletions

View File

@ -105,7 +105,7 @@ $q=mysql_query("SELECT * FROM fundraising_goals WHERE fiscalyear='{$config['FISC
$percent=0;
$col=colour_to_percent($percent);
echo "<tr>\n";
echo "<tr style=\"cursor:pointer;\" onclick=\"window.location.href='fundraising_campaigns.php?manage_campaign=$r->id'\">\n";
echo " <td>$r->name</td>\n";
echo " <td>$r->type</td>\n";
echo " <td>".format_date($r->startdate)."</td>\n";

View File

@ -272,7 +272,14 @@ send_header("Campaign Management",
<script type="text/javascript">
$(document).ready(function() {
managecampaigns();
<?
if($_GET['manage_campaign']) {
echo "managecampaign(".intval($_GET['manage_campaign']).");\n";
}
else {
echo "managecampaigns();\n";
}
?>
});
function modifycampaigns() {
@ -396,7 +403,6 @@ function display_campaign_form($r=null) {
<a href="#" onclick="managecampaigns()">Campaign Management</a>
</td></tr></table>
<hr />
<div id="campaigndiv" style="width: 780px; display: none;">
</div>