<?php require_once '_header.php'; $supporters = get_contact_list_array($_REQUEST['groups_KEY'], $user->getCampaignManagerKey()); ?> <h1>Call List</h1> <table class="table table-bordered"><thead> <tr> <th>Name</th> <th>Location</th> <th>Time Zone</th> <th>Assigned To</th> <th>Calls Made</th> <th>Last Call Status</th> <th>Call Weight</th> </tr> </thead><tbody> <?php foreach ($supporters as $s) { ?> <tr> <td><a href="call.php?supporter_KEY=<?php echo $s['supporter_KEY']; ?> &groups_KEY=<?php echo $s['groups_KEY']; ?> "><?php echo $s['First_Name']; ?>
$result[$key] = $array[$key]; } return $result; } $groups_KEY = $_REQUEST['groups_KEY']; if (!$_REQUEST['groups_KEY']) { echo '<form method="get"> <label>Select Group</label> <select name="groups_KEY">'; include 'partials/options/_lists.php'; echo ' </select> <input type="submit"> </form> '; } else { $supporters = get_contact_list_array($_REQUEST['groups_KEY']); $g = get_group($_REQUEST['groups_KEY']); if ($_REQUEST['order']) { $supporters = sortByOneKey($supporters, $_REQUEST['order'], $asc = true); } ?> <script> function add_supporters_to_form(){ var $form = $(this); var html = ''; $(".person-checkbox:checked").each(function(){ var supporter_groups_key = $(this).data('supporter_groups_key'); html += '<input type="hidden" name="supporter_groups[]" value="'+supporter_groups_key+'" />'; });