Пример #1
0
<?php

require_once '_header.php';
$s = supporter_array_db($_REQUEST['supporter_KEY']);
$g = get_group($_REQUEST['groups_KEY']);
?>
<h1>Call</h1>
<div class="row">
	<h3>Instructions</h3>
	<p><?php 
echo nl2br($g['Description']);
?>
</p>
	
</div>

<div class="row">
	<div class="span5">
		<h2>
			<?php 
echo $s['First_Name'];
?>
  <?php 
echo $s['Last_Name'];
?>
<br>
			<?php 
echo $s['Phone'];
?>
  <?php 
echo $s['Timezone'];
Пример #2
0
<?php

include_once '_header.php';
$r = supporter_array_db($_REQUEST['supporter_KEY'], 1);
$supporter_KEY = $_REQUEST['supporter_KEY'];
$redirect = $_SERVER['REQUEST_URI'];
function active_tab($tab, $r)
{
    if ($r['activist'] == '1' or $r[' past_staff'] == '1' or $r['intern'] == '1') {
        if ($tab == 'activist') {
            $out = 'active';
        }
    } else {
        if ($r['corporate'] == '1' or $r['celebrity'] == '1' or $r['ally'] == '1' or $r['foundation'] == '1' or $r['media'] == '1' or $r['vendor'] == '1' or $r['lawyer'] == '1') {
            if ($tab == 'contacts') {
                $out = 'active';
            }
        } else {
            if ($r['major_donor'] == '1') {
                if ($tab == 'donations') {
                    $out = 'active';
                }
            } else {
                if ($tab == 'summary') {
                    $out = 'active';
                }
            }
        }
    }
    return $out;
}
Пример #3
0
#required fields
#populate campign manager and campaign manger partial
#org lookup

### GET THE DATA WE NEED

#get all the campaign managers
#$campaign_mangers = $DIA->get('campaign_manager', $options);
$sql='select * from campaign_manager order by First_Name asc';
$CMD = $db->Execute($sql) or die($db->errorMsg());
$campaign_mangers = $CMD->GetArray();

$supporter_KEY = $_REQUEST['supporter_KEY'];

if ($supporter_KEY){
	$s = supporter_array_db($supporter_KEY, 1);
}

## SET DEFAULT DATA VALUES

if (!$supporter_KEY){
	$s['Tracking_Code']= 'Jaguar';
}

if (!$s['source_campaign'] && (!$supporter_KEY)){
	$s['source_campaign'] = $user->getCampaign();
}

if (!$s['campaign_manager_KEY'] && (!$supporter_KEY)){
	$s['campaign_manager_KEY'] =$user->getCampaignManagerKey();
}
Пример #4
0
require_once "_header.php";
$act = $_REQUEST['action'];
$people = $_REQUEST['person'];
$q = $_REQUEST['q'];
if ($_REQUEST['search']) {
    if ($_REQUEST['q']) {
        $people_results = search_person($_REQUEST['q'], $_REQUEST['order_by']);
    } else {
        if ($_REQUEST['groups_KEY']) {
            $options['groups_KEY'] = $_REQUEST['groups_KEY'];
            $people_results = search_person($_REQUEST['q'], $_REQUEST['order_by'], $options);
            #$people_results = search_list($_REQUEST['groups_KEY']);
        }
    }
    foreach ($people_results as $i) {
        $results[] = supporter_array_db($i['supporter_KEY']);
    }
}
?>

<script>

$(document).ready(function(){
//Hide the tooglebox when page load
	$("#results-filter-select").hide();
	
	$("#search-location").hide();
	$("#search-type").hide();
	$("#search-list").hide();