Exemple #1
0
        if ($i++ % 2 == 1) {
            echo "odd ";
        }
        if ($_GET['row'] == $i) {
            echo 'active';
        }
        ?>
' >
			<td><a href="<?php 
        echo get_url('person', 'person', null, array('pid' => $bio['related_person']));
        ?>
"><?php 
        echo "<strong>" . $bio['person_name'] . "</strong>";
        ?>
</a><?php 
        echo " is a/an <strong>" . get_mt_term(get_biography_reverse($bio['relationship_type'])) . "</strong> of this person";
        ?>
</td>
     		</tr>
<?php 
    }
    ?>

            </tbody>
        </table>
        <br />
        <?php 
}
?>
</div>
 public function reverse()
 {
     $person = $this->person;
     $related_person = $this->related_person;
     $type_of_relationship = $this->type_of_relationship;
     $this->person = $related_person;
     $this->related_person = $person;
     $this->type_of_relationship = get_biography_reverse($type_of_relationship);
 }
                            <td><input name="biographics[]" type='checkbox' value='<?php 
        echo $bio['biographic_details_record_number'];
        ?>
' class='delete'/></td>
                            <td><a href="<?php 
        echo get_url('person', 'biography_list', null, array('biography_id' => $bio['biographic_details_record_number'], 'type' => 'bd', 'reverse' => 1));
        ?>
"><?php 
        echo $bio['biographic_details_record_number'];
        ?>
</a></td>
                            <td><a href="<?php 
        echo get_url('person', 'biography_list', null, array('biography_id' => $bio['biographic_details_record_number'], 'type' => 'bd', 'reverse' => 1));
        ?>
"><?php 
        echo get_mt_term(get_biography_reverse($bio['relationship_type']));
        ?>
</a></td>
                            <td><a href="<?php 
        echo get_url('person', 'biography_list', null, array('biography_id' => $bio['biographic_details_record_number'], 'type' => 'rp', 'reverse' => 1));
        ?>
"><?php 
        echo $bio['person_name'];
        ?>
</a></td>
                            <td><?php 
        echo $bio['initial_date'];
        ?>
</td>
                            <td><?php 
        echo $bio['final_date'];