Ejemplo n.º 1
0
    </table>
    <?php 
    $src_form = generate_formarray('information', 'view');
    $src = new Information();
    foreach ($sources as $key => $record) {
        echo '<br /><h3>' . _t('SOURCE') . ++$key . ' : ' . $record['person_name'] . '</h3><br />';
        //print victim details
        $person->LoadFromRecordNumber($record['related_person']);
        $person->LoadRelationships();
        popuate_formArray($person_form, $person);
        shn_form_get_html_labels($person_form, false);
        echo "<br class='page_break' />";
        //print act details
        echo '<h4>' . _t('INFORMATION') . ' : ' . $record['connection'] . '</h4><br />';
        $src->LoadFromRecordNumber($record['information_record_number']);
        $src->LoadRelationships();
        popuate_formArray($src_form, $src);
        shn_form_get_html_labels($src_form, false);
        echo "<br class='page_break' />";
    }
}
//print out interventions
if (isset($intv_list)) {
    echo '<h2>' . _t('INTERVENTIONS') . '</h2>';
    ?>
    <table class="table table-bordered table-hover">
        <thead>
            <tr>
                <th></th>
                <th><?php 
    echo _t('DATE_OF_INTERVENTION');
Ejemplo n.º 2
0
 public function act_edit_information()
 {
     $this->sources = Browse::getSourceListforEvent($this->event->event_record_number);
     if (isset($_POST['update'])) {
         $this->information = $this->save_information();
         unset($_POST);
         $_GET['type'] = 'information';
         set_redirect_header('events', 'src_list', null, array('information_id' => $this->information->information_record_number, 'type' => 'information'));
     } else {
         $_GET['information_id'] = isset($_GET['information_id']) ? $_GET['information_id'] : $_POST['information_record_number'];
         $information = new Information();
         $information->LoadFromRecordNumber($_GET['information_id']);
         $information->LoadRelationships();
         $information_form = information_form('edit');
         popuate_formArray($information_form, $information);
         $this->information_form = $information_form;
     }
 }