Ejemplo n.º 1
0
        ?>
<a class="btn btn-primary" href="<?php 
        echo get_url('events', 'add_involvement', null, array('eid' => $event_id, 'perpetrator' => $perpetrator->person_record_number));
        ?>
"><i class="icon-chevron-right icon-white"></i> <?php 
        echo _t('NEXT');
        ?>
</a>
<?php 
    }
    ?>
            </div></div>
<?php 
    $person_form = person_form('view');
    popuate_formArray($person_form, $perpetrator);
    shn_form_get_html_labels($person_form, false);
}
?>
<div class="control-group">
            <div > 
                <a class="btn" href="<?php 
echo get_url('events', 'vp_list', null, array('eid' => $event_id));
?>
"><i class="icon-remove-circle"></i> <?php 
echo _t('Add Perpetrator later');
?>
</a>

<a class="btn" href="<?php 
echo get_url('events', 'add_perpetrator', 'new_perpetrator', array('eid' => $event_id));
?>
Ejemplo n.º 2
0
		<br />
		<br />
		<?php 
    echo "<h3>" . _t('VIEW_ADDRESS') . "</h3>";
    echo "<br />";
    ?>
		<a class="btn" href="<?php 
    echo get_url('person', 'edit_address', null, array('address_id' => $_GET['address_id']));
    ?>
"><i class="icon-edit"></i> <?php 
    echo _t('EDIT_THIS_ADDRESS');
    ?>
</a>
		<br />
	    <br />
	    <form class="form-horizontal"  action='<?php 
    echo get_url('person', 'edit_address');
    ?>
' method='post' enctype='multipart/form-data'>
		<?php 
    shn_form_get_html_labels($address_form, false);
    $fields['save'] = null;
    ?>
		</form>
		</div>
	<?php 
}
?>

</div>
Ejemplo n.º 3
0
    ?>
</a>
            <?php 
}
?>
        <a class="btn btn-grey" href="<?php 
echo get_url('docu', 'delete_document', null, array('doc_id' => $_GET['doc_id']));
?>
"><i class="icon-trash"></i>  <?php 
echo _t('DELETE_DOCUMENT');
?>
</a>
        <?php 
if ($supporting_docs->uri == null) {
    shnMessageQueue::addInformation('No attachment found to this Document.');
}
?>
    

        <br /><br />
        <?php 
$document_form = document_form('view');
$document_form['file_size'] = array('type' => 'text', 'label' => 'File Size', 'map' => array('entity' => 'supporting_docs_meta', 'field' => 'file_size'));
popuate_formArray($document_form, $supporting_docs_meta);
shn_form_get_html_labels($document_form, false);
?>

    </div>
</div>
<?php 
//set_redirect_header('docu','view_document');
Ejemplo n.º 4
0
            ?>
</a><?php 
            echo '<br />';
            echo '<br />';
            $source_form = person_form('view');
            popuate_formArray($source_form, $source);
            shn_form_get_html_labels($source_form, false);
            break;
        case 'information':
            echo "<h3>" . _t('VIEW_INFORMATION_RECORD') . "</h3>";
            ?>
	
			<br />
			<a class="btn " href="<?php 
            echo get_url('events', 'edit_information', null, array('eid' => $event_id, 'information_id' => $_GET['information_id']));
            ?>
"><i class="icon-edit"></i> <?php 
            echo _t('EDIT_THIS_INFORMATION');
            ?>
</a>
			<br /><br />
<?php 
            $information_form = generate_formarray('information', 'view');
            popuate_formArray($information_form, $information);
            shn_form_get_html_labels($information_form, false);
            break;
    }
}
?>
</div>
Ejemplo n.º 5
0
include_once 'event_title.php';
?>
<div class="panel">
    <br />
    <?php 
include_once 'vp_list_table.php';
?>
    <br />
    <h2><?php 
echo _t('ACT_DETAILS');
?>
</h2>
        <?php 
$act_form = generate_formarray('act', 'view');
popuate_formArray($act_form, $act);
shn_form_get_html_labels($act_form, false);
$act_form['update'] = array('type' => 'submit', 'label' => _t('SAVE'));
?>
  
        <br /> 
        <div class="form-container"> 
            <form class="form-horizontal"  id="additional" name="additional" action='<?php 
echo get_url('events', 'edit_ad', null, array('act_id' => $act->act_record_number));
?>
' method='post' enctype='multipart/form-data'>
                <?php 
echo "<h3>" . _t('EDIT_ADDITIONAL_DETAILS') . "</h3>&nbsp;";
if (!isset($ad_type)) {
    ?>
                    <div>
                        <?php 
Ejemplo n.º 6
0
            ?>
</a>
<?php 
            echo '<br />';
            echo '<br />';
            $person_form = person_form('view');
            popuate_formArray($person_form, $intervening_party);
            shn_form_get_html_labels($person_form, false);
            break;
        case 'intv':
            echo "<h3>" . _t('VIEW_INTERVENTION_RECORD') . "</h3>";
            echo '<br />';
            ?>
<a class="btn " href="<?php 
            echo get_url('events', 'edit_intv', null, array('intervention_id' => $intervention->intervention_record_number));
            ?>
"><i class="icon-edit "></i> <?php 
            echo _t('EDIT_THIS_INTERVENTION');
            ?>
</a><?php 
            echo '<br />';
            echo '<br />';
            $intervention_form = intervention_form('view');
            popuate_formArray($intervention_form, $intervention);
            shn_form_get_html_labels($intervention_form, false);
            break;
    }
}
?>
</div>
Ejemplo n.º 7
0
                    <?php 
    } else {
        ?>
                    <a class="btn" href="<?php 
        echo get_url('person', 'person', null, array('pid' => $biographic_details->related_person));
        ?>
"><i class="icon-zoom-in"></i><?php 
        echo _t('MORE_ABOUT_THIS_PERSON');
        ?>
</a>

                    <?php 
    }
    ?>

                <br />
                <?php 
    echo "<br />";
    $fields['save'] = null;
    shn_form_get_html_labels($related_person_form, false);
    //	$person_form = person_form('view');
    //	popuate_formArray($person_form , $person );
    //    shn_form_get_html_labels($person_form , false );
}
?>
        </form>
    </div>
</div>

Ejemplo n.º 8
0
?>
</a>
       <?php 
if (acl_is_entity_allowed_boolean('event', 'delete')) {
    ?>
    <a class="btn btn-grey" href="<?php 
    echo get_url('events', 'delete_event');
    ?>
">
        <i class="icon-trash"></i> <?php 
    echo _t('DELETE_THIS_EVENT');
    ?>
</a>
    <?php 
}
?>
  
    	<br />
    <br />
    <?php 
shn_form_get_html_labels($event_form, false);
echo '<br/>';
include_once 'contextual_data.php';
//_shn_get_incident_records();
//echo '<br/>';
//_shn_get_victim_records();
//echo '<br/>';
_shn_get_coe_records($event_id);
?>
</div>
Ejemplo n.º 9
0
                        <span class="badge  badge-success">1</span><?php 
echo _t('ADD_CHAIN_OF_EVENTS');
?>
<span class="chevron"></span>
                   
                 <li class="active"><span class="badge  badge-info">2</span><?php 
echo _t('FINISH');
?>
<span class="chevron"></span></li>
            </ul>
           
        </div></div>

    <br />
<?php 
shn_form_get_html_labels($chain_of_events_form, false);
?>
<br />
    <div class='alert alert-info'> <button type="button" class="close" data-dismiss="alert">×</button> 
        <strong><?php 
echo _t('FINISHED__YOU_CAN_DO_THE_FOLLOWING');
?>
</strong><br /><br />
        <a href="<?php 
get_url('events', 'edit_coe', null, array('eid' => $event_id, 'coeid' => $coeid));
?>
" class="btn"><i class="icon-edit"></i> <?php 
echo _t('CONTINUE_EDITING_THIS_CHAIN_OF_EVENTS_RECORD');
?>
</a><br />        
    </div>
Ejemplo n.º 10
0
            </tr>	

            <?php 
    }
    ?>
        </tbody>
    </table>
<?php 
    $coe_form = generate_formarray('chain_of_events', 'view');
    $coe = new ChainOfEvents();
    foreach ($related_events as $key => $record) {
        echo '<br /><h3>' . _t('CHANE_OF_EVENTS_') . ++$key . ' : ' . get_mt_term($record['type_of_chain_of_events']) . '</h3>';
        echo '<h3>' . _t('RELATED_EVENT') . $key . ' : ' . $record['event_title'] . '</h3><br />';
        //print victim details
        $coe->LoadFromRecordNumber($record['coe_id']);
        $coe->LoadRelationships();
        popuate_formArray($coe_form, $coe);
        shn_form_get_html_labels($coe_form, false);
        echo "<br class='page_break' />";
    }
}
?>
</div>
<?php 
if ($conf['print_event_sidebar']) {
    echo "<div class='span3'>" . $conf['print_event_sidebar'] . "</div>";
}
?>
    

</div>
Ejemplo n.º 11
0
 public function person_information($person_id, $person_form)
 {
     $person = new Person();
     $person->LoadFromRecordNumber($person_id);
     $person->LoadRelationships();
     $person->LoadAddresses();
     popuate_formArray($person_form, $person);
     $this->person_form = $person_form;
     $this->fields = shn_form_get_html_labels($person_form);
     return $person;
 }
Ejemplo n.º 12
0
        $bio->LoadFromRecordNumber($record['biographic_details_record_number']);
        $bio->LoadRelationships();
        popuate_formArray($bio_form, $bio);
        shn_form_get_html_labels($bio_form, false);
        echo '<br />';
    }
    foreach ($biographics_reverse as $key => $record) {
        echo '<br /><h3>' . ++$key . '. ' . _t('PERSON_NAME') . ' : ' . $record['person_name'] . '</h3><br />';
        //print victim details
        $person->LoadFromRecordNumber($record['person']);
        $person->LoadRelationships();
        $bio->LoadFromRecordNumber($record['biographic_details_record_number']);
        $bio->reverse();
        $bio->LoadRelationships();
        popuate_formArray($bio_form, $bio);
        shn_form_get_html_labels($bio_form, false);
        echo '<br />';
    }
}
?>
</div>
<?php 
if ($conf['print_person_sidebar']) {
    echo "<div class='span3'>" . $conf['print_person_sidebar'] . "</div>";
}
?>
    

</div>

Ejemplo n.º 13
0
                echo "<h3>" . _t('ADDITIONAL_DETAILS') . "</h3>&nbsp;";
                $ad_form = generate_formarray($ad_type, 'view');
                popuate_formArray($ad_form, $ad);
                shn_form_get_html_labels($ad_form, false);
            }
            break;
        case 'inv':
            echo "<h3>" . _t('VIEW_INVOLVEMENT_RECORD') . "</h3>&nbsp;";
            echo "<br />";
            ?>
            <a class="btn" href="<?php 
            echo get_url('events', 'edit_involvement', null, array('eid' => $_GET['eid'], 'row' => $_GET['row'], 'inv_id' => $_GET['inv_id']));
            ?>
"><i class="icon-edit"></i> <?php 
            echo _t('EDIT_THIS_INVOLVEMENT');
            ?>
</a><?php 
            echo "<br />";
            echo "<br />";
            $involvement_form = involvement_form('view');
            popuate_formArray($involvement_form, $inv);
            shn_form_get_html_labels($involvement_form, false);
            break;
    }
    ?>
        </div>
<?php 
}
?>
</div>