<div class="backend_top_menu"> <?php echo link_to('Admin Home', 'home/start'); ?> <?php echo link_to('LS Home', frontend_base()); ?> </div>
<br /> <?php } ?> <?php } elseif (get_class($e) == 'Entity') { ?> <?php echo link_to($e->name, frontend_base() . '/entity/view?id= ' . $e->id); ?> <?php } elseif (get_class($e) == 'Relationship') { ?> <?php echo link_to($e->name, frontend_base() . '/' . $e->getInternalUrl()); ?> <?php } else { ?> <?php echo $e; ?> <?php } ?> </td> <?php } ?> </tr>
<tr> <td><?php echo $object->Profile->getName(); ?> </td> <td> <?php if ($object->Profile->public_name) { ?> <?php echo link_to($object->Profile->public_name, frontend_base() . '/user/profile?id=' . $object->id); ?> <?php } ?> </td> <td> <?php echo $object->username; ?> </td> <td><?php echo $object->created_at; ?> </td> <td><?php echo $object->is_active ? 'Yes' : 'No'; ?> </td>
<td style="padding-bottom:.6em"> <span class="form_help" ><em>Select an org to which this group of people are related</em></span> </td> <tr> <td class="form_label">Org</td> <td class="form_field" id="org_field"> <?php if ($org) { ?> <div id="org_link"> <?php $org_link = '<strong>' . link_to(str_replace("'", "\\'", $org->name), frontend_base() . '/entity/view?id= ' . $org->id) . '</strong>'; ?> <span class="text_big"><?php echo $org_link; ?> </span> <a href="javascript:void(0);" onclick="changeEntity('org');">change</a> <?php echo input_hidden_tag('org_id', $org->id); ?> </div> <div id="org_search" style="display: none;"> <?php } else { ?>
function object_link(Doctrine_Record $object, $app = null, $text = null) { if (method_exists($object, 'getInternalUrl')) { $url = $object->getInternalUrl(); if ($app == 'frontend') { $url = frontend_base() . '/' . $url; } if ($app == 'backend') { $url = backend_base() . '/' . $url; } if (!$text) { $text = $object->getName(); } return '<strong>' . link_to($text, $url) . '</strong>'; } return null; }
<?php $user = Doctrine::getTable('sfGuardUser')->find($object['id']); ?> <tr> <td><?php echo $user->Profile->getName(); ?> </td> <td> <?php if ($user->Profile->public_name) { ?> <?php echo link_to($user->Profile->public_name, frontend_base() . 'user/' . $user->Profile->public_name . '/modifications'); ?> </td> <?php } ?> </td> <td><?php echo $user->username; ?> </td> <td><?php echo $user->last_login; ?> </td> <td>