Ejemplo n.º 1
0
        <link rel="stylesheet" type="text/css" href="dh_style.css">
        <head>
        <body>
            <div class="infowindow">

                <h3><?php 
    echo getFieldValue($records, $recID, DT_NAME);
    ?>
</h3>
                <br />
                <p><b><?php 
    echo getTermById_2(getFieldValue($records, $recID, DT_EVENT_TYPE));
    ?>
</b></p>
                <p><?php 
    echo composeDates($records, $recID, '<b>Date: </b>') . '&nbsp;' . composeTime($records, $recID, '<b>Time: </b>');
    ?>
</p>
                <p><b>Description: </b><?php 
    echo getFieldValue($records, $recID, DT_SHORT_SUMMARY);
    ?>
</p>
                <br />
                <br />
                <p>
                    <b>Addresses Involved: </b>
                    <ul>
                        <?php 
    // find related address
    $records_address = recordSearch_2('[{"t":"12"},{"relatedfrom:14":"' . $recID . '"} ]');
    if ($records_address['count'] > 0) {
Ejemplo n.º 2
0
 // find related events
 $records_events = recordSearch_2('[{"t":"14"},{"related_to:12":"' . $recID . '"} ]');
 if (@$records_events['reccount'] > 0) {
     foreach ($records_events['order'] as $eventID) {
         //get relationship record for related address (or search events with relation at once?)
         $term_id = recordGetRealtionshipType($system, $eventID, $recID);
         $event_address = '';
         if ($term_id == TERM_MAIN_CRIME_LOCATION) {
             $event_address = 'Crime location';
         } else {
             $event_address = getTermById_2($term_id) . ' this address';
         }
         //date and time
         $date_out = composeDates($records_events, $eventID, '<b>Date: </b>');
         //print 'AAA'.print_r($records_events['records'][$eventID]['d'], true);
         $time_out = composeTime($records_events, $eventID, '<b>Time: </b>');
         print '<li><a href="dh_popup.php?db=' . HEURIST_DBNAME . '&full=1&recID=' . $eventID . '">' . getFieldValue($records_events, $eventID, DT_NAME) . '</a> (' . getTermById(getFieldValue($records_events, $eventID, DT_EVENT_TYPE)) . ')';
         print ' <ul><li>' . $event_address . '</li>';
         //type of location
         print '<li>' . $date_out . '&nbsp;' . $time_out . '</li>';
         //involved persons
         $records_persons = recordSearch_2('[{"t":"10"},{"relatedfrom:14":"' . $eventID . '"} ]');
         foreach ($records_persons['order'] as $personID) {
             //find relationship
             $person_role = getTermById_2(recordGetRealtionshipType($system, $eventID, $personID));
             print '<li>Involved ' . getFieldValue($records_persons, $personID, DT_GIVEN_NAMES) . ' ' . getFieldValue($records_persons, $personID, DT_NAME) . ' (' . $person_role . '), ' . getTermById_2(getFieldValue($records_persons, $personID, DT_PERSON_RACE), 'race') . ', ' . getTermById_2(getFieldValue($records_persons, $personID, DT_GENDER), 'gender') . ', from ' . getTermById_2(getFieldValue($records_persons, $personID, DT_PERSON_BIRTHPLACE), 'origin') . '</li>';
         }
         //involved reports
         $records_reports = recordSearch_2('[{"t":"15"},{"relatedfrom:14":"' . $eventID . '"} ]');
         foreach ($records_reports['order'] as $reportID) {
             $charge_initial = getFieldValue($records_reports, $reportID, DT_CHARGE_INITIAL);
Ejemplo n.º 3
0
            if (@$_REQUEST['full'] == 1) {
                require 'dh_popup_event.php';
            }
            //get relationship record for related address
            $relation2 = recordGetRealtionship_2($system, $recID, $addrID, 'address for event');
            $event_address = '';
            $term_id = getFieldValue($relation2, 0, DT_RELATION_TYPE);
            if ($term_id == TERM_MAIN_CRIME_LOCATION) {
                $event_address = 'Location of the event at';
            } else {
                $event_address = 'This event ' . getTermById($term_id) . ' this address: ';
            }
            $comment = getFieldValue($relation2, 0, DT_EXTENDED_DESCRIPTION);
            //date and time
            $date_out = composeDates($records, $recID, '<b>Date: </b>');
            $time_out = composeTime($records, $recID, '<b>Time: </b>');
            ?>

<div class="infowindow infowindow-map">
    <h3><?php 
            echo getFieldValue($records, $recID, DT_NAME);
            ?>
</h3>
        <p><b><?php 
            echo getTermById(getFieldValue($records, $recID, DT_EVENT_TYPE));
            ?>
 </b></p>

        <p><?php 
            echo $event_address;
            ?>