function user_link_by_id($id, $app = null, $strong = true) { $name = LsDoctrineQuery::create()->select('public_name')->from('sfGuardUserProfile')->where('user_id = ?', $id)->fetch(PDO::FETCH_COLUMN); return user_link_by_public_name($name); }
echo link_to(image_tag('system' . DIRECTORY_SEPARATOR . 'opensecrets-logo-225.gif', 'align=left style="border: 0; padding-right: 0.5em;"'), 'http://opensecrets.org'); ?> Below are donor records from <?php echo link_to('OpenSecrets', 'http://opensecrets.org'); ?> with the same or similar name. Using the info already in LittleSis (displayed on the left), and the employer info, addresses, and filing sources from OpenSecrets, identify which of these donor records belong to this person and check the appropriate boxes. <br /> <br /> <?php if ($reviewed_by_user) { ?> <strong>Last reviewed by <?php echo user_link_by_public_name($reviewed_by_user, null); ?> at <?php echo $reviewed_at; ?> </strong> <br /> <br /> <?php } ?> <form id="donors" action="<?php echo url_for(EntityTable::getInternalUrl($entity, 'matchDonors')); ?> " method="POST">
<?php if ($object['last_user_id'] && ($publicName = sfGuardUserTable::getPublicNameById($object['last_user_id']))) { ?> <?php use_helper('Date'); ?> <?php slot('header_right'); ?> Edited by <?php echo user_link_by_public_name($publicName); ?> <?php echo time_ago_in_words(strtotime($object['updated_at'])); ?> ago <?php if ($sf_user->isAuthenticated()) { ?> <nobr><?php echo link_to('History »', $more_uri); ?> </nobr> <?php } end_slot();