12005 Hwy 64
Eads, TN 38028 USA

Sponsors Report

[insert_php] $authUser = FALSE;

$yourId = wp_get_current_user()->user_login;
$allowed_users = array( “[email protected]”, “[email protected]”, “[email protected]”, “balajivalmiki”, “nkoka”, “[email protected]”);

if ( (is_user_logged_in() && current_user_can(‘administrator’) ) ||
(is_user_logged_in() && in_array($yourId, $allowed_users) )
)
$authUser = TRUE;

if($authUser == FALSE)
{
wp_redirect( site_url() ); exit;
}
[/insert_php]

Select sponsorship type(s)

[insert_php]

$_SESSION[‘sponsors_query’]=NULL;

global $wpdb;

$active = ” (Active)”;

$result = $wpdb->get_results(“select id, name, is_active from civicrm_financial_type order by is_active desc, name asc”);

foreach ( $result as $page )
{
if($page->is_active == “0”)
$active = ” (In-Active)“;
else
$active = ” (Active)“;

echo “id . “‘ /> ” . str_replace(‘$’, ‘$’, ($page->name)) . $active . “
“;

}
[/insert_php]

 
Select year(s)

[insert_php]

$yr= date(“Y”);

for ($x = 0; $x <= 10; $x++) { echo " ” .($yr – $x). “
“;
}

[/insert_php]

Continue