/**
  * Returns an instance of this class. 
  */
 public static function get_instance()
 {
     if (null == self::$instance) {
         self::$instance = new CBDashboard();
     }
     return self::$instance;
 }
\t<contact id='{$id}'>
\t\t<tag>{$tag}</tag>
\t</contact>
STRING
);
            $p = new SimpleXMLElement($ret);
            $ret = RFPluginOPConnector::UpdateContactField(<<<STRING
\t<contact id='{$id}'>
\t\t<Group_Tag name="{$sectionName}">
\t\t\t<field name="{$startDateFieldName}">{$startDateFieldValue}</field>
\t\t\t<field name="{$endDateFieldName}">{$endDateFieldValue}</field>
\t\t</Group_Tag>
\t</contact>
STRING
);
            $p = new SimpleXMLElement($ret);
            $existing = CBDashboard::get_data($key);
            if (!is_array($existing)) {
                $existing = array();
            }
            $existing['updates'][] = array('date' => $date, 'status' => $status, 'type' => $type, 'start' => $startDateFieldValue, 'end' => $endDateFieldValue, 'aid' => $id, 'actor' => $user_email, 'position' => $position);
            $existing['totals'][$tag][] = $date;
            $ret = CBDashboard::save_data($key, $existing);
            break;
        case 'hdti':
            RFPluginHDTIConnector::Request($_REQUEST);
            echo json_encode(array('data' => array(), 'status' => array('code' => 0, 'message' => 'Success')));
            die;
            break;
    }
}
}
?>
						</tbody>
					</table>
				</div>
			</div>
		</div>
		
		<button class="close-button" data-close aria-label="Close reveal" type="button">
			<span aria-hidden="true">&times;</span>
		</button>
	</div>
	
	<?php 
foreach ($persons as $person) {
    $history = CBDashboard::get_data($user_email . $person['type'] . ($person['type'] == 'family' ? $primary['id'] . $person['pos'] : $primary));
    $last = $history['updates'][count($history['updates']) - 1];
    ?>
	<div id="modalAccount<?php 
    echo $person['id'] . $person['pos'];
    ?>
" class="reveal" data-reveal>
		<h2>Manage Account.</h2>
		<p class="lead"><?php 
    echo $person['name'];
    ?>
</p>
		<p>Lift or block accounts.</p>
		
		<div class="column row">
			<hr>