forked from science-ation/science-ation
Link fundraising dashboard campaign table to the campaign manager
This commit is contained in:
parent
77c3498fc1
commit
7e559461f8
@ -105,7 +105,7 @@ $q=mysql_query("SELECT * FROM fundraising_goals WHERE fiscalyear='{$config['FISC
|
|||||||
$percent=0;
|
$percent=0;
|
||||||
$col=colour_to_percent($percent);
|
$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->name</td>\n";
|
||||||
echo " <td>$r->type</td>\n";
|
echo " <td>$r->type</td>\n";
|
||||||
echo " <td>".format_date($r->startdate)."</td>\n";
|
echo " <td>".format_date($r->startdate)."</td>\n";
|
||||||
|
@ -272,7 +272,14 @@ send_header("Campaign Management",
|
|||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
managecampaigns();
|
<?
|
||||||
|
if($_GET['manage_campaign']) {
|
||||||
|
echo "managecampaign(".intval($_GET['manage_campaign']).");\n";
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
echo "managecampaigns();\n";
|
||||||
|
}
|
||||||
|
?>
|
||||||
});
|
});
|
||||||
|
|
||||||
function modifycampaigns() {
|
function modifycampaigns() {
|
||||||
@ -396,7 +403,6 @@ function display_campaign_form($r=null) {
|
|||||||
<a href="#" onclick="managecampaigns()">Campaign Management</a>
|
<a href="#" onclick="managecampaigns()">Campaign Management</a>
|
||||||
</td></tr></table>
|
</td></tr></table>
|
||||||
<hr />
|
<hr />
|
||||||
|
|
||||||
<div id="campaigndiv" style="width: 780px; display: none;">
|
<div id="campaigndiv" style="width: 780px; display: none;">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user