Exemplo n.º 1
0
function award_recipients_list(InternalAward $award)
{
    $receipts = $award->getRecipients();
    ?>
		<table class="award_history tableList" cellspacing="0">
			<colgroup>
				<col width="70%"></col>
				<col width="20%"></col>
				<col width="10%"></col>
			</colgroup>
			<thead>
				<tr>
					<td class="general award_recipient_list_first_column">
						Full Name
					</td>
					<td class="sortedDESC">
						Year Awarded
					</td>
					<td class="general">&nbsp;</td>
				</tr>
				</thead>
		<?php 
    if ($receipts) {
        foreach ($receipts as $receipt) {
            $user = $receipt->getUser();
            //$award = $recipient->getAward();
            ?>
				<tr>
					<td class="general">
						<a href="<?php 
            echo ENTRADA_URL;
            ?>
/admin/users/manage?id=<?php 
            echo $user->getID();
            ?>
"><?php 
            echo clean_input($user->getFullname(), array("notags", "specialchars"));
            ?>
</a>
					</td>
					<td class="general">
						<?php 
            echo clean_input($receipt->getAwardYear(), array("notags", "specialchars"));
            ?>
					</td>
					<td class="award_recipient_list_delete_button_column">
						<form class="remove_award_recipient_form" action="<?php 
            echo ENTRADA_URL;
            ?>
/admin/awards?section=award_details&id=<?php 
            echo $award->getID();
            ?>
#award-recipients-tab" method="post" >
							<input type="hidden" name="internal_award_id" value="<?php 
            echo clean_input($receipt->getID(), array("notags", "specialchars"));
            ?>
"></input>
							<input type="hidden" name="action" value="remove_award_recipient"></input>
							<input type="hidden" name="award_id" value="<?php 
            echo $award->getID();
            ?>
"></input>

							<button type="submit" class="btn btn-danger btn-mini"><i class="icon-remove-circle icon-white"></i></button> 
						</form>
					</td>
				</tr>
				<?php 
        }
    }
    ?>
		</table>
		<?php 
}