Пример #1
0
<?php

$addresses = array();
foreach ($entity->Address as $address) {
    ?>
  <?php 
    $addresses[] = address_link($address);
}
?>

<?php 
$data = array('Phone' => $entity->Phone, 'Email' => $entity->Email, 'Address' => $addresses);
?>

<?php 
include_partial('global/datatable', array('data' => $data, 'label_width' => isset($label_width) ? $label_width : '80px'));
Пример #2
0
    }
}
?>

<?php 
$addressLinks = array();
if ($entity['primary_ext'] == 'Org') {
    ?>
  <?php 
    $addresses = Doctrine::getTable('Address')->findByEntityId($entity['id']);
    ?>
  <?php 
    foreach ($addresses as $address) {
        ?>
    <?php 
        $addressLinks[] = address_link($address);
        ?>
  <?php 
    }
}
?>

<?php 
$categoryLinks = array();
$categories = OsEntity::getCategoriesForDisplay($entity['id']);
foreach ($categories as $category) {
    ?>
  <?php 
    $categoryLinks[] = category_link($category);
}
?>
Пример #3
0


<h2>Edit Contact Info</h2>


<?php 
include_partial('global/section', array('title' => 'Addresses', 'action' => array('credential' => 'contributor', 'text' => 'add', 'url' => $entity->getInternalUrl('addAddress'))));
?>

<div class="padded">
<?php 
foreach ($entity->Address as $address) {
    ?>
  <?php 
    echo address_link($address);
    ?>
  <?php 
    if ($address->category_id) {
        ?>
  	<?php 
        echo " (" . $address->Category . ") ";
        ?>
  <?php 
    }
    ?>
  <?php 
    if ($sf_user->hasCredential('editor')) {
        ?>
    <?php 
        echo link_to('edit', 'entity/editAddress?id=' . $address->id);